|
|
@ -5,9 +5,12 @@ |
|
|
|
<lottie :options="defaultOptions" :height="200" :width="200" |
|
|
|
<lottie :options="defaultOptions" :height="200" :width="200" |
|
|
|
@animCreated="handleAnimation" /> |
|
|
|
@animCreated="handleAnimation" /> |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
<!-- <view class="status"></view> --> |
|
|
|
<!-- <view class="status"></view> --> |
|
|
|
<view v-if="isdisplay"> |
|
|
|
<view v-if="isdisplay == 1"> |
|
|
|
<image :src="imagewxUrl+imgadres5" class="widthw30 mart110" mode="widthFix"></image> |
|
|
|
<image :src="imagewxUrl+imgadres5" class="widthw30 mart110" mode="widthFix"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-if="isdisplay == 2"> |
|
|
|
|
|
|
|
<image :src="imagewxUrl+imgadres6" class="width90 mart110" mode="widthFix"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-for="(item,index) in homeCateList" :key="index"> |
|
|
|
<view v-for="(item,index) in homeCateList" :key="index"> |
|
|
|
<view class="height90 backcorltop" v-if="item.type == 1"> |
|
|
|
<view class="height90 backcorltop" v-if="item.type == 1"> |
|
|
@ -163,10 +166,11 @@ |
|
|
|
imgadres: '/home/home1.png', |
|
|
|
imgadres: '/home/home1.png', |
|
|
|
imgadres1: '/home/home2.png', |
|
|
|
imgadres1: '/home/home2.png', |
|
|
|
imgadres2: 'jt.png', |
|
|
|
imgadres2: 'jt.png', |
|
|
|
// imgadres5: 'unionarea.png', |
|
|
|
// imgadres5: 'unionarea.png', |
|
|
|
imgadres5: 'loading.gif', |
|
|
|
imgadres5: 'loading.gif', |
|
|
|
imgadres3: '', |
|
|
|
imgadres3: '', |
|
|
|
imgadres4: 'cusservice.png', |
|
|
|
imgadres4: 'cusservice.png', |
|
|
|
|
|
|
|
imgadres6: 'notOpened.png', |
|
|
|
webUrl: '', |
|
|
|
webUrl: '', |
|
|
|
//猜你喜欢列表 |
|
|
|
//猜你喜欢列表 |
|
|
|
productList: [], |
|
|
|
productList: [], |
|
|
@ -179,7 +183,7 @@ |
|
|
|
homeCateList: [], |
|
|
|
homeCateList: [], |
|
|
|
//切换状态 |
|
|
|
//切换状态 |
|
|
|
jumpType: '', |
|
|
|
jumpType: '', |
|
|
|
isdisplay: true //是否展示 |
|
|
|
isdisplay: 1 //是否展示 |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
@ -198,8 +202,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad() { |
|
|
|
this.hqaddress(); |
|
|
|
this.hqaddress(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
//等待加载 |
|
|
|
//等待加载 |
|
|
@ -244,15 +248,15 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
test(item) { |
|
|
|
test(item) { |
|
|
|
let datas = []; |
|
|
|
let datas = []; |
|
|
|
for (var i = 0; i < this.homeCateList.length; i++) { |
|
|
|
for (var i = 0; i < this.homeCateList.length; i++) { |
|
|
|
if (this.homeCateList[i].type == 3) { |
|
|
|
if (this.homeCateList[i].type == 3) { |
|
|
|
datas.push(this.homeCateList[i]) |
|
|
|
datas.push(this.homeCateList[i]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
let jumpid = datas[0].childDate[item].type; |
|
|
|
let jumpid = datas[0].childDate[item].type; |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '../../user/news/news?id=' + jumpid |
|
|
|
url: '../../user/news/news?id=' + jumpid |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//定位信息 |
|
|
|
//定位信息 |
|
|
@ -300,7 +304,7 @@ |
|
|
|
app.globalData.cityId = res.return_data.regionId; |
|
|
|
app.globalData.cityId = res.return_data.regionId; |
|
|
|
// app.globalData.cityId = '520000'; |
|
|
|
// app.globalData.cityId = '520000'; |
|
|
|
app.globalData.companyId = res.return_data.companyId; |
|
|
|
app.globalData.companyId = res.return_data.companyId; |
|
|
|
this.getCmsContentcmsContent(); |
|
|
|
this.getCmsContentcmsContent(); |
|
|
|
this.getCmsAactibity(); |
|
|
|
this.getCmsAactibity(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -313,9 +317,11 @@ |
|
|
|
categoryCode: 'CMS_HOME' |
|
|
|
categoryCode: 'CMS_HOME' |
|
|
|
} |
|
|
|
} |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
getCmsContent(params).then(res => { |
|
|
|
this.isdisplay = false; |
|
|
|
if (res.return_code == '000000' && res.return_data != null) { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
this.homeCateList = res.return_data; |
|
|
|
this.homeCateList = res.return_data; |
|
|
|
|
|
|
|
this.isdisplay = 3; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.isdisplay = 2; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -383,12 +389,12 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//商品跳转 |
|
|
|
//商品跳转 |
|
|
|
toGoods(e, id) { |
|
|
|
toGoods(e, id) { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: e + id |
|
|
|
url: e + id |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//拨打客服电话 |
|
|
|
//拨打客服电话 |
|
|
|
playPhone() { |
|
|
|
playPhone() { |
|
|
|
uni.showModal({ |
|
|
|
uni.showModal({ |
|
|
@ -695,4 +701,4 @@ |
|
|
|
border-radius: 50%; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |