From 208b5a9f559dd2c7298759fdfe37d07c926cbd4d Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期一, 23 九月 2024 17:09:21 +0800 Subject: [PATCH] 完善提现 --- src/pages/detail/detail.vue | 38 ++++++++++++++++++++++---------------- 1 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/pages/detail/detail.vue b/src/pages/detail/detail.vue index 6787f39..f2c4588 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> @@ -24,7 +25,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'> @@ -45,7 +46,8 @@ <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"> @@ -56,12 +58,12 @@ <text>{{orderObj.startTimeName}} 鑷� {{orderObj.endTimeName}}</text> </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 +76,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"> @@ -97,12 +99,18 @@ </view> </view> <view class="tabbtns"> - <up-button color='#fece01' :loading='isLoading' loadingText="鎶ュ悕涓�" class="text-69" text="鎶ュ悕" @click="enroll"></up-button> + <up-button color='#fece01' :loading='isLoading' loadingText="鎶ュ悕涓�" class="text-69" text="鎶ュ悕" + @click="enroll"></up-button> </view> </view> </template> <script> + import { + mapActions, + mapGetters, + mapMutations + } from 'vuex' export default { onLoad(option) { let { @@ -110,16 +118,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) { @@ -144,11 +152,11 @@ 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 @@ -205,6 +213,4 @@ width: 50rpx; height: 50rpx; } - - </style> \ No newline at end of file -- Gitblit v1.9.1