|
|
|
@ -6,9 +6,12 @@ |
|
|
|
|
@animCreated="handleAnimation" /> |
|
|
|
|
</view> --> |
|
|
|
|
<!-- <view class="status"></view> --> |
|
|
|
|
<view v-if="isdisplay"> |
|
|
|
|
<view v-if="isdisplay == 1"> |
|
|
|
|
<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 v-for="(item,index) in homeCateList" :key="index"> |
|
|
|
|
<view class="height90 backcorltop" v-if="item.type == 1"> |
|
|
|
|
<view class="category-list"> |
|
|
|
@ -167,6 +170,7 @@ |
|
|
|
|
imgadres5: 'loading.gif', |
|
|
|
|
imgadres3: '', |
|
|
|
|
imgadres4: 'cusservice.png', |
|
|
|
|
imgadres6: 'notOpened.png', |
|
|
|
|
webUrl: '', |
|
|
|
|
//猜你喜欢列表 |
|
|
|
|
productList: [], |
|
|
|
@ -179,7 +183,7 @@ |
|
|
|
|
homeCateList: [], |
|
|
|
|
//切换状态 |
|
|
|
|
jumpType: '', |
|
|
|
|
isdisplay: true //是否展示 |
|
|
|
|
isdisplay: 1 //是否展示 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
@ -313,9 +317,11 @@ |
|
|
|
|
categoryCode: 'CMS_HOME' |
|
|
|
|
} |
|
|
|
|
getCmsContent(params).then(res => { |
|
|
|
|
this.isdisplay = false; |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
if (res.return_code == '000000' && res.return_data != null) { |
|
|
|
|
this.homeCateList = res.return_data; |
|
|
|
|
this.isdisplay = 3; |
|
|
|
|
} else { |
|
|
|
|
this.isdisplay = 2; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|