Commit 3548c419 authored by zhengke's avatar zhengke

修改

parent 12af1a45
......@@ -104,7 +104,7 @@
<q-input outlined v-model="registerMsg.Mobile" class="bg-grey-1" />
</div>
<div class="registform-group">
<q-btn color="primary" style="width:100%;height:50px;margin-top:20px;" @click="doRegister" label="免費註冊" />
<q-btn color="primary" style="width:100%;height:50px;margin-top:20px;" @click="doRegister" :label="mylabel" />
</div>
</div>
</div>
......@@ -134,7 +134,8 @@
value: 2,
label: "女"
},
]
],
mylabel:'免費註冊'
};
},
created() {
......@@ -197,16 +198,11 @@
})
return;
}
this.$q.notify({
type: 'negative',
message: '提交中',
position: 'top',
color: 'secondary',
timeout: 500, // 以毫秒为单位; 0意味着没有超时
})
this.mylabel='提交中...'
this.apipost(
"b2b_post_SetCustomerAccountService", this.registerMsg,
res => {
this.mylabel='免費註冊'
if (res.data.resultCode == 1) {
var jsonData = JSON.stringify(res.data.data);
window.localStorage.setItem("b2bUser", jsonData);
......@@ -220,6 +216,13 @@
setTimeout(() => {
this.CommonJump('/login', {})
}, 2000)
}else{
this.$q.notify({
type: 'negative',
message: res.data.message,
position: 'top',
timeout: 2000, // 以毫秒为单位; 0意味着没有超时
})
}
},
err => {}
......
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