Commit f55a19d2 by zhangquan

添加配置显示商城,发版

1 parent 646be092
......@@ -2,7 +2,8 @@
import {
discoveryApi,
shopmallApi,
carlifeApi
carlifeApi,
commonApi
} from '../../../api/api'
const tab = [{
zoneName: '汇划算商城',
......@@ -65,6 +66,13 @@ Page({
})
})
},
getSetting() {
commonApi.getImgVersion().then(res=>{
this.setData({
showMall: !!res?.showMall
})
})
},
jump(e) {
const {
url
......@@ -116,6 +124,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.getSetting()
let {
tabList,
tagIndex,
......
......@@ -16,7 +16,7 @@
</block>
</view>
</block>
<block wx:if="{{tabList[tagIndex].isCustomer}}">
<block wx:if="{{tabList[tagIndex].isCustomer && showMall}}">
<image webp src="{{IMGURL}}mall/shopmall-banner.png?v={{img_version}}" mode="widthFix" bindtap="jump" data-url="{{tabList[tagIndex].url}}"></image>
</block>
<block wx:else>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!