Commit 383510c8 by 冷斌

fix bug

parent d2560b5f
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<!-- 提交 --> <!-- 提交 -->
<div class="btnBox"> <div class="btnBox">
<button type="button" :style="isBk" @click="submit" :disabled="!isSub"> <button type="button" :style="isBk" @click="submit" :disabled="isSub">
提交 提交
</button> </button>
</div> </div>
...@@ -43,12 +43,11 @@ ...@@ -43,12 +43,11 @@
for (let i in this.form) { for (let i in this.form) {
if (this.form[i] === '') { if (this.form[i] === '') {
status = true; status = true;
this.isBk='background: #FC7583;';
break; break;
} }
} }
this.isSub = status; this.isSub = status;
this.isBk='background: #FF9FBA;'; this.isBk= status ? 'background: #FF9FBA;' : 'background: #FC7583;';
}, },
data: { data: {
form:{ form:{
...@@ -59,7 +58,7 @@ ...@@ -59,7 +58,7 @@
content: '', content: '',
thumb: '', thumb: '',
}, },
isSub: false, isSub: true,
isBk: 'background: #FF9FBA;' isBk: 'background: #FF9FBA;'
}, },
methods: { methods: {
......
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