diff --git a/pages/signup/code.js b/pages/signup/code.js
index b41a7c9..027878b 100644
--- a/pages/signup/code.js
+++ b/pages/signup/code.js
@@ -24,6 +24,7 @@ Page({
nowTime: "",
item: {},
info: "",
+ fail_img: ''
},
/**
@@ -99,18 +100,25 @@ Page({
}
/////接口方法
_.apiQuery.getappSignConf(params).then(res => {
- this.setData({
- qrcode_img: res.data.qcode,
- qrcode_count_time: parseInt(res.data.qrcode_count_time),
- loading: false,
- info: res.data
- }, () => {
- wx.hideLoading()
- this.getTimes(this.data.qrcode_count_time).then(() => {
- this.getappSignConf()
+
+ if (res.data.type == 'fail') {
+ this.setData({
+ fail_img:res.data.fail_img
})
- this.setScreenBright()
- })
+ } else {
+ this.setData({
+ qrcode_img: res.data.qcode,
+ qrcode_count_time: parseInt(res.data.qrcode_count_time),
+ loading: false,
+ info: res.data
+ }, () => {
+ wx.hideLoading()
+ this.getTimes(this.data.qrcode_count_time).then(() => {
+ this.getappSignConf()
+ })
+ this.setScreenBright()
+ })
+ }
})
})
},
diff --git a/pages/signup/code.wxml b/pages/signup/code.wxml
index b82020c..d6b9d8a 100644
--- a/pages/signup/code.wxml
+++ b/pages/signup/code.wxml
@@ -14,10 +14,11 @@
邀请客户微信扫码签到
-
+
+
{{wxTimerList.wxTimer.tim||0}}秒后失效
- 立即刷新
+ 立即刷新
客户点击签到,授权手机号及地理位置方可签到成功