mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 18:56:43 +08:00
feature/GFRS-2350【前端-待完成】修改卡单支付分享时效--分享修改--提交人庞兴月
This commit is contained in:
@@ -191,15 +191,27 @@ service.interceptors.response.use(
|
|||||||
Toast.clear()
|
Toast.clear()
|
||||||
if (res.code != 0) {
|
if (res.code != 0) {
|
||||||
if (res.code == 10001 || res.code == 10002) {
|
if (res.code == 10001 || res.code == 10002) {
|
||||||
Dialog.confirm({
|
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||||
confirmButtonText: '重新登录',
|
if (isWeixin) {
|
||||||
message: '你已被登出,可以取消继续留在该页面,或者重新登录'
|
Dialog.alert({
|
||||||
}).then(() => {
|
title: '提示',
|
||||||
//eslint-disable-next-line
|
confirmButtonText: '退出',
|
||||||
EWebBridge.webCallAppInJs('bridge', {
|
message: '当前链接已失效,请您联系业务员获取(重新分享)。',
|
||||||
flag: 'login'
|
}).then(() => {
|
||||||
|
window.close();
|
||||||
|
WeixinJSBridge.call('closeWindow');
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Dialog.confirm({
|
||||||
|
confirmButtonText: '重新登录',
|
||||||
|
message: '你已被登出,可以取消继续留在该页面,或者重新登录'
|
||||||
|
}).then(() => {
|
||||||
|
//eslint-disable-next-line
|
||||||
|
EWebBridge.webCallAppInJs('bridge', {
|
||||||
|
flag: 'login'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
//Toast.fail(res.msg)
|
//Toast.fail(res.msg)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -258,8 +258,7 @@ export default {
|
|||||||
if (this.isWeixin) {
|
if (this.isWeixin) {
|
||||||
this.radio = '3'
|
this.radio = '3'
|
||||||
let token = this.$route.query.token
|
let token = this.$route.query.token
|
||||||
let orderNo = this.$route.query.orderNo
|
let orderNo = this.$route.query.orderNo
|
||||||
let shareToken = this.$route.query.shareToken
|
|
||||||
localStorage.token = token
|
localStorage.token = token
|
||||||
localStorage.orderNo = orderNo
|
localStorage.orderNo = orderNo
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
@@ -490,17 +489,8 @@ export default {
|
|||||||
// if (this.isWeixin) {
|
// if (this.isWeixin) {
|
||||||
// this.pay()
|
// this.pay()
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
} else if (res.result === '1') {
|
|
||||||
Dialog.alert({
|
|
||||||
title: '提示',
|
|
||||||
confirmButtonText: '退出',
|
|
||||||
message: '当前链接已失效,请您联系业务员获取(重新分享)。',
|
|
||||||
}).then(() => {
|
|
||||||
window.close();
|
|
||||||
WeixinJSBridge.call('closeWindow');
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
this.underWriteData = {
|
this.underWriteData = {
|
||||||
accountName: '',
|
accountName: '',
|
||||||
@@ -742,10 +732,9 @@ export default {
|
|||||||
localStorage.bankName = this.underWriteData.bankName
|
localStorage.bankName = this.underWriteData.bankName
|
||||||
localStorage.bankCode = this.underWriteData.bankCode
|
localStorage.bankCode = this.underWriteData.bankCode
|
||||||
localStorage.bankListName = this.bankListName
|
localStorage.bankListName = this.bankListName
|
||||||
console.log(this.underWriteData.bankName, this.underWriteData.bankCode, this.bankListName, this.underWriteData.name)
|
console.log(this.underWriteData.bankName, this.underWriteData.bankCode, this.bankListName, this.underWriteData.name)
|
||||||
let url = location.origin + '/#/cardList/pay?orderNo=' + localStorage.orderNo + '&token=' + localStorage.token
|
let res = await getShareParam({ shareType: 'card_pay' })
|
||||||
let res = await getShareParam({ shareType: 'card_pay' })
|
let url = location.origin + '/#/cardList/pay?orderNo=' + localStorage.orderNo + '&token=' + res.content
|
||||||
localStorage.token = res.content
|
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
EWebBridge.webCallAppInJs('bridge', {
|
EWebBridge.webCallAppInJs('bridge', {
|
||||||
flag: 'share',
|
flag: 'share',
|
||||||
|
|||||||
Reference in New Issue
Block a user