url美化调整路由模式
This commit is contained in:
@@ -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提交
|
||||
|
||||
Reference in New Issue
Block a user