This commit is contained in:
liuyuan
2025-08-19 10:24:28 +08:00
parent 692a3838c2
commit e04e7953a1
5 changed files with 51 additions and 16 deletions

View File

@@ -111,15 +111,7 @@ export default {
}
},
onShow(){
let fixed = uni.getStorageSync('fixed');
//如果是诊断标准子页面返回的
if(fixed){
this.activeTab = 1;
}else{
this.activeTab = 0;
this.getPsycheTree();
}
this.childrenTab = 0;
},
onLoad(options) {
//清除缓存
@@ -146,6 +138,15 @@ export default {
text= '城市';
}
this.countryText = text;
// let fixed = uni.getStorageSync('fixed');
// //如果是诊断标准子页面返回的
// if(fixed){
// this.activeTab = 1;
// }else{
this.activeTab = 0;
this.getPsycheTree();
// }
this.childrenTab = 0;
},
methods: {
//判断显示‘上/中/下’

View File

@@ -65,7 +65,7 @@
</view>
</view>
<view class="not_purchased" v-if="slotProps.data.type != 0&&!showNewPayBtn[0].status">
<view class="not_purchased" v-if="slotProps.data.type != 0&&!showNewPayBtn[slotProps.dataIndex].status">
<view class="spot"></view>
<view>
<text v-if="userVip==null&&slotProps.data.isBuy!=1">未购买</text>
@@ -76,11 +76,25 @@
<text v-if="userVip!=null">有效期至{{ userVip.endTime }}</text>
</view>
</view>
<view class="right">
<view class="right" v-if="slotProps.dataIndex==0">
<text v-if="slotProps.data.type == 0&&userVip==null&&slotProps.data.isBuy!=1" style="color: #fff; font-size: 12px" class="fdButtonBox aui-text-success"
@click="handleClickGetGoodsList(slotProps.data)">领取课程</text>
<text v-else-if="showNewPayBtn[0]&&showNewPayBtn[0].status" style=" background: #f42c32; border: 0; padding: 15rpx 30rpx; color: #fff; font-size: 12px" class="fdButtonBox aui-text-success"
<text v-else-if="showNewPayBtn[0]&&showNewPayBtn[0].status==true" style=" background: #f42c32; border: 0; padding: 15rpx 30rpx; color: #fff; font-size: 12px" class="fdButtonBox aui-text-success"
@click="goNewPay(slotProps.data)">复读</text>
<u-icon v-else-if="userVip==null&&slotProps.data.type != 0&&slotProps.data.isBuy!=1"
@click="handleClickGetGoodsList(slotProps.data)" class="editIcon" name="shopping-cart-fill"
color="#FF2B57" size="28"></u-icon>
</view>
<view class="right" v-else>
<text v-if="slotProps.data.type == 0&&userVip==null&&slotProps.data.isBuy!=1" style="color: #fff; font-size: 12px" class="fdButtonBox aui-text-success"
@click="handleClickGetGoodsList(slotProps.data)">领取课程</text>
<text v-else-if="showNewPayBtn[slotProps.dataIndex]&&showNewPayBtn[slotProps.dataIndex].status==true" style=" background: #f42c32; border: 0; padding: 15rpx 30rpx; color: #fff; font-size: 12px" class="fdButtonBox aui-text-success"
@click="goNewPay(slotProps.data)">复读</text>
<u-icon v-else-if="userVip==null&&slotProps.data.type != 0&&slotProps.data.isBuy!=1"