url美化调整路由模式

This commit is contained in:
唐明明
2021-09-28 10:52:45 +08:00
parent 75037949a7
commit f8f139f7bb
174 changed files with 199 additions and 73 deletions

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

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

@@ -171,9 +171,7 @@
},
// 选择银行卡
bankLists() {
uni.navigateTo({
url: '/pages/wallet/bankList'
})
this.$Router.push({name: 'bankList'})
},
// 提现记录
withdrawDetail() {