['修改路由']
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="clauseCont">
|
<view class="clauseCont" v-if="loaded">
|
||||||
<u-parse :html="clauseData"></u-parse>
|
<u-parse :html="clauseData"></u-parse>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -11,7 +11,8 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
clauseData: [] //服务条款
|
clauseData: '' ,//服务条款,
|
||||||
|
loaded:false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
@@ -33,6 +34,7 @@
|
|||||||
secretService(name).then(res => {
|
secretService(name).then(res => {
|
||||||
this.clauseData = res.content.replace(/\<img/gi,
|
this.clauseData = res.content.replace(/\<img/gi,
|
||||||
'<img style="max-width:100%; height:auto; vertical-align: top;"')
|
'<img style="max-width:100%; height:auto; vertical-align: top;"')
|
||||||
|
this.loaded = true
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
login(){
|
login(){
|
||||||
uni.navigateTo({
|
this.$Router.push({
|
||||||
url:'/pages/login/login'
|
name:'Login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,8 +139,8 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// 跳转到个人认证信息页面
|
// 跳转到个人认证信息页面
|
||||||
uni.navigateTo({
|
this.$Router.push({
|
||||||
url: '/pages/certification/personal'
|
name:'Personal'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -149,13 +149,16 @@
|
|||||||
console.log(code, '是否企业认证')
|
console.log(code, '是否企业认证')
|
||||||
if (code === -1) {
|
if (code === -1) {
|
||||||
// 跳转到企业认证页面
|
// 跳转到企业认证页面
|
||||||
uni.navigateTo({
|
this.$Router.push({
|
||||||
url: '/pages/company/approve'
|
name:'companyApprove'
|
||||||
})
|
})
|
||||||
} else if (code === 2) {
|
} else if (code === 2) {
|
||||||
// 跳转到企业认证页面
|
// 跳转到企业认证页面
|
||||||
uni.navigateTo({
|
this.$Router.push({
|
||||||
url: '/pages/company/approve?form_type=put'
|
name:'companyApprove',
|
||||||
|
params:{
|
||||||
|
form_type:'put'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else if (code === 0) {
|
} else if (code === 0) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
|
|||||||
@@ -149,8 +149,8 @@
|
|||||||
},
|
},
|
||||||
// 核销记录
|
// 核销记录
|
||||||
goHistory() {
|
goHistory() {
|
||||||
uni.navigateTo({
|
this.$Router.push({
|
||||||
url:'/pages/verification/history'
|
name:'verificationHistory'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,8 +79,11 @@
|
|||||||
},
|
},
|
||||||
// 跳转到编辑银行卡的页面
|
// 跳转到编辑银行卡的页面
|
||||||
editBank(id) {
|
editBank(id) {
|
||||||
uni.navigateTo({
|
this.$Router.push({
|
||||||
url: '/pages/wallet/addBank?id=' + id
|
name: 'addBank',
|
||||||
|
params:{
|
||||||
|
id:id
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 删除银行
|
// 删除银行
|
||||||
|
|||||||
@@ -138,13 +138,13 @@
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title:'提交中'
|
title: '提交中'
|
||||||
})
|
})
|
||||||
withdrawsIndex(data).then(res => {
|
withdrawsIndex(data).then(res => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res,
|
title: res,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration:3000
|
duration: 3000
|
||||||
})
|
})
|
||||||
this.withdraw_input = ''
|
this.withdraw_input = ''
|
||||||
this.total = ''
|
this.total = ''
|
||||||
@@ -165,18 +165,20 @@
|
|||||||
},
|
},
|
||||||
// 添加银行卡
|
// 添加银行卡
|
||||||
addBanks() {
|
addBanks() {
|
||||||
uni.navigateTo({
|
this.$Router.push({
|
||||||
url: '/pages/wallet/addBank'
|
name: 'addBank'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 选择银行卡
|
// 选择银行卡
|
||||||
bankLists() {
|
bankLists() {
|
||||||
this.$Router.push({name: 'bankList'})
|
this.$Router.push({
|
||||||
|
name: 'bankList'
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 提现记录
|
// 提现记录
|
||||||
withdrawDetail() {
|
withdrawDetail() {
|
||||||
uni.navigateTo({
|
this.$Router.push({
|
||||||
url: '/pages/wallet/withdrawList'
|
name: 'withdrawList'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user