调整全局支付收银class
This commit is contained in:
@@ -212,18 +212,19 @@
|
||||
}, 3000);
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log(err.errMsg)
|
||||
uni.showToast({
|
||||
title: '支付失败',
|
||||
title: '支付被取消',
|
||||
duration: 3000,
|
||||
mask: true,
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/goods/payStatus?success=false'
|
||||
})
|
||||
this.canPay = true
|
||||
}, 3000);
|
||||
// setTimeout(() => {
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/goods/payStatus?success=false'
|
||||
// })
|
||||
// this.canPay = true
|
||||
// }, 3000);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -263,7 +264,7 @@
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.showToast({
|
||||
title: '支付失败' + err,
|
||||
title: '支付被取消',
|
||||
duration: 3000,
|
||||
mask: true,
|
||||
icon: 'none'
|
||||
|
||||
@@ -215,32 +215,14 @@
|
||||
this.coupons = res.coupons
|
||||
})
|
||||
},
|
||||
onBackPress({
|
||||
from
|
||||
}) {
|
||||
if (from == 'backbutton') {
|
||||
this.$nextTick(function() {
|
||||
uniShare.hide()
|
||||
})
|
||||
return uniShare.isShow;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 提交购买单
|
||||
buyGoods() {
|
||||
let token = this.$store.getters.getToken
|
||||
if (token == '') {
|
||||
let userLogin = new userAuth()
|
||||
userLogin.Login()
|
||||
this.$Router.push({name: 'Login'})
|
||||
return
|
||||
}
|
||||
// this.$Router.push({
|
||||
// name: 'Buy',
|
||||
// params: {
|
||||
// skuId: this.goodsObj.skus[0].sku_id,
|
||||
// qty : this.goodsObj.skus[0].number
|
||||
// }
|
||||
// })
|
||||
uni.navigateTo({
|
||||
url: '/pages/goods/confirmOrder?qty=1&type=2&goods_sku_id=' + this.goodsObj.skus[0].sku_id
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user