Commit f3aa02e6 by Sweet Zhang

Merge branch 'feature-20250724-产品名称和介绍调换位置' into dev

parents 5b8905e8 453a10e1
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
<view class="courseTitleContent"> <view class="courseTitleContent">
<view class="courseTitle"> <view class="courseTitle">
<view class="" style="width: 100%;"> <view class="" style="width: 100%;">
<h4>{{courseInfo.fileTitle}}</h4> <h4>{{courseInfo.fileSynopsis}}</h4>
<view>{{courseInfo.fileTitle}}</view>
</view> </view>
</view> </view>
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
</view> </view>
<view class="productBox"> <view class="productBox">
<view class="productList" :style="{marginTop}"> <view class="productList" :style="{marginTop}">
<view class="tabBox">
<view :class="{'actived': courseClassify==2}" @click="courseClassify=2;courseList()"><text>咨询产品</text></view>
<view :class="{'actived': courseClassify==1}" @click="courseClassify=1;courseList()"><text>规划产品</text></view>
</view>
<view class="productItem" v-for="item in localCourseInfos" :key="item.fileId" > <view class="productItem" v-for="item in localCourseInfos" :key="item.fileId" >
<view class="top" @click="goDetail(item)"> <view class="top" @click="goDetail(item)">
<view class="left"> <view class="left">
...@@ -33,10 +37,10 @@ ...@@ -33,10 +37,10 @@
</view> </view>
<view class="right"> <view class="right">
<view class="one"> <view class="one">
{{item.fileTitle}} {{item.fileSynopsis}}
</view> </view>
<view class="two"> <view class="two">
{{item.fileSynopsis}} {{item.fileTitle}}
</view> </view>
<view class="three"> <view class="three">
<text style="font-size: 28rpx;color: rgba(32, 39, 155, 1);">{{Number(item.coursePrice).toFixed(2)}}</text> <text style="font-size: 28rpx;color: rgba(32, 39, 155, 1);">{{Number(item.coursePrice).toFixed(2)}}</text>
...@@ -158,6 +162,7 @@ ...@@ -158,6 +162,7 @@
env:dataHandling.getRuntimeEnv2(), env:dataHandling.getRuntimeEnv2(),
shareItem:{},//分享的产品 shareItem:{},//分享的产品
sharelogin: false, sharelogin: false,
courseClassify:2,
} }
}, },
...@@ -397,7 +402,8 @@ ...@@ -397,7 +402,8 @@
}, },
courseList(){ courseList(){
const param = { const param = {
queryName:this.queryName queryName:this.queryName,
courseClassify:this.courseClassify
} }
api.courseList(param).then(res=>{ api.courseList(param).then(res=>{
if(res['success']){ if(res['success']){
...@@ -450,6 +456,26 @@ ...@@ -450,6 +456,26 @@
width: 100%; width: 100%;
height: auto; height: auto;
box-sizing: border-box; box-sizing: border-box;
.tabBox{
display: flex;
align-items: center;
height: 88rpx;
margin-bottom: 20rpx;
background: #fafafa;
border-bottom: 1px solid #262088;
view{
color: #000;
width: 160rpx;
height: 100%;
text-align: center;
margin-right:30rpx ;
line-height: 88rpx;
&.actived{
background-color: #262088;
color: #fff;
}
}
}
.homeHeader{ .homeHeader{
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment