修改跳转路径

This commit is contained in:
zhangmanman
2021-09-28 11:31:52 +08:00
180 changed files with 241 additions and 102 deletions

View File

@@ -1,9 +1,7 @@
<template>
<view>
<view class="clauseCont">
<rich-text :nodes="clauseData"></rich-text>
<view class="clauseCont" v-if="loaded">
<u-parse :html="clauseData"></u-parse>
</view>
</view>
</template>
<script>
@@ -13,7 +11,8 @@
export default {
data() {
return {
clauseData: [] //服务条款
clauseData: '' ,//服务条款,
loaded:false
};
},
onLoad(e) {
@@ -35,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',
@@ -52,7 +52,7 @@
}
.clauseCont {
padding: $padding + 10 $padding * 2;
padding: $padding ;
width: 100%;
box-sizing: border-box;
}

View File

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

View File

@@ -26,7 +26,12 @@
</view>
</view>
<!-- 用户登录注册协议 -->
<view class="agreement">未注册的手机号验证后将自动创建账号登录即表示同意接收<view @click="$Router.push({name: 'vipAgree', params: {type : 'loginPrivacy'}})">用户隐私协议</view><view @click="$Router.push({name: 'vipAgree', params: {type : 'loginService'}})">用户服务协议</view></view>
<view class="agreement">
未注册的手机号验证后将自动创建账号登录即表示同意接收
<view @click="$Router.push({name: 'agreement', params: {name : 'secret'}})">用户隐私协议</view>
<view @click="$Router.push({name: 'agreement', params: {name : 'service'}})">用户服务协议</view>
</view>
</view>
</template>

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({
@@ -278,9 +281,7 @@
},
loginOut() {
this.$store.commit('setToken', '')
uni.reLaunch({
url: '/pages/login/login'
})
this.$Router.push({name: 'Login'})
},
// 上传头像
updImgs(type) {

View File

@@ -1,5 +1,5 @@
<template>
<view>
<view class="background">
<view class="codeContent">
<!-- 邀请码图 -->
<view class="codeBack">
@@ -98,13 +98,14 @@
}
</script>
<style>
page {
background-image: linear-gradient(to top, #7c52fc, #976dff);
}
</style>
<style lang="scss">
// 背景色
.background{
min-height: 100vh;
background: linear-gradient(to top, #7c52fc, #976dff);
}
// 背景
.codeImg {
width: 100%;

View File

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

View File

@@ -62,10 +62,15 @@
<view class="privilege-text">
<view class="privilege-name">
升级条件
</view>
<view class="privilege-label" :class="{'active' : item.finish == true}" v-for="(item, index) in identitie[tabsIndex].get_condition" :key="index">
&{{item.message}}
</view>
</view>
<block v-if="openCondition.energy_shard">
<view class="privilege-label" :class="{'active' : openCondition.energy_shard.finish}">{{openCondition.energy_shard.message}}<uni-icons v-if="openCondition.energy_shard.finish" type="checkmarkempty" size="17" color="#f6b338"></uni-icons></view>
<view class="privilege-label" :class="{'active' : openCondition.price.finish}" v-if="!openCondition.energy_shard.finish">{{openCondition.price.message}}</view>
<view class="privilege-label" v-else>{{openCondition.service_charge.message}}</view>
</block>
<block v-else>
<view class="privilege-label" :class="{'active' : openCondition.price.finish}">{{openCondition.price.message}}</view>
</block>
</view>
</view>
<view class="privilege-list">
@@ -127,7 +132,8 @@
canForm : false, // 凭证弹出
canFromImg : {
showpath: '',
path : ''
path : ''
},
openCondition: {}
}
},
@@ -138,11 +144,23 @@
methods: {
// 当前用户信息
idenInfo(){
identities().then(res => {
this.loding = false
this.identitie = res.identities
this.rights = res.identities[this.tabsIndex].rights
this.total = res.identities[this.tabsIndex].price
identities().then(res => {
res.identities.map(item => {
item.obj_condition = new Object
for(let val of item.get_condition){
item.obj_condition[val.name] = {
message: val.message,
finish: val.finish
}
}
return item
})
this.identitie = res.identities
this.openCondition = res.identities[this.tabsIndex].obj_condition
this.rights = res.identities[this.tabsIndex].rights
this.total = res.identities[this.tabsIndex].price
this.canBtn = res.identities[this.tabsIndex].can
this.loding = false
}).catch(err =>{
uni.showToast({
@@ -153,7 +171,7 @@
},
// 切换开通身份
swiperChange(e) {
swiperChange(e) {
this.tabsIndex = e.detail.current
// 获取当前用户信息
this.idenInfo();
@@ -169,9 +187,7 @@
icon : 'none'
})
return
}
}
if(can.on_line) {
if(can.on_line) {
if(can.buy) {
// 开通vip提交
@@ -183,7 +199,6 @@
icon : 'none'
})
}
} else {
} else {
if(can.buy) {
// 上传凭证
@@ -195,7 +210,6 @@
})
}
}
return
return
},
// 开通vip提交

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,20 +165,20 @@
},
// 添加银行卡
addBanks() {
uni.navigateTo({
url: '/pages/wallet/addBank'
this.$Router.push({
name: 'addBank'
})
},
// 选择银行卡
bankLists() {
uni.navigateTo({
url: '/pages/wallet/bankList'
this.$Router.push({
name: 'bankList'
})
},
// 提现记录
withdrawDetail() {
uni.navigateTo({
url: '/pages/wallet/withdrawList'
this.$Router.push({
name: 'withdrawList'
})
}
}