diff --git a/pages/login/agreement.vue b/pages/login/agreement.vue index cd8fe2b..ff193f5 100644 --- a/pages/login/agreement.vue +++ b/pages/login/agreement.vue @@ -1,5 +1,5 @@ @@ -11,7 +11,8 @@ export default { data() { return { - clauseData: [] //服务条款 + clauseData: '' ,//服务条款, + loaded:false }; }, onLoad(e) { @@ -33,6 +34,7 @@ secretService(name).then(res => { this.clauseData = res.content.replace(/\ { uni.showToast({ icon: 'none', diff --git a/pages/login/guide.vue b/pages/login/guide.vue index 3617dd4..4c5c9ce 100644 --- a/pages/login/guide.vue +++ b/pages/login/guide.vue @@ -24,8 +24,8 @@ }, methods: { login(){ - uni.navigateTo({ - url:'/pages/login/login' + this.$Router.push({ + name:'Login' }) } } diff --git a/pages/setting/setting.vue b/pages/setting/setting.vue index e15d27e..210c683 100644 --- a/pages/setting/setting.vue +++ b/pages/setting/setting.vue @@ -139,8 +139,8 @@ }) } else { // 跳转到个人认证信息页面 - uni.navigateTo({ - url: '/pages/certification/personal' + this.$Router.push({ + name:'Personal' }) } }, @@ -149,13 +149,16 @@ console.log(code, '是否企业认证') if (code === -1) { // 跳转到企业认证页面 - uni.navigateTo({ - url: '/pages/company/approve' + this.$Router.push({ + name:'companyApprove' }) } else if (code === 2) { // 跳转到企业认证页面 - uni.navigateTo({ - url: '/pages/company/approve?form_type=put' + this.$Router.push({ + name:'companyApprove', + params:{ + form_type:'put' + } }) } else if (code === 0) { this.$refs.uToast.show({ diff --git a/pages/verification/index.vue b/pages/verification/index.vue index 1eac1bb..bb4e5b2 100644 --- a/pages/verification/index.vue +++ b/pages/verification/index.vue @@ -149,8 +149,8 @@ }, // 核销记录 goHistory() { - uni.navigateTo({ - url:'/pages/verification/history' + this.$Router.push({ + name:'verificationHistory' }) } } diff --git a/pages/wallet/bankList.vue b/pages/wallet/bankList.vue index 06f86fd..f579bfd 100644 --- a/pages/wallet/bankList.vue +++ b/pages/wallet/bankList.vue @@ -79,8 +79,11 @@ }, // 跳转到编辑银行卡的页面 editBank(id) { - uni.navigateTo({ - url: '/pages/wallet/addBank?id=' + id + this.$Router.push({ + name: 'addBank', + params:{ + id:id + } }) }, // 删除银行 diff --git a/pages/wallet/extract.vue b/pages/wallet/extract.vue index 31f036a..31c9d18 100644 --- a/pages/wallet/extract.vue +++ b/pages/wallet/extract.vue @@ -138,13 +138,13 @@ success: (res) => { if (res.confirm) { uni.showLoading({ - title:'提交中' + title: '提交中' }) withdrawsIndex(data).then(res => { uni.showToast({ title: res, icon: 'none', - duration:3000 + duration: 3000 }) this.withdraw_input = '' this.total = '' @@ -165,18 +165,20 @@ }, // 添加银行卡 addBanks() { - uni.navigateTo({ - url: '/pages/wallet/addBank' + this.$Router.push({ + name: 'addBank' }) }, // 选择银行卡 bankLists() { - this.$Router.push({name: 'bankList'}) + this.$Router.push({ + name: 'bankList' + }) }, // 提现记录 withdrawDetail() { - uni.navigateTo({ - url: '/pages/wallet/withdrawList' + this.$Router.push({ + name: 'withdrawList' }) } }