|
@@ -42,6 +42,7 @@
|
|
|
} from 'vuex'
|
|
|
import {
|
|
|
checkPhone,
|
|
|
+ currentTimeStamp,
|
|
|
} from '$project/utils'
|
|
|
import * as types from '$project/store/mutation-types'
|
|
|
import * as WxJsApi from '$project/utils/wxJsApi'
|
|
@@ -67,11 +68,20 @@
|
|
|
},
|
|
|
sendMsgWz: '发送验证码',
|
|
|
isSendMsg: false,
|
|
|
+
|
|
|
+ _t: this.$route.query._t,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ //验证验证码是否过期
|
|
|
+ if (this._t && currentTimeStamp() - this._t >= 30 * 60 * 1000) {
|
|
|
+ mui.alert('该二维码已过期');
|
|
|
+ this.$router.push({
|
|
|
+ name: 'Master'
|
|
|
+ })
|
|
|
+ }
|
|
|
if (this.person_data) {
|
|
|
- //如果用户存在直接调用扫码功能
|
|
|
+ //如果用户存在,并且不是通过扫关联二维码进来的,则直接调用扫码功能
|
|
|
this.subForm.name = this.person_data.name;
|
|
|
this.subForm.telephone = this.person_data.phone;
|
|
|
if (!this.id) {
|
|
@@ -166,6 +176,7 @@
|
|
|
}
|
|
|
},
|
|
|
asynCallBack() {
|
|
|
+ //如果用户存在,并且是从关联二维码扫码进来的则跳转到填写关联信息页面
|
|
|
if (this.person_data && this.id) {
|
|
|
this.set_old_relation_form_data(this.subForm);
|
|
|
this.$router.push({
|