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
cae29a6c
authored
2020-09-23 11:55:18 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
209bec38
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
src/pages/scan-result/scan-result.js
src/pages/scan-result/scan-result.wxml
src/pages/scan-result/scan-result.js
View file @
cae29a6
...
...
@@ -11,6 +11,7 @@ Page({
prizeInfo
:
null
,
//扫码结果
userInfo
:
{},
//用户信息
scaning
:
false
,
errMsg
:
""
,
},
onShareAppMessage
()
{},
showAuth
()
{
...
...
@@ -82,7 +83,8 @@ Page({
url
:
app
.
api
.
scanIntegralQrcode
,
data
:
{
qrCodeCode
:
code
}
},
toast
:
false
,
}).
then
((
result
)
=>
{
wx
.
hideLoading
();
this
.
setData
({
...
...
@@ -107,6 +109,19 @@ Page({
wx
.
setNavigationBarTitle
({
title
:
'奖金获取失败'
})
if
(
err
&&
err
.
errMsg
)
{
this
.
setData
({
errMsg
:
err
.
errMsg
})
}
if
(
err
&&
err
.
code
==
1020
)
{
wx
.
showModal
({
title
:
'温馨提示'
,
content
:
err
&&
err
.
errMsg
||
'本期扫码有奖活动已经结束'
,
showCancel
:
false
,
success
(
res
)
{}
})
}
});
}
else
{
this
.
setData
({
...
...
src/pages/scan-result/scan-result.wxml
View file @
cae29a6
...
...
@@ -23,12 +23,14 @@
<text wx:if="{{prizeInfo.qrCodeStatus == 2}}" class="tips tips1">
此产品码已被扫过!\n若有异常,请联系客服
</text>
<!--
码已经被使用
-->
<!--
用户身份限制
-->
<text wx:elif="{{prizeInfo.qrCodeStatus == 3}}" class="tips tips1">
奖金获取失败!\n产品奖金码获取对象为:\n电工及终端消费者。
</text>
<!-- 其他异常 -->
<text wx:else class="tips tips1">此产品码已被扫过!\n若有异常,请联系客服</text>
<!-- 0、码不存在 -->
<text wx:elif="{{prizeInfo.qrCodeStatus == 0}}" class="tips tips1">此产品码不存在!\n若有异常,请联系客服</text>
<text wx:else class="tips tips1">{{errMsg}}\n若有异常,请联系客服</text>
<!-- <text wx:else class="tips tips1">此产品码不可用!\n若有异常,请联系客服</text> -->
<view class="btn-wrap">
<!-- 非 产品奖金码获取对象为:电工及终端消费者。 -->
<block wx:if="{{prizeInfo.qrCodeStatus == 3}}">
...
...
Please
register
or
sign in
to post a comment