|
|
@@ -40,6 +40,7 @@
|
|
|
const _this = this;
|
|
|
uni.scanCode({
|
|
|
success: function (res) {
|
|
|
+ console.log(res.result);
|
|
|
_this.payBefore(res.result)
|
|
|
},
|
|
|
fail: (res) => {
|
|
|
@@ -61,7 +62,15 @@
|
|
|
type:2
|
|
|
}
|
|
|
let resp=await this.$api.shop.payBefore(params)
|
|
|
- console.log(resp);
|
|
|
+ if (!resp.success) {
|
|
|
+ this.$u.toast(resp.msg)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$dialog.showModal('扫描成功,等待用户付款').then(()=>{
|
|
|
+ uni.reLaunch({
|
|
|
+ url:"/pages/index/index"
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
show(){
|
|
|
this.$refs.amountInput.show()
|