Fix:4951 【商城小程序】体验项目-详情信息数据获取错误,当前获取的是管理后台配置的体验项目列表-项目配置的内容,应获取体验项目-详情内容
This commit is contained in:
@@ -81,23 +81,23 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="section-experience">
|
||||
|
||||
<view class="experience-card">
|
||||
<view class="section">
|
||||
<view class="section-title">体验项目</view>
|
||||
<view class="experience-card" v-for="(item, index) in projectList" :key="index">
|
||||
<image
|
||||
v-if="project.cover"
|
||||
:src="project.cover"
|
||||
v-if="item.projectImage"
|
||||
:src="item.projectImage"
|
||||
class="experience-image"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<view class="experience-info">
|
||||
<view class="experience-title-wrap">
|
||||
<view class="experience-title">
|
||||
{{ project.experienceTitle || project.name }}
|
||||
{{ item.themeName || item.projectName }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="experience-subtitle">
|
||||
{{ project.experienceSubTitle || project.intro }}
|
||||
{{ item.projectIntro || item.detail }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -166,7 +166,8 @@ export default {
|
||||
validTo: '',
|
||||
usageNotice: '',
|
||||
currentSwiperIndex: 0,
|
||||
videoContext: null
|
||||
videoContext: null,
|
||||
projectList: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -272,6 +273,7 @@ export default {
|
||||
this.validTo = project.validityEndTime
|
||||
}
|
||||
if (project.projectList && project.projectList.length) {
|
||||
this.projectList = project.projectList
|
||||
this.detailList = project.projectList.map(item => ({
|
||||
name: item.projectName || '',
|
||||
count: item.projectIntro || ''
|
||||
@@ -510,6 +512,7 @@ export default {
|
||||
background: #C52733;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8rpx 24rpx rgba(197, 39, 51, 0.15);
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
.experience-image {
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user