支付失败提示
This commit is contained in:
parent
495e2a20dc
commit
e532b9e288
@ -40,7 +40,7 @@
|
|||||||
<view class='loadingicon acea-row row-center-wrapper' v-if='productList.length > 0'>
|
<view class='loadingicon acea-row row-center-wrapper' v-if='productList.length > 0'>
|
||||||
<text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
|
<text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -98,7 +98,7 @@
|
|||||||
that.$set(that, 'productList', productList);
|
that.$set(that, 'productList', productList);
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
||||||
|
|
||||||
that.$set(that.where, 'page', that.where.page + 1);
|
that.$set(that.where, 'page', that.where.page + 1);
|
||||||
if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true
|
if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
@ -112,55 +112,55 @@
|
|||||||
merchant({
|
merchant({
|
||||||
id: this.mer_id
|
id: this.mer_id
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|
||||||
this.merchant_Data = res.data
|
this.merchant_Data = res.data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//缴纳保证金
|
//缴纳保证金
|
||||||
paydecimal() {
|
paydecimal() {
|
||||||
|
|
||||||
let that = this
|
|
||||||
uni.showModal({
|
|
||||||
title: '提示',
|
|
||||||
content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金',
|
|
||||||
success: (res) => {
|
|
||||||
if (res.confirm) {
|
|
||||||
|
|
||||||
// console.log('用户点击确定');
|
let that = this
|
||||||
paymerchant().then((res) => {
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金',
|
||||||
|
success: (res) => {
|
||||||
|
if (res.confirm) {
|
||||||
|
|
||||||
uni.requestPayment({
|
// console.log('用户点击确定');
|
||||||
provider: 'wxpay',
|
paymerchant().then((res) => {
|
||||||
orderInfo: res.data
|
|
||||||
.config, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
|
|
||||||
success: (res) => {
|
|
||||||
that.$util.Tips({
|
|
||||||
title: '支付成功'
|
|
||||||
});
|
|
||||||
that.decimal()
|
|
||||||
that.list(true)
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
that.$util.Tips({
|
|
||||||
title: '支付失败'
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log('fail:' + JSON.stringify(err));
|
uni.requestPayment({
|
||||||
}
|
provider: 'wxpay',
|
||||||
});
|
orderInfo: res.data
|
||||||
}).catch((err) => {
|
.config, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
|
||||||
console.log(err)
|
success: (res) => {
|
||||||
this.$util.Tips(()=>{
|
that.$util.Tips({
|
||||||
|
title: '支付成功'
|
||||||
})
|
});
|
||||||
})
|
that.decimal()
|
||||||
} else if (res.cancel) {
|
that.list(true)
|
||||||
console.log('用户点击取消');
|
},
|
||||||
}
|
fail: (err) => {
|
||||||
|
that.$util.Tips({
|
||||||
|
title: '支付失败'
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log('fail:' + JSON.stringify(err));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch((err) => {
|
||||||
|
console.log(err)
|
||||||
|
that.$util.Tips({
|
||||||
|
title: err
|
||||||
|
})
|
||||||
|
})
|
||||||
|
} else if (res.cancel) {
|
||||||
|
console.log('用户点击取消');
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -491,7 +491,7 @@
|
|||||||
.boundingClientRect(rect => {
|
.boundingClientRect(rect => {
|
||||||
// console.log(this.cartTagInfo, 6666)
|
// console.log(this.cartTagInfo, 6666)
|
||||||
that.cartTagInfo = rect
|
that.cartTagInfo = rect
|
||||||
console.log(rect)
|
|
||||||
})
|
})
|
||||||
.exec();
|
.exec();
|
||||||
// console.log(that.headtop)
|
// console.log(that.headtop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user