Browse Source

常错词数字判断

dev
jyt 2 years ago
parent
commit
de5d4b492b
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      pages/mine/details2.vue

+ 6
- 1
pages/mine/details2.vue View File

@@ -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" :disabled="true" class="tian-input" placeholder="请输入" />
<input type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" />
</viwe> </viwe>
</view> </view>
<view class="tian-view"> <view class="tian-view">
@@ -604,6 +604,7 @@
fdFlag2:null, fdFlag2:null,
tap: true, tap: true,
isSw:false, isSw:false,
isNum:false
}; };
}, },
computed: { computed: {
@@ -1564,6 +1565,10 @@
Oftenthewrongword() { Oftenthewrongword() {
this.reswrongword = ""; this.reswrongword = "";
this.isshow2 = true; this.isshow2 = true;
let reg = /^[0-9]+$/
if(reg.test(this.thewrongword)){
this.isNum = true
}
}, },
//加精华 //加精华
Addtheessence() { Addtheessence() {


Loading…
Cancel
Save