Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
zhiliang-light-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0fc1db5f
authored
2020-03-12 23:14:55 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
66d45eac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
src/app.json
src/pages/index/index.js
src/pages/index/index.scss
src/pages/index/index.wxml
src/app.json
View file @
0fc1db5
...
...
@@ -56,7 +56,7 @@
"pagePath"
:
"pages/gift-shop/gift-shop"
,
"iconPath"
:
"image/tabbar/gift-bar.png"
,
"selectedIconPath"
:
"image/tabbar/gift-bar-selected.png"
,
"text"
:
"
奖金兑换
"
"text"
:
"
更多礼品
"
},
{
"pagePath"
:
"pages/user-center/user-center"
,
...
...
src/pages/index/index.js
View file @
0fc1db5
...
...
@@ -42,8 +42,8 @@ Page({
this
.
hideMask
();
let
options
=
this
.
data
.
options
;
console
.
log
(
"options:"
,
options
);
console
.
log
(
"q:"
,
q
);
console
.
log
(
"options:"
,
options
);
console
.
log
(
"q:"
,
q
);
let
q
=
decodeURIComponent
(
options
.
q
);
// 获取会员码
...
...
@@ -88,7 +88,7 @@ Page({
if
(
memberCode
)
{
app
.
globalData
.
tlMemberCode
=
memberCode
;
}
console
.
log
(
"code:"
,
code
);
console
.
log
(
"code:"
,
code
);
// 如果存在扫码参数,则需要拉用户身份(未授权的情况下 要拉授权)
this
.
queryMember
().
then
((
result
)
=>
{
let
{
...
...
@@ -267,7 +267,7 @@ Page({
console
.
log
(
"result:"
,
result
);
_this
.
queryMember
().
then
((
result
)
=>
{
wx
.
showModal
({
content
:
'兑
换成功
'
,
content
:
'兑
现申请已提交\r\n将在1个工作日内处理完成
'
,
showCancel
:
false
,
success
(
res
)
{}
})
...
...
src/pages/index/index.scss
View file @
0fc1db5
...
...
@@ -64,6 +64,11 @@ $contentWidth:670px;
font-size
:
24px
;
color
:
rgba
(
255
,
255
,
255
,
0
.7
);
}
&
-t3
{
color
:
rgba
(
255
,
255
,
255
,
1
);
font-size
:
26px
;
}
}
}
...
...
src/pages/index/index.wxml
View file @
0fc1db5
...
...
@@ -16,7 +16,7 @@
<view class="data-item-t1">
{{userInfo ? filter.Fen2Yuan(userInfo.memberPoints) + '元' : '-' }}
</view>
<view class="data-item-t2
">奖金兑换
</view>
<view class="data-item-t2
data-item-t3">点击兑奖
</view>
</view>
<view class="data-item" bindtap="onIntegralDetailHandler">
<view class="data-item-t1">{{userInfo ? userInfo.promotionNum + '人' : '-' }}</view>
...
...
Please
register
or
sign in
to post a comment