优化提交协议后的返回路径,不回退到首页,回退到协议签订入口
This commit is contained in:
parent
97d3528355
commit
d31c791394
|
|
@ -161,9 +161,12 @@ export default {
|
|||
)
|
||||
},
|
||||
},
|
||||
onShow() {
|
||||
this.getIsSignProtocol()
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时获取服务区域列表和协议内容
|
||||
this.getIsSignProtocolOnshow()
|
||||
this.getIsSignProtocol()
|
||||
this.loadServiceAreas()
|
||||
this.loadAgreement()
|
||||
},
|
||||
|
|
@ -191,7 +194,7 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
async getIsSignProtocolOnshow() {
|
||||
async getIsSignProtocol() {
|
||||
let res = await isSignProtocolPartner()
|
||||
console.log('res', res)
|
||||
console.log('res.data', res.data)
|
||||
|
|
|
|||
|
|
@ -89,7 +89,10 @@ export default {
|
|||
|
||||
uni.hideLoading()
|
||||
//回跳首页
|
||||
await uni.switchTab({ url: '/pages/index/index' })
|
||||
// await uni.switchTab({ url: '/pages/index/index' })
|
||||
await uni.navigateBack({
|
||||
delta: 2,
|
||||
})
|
||||
|
||||
uni.downloadFile({
|
||||
url: this.resProtocol.msg,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ const ENV_CONFIG = {
|
|||
// 正式版
|
||||
// baseUrl: 'https://chu.chuangtewl.com/prod-api',
|
||||
// baseUrl: 'http://192.168.2.100:4601',
|
||||
baseUrl: 'http://192.168.2.100:4601',
|
||||
baseUrl: 'https://chu.chuangtewl.com/prod-api',
|
||||
appId: 1,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user