This commit is contained in:
liuyuan
2025-06-10 17:49:45 +08:00
parent d3ede507f3
commit b465c476b8
21 changed files with 569 additions and 365 deletions

View File

@@ -35,11 +35,11 @@
<view class="list_item_title">{{item.title}}</view>
<view class="list_item_content" v-html="item.content"></view>
<view class="list_item_bt">
<view class="list_item_price" v-if="item.courseCatalogueEntityList.length==1&&$platform!='ios'">
<view class="list_item_price" v-if="item.courseCatalogueEntityList.length==1">
<text v-if="item.courseCatalogueEntityList[0].halfFee==0">免费</text>
<text v-else>¥{{item.courseCatalogueEntityList[0].halfFee}}/{{item.courseCatalogueEntityList[0].fee}}</text>
</view>
<view class="list_item_price" v-if="item.courseCatalogueEntityList.length>1&&$platform!='ios'">
<view class="list_item_price" v-if="item.courseCatalogueEntityList.length>1">
<text v-for="(v,i) in item.courseCatalogueEntityList" :key="i">
{{formatContent(v.title)}}<text v-if="i !== item.courseCatalogueEntityList.length - 1">/</text>
</text>
@@ -124,12 +124,7 @@ export default {
onLoad(options) {
//清除缓存
uni.removeStorageSync('fixed');
//针对身心医学的判断
if(options.title=='心身医学'&&this.$platform!='android'){
this.title = '心身健康科学'
}else{
this.title = options.title;
}
this.title = options.title;
this.id = options.id;
//如果是心理评测
@@ -293,11 +288,7 @@ export default {
})
.then(res => {
if (res.code == 0) {
if(this.$platform=='android'){
this.formList = res.formList;
}else{
this.formList = res.formList.slice(0,2);
}
this.formList = res.formList;
}
}).catch(e => {