|
@@ -59,7 +59,7 @@
|
|
|
@tap.stop="toView(item,'order')">详细信息</button>
|
|
|
<button v-if="item.status=='0'||item.status=='1'" size="mini"
|
|
|
@tap.stop="toCancel(item)">取消订单</button>
|
|
|
- <button v-if="item.status=='0'" size="mini"
|
|
|
+ <button v-if="item.status=='0'" size="mini" :disabled="disabled"
|
|
|
@tap.stop="toPay(item)">支付</button>
|
|
|
<button v-if="item.status=='2'||item.status=='3'||item.status=='2-'"
|
|
|
size="mini" @tap.stop="toLogi(item,'order')">查看物流</button>
|
|
@@ -252,6 +252,8 @@
|
|
|
},
|
|
|
// 状态名称
|
|
|
status_name: '',
|
|
|
+ // 禁用
|
|
|
+ disabled: false
|
|
|
};
|
|
|
},
|
|
|
onShow: async function() {
|
|
@@ -467,6 +469,7 @@
|
|
|
async toPay(e) {
|
|
|
const that = this;
|
|
|
let system = that.system;
|
|
|
+ that.$set(that, `disabled`, true)
|
|
|
if (system.uniPlatform == "mp-weixin") {
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
@@ -486,6 +489,7 @@
|
|
|
})
|
|
|
},
|
|
|
fail: function(err) {
|
|
|
+ that.$set(that, `disabled`, false)
|
|
|
uni.showToast({
|
|
|
title: `支付失败`,
|
|
|
icon: 'none'
|
|
@@ -498,6 +502,7 @@
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
+ that.$set(that, `disabled`, false)
|
|
|
uni.showToast({
|
|
|
title: p2.errmsg || '错误信息',
|
|
|
icon: 'none'
|