默认提交
Showing
5 changed files
with
29 additions
and
6 deletions
... | @@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index'); | ... | @@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index'); |
2 | 2 | ||
3 | const APPID = '' | 3 | const APPID = '' |
4 | /** ====每次发布版本记得修改此环境配置==== */ | 4 | /** ====每次发布版本记得修改此环境配置==== */ |
5 | const ENV = 'Dev'; // Dev Prod | 5 | const ENV = 'Prod'; // Dev Prod |
6 | const NET_CONFIG = ENV_CONFIG[ENV]; | 6 | const NET_CONFIG = ENV_CONFIG[ENV]; |
7 | const MOCKAPI = ENV_CONFIG.mockApi; | 7 | const MOCKAPI = ENV_CONFIG.mockApi; |
8 | 8 | ... | ... |
... | @@ -88,7 +88,7 @@ Page({ | ... | @@ -88,7 +88,7 @@ Page({ |
88 | */ | 88 | */ |
89 | formatRankInfo(val, status) { | 89 | formatRankInfo(val, status) { |
90 | let rankInfo = val; | 90 | let rankInfo = val; |
91 | if (!rankInfo) return; | 91 | if (!rankInfo) return null; |
92 | 92 | ||
93 | if (status == "promotion") { | 93 | if (status == "promotion") { |
94 | rankInfo.myMember.rank = rankInfo.myMember.promotionNo; | 94 | rankInfo.myMember.rank = rankInfo.myMember.promotionNo; | ... | ... |
... | @@ -88,7 +88,7 @@ $contentWidth:690px; | ... | @@ -88,7 +88,7 @@ $contentWidth:690px; |
88 | .func { | 88 | .func { |
89 | @extend .fcc; | 89 | @extend .fcc; |
90 | height: 80px; | 90 | height: 80px; |
91 | font-size: 32px; | 91 | font-size: 30px; |
92 | color: #3680EB; | 92 | color: #3680EB; |
93 | background: #F5F8FE; | 93 | background: #F5F8FE; |
94 | border-radius: 8px; | 94 | border-radius: 8px; | ... | ... |
... | @@ -158,6 +158,20 @@ Page({ | ... | @@ -158,6 +158,20 @@ Page({ |
158 | }) | 158 | }) |
159 | }, | 159 | }, |
160 | 160 | ||
161 | /** | ||
162 | * 我知道了 | ||
163 | * @param {*} evt | ||
164 | */ | ||
165 | onSureHandler(evt) { | ||
166 | // app.router.push({ | ||
167 | // openType: "reLaunch", | ||
168 | // path: "index" | ||
169 | // }) | ||
170 | wx.navigateBack({ | ||
171 | delta: 1 | ||
172 | }); | ||
173 | }, | ||
174 | |||
161 | // 隐藏蒙层 | 175 | // 隐藏蒙层 |
162 | hideMask() { | 176 | hideMask() { |
163 | this.setData({ | 177 | this.setData({ | ... | ... |
... | @@ -22,12 +22,21 @@ | ... | @@ -22,12 +22,21 @@ |
22 | <text wx:if="{{prizeInfo.qrCodeStatus == 2}}" class="tips tips1"> | 22 | <text wx:if="{{prizeInfo.qrCodeStatus == 2}}" class="tips tips1"> |
23 | 此产品码已被扫过!\n若有异常,请联系客服 | 23 | 此产品码已被扫过!\n若有异常,请联系客服 |
24 | </text> | 24 | </text> |
25 | <!-- 码已经被使用 --> | ||
26 | <text wx:elif="{{prizeInfo.qrCodeStatus == 3}}" class="tips tips1"> | ||
27 | 积分获取失败!\n产品积分码获取对象为:\n电工及终端消费者。 | ||
28 | </text> | ||
25 | <!-- 其他异常 --> | 29 | <!-- 其他异常 --> |
26 | <text wx:else class="tips tips1">此产品码已被扫过!\n若有异常,请联系客服</text> | 30 | <text wx:else class="tips tips1">此产品码已被扫过!\n若有异常,请联系客服</text> |
27 | <view class="btn-wrap"> | 31 | <view class="btn-wrap"> |
28 | <view bindtap="onScanHandler" class="btn">再扫一次</view> | 32 | <!-- 非 产品积分码获取对象为:电工及终端消费者。 --> |
29 | <view bindtap="onMyIntegralHandler" class="btn btn2">查看我的积分</view> | 33 | <block wx:if="{{prizeInfo.qrCodeStatus == 3}}"> |
30 | <!-- <view class="btn btn2">联系客服</view> --> | 34 | <view bindtap="onSureHandler" class="btn">我知道了</view> |
35 | </block> | ||
36 | <block wx:else> | ||
37 | <view bindtap="onScanHandler" class="btn">再扫一次</view> | ||
38 | <view bindtap="onMyIntegralHandler" class="btn btn2">查看我的积分</view> | ||
39 | </block> | ||
31 | </view> | 40 | </view> |
32 | </view> | 41 | </view> |
33 | </view> | 42 | </view> | ... | ... |
-
Please register or sign in to post a comment