优化提交协议后的返回路径,不回退到首页,回退到协议签订入口

This commit is contained in:
WindowBird 2025-09-15 14:19:13 +08:00
parent 97d3528355
commit d31c791394
3 changed files with 10 additions and 4 deletions

View File

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

View File

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

View File

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