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


Loading…
Cancel
Save