Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
miniprogram-gh-carlife
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f55a19d2
authored
Jul 10, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加配置显示商城,发版
1 parent
646be092
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
pages/tab/mall/mall.js
pages/tab/mall/mall.wxml
pages/tab/mall/mall.js
View file @
f55a19d
...
@@ -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
,
...
...
pages/tab/mall/mall.wxml
View file @
f55a19d
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment