Commit 3548c419 authored by zhengke's avatar zhengke

修改

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