优化推荐列表数据获取和显示逻辑

- 调整了推荐列表数据的过滤逻辑,确保数据类型正确
- 修复了视频背景样式的问题
- 优化了装饰线样式类
- 添加了pub-right样式类,用于右对齐布局
lu_quan_dev
Tuzki 1 year ago
parent aab484bf05
commit 2c1a7dfd0a
  1. 23
      subPageA/scenic/scenicdetial/scenicdetial.vue

@ -84,7 +84,7 @@
<text class="product-title1">{{ p_item.cname || p_item.sname }}</text>
<text class="product-title m-blue border blue-border">{{
p_item.slevel
}}</text>
}}</text>
<text class="product-title">{{ p_item.address || p_item.saddress }}</text>
</view>
</view>
@ -264,7 +264,7 @@ export default {
},
},
methods: {
getRedisData(){
getRedisData() {
var data = {
key: this.$param.userkey + "_scenic_list",
};
@ -275,8 +275,8 @@ export default {
let filteredList = list.filter(item => {
return item.isrecommend === "YES" && item.cid != this.guid;
});
if (Array.isArray(filteredList) && filteredList.length>0){
filteredList.forEach(item=>{
if (Array.isArray(filteredList) && filteredList.length > 0) {
filteredList.forEach(item => {
item.thumb = this.$config.ROOTPATH + item.thumb;
})
}
@ -413,7 +413,7 @@ export default {
this.pic_list = pic_list;
if (
res.data.controlInfo.cyjcScenicUuid != "" &&
res.data.controlInfo != null &&
res.data.controlInfo.cyjcScenicUuid != null
) {
//this.comment(res.data.controlInfo.cyjcScenicUuid);
@ -624,9 +624,9 @@ body {
.video-box {
width: 100%;
height: 540rpx;
background-image: url("https://eluyou.ailuquan.cn:80/pda/index/no_video.png");
background-repeat: no-repeat;
background-size: contain;
background-image: url("https://eluyou.ailuquan.cn:80/pda/index/no_video.png");
background-repeat: no-repeat;
background-size: contain;
::v-deep #myVideo {
width: 100%;
@ -895,7 +895,7 @@ body {
}
}
.decoration{
.decoration {
text-decoration: line-through;
}
}
@ -924,4 +924,9 @@ body {
}
}
}
.pub-right {
display: flex;
width: 120rpx;
}
</style>

Loading…
Cancel
Save