Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
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 281fd91d
authored
Oct 12, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
红包领取后,跳首页
1 parent
b476bfdb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
59 deletions
packageEquity/pages/receiveRed/receiveRed.js
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/mine/index.js
pages/tab/mine/index.wxml
packageEquity/pages/receiveRed/receiveRed.js
View file @
281fd91
...
@@ -45,7 +45,7 @@ Page({
...
@@ -45,7 +45,7 @@ Page({
jump
()
{
jump
()
{
let
{
activityRedEnvelopeLink
}
=
this
.
data
let
{
activityRedEnvelopeLink
}
=
this
.
data
wx
.
p
.
router
.
switchTab
(
'/pages/tab/
mine
/index'
,
{
wx
.
p
.
router
.
switchTab
(
'/pages/tab/
index
/index'
,
{
jumpH5Url
:
activityRedEnvelopeLink
jumpH5Url
:
activityRedEnvelopeLink
})
})
this
.
setData
({
this
.
setData
({
...
...
pages/tab/index/index.js
View file @
281fd91
...
@@ -7,6 +7,7 @@ Page({
...
@@ -7,6 +7,7 @@ Page({
navStyle
,
navStyle
,
noticeContent
:
''
,
noticeContent
:
''
,
bannerList
:
[],
bannerList
:
[],
isEmpty
:
false
,
codeList
:
[{
codeList
:
[{
title
:
'官方'
,
title
:
'官方'
,
desc
:
'福利群'
,
desc
:
'福利群'
,
...
@@ -38,10 +39,21 @@ Page({
...
@@ -38,10 +39,21 @@ Page({
navStyle
:
e
.
scrollTop
>=
navBarHeight
-
50
?
""
:
navStyle
,
navStyle
:
e
.
scrollTop
>=
navBarHeight
-
50
?
""
:
navStyle
,
});
});
},
},
onLoad
()
{
onLoad
(
options
)
{
this
.
defaultMerchant
=
wx
.
$merchant_id
this
.
defaultMerchant
=
wx
.
$merchant_id
this
.
getMerchantList
()
this
.
getMerchantList
()
this
.
getStrategyList
();
this
.
getStrategyList
();
if
(
options
?.
jumpH5Url
)
{
this
.
setData
({
isEmpty
:
true
})
wx
.
p
.
router
.
jumpH5
(
options
.
jumpH5Url
)
setTimeout
(()
=>
{
this
.
setData
({
isEmpty
:
false
})
},
1600
)
}
},
},
// 获取省钱攻略
// 获取省钱攻略
...
...
pages/tab/index/index.wxml
View file @
281fd91
<view class="container">
<view wx:if="{{isEmpty}}"></view>
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="甄选福利">
<view wx:else>
<view class="bar-text">甄选福利</view>
<view class="container">
</navigation-bar>
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="甄选福利">
<view style="{{user_box_style}}" class="top_bg_wrap">
<view class="bar-text">甄选福利</view>
<view class="store-wrap">
</navigation-bar>
<view class="inner flex_sc">
<view style="{{user_box_style}}" class="top_bg_wrap">
<glsx-image class="logo" webp src="home/store_logo.png"></glsx-image>
<view class="store-wrap">
<view class="store_name">{{currentStore.merchantName}}</view>
<view class="inner flex_sc">
<picker mode="selector" bindchange="changeStore" range="{{storeList}}" range-key="merchantName" >
<glsx-image class="logo" webp src="home/store_logo.png"></glsx-image>
<view class="change_box">
<view class="store_name">{{currentStore.merchantName}}</view>
<glsx-image class="icon" webp src="home/change_store_icon.png"></glsx-image>
<picker mode="selector" bindchange="changeStore" range="{{storeList}}" range-key="merchantName">
</view>
<view class="change_box">
</picker>
<glsx-image class="icon" webp src="home/change_store_icon.png"></glsx-image>
</view>
</picker>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 公告 -->
<!-- 公告 -->
<block wx:if="{{currentStore.noticeContent}}">
<block wx:if="{{currentStore.noticeContent}}">
<view class="notice-bar">
<view class="notice-bar">
<notice-bar data="{{currentStore.noticeContent}}" speed="7500" id="com-1"></notice-bar>
<notice-bar data="{{currentStore.noticeContent}}" speed="7500" id="com-1"></notice-bar>
</view>
</block>
<!-- 家生活/车生活 -->
<view class="menu_wrap flex_scb">
<glsx-image class="cover" webp src="home/family_menu_banner.png" bind:tap="toHomeLife"></glsx-image>
<glsx-image class="cover" webp src="home/car_menu_banner.png" bind:tap="toCarLife"></glsx-image>
</view>
</view>
</block>
<!-- 轮播图 -->
<!-- 家生活/车生活 -->
<view class="banner-box" wx:if="{{currentStore.bannerList.length > 0}}">
<view class="menu_wrap flex_scb">
<banner bannerList="{{currentStore.bannerList}}"></banner>
<glsx-image class="cover" webp src="home/family_menu_banner.png" bind:tap="toHomeLife"></glsx-image>
</view>
<glsx-image class="cover" webp src="home/car_menu_banner.png" bind:tap="toCarLife"></glsx-image>
<!-- 福利二维码 -->
</view>
<view class="code_wrap flex_scb">
<!-- 轮播图 -->
<block wx:for="{{codeList}}" wx:key="index">
<view class="banner-box" wx:if="{{currentStore.bannerList.length > 0}}">
<view data-url="{{item.url}}" bind:tap="toShowQrCode" class="code_item flex_scb">
<banner bannerList="{{currentStore.bannerList}}"></banner>
<view class="left">
</view>
<view class="title">
<!-- 福利二维码 -->
<text>{{item.title}}</text>
<view class="code_wrap flex_scb">
<text class="spc">{{item.desc}}</text>
<block wx:for="{{codeList}}" wx:key="index">
</view>
<view data-url="{{item.url}}" bind:tap="toShowQrCode" class="code_item flex_scb">
<view class="tip">{{item.tip}}</view>
<view class="left">
<view class="title">
<text>{{item.title}}</text>
<text class="spc">{{item.desc}}</text>
</view>
</view>
<
view class="tip">{{item.tip}}</view
>
<
glsx-image class="code" webp src="home/qr_code_logo.png"></glsx-image
>
</view>
</view>
<glsx-image class="code" webp src="home/qr_code_logo.png"></glsx-image>
</block>
</view>
</view>
<!-- 省钱攻略 -->
<block wx:if="{{strategyList.length}}">
<MoneySavingTips list="{{strategyList}}" bind:selectStrategy="selectStrategy"></MoneySavingTips>
</block>
</block>
</view>
</view>
<!-- 省钱攻略 -->
<block wx:if="{{strategyList.length}}">
<MoneySavingTips list="{{strategyList}}" bind:selectStrategy="selectStrategy"></MoneySavingTips>
</block>
</view>
</view>
<!-- 弹框 -->
<!-- 弹框 -->
<view wx:if="{{showModal}}" class="modal_widget">
<view wx:if="{{showModal}}" class="modal_widget">
...
@@ -58,4 +61,4 @@
...
@@ -58,4 +61,4 @@
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
</view>
</view>
</view>
</view>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/index.js
View file @
281fd91
...
@@ -4,7 +4,6 @@ Page({
...
@@ -4,7 +4,6 @@ Page({
behaviors
:
[
devMixin
],
behaviors
:
[
devMixin
],
data
:
{
data
:
{
IMGURL
:
IMG_URL
,
IMGURL
:
IMG_URL
,
isEmpty
:
false
,
memberUrl
:
'bg-member'
,
memberUrl
:
'bg-member'
,
toolList
:
[{
toolList
:
[{
text
:
'购物车'
,
text
:
'购物车'
,
...
@@ -71,17 +70,6 @@ Page({
...
@@ -71,17 +70,6 @@ Page({
memberUrl
:
options
.
isOpenMember
?
'bg-member'
:
'bg-member-first'
memberUrl
:
options
.
isOpenMember
?
'bg-member'
:
'bg-member-first'
})
})
}
}
if
(
options
?.
jumpH5Url
)
{
this
.
setData
({
isEmpty
:
true
})
wx
.
p
.
router
.
jumpH5
(
options
.
jumpH5Url
)
setTimeout
(()
=>
{
this
.
setData
({
isEmpty
:
false
})
},
1600
)
}
this
.
getMemberCardData
()
this
.
getMemberCardData
()
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
...
...
pages/tab/mine/index.wxml
View file @
281fd91
This diff is collapsed.
Click to expand it.
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