From e5a77d6a551d13e4cf74624b31b0fa3e328b304d Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期四, 23 一月 2025 17:23:39 +0800 Subject: [PATCH] - --- src/pages/detail/detail.vue | 71 +++++++++++++++++++++++++++-------- 1 files changed, 54 insertions(+), 17 deletions(-) diff --git a/src/pages/detail/detail.vue b/src/pages/detail/detail.vue index 85df245..7f1fbfc 100644 --- a/src/pages/detail/detail.vue +++ b/src/pages/detail/detail.vue @@ -12,8 +12,9 @@ </view> --> <view class="chuany-flex chuany-justify-between"> <view class="chuany-width100"> - <view class="chuany-flex chuany-justify-between chuany-align-center chuany-width100 chuany-box c-p-18"> - <view class=" chuany-font34"> + <view + class="chuany-flex chuany-justify-between chuany-align-center chuany-width100 chuany-box c-p-18"> + <view class="chuany-font32"> {{orderObj.orderName}} </view> <view> @@ -25,11 +26,17 @@ </view> --> <view class="redcla c-p-l-18 c-p-r-18"> <text class="chuany-font40"> - {{orderObj.workPrice}} + {{orderObj.workPrice}}<template v-if="orderObj.workPriceMax">~{{orderObj.workPriceMax}}</template> </text> <text class='chuany-font20'> {{orderObj.workerType==0?'鍏�/灏忔椂':'鍏�/浠�'}} </text> + <!-- <text class="chuany-font40"> + {{orderObj.workPrice}} + </text> + <text class='chuany-font20'> + {{orderObj.workerType==0?'鍏�/灏忔椂':'鍏�/浠�'}} + </text> --> </view> </view> @@ -45,23 +52,30 @@ <text class="colorgray ">浠诲姟鏃ユ湡</text> </view> <view class="chuany-flex chuany-flex-direction"> - <text>{{$util.formatDate(orderObj.wordStartTime)}} 鑷� {{$util.formatDate(orderObj.wordEndTime)}}</text> + <text>{{$util.formatDate(orderObj.wordStartTime)}} 鑷� + {{$util.formatDate(orderObj.wordEndTime)}}</text> </view> </view> <view class="chuany-flex c-p-l-20 c-p-r-20 c-p-b-20"> <view class="chuany-width26"> <text class="colorgray ">浠诲姟鏃堕棿</text> </view> - <view class="chuany-flex chuany-flex-direction"> + <!-- <view class="chuany-flex chuany-flex-direction"> <text>{{orderObj.startTimeName}} 鑷� {{orderObj.endTimeName}}</text> + </view> --> + <view class="chuany-flex chuany-flex-direction" v-if="orderObj.zixinganpai"> + {{orderObj.zixinganpaiName}} + </view> + <view class="" v-else> + {{orderObj.startTimeName}} 鑷� {{orderObj.endTimeName}} </view> </view> - <view class="chuany-flex c-p-l-18"> + <!-- <view class="chuany-flex c-p-l-18"> <view class="chuany-width26"> <text class="colorgray">宸叉嫑浜烘暟</text> </view> <text>{{orderObj.worderCounted}}/{{orderObj.worderCount}}</text> - </view> + </view> --> <!-- <view class="chuany-flex c-p-18"> <view class="chuany-width26 "> <text class="colorgray">鎬у埆</text> @@ -74,7 +88,7 @@ </view> <text>18宀佷互涓�</text> </view> --> - <view class="chuany-flex chuany-justify-between c-p-l-18 c-p-r-18 c-p-t-18 borderbox"> + <view class="chuany-flex chuany-justify-between c-p-l-18 c-p-r-18 borderbox"> <view class="chuany-flex"> <image class='dingwei c-p-r-16' src="@/static/image/dingwei.png" mode="widthFix"></image> <view class="chuany-flex chuany-flex-direction"> @@ -96,13 +110,38 @@ {{orderObj.demand}} </view> </view> - <view class="tabbtns"> - <up-button color='#fece01' :loading='isLoading' loadingText="鎶ュ悕涓�" class="text-69" text="鎶ュ悕" @click="enroll"></up-button> + <!-- <view class="coreshop-bg-white c-m-t-20 c-p-20"> + <view class="c-p-b-20 colorgray"> + 宸ヤ环璇︽儏 + </view> + <view class="c-p-b-20"> + 褰撳墠宸ヤ环锛歿{orderObj.workPriceDangqian}} {{orderObj.workerType==0?'鍏�/灏忔椂':'鍏�/浠�'}} + </view> + <view class="c-p-b-20"> + 鍘嗗彶宸ヤ环锛� + <view class="chuany-flex chuany-justify-between" v-for="item in orderObj.orderBiddingWorkPrices"> + <view class=""> + {{$util.formatDate(item.effectTime)}} + </view> + <view class=""> + {{item.workPrice}} {{orderObj.workerType==0?'鍏�/灏忔椂':'鍏�/浠�'}} + </view> + </view> + </view> + </view> --> + <view class="tabbtns" v-if="!orderObj.isSelectedName"> + <up-button color='#fece01' :loading='isLoading' loadingText="鎶ュ悕涓�" text="鎶ュ悕" + @click="enroll"></up-button> </view> </view> </template> <script> + import { + mapActions, + mapGetters, + mapMutations + } from 'vuex' export default { onLoad(option) { let { @@ -110,16 +149,16 @@ } = option this.getOrder(orderid) }, - onShow(){ - console.log('鎵ц-----鈥�'); - this.userInfo = this.$db.get('userInfo') ? JSON.parse(this.$db.get('userInfo')) : {} - }, + data() { return { orderObj: {}, tags: ['4灏忔椂', '鍙棤缁忛獙', '鎵嬭剼楹诲埄', '璁℃椂'], - isLoading:false + isLoading: false } + }, + computed: { + ...mapGetters(['userInfo']) }, methods: { getOrder(orderid) { @@ -205,6 +244,4 @@ width: 50rpx; height: 50rpx; } - - </style> \ No newline at end of file -- Gitblit v1.9.1