From 0c9b00f333f9baaffa9140fd1808a26e0af8416b Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期四, 05 九月 2024 17:19:07 +0800 Subject: [PATCH] 一些错误更改 --- src/pages/detail/detail.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pages/detail/detail.vue b/src/pages/detail/detail.vue index 55794ff..1521fb3 100644 --- a/src/pages/detail/detail.vue +++ b/src/pages/detail/detail.vue @@ -97,7 +97,7 @@ </view> </view> <view class="tabbtns"> - <up-button color='#fece01' 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> @@ -112,8 +112,9 @@ }, data() { return { - orderObj: null, - tags: ['4灏忔椂', '鍙棤缁忛獙', '鎵嬭剼楹诲埄', '璁℃椂'] + orderObj: {}, + tags: ['4灏忔椂', '鍙棤缁忛獙', '鎵嬭剼楹诲埄', '璁℃椂'], + isLoading:false } }, methods: { @@ -125,6 +126,7 @@ }) }, enroll() { + this.isLoading = true this.$api.saveBaoMing({ orderId: this.orderObj.id }).then(res => { @@ -133,11 +135,13 @@ title: "鎶ュ悕鎴愬姛锛�", icon: "success" }) + uni.navigateBack() } else { this.$util.showToast({ title: res.error }) } + this.isLoading = false }) } } -- Gitblit v1.9.1