@@ -138,7 +138,7 @@ | |||||
<viwe class="tian-view-t1"></viwe> | <viwe class="tian-view-t1"></viwe> | ||||
<viwe class="tian-view-t2">常错词:</viwe> | <viwe class="tian-view-t2">常错词:</viwe> | ||||
<viwe class="tian-view-t3"> | <viwe class="tian-view-t3"> | ||||
<input type="text" v-model="thewrongword" class="tian-input" placeholder="请输入" /> | |||||
<input type="text" v-model="thewrongword" :disabled="true" class="tian-input" placeholder="请输入" /> | |||||
</viwe> | </viwe> | ||||
</view> | </view> | ||||
<view class="tian-view"> | <view class="tian-view"> | ||||
@@ -195,7 +195,7 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<u-toast ref="uToast" /> | |||||
</view> | </view> | ||||
</template> | </template> | ||||
@@ -743,6 +743,13 @@ | |||||
}, | }, | ||||
//确认加入常错词 | //确认加入常错词 | ||||
Confirmtheexit() { | Confirmtheexit() { | ||||
let reg = /^[0-9]+$/ | |||||
if(reg.test(this.thewrongword)){ | |||||
this.$refs.uToast.show({ | |||||
title: '错误词不能为纯数字', | |||||
type: 'warning', | |||||
}) | |||||
}else{ | |||||
if (this.thewrongword) { | if (this.thewrongword) { | ||||
if (this.reswrongword) { | if (this.reswrongword) { | ||||
let parames = { | let parames = { | ||||
@@ -779,6 +786,7 @@ | |||||
}); | }); | ||||
return | return | ||||
} | } | ||||
} | |||||
}, | }, | ||||
//取消加入常错词 | //取消加入常错词 | ||||
Cancelout() { | Cancelout() { | ||||
@@ -221,7 +221,7 @@ | |||||
<viwe class="tian-view-t1"></viwe> | <viwe class="tian-view-t1"></viwe> | ||||
<viwe class="tian-view-t2">常错词:</viwe> | <viwe class="tian-view-t2">常错词:</viwe> | ||||
<viwe class="tian-view-t3"> | <viwe class="tian-view-t3"> | ||||
<input type="text" v-model="thewrongword" class="tian-input" placeholder="请输入" /> | |||||
<input type="text" v-model="thewrongword" :disabled="true" class="tian-input" placeholder="请输入" /> | |||||
</viwe> | </viwe> | ||||
</view> | </view> | ||||
<view class="tian-view"> | <view class="tian-view"> | ||||
@@ -487,7 +487,7 @@ | |||||
<view class="bounced3-2" @tap="roletab()">确认</view> | <view class="bounced3-2" @tap="roletab()">确认</view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<u-toast ref="uToast" /> | |||||
</view> | </view> | ||||
</template> | </template> | ||||
@@ -1445,6 +1445,13 @@ | |||||
}, | }, | ||||
//确认加入常错词 | //确认加入常错词 | ||||
Confirmtheexit() { | Confirmtheexit() { | ||||
let reg = /^[0-9]+$/ | |||||
if(reg.test(this.thewrongword)){ | |||||
this.$refs.uToast.show({ | |||||
title: '错误词不能为纯数字', | |||||
type: 'warning', | |||||
}) | |||||
}else{ | |||||
if (this.thewrongword) { | if (this.thewrongword) { | ||||
if (this.reswrongword) { | if (this.reswrongword) { | ||||
let parames = { | let parames = { | ||||
@@ -1484,6 +1491,7 @@ | |||||
}); | }); | ||||
return | return | ||||
} | } | ||||
} | |||||
}, | }, | ||||
//取消加入常错词 | //取消加入常错词 | ||||
Cancelout() { | Cancelout() { | ||||