Commit 80cec5d0 by 前端

Merge branch 'SAAS+V4.41' into 'master'

添加配置显示商城,发版

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