Commit 12af1a45 authored by zhengke's avatar zhengke

修改

parent ba833ced
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<i class="iconfont iconbiyan" v-if="flag==2" @click="flag=1"></i> <i class="iconfont iconbiyan" v-if="flag==2" @click="flag=1"></i>
</div> </div>
<div> <div>
<q-btn color="primary" unelevated style="width:100%;height:50px;margin-top:20px;" filled label="登入" <q-btn color="primary" unelevated style="width:100%;height:50px;margin-top:20px;" filled :label="mylabel"
@click="login" /> @click="login" />
</div> </div>
</div> </div>
...@@ -104,7 +104,8 @@ ...@@ -104,7 +104,8 @@
password: "" password: ""
}, },
logo: '', logo: '',
flag: 2 flag: 2,
mylabel:'登入'
}; };
}, },
created() { created() {
...@@ -139,16 +140,11 @@ ...@@ -139,16 +140,11 @@
}) })
return; return;
} }
this.$q.notify({ this.mylabel='提交中...';
type: 'negative',
message: '提交中',
position: 'top',
color:'secondary',
timeout: 500, // 以毫秒为单位; 0意味着没有超时
})
this.apipost( this.apipost(
"b2b_post_Login", this.loginMsg, "b2b_post_Login", this.loginMsg,
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);
...@@ -158,7 +154,6 @@ ...@@ -158,7 +154,6 @@
type: 'negative', type: 'negative',
message: res.data.message, message: res.data.message,
position: 'top', position: 'top',
color:'secondary',
timeout: 2000, // 以毫秒为单位; 0意味着没有超时 timeout: 2000, // 以毫秒为单位; 0意味着没有超时
}) })
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
} }
.header_content { .header_content {
flex-basis: 60%; flex-basis: 100%;
padding: 30px; padding: 30px;
color: #fff; color: #fff;
font-weight: 600; font-weight: 600;
......
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