From 4eef04aa662cf4f8fbde60ca99c0011b6203c558 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 11 九月 2024 14:26:44 +0800 Subject: [PATCH] 增加管理员等功能 --- src/pages/detail/detail.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/pages/detail/detail.vue b/src/pages/detail/detail.vue index 1521fb3..85df245 100644 --- a/src/pages/detail/detail.vue +++ b/src/pages/detail/detail.vue @@ -1,7 +1,7 @@ <template> <view class="list full-page"> <view class="content c-p-b-18"> - <view class="bgcolor c-p-24 chuany-flex chuany-justify-between chuany-font28 chuany-text-bold"> + <!-- <view class="bgcolor c-p-24 chuany-flex chuany-justify-between chuany-font28 chuany-text-bold"> 鎶ュ悕 <up-icon name="arrow-right-double" color='#faa93f'></up-icon> 纭鎺ュ崟 @@ -9,7 +9,7 @@ 涓婁笅鐝墦鍗� <up-icon name="arrow-right-double" color='#faa93f'></up-icon> 缁撶畻鎻愮幇 - </view> + </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"> @@ -24,7 +24,7 @@ <up-tag class='c-p-l-14 c-p-b-14' :text="item" plain v-for="(item,index) in tags"> </up-tag> </view> --> <view class="redcla c-p-l-18 c-p-r-18"> - <text class="chuany-font40 chuany-text-bold"> + <text class="chuany-font40"> {{orderObj.workPrice}} </text> <text class='chuany-font20'> @@ -110,6 +110,10 @@ } = option this.getOrder(orderid) }, + onShow(){ + console.log('鎵ц-----鈥�'); + this.userInfo = this.$db.get('userInfo') ? JSON.parse(this.$db.get('userInfo')) : {} + }, data() { return { orderObj: {}, @@ -126,16 +130,25 @@ }) }, enroll() { + if (!this.userInfo.userWorker) { + uni.navigateTo({ + url: '/pages/mine/apply' + }); + this.$util.showToast({ + title: '璇峰厛瀹屽杽璧勬枡锛�' + }) + return + } this.isLoading = true this.$api.saveBaoMing({ orderId: this.orderObj.id }).then(res => { if (res.code == 1) { + uni.navigateBack() this.$util.showToast({ title: "鎶ュ悕鎴愬姛锛�", icon: "success" }) - uni.navigateBack() } else { this.$util.showToast({ title: res.error -- Gitblit v1.9.1