xhj 2 yıl önce
ebeveyn
işleme
0d61f7ab63

+ 1 - 0
chat/components/chat/msglist/msglist.vue

@@ -224,6 +224,7 @@
 				})
 			},
 			jumpUrlHome(){
+				req.setStorage('shareId',this.recommendCard.saleNo)
 				uni.switchTab({
 					url:"/pages/index/index"
 				})

+ 1 - 1
pages/index/index.css

@@ -710,7 +710,7 @@ page{background: #fff;}
 	margin-right: 10rpx;
 }
 .lpgs-item-content-pic{
-	width: 114rpx;
+	width: 163rpx;
 	height: 114rpx;
 	margin-left: 10rpx;
 	border-radius: 10rpx;

+ 20 - 5
pages/index/index.vue

@@ -59,7 +59,7 @@
 			<view style="height: 610rpx;"></view>
 			<view v-for="(item, index) in contact" :key="index">
 				<!-- 弹窗广告 -->
-				<view style="position: absolute;top:290rpx;left: 0;right: 0;">
+				<view style="position: absolute;top:290rpx;left: 0;right: 0;" v-if="bannerList&&bannerList.length>0">
 					<banner v-if="item == 'ad' && bannerShow" :bannerList="bannerList" :url="site" :web="url"
 						:config="about" :couponList="couponList" :officeList="officeList"
 						:districtTemplate="districtTemplate"></banner>
@@ -99,7 +99,7 @@
 			
 			<!-- 投保案例 -->
 			<view class="index-box" style="margin:0;padding: 30rpx;background-color: #f5f5f5;" v-if="tbalList.length>0">
-				<view class="index-box-title">投保案例</view>
+				<view class="index-box-title">{{tbalName}}</view>
 				<view>
 					<view class="tbal-nav ddflex">
 						<view :class="'tbal-nav-item '+(tbalIndex==index?'tbal-nav-item-active':'' )"
@@ -150,9 +150,9 @@
 			<!-- 真实理赔故事 -->
 			<view class="index-box" v-if="lpalList.length>0">
 				<view class="index-box-title ddflex">
-					<text class="fflex">真实理赔故事</text>
+					<text class="fflex">{{lpalName}}</text>
 					<view class="fx-header-more ddflex"
-						@click="jumpUrl('/topic/contentList/contentList?code='+lpalCode+'&title=理赔案例')">
+						@click="jumpUrl('/topic/contentList/contentList?code='+lpalCode+'&title='+lpalName)">
 						更多
 						<image src="/static/pages/images/more.png"></image>
 					</view>
@@ -396,11 +396,13 @@
 				officeList: [], //互动
 				hotActivityList: [], //热门活动
 				matchList: [], //活动列表
-
+				
+				tbalName:'',
 				tbalList: [], //投保案例
 				tbalIndex: 0, //投保案例tab
 				tbalContentList: [],
 
+				lpalName:'',
 				lpalList: [], //理赔案例
 
 				fxList: [], //发现
@@ -604,6 +606,7 @@
 			},
 			// 获取投保案例
 			async getTbal() {
+				this.tbalName =await this.getContentName(req.public.tbalCode)
 				this.tbalList = await this.getContentList(req.public.tbalCode)
 				this.tbalContentList = await this.getContentPageList(this.tbalList[this.tbalIndex]
 					.code)
@@ -611,6 +614,7 @@
 			},
 			// 获取理赔案例
 			async getLpal() {
+				this.lpalName =await this.getContentName(req.public.lpalCode)
 				if(this.lpalList.length==0){
 					this.lpalList = await this.getContentList(req.public.lpalCode)
 				}else{
@@ -637,6 +641,17 @@
 				this.fxList = await this.getContentList('faxian')
 				this.getFxContenteList(this.fxList[this.fxIndex].code)
 			},
+			
+			// 获取文章栏目名称
+			getContentName(code) {
+				return new Promise((r, j) => {
+					req.getRequest('/api/content/category/detailByCode', {
+						code: code
+					}, res => {
+						r(res ? res.name : '')
+					})
+				})
+			},
 
 			// 获取文章栏目列表
 			getContentList(code) {