['修改路由']

This commit is contained in:
2021-09-28 11:21:20 +08:00
parent f2e1121f3c
commit 0aa9c68b04
6 changed files with 31 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="clauseCont">
<view class="clauseCont" v-if="loaded">
<u-parse :html="clauseData"></u-parse>
</view>
</template>
@@ -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(/\<img/gi,
'<img style="max-width:100%; height:auto; vertical-align: top;"')
this.loaded = true
}).catch(err => {
uni.showToast({
icon: 'none',

View File

@@ -24,8 +24,8 @@
},
methods: {
login(){
uni.navigateTo({
url:'/pages/login/login'
this.$Router.push({
name:'Login'
})
}
}

View File

@@ -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({

View File

@@ -149,8 +149,8 @@
},
// 核销记录
goHistory() {
uni.navigateTo({
url:'/pages/verification/history'
this.$Router.push({
name:'verificationHistory'
})
}
}

View File

@@ -79,8 +79,11 @@
},
// 跳转到编辑银行卡的页面
editBank(id) {
uni.navigateTo({
url: '/pages/wallet/addBank?id=' + id
this.$Router.push({
name: 'addBank',
params:{
id:id
}
})
},
// 删除银行

View File

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