Commit 22886f97 authored by ziyu's avatar ziyu

improvement: 修改bug,优化

parent 18d15417
......@@ -269,7 +269,7 @@
isInnerDone: 'hide',
innerActivity: '',
isError: false,
code: ''
code: '',
},
methods: {
check() {
......@@ -282,9 +282,9 @@
let detail = e.$wx.detail || {};
function goprize() {
updateUserPhone(detail).then(() => {
that.confirmRaff();
wx.setStorageSync('hasPhone', true);
that.hasPhone = true;
that.joinin();
}).catch(() => {
that.btnfont = '立即参与';
});
......@@ -371,6 +371,10 @@
this.code = '';
},
checkCode () {
if(this.code === '') {
this.isError = true;
return;
}
checkInnerCode({code: this.code}).then(data => {
if (+data.checkCode === 0) {
this.closeModal();
......@@ -391,8 +395,8 @@
}
},
watch: {
code(val) {
if (!val.length && this.isError) {
code(val,oldval) {
if (val!==oldval && this.isError) {
this.isError = false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment