From f7aa204aa8d20b090d7943969ddeb9871a1fad76 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期四, 12 九月 2024 17:28:06 +0800 Subject: [PATCH] - --- src/pages/detail/detail.vue | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/pages/detail/detail.vue b/src/pages/detail/detail.vue index 85df245..280e25b 100644 --- a/src/pages/detail/detail.vue +++ b/src/pages/detail/detail.vue @@ -12,7 +12,8 @@ </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-flex chuany-justify-between chuany-align-center chuany-width100 chuany-box c-p-18"> <view class=" chuany-font34"> {{orderObj.orderName}} </view> @@ -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"> @@ -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) { @@ -205,6 +213,4 @@ width: 50rpx; height: 50rpx; } - - </style> \ No newline at end of file -- Gitblit v1.9.1