|
|
@@ -99,15 +99,15 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 投保案例 -->
|
|
|
- <view class="index-box" style="margin:0;padding: 30rpx;background-color: #f5f5f5;" v-if="matchList.length>0">
|
|
|
+ <view class="index-box" style="margin:0;padding: 30rpx;background-color: #f5f5f5;" v-if="tbalList.length>0">
|
|
|
<view class="index-box-title">投保案例</view>
|
|
|
<view>
|
|
|
<view class="tbal-nav ddflex">
|
|
|
- <view class="tbal-nav-item tbal-nav-item-active">
|
|
|
- <view>单身期</view>
|
|
|
+ <view :class="'tbal-nav-item '+(tbalIndex==index?'tbal-nav-item-active':'' )" v-for="item,index in tbalList" @click="changeTbalTab(index)">
|
|
|
+ <view>{{item.name}}</view>
|
|
|
<view class="tbal-nav-label">20~30岁</view>
|
|
|
</view>
|
|
|
- <view class="tbal-nav-item">
|
|
|
+ <!-- <view class="tbal-nav-item">
|
|
|
<view>形成期</view>
|
|
|
<view class="tbal-nav-label">20~30岁</view>
|
|
|
</view>
|
|
|
@@ -118,28 +118,30 @@
|
|
|
<view class="tbal-nav-item">
|
|
|
<view>成熟期</view>
|
|
|
<view class="tbal-nav-label">20~30岁</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
|
|
|
- <view class="tbal-item ddflex" v-for="item in 2">
|
|
|
- <image class="tbal-pic" src="/static/images/lj_img.png"></image>
|
|
|
- <view class="flex">
|
|
|
- <view class="tbal-title">单身青年</view>
|
|
|
- <view class="ddflex">
|
|
|
- <view class="ddflex flex">
|
|
|
- <view class="tbal-price">8633元</view>
|
|
|
- <view class="tbal-price-text">年缴费</view>
|
|
|
- </view>
|
|
|
- <view class="tbal-line"></view>
|
|
|
- <view class="ddflex flex">
|
|
|
- <view class="tbal-price">130万</view>
|
|
|
- <view class="tbal-price-text">总保额 </view>
|
|
|
+ <block v-if="tbalList[tbalIndex].contentList">
|
|
|
+ <view class="tbal-item ddflex" v-for="it in tbalList[tbalIndex].contentList" @click="jumpUrl('/topic/alContent/alContent?id='+it.id)">
|
|
|
+ <image class="tbal-pic" :src="it.pic?it.pic:'/static/images/lj_img.png'"></image>
|
|
|
+ <view class="flex">
|
|
|
+ <view class="tbal-title">{{it.title}}</view>
|
|
|
+ <view class="ddflex">
|
|
|
+ <view class="ddflex flex">
|
|
|
+ <view class="tbal-price" >{{it.fieldValues&&it.fieldValues.yearMoney?it.fieldValues.yearMoney:'0'}}</view>
|
|
|
+ <view class="tbal-price-text">年缴费</view>
|
|
|
+ </view>
|
|
|
+ <view class="tbal-line"></view>
|
|
|
+ <view class="ddflex flex">
|
|
|
+ <view class="tbal-price" >{{it.fieldValues&&it.fieldValues.allMoney?it.fieldValues.allMoney:'0'}}</view>
|
|
|
+ <view class="tbal-price-text">总保额 </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+ <view class="tbal-btn">去看看</view>
|
|
|
</view>
|
|
|
- <view class="tbal-btn">去看看</view>
|
|
|
+ <view class="tbal-tag" v-if="it.fieldValues&&it.fieldValues.version">{{it.fieldValues.version}}</view>
|
|
|
</view>
|
|
|
- <view class="tbal-tag">清洁版</view>
|
|
|
- </view>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -154,12 +156,12 @@
|
|
|
<view>{{items.name}}</view>
|
|
|
</view>
|
|
|
<view class="lpgs-content">
|
|
|
- <view class="lpgs-item-content ddflex" v-for="item in items.contentList">
|
|
|
+ <view class="lpgs-item-content ddflex" v-for="item in items.contentList" @click="jumpUrl('/topic/content/content?id='+item.id)">
|
|
|
<view class="flex" style="min-width: 0;">
|
|
|
<view class="lpgs-item-content-title tovers">{{item.title}}</view>
|
|
|
<view class="lpgs-item-content-look ddflex">
|
|
|
<image src="/static/images/eyes.png"></image>
|
|
|
- <view>1.2万</view>
|
|
|
+ <view>{{unitFormat(item.browse)}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<image class="lpgs-item-content-pic" :src="item.pic?item.pic:'/static/images/lj_img.png'"></image>
|
|
|
@@ -171,36 +173,36 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 发现 -->
|
|
|
- <view class="index-box" style="margin:0;padding: 30rpx;background-color: #f5f5f5;" v-if="matchList.length>0">
|
|
|
+ <view class="index-box" style="margin:0;padding: 30rpx;background-color: #f5f5f5;" v-if="fxList.length>0">
|
|
|
<view class="map-ac">
|
|
|
<scroll-view scroll-x="true" class="map-acs ddflex" style="height: 70rpx;">
|
|
|
- <view :class="'fx-nav '+(index==0?'fx-nav-active':'')" v-for="item,index in 10">健康生活</view>
|
|
|
+ <view :class="'fx-nav '+(fxIndex==index?'fx-nav-active':'')" v-for="item,index in fxList" @click="changeFxTab(index)">{{item.name}}</view>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
<view class="fx-bar">
|
|
|
<view class="fx-header ddflex">
|
|
|
<view class="ddflex">
|
|
|
- <view class="fx-header-title">健康生活</view>
|
|
|
+ <view class="fx-header-title">{{fxList[fxIndex].name}}</view>
|
|
|
<view class="fx-header-more">2.2万人转发</view>
|
|
|
</view>
|
|
|
- <view class="fx-header-more ddflex">
|
|
|
+ <view class="fx-header-more ddflex" @click="jumpUrl('/topic/contentList/contentList?code='+fxList[fxIndex].code+'&title='+fxList[fxIndex].name)">
|
|
|
更多
|
|
|
<image src="/static/pages/images/more.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <view class="fx-item ddflex" v-for="item in 10">
|
|
|
+ <view class="fx-item ddflex" v-for="item in fxContentList" @click="jumpUrl('/topic/content/content?id='+item.id)">
|
|
|
<view class="flex" style="min-width: 0;">
|
|
|
- <view class="fx-item-title tovers">3·15|手把手教你读懂“食品标签”,拒绝被“坑”3·15|手把手教你读懂“食品标签”,拒绝被“坑”</view>
|
|
|
+ <view class="fx-item-title tovers">{{item.title}}</view>
|
|
|
<view class="ddflex" style="margin-top: 24rpx;">
|
|
|
- <view class="fx-item-time">2023-03-13</view>
|
|
|
+ <view class="fx-item-time">{{formatTime(item.createDate)}}</view>
|
|
|
<view class="fx-item-look ddflex">
|
|
|
<image src="/static/images/eyes.png"></image>
|
|
|
- <view>2.2万</view>
|
|
|
+ <view>{{unitFormat(item.browse)}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <image class="fx-item-pic" src="../../static/images/lj_img.png"></image>
|
|
|
+ <image class="fx-item-pic" :src="item.pic?item.pic:'../../static/images/lj_img.png'"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -283,26 +285,15 @@ export default {
|
|
|
systems: {},
|
|
|
header: req.header,
|
|
|
bottomBlankHeight: app.globalData.isIPhoneX ? 68 : 0,
|
|
|
- swiperCurrent: 0,
|
|
|
- swiperGrid: 0,
|
|
|
bannerList: [],
|
|
|
- categoryList: [],
|
|
|
//产品分类列表
|
|
|
page: 1,
|
|
|
- boutiqueList: {},
|
|
|
- //精品榜单
|
|
|
- arrivalsList: {},
|
|
|
- hotList: {},
|
|
|
- pageList: {},
|
|
|
//产品列表
|
|
|
- isLoad: true,
|
|
|
- hasmore: true,
|
|
|
merchant: {},
|
|
|
activityGroup: {
|
|
|
products: []
|
|
|
},
|
|
|
couponList: {},//优惠券,
|
|
|
- isRemind: false,
|
|
|
isUpdate: false,
|
|
|
// 是否更新消息
|
|
|
first: true,
|
|
|
@@ -318,86 +309,9 @@ export default {
|
|
|
//广告
|
|
|
module_type_district: 'type_district',
|
|
|
//分类导航
|
|
|
- module_p_list: 'p_list',
|
|
|
- //品类专区
|
|
|
- module_group: 'group',
|
|
|
- //团购
|
|
|
- module_live: 'live',
|
|
|
- //直播
|
|
|
- module_sou: 'sou',
|
|
|
- //搜索
|
|
|
- module_special: 'special',
|
|
|
- //专题
|
|
|
- module_chosen: 'chosen',
|
|
|
- //精选
|
|
|
- module_new_arrivals: 'new_arrivals',
|
|
|
- //新品上架
|
|
|
- module_hot_money: 'hot_money',
|
|
|
- //热门爆款
|
|
|
- module_recommend: 'recommend',
|
|
|
- //推荐产品
|
|
|
- module_store_options: 'store_options',
|
|
|
- //多门店选择
|
|
|
- module_home_pop_up_ads: 'home_pop_up_ads',
|
|
|
- //首页弹窗广告
|
|
|
- module_joingroup: 'joingroup',
|
|
|
- //拼团
|
|
|
- module_seckill: 'seckill',
|
|
|
- //秒杀
|
|
|
- module_bargain: 'bargain',
|
|
|
- //砍价
|
|
|
- module_customers: 'New_customers',
|
|
|
- //新客
|
|
|
- module_homecolumn: 'homecolumn',
|
|
|
- //首页专区
|
|
|
- module_Timely_delivery_open: 'Timely_delivery_open',
|
|
|
- //及时达页面
|
|
|
- module_supplier_premium: 'supplier_premium', //供应商模块
|
|
|
- module_red_envelopes: 'red_envelopes', //优惠券
|
|
|
module_king_kong_district: 'king_kong_district', //金刚区
|
|
|
- module_sup_recommend: 'sup_recommend', //供应商推荐
|
|
|
- module_single_product: 'single_product' //供应商推荐
|
|
|
},
|
|
|
- buyOrderMarqueeList: [],
|
|
|
- listI: -1,
|
|
|
isNotice: false,
|
|
|
- TabList: [
|
|
|
- {
|
|
|
- //秒杀时间
|
|
|
- label: '今天',
|
|
|
- active: true,
|
|
|
- state: '抢购中',
|
|
|
- dayType: 1,
|
|
|
- time: ''
|
|
|
- },
|
|
|
- {
|
|
|
- label: '明天',
|
|
|
- state: '预热中',
|
|
|
- active: false,
|
|
|
- time: '',
|
|
|
- dayType: 2
|
|
|
- },
|
|
|
- {
|
|
|
- label: '后天',
|
|
|
- state: '预热中',
|
|
|
- dayType: 3,
|
|
|
- time: ''
|
|
|
- },
|
|
|
- {
|
|
|
- label: '',
|
|
|
- state: '预热中',
|
|
|
- dayType: 4,
|
|
|
- active: false,
|
|
|
- time: ''
|
|
|
- },
|
|
|
- {
|
|
|
- label: '',
|
|
|
- state: '预热中',
|
|
|
- dayType: 5,
|
|
|
- active: false,
|
|
|
- time: ''
|
|
|
- }
|
|
|
- ],
|
|
|
joingroupList: {
|
|
|
products: []
|
|
|
},
|
|
|
@@ -411,33 +325,10 @@ export default {
|
|
|
},
|
|
|
//新客
|
|
|
freshen: true,
|
|
|
- swiperHeight: 0,
|
|
|
url: '',
|
|
|
web: '',
|
|
|
site: '',
|
|
|
- internet: '',
|
|
|
- storeTemplate: {},
|
|
|
- typeDistrictTemplate: {},
|
|
|
- sousuoTemplate: {},
|
|
|
- popAdTemplate: {},
|
|
|
districtTemplate: {},
|
|
|
- Timelyimg: '',
|
|
|
- timelyTemplate: {},
|
|
|
- homecolumnimg: [],
|
|
|
- customersTemplate: {},
|
|
|
- joingroupTemplate: {},
|
|
|
- supplierTemplate: {},
|
|
|
- seckillTemplate: {},
|
|
|
- bargainTemplate: {},
|
|
|
- specialTemplate: {},
|
|
|
- chosenTemplate: {},
|
|
|
- arrivalsTemplate: {},
|
|
|
- hotTemplate: {},
|
|
|
- groupTemplate: {},
|
|
|
- recommendTemplate: {},
|
|
|
- supRecommendTemplate: {},
|
|
|
- singleTemplate: {},
|
|
|
- specialList: [],
|
|
|
contact: [],
|
|
|
seckillList: {
|
|
|
products: []
|
|
|
@@ -445,47 +336,29 @@ export default {
|
|
|
about: {},
|
|
|
Is_Store_Price_Stock: '',
|
|
|
guarantee: [],
|
|
|
- current: '',
|
|
|
animationData: '',
|
|
|
content: '',
|
|
|
popAdList: {},
|
|
|
- supplierList: {},
|
|
|
- supRecommendList: {},
|
|
|
- singlePage: 1,
|
|
|
- isLoadSingle: true,
|
|
|
- hasmoreSingle: true,
|
|
|
- singleList: {},
|
|
|
iscouponAd: false,
|
|
|
- couponAd: {},
|
|
|
logo: false,
|
|
|
top: Boolean,
|
|
|
top_type: Boolean,
|
|
|
switchStoreShow: Boolean,
|
|
|
- bargainShow: Boolean,
|
|
|
contactShow: true,
|
|
|
- seckillShow: false,
|
|
|
- joingroupShow: false,
|
|
|
- activityGroupShow: false,
|
|
|
- customersShow: false,
|
|
|
districtShow: false,
|
|
|
- recommendShow: false,
|
|
|
- boutiqueShow: false,
|
|
|
- arrivalsShow: false,
|
|
|
- hotShow: false,
|
|
|
- supplierShow: false,
|
|
|
- supRecommendShow: false,
|
|
|
- singleShow: false,
|
|
|
- pCategorShow: false,
|
|
|
bannerShow: false,
|
|
|
- List: [],
|
|
|
- marqueeOrderItemIndex: 0,
|
|
|
- marqueeOrderItem: '',
|
|
|
- // isShowTime: false
|
|
|
officeList: [],//互动
|
|
|
hotActivityList:[],//热门活动
|
|
|
matchList:[],//活动列表
|
|
|
|
|
|
+ tbalList:[],//投保案例
|
|
|
+ tbalIndex:0,//投保案例tab
|
|
|
+
|
|
|
lpalList:[],//理赔案例
|
|
|
+
|
|
|
+ fxList:[],//发现
|
|
|
+ fxIndex:0,
|
|
|
+ fxContentList:[]
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -572,7 +445,9 @@ export default {
|
|
|
|
|
|
this.getHotActivity()
|
|
|
this.getMatchList()
|
|
|
+ this.getTbal()
|
|
|
this.getLpal()
|
|
|
+ this.getFx()
|
|
|
|
|
|
// console.log('this.freshen=='+this.freshen)
|
|
|
let first = req.getStorage('first');
|
|
|
@@ -630,18 +505,30 @@ export default {
|
|
|
this.matchList = res
|
|
|
})
|
|
|
},
|
|
|
+ // 获取投保案例
|
|
|
+ async getTbal(){
|
|
|
+ this.tbalList = await this.getContentList('toubaoanli')
|
|
|
+ this.tbalList[this.tbalIndex].contentList = await this.getContentPageList(this.tbalList[this.tbalIndex].code)
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
// 获取理赔案例
|
|
|
async getLpal(){
|
|
|
this.lpalList = await this.getContentList('lipeianli')
|
|
|
this.lpalList.map(async item=>{
|
|
|
item.contentList = await this.getContentPageList(item.code)
|
|
|
+ this.$forceUpdate()
|
|
|
})
|
|
|
},
|
|
|
+ // 获取发现
|
|
|
+ async getFx(){
|
|
|
+ this.fxList = await this.getContentList('faxian')
|
|
|
+ this.getFxContenteList(this.fxList[this.fxIndex].code)
|
|
|
+ },
|
|
|
|
|
|
// 获取文章栏目列表
|
|
|
getContentList(code){
|
|
|
return new Promise((r,j)=>{
|
|
|
- req.getRequest('/api/content/category/list',{parentCode:code,limit:1,page:2},res=>{
|
|
|
+ req.getRequest('/api/content/category/list',{parentCode:code},res=>{
|
|
|
r(res?res:[])
|
|
|
})
|
|
|
})
|
|
|
@@ -650,11 +537,33 @@ export default {
|
|
|
// 获取文章列表
|
|
|
getContentPageList(code){
|
|
|
return new Promise((r,j)=>{
|
|
|
- req.getRequest('/api/content/page',{code:code},res=>{
|
|
|
- r(res?res.list:[])
|
|
|
+ req.getRequest('/api/content/list',{code:code,page:1,limit:2},res=>{
|
|
|
+ r(res?res:[])
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取发现文章列表
|
|
|
+ getFxContenteList(code){
|
|
|
+ return new Promise((r,j)=>{
|
|
|
+ req.getRequest('/api/content/list',{code:code,page:1,limit:10},res=>{
|
|
|
+ this.fxContentList = res?res:[]
|
|
|
+ r(res?res:[])
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ // 投保案例tab切换
|
|
|
+ async changeTbalTab(index){
|
|
|
+ if(this.tbalIndex==index) return false;
|
|
|
+ this.tbalIndex = index
|
|
|
+ this.tbalList[this.tbalIndex].contentList = await this.getContentPageList(this.tbalList[this.tbalIndex].code)
|
|
|
+ },
|
|
|
+ // 发现tab切换
|
|
|
+ changeFxTab(index){
|
|
|
+ if(this.fxIndex==index) return false;
|
|
|
+ this.fxIndex = index
|
|
|
+ this.getFxContenteList(this.fxList[this.fxIndex].code)
|
|
|
+ },
|
|
|
|
|
|
async getRqeDatas() {
|
|
|
console.log('getRqeDatas');
|
|
|
@@ -679,7 +588,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
that.logo = true;
|
|
|
- await this.getBuyOrderMarquee(!this.isShowTime);
|
|
|
},
|
|
|
|
|
|
getUrl2(e) {
|
|
|
@@ -882,17 +790,6 @@ export default {
|
|
|
}, 500000);
|
|
|
},
|
|
|
|
|
|
- getListInfo() {
|
|
|
- if (this.listI >= this.contentList.length - 1) {
|
|
|
- this.listI = -1;
|
|
|
- this.getListInfo();
|
|
|
- } else {
|
|
|
- this.listI++;
|
|
|
- }
|
|
|
-
|
|
|
- return this.contentList[this.listI];
|
|
|
- },
|
|
|
-
|
|
|
loadCodeParams() {
|
|
|
let _ts = this;
|
|
|
|
|
|
@@ -989,6 +886,13 @@ export default {
|
|
|
let url = event.currentTarget.dataset.url;
|
|
|
app.globalData.openPage(url);
|
|
|
},
|
|
|
+ unitFormat(data){
|
|
|
+ return req.unitConverter(data).text
|
|
|
+ },
|
|
|
+ formatTime(date){
|
|
|
+ date = new Date(date.replace(/-/g, '/'))
|
|
|
+ return utils.formatTime(date).t3
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
const systemInfo = uni.getSystemInfoSync();
|