uniapp-提交订单时取消订单,提示错误
uniapp-购物车编辑数量后未更新数量统计 uniapp-token失效未进行重新登录 uniapp-查看物流-点标识太大 造成部分物流信息被遮挡
This commit is contained in:
@ -13,13 +13,16 @@ import {
|
||||
} from "@/utils";
|
||||
|
||||
export default function toLogin(push, backUrl) {
|
||||
// console.log('需要重新登录')
|
||||
store.commit("LOGOUT");
|
||||
// 如果没有授权,走登录的接口重新授权
|
||||
// 授权获取失败会跳转到授权的接口
|
||||
// console.log(store.getters.isAuthorization, '是否有登陆权限')
|
||||
if (store.getters.isAuthorization) {
|
||||
login()
|
||||
return
|
||||
}
|
||||
// console.log(store.getters.isAuthorizationPage, '判断是不是登录页面或者授权页面')
|
||||
// 判断当前是不是已经在登录页面或者授权页,防止二次跳转
|
||||
if (store.getters.isAuthorizationPage || getCurrentPageUrl() == '/pages/user/Login/index') {
|
||||
return
|
||||
|
@ -39,7 +39,9 @@ export const weappPay = (option) => {
|
||||
},
|
||||
fail: (error) => {
|
||||
console.log(error)
|
||||
uni.showToast({ title: JSON.stringify(error), icon: 'none', duration: 5000 });
|
||||
if (error.errMsg == 'requestPayment:fail cancel') {
|
||||
uni.showToast({ title: '已取消支付', icon: 'none', duration: 5000 });
|
||||
}
|
||||
reject(error)
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user