调整全局支付收银class

This commit is contained in:
唐明明
2021-11-04 11:30:15 +08:00
parent cbe6cc912b
commit d9b4d459ae
13 changed files with 1841 additions and 1865 deletions

View File

@@ -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'

View File

@@ -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
})