Browse Source

textarea修改

trunk1017
douzhuo 1 year ago
parent
commit
2faa3df64d
1 changed files with 18 additions and 13 deletions
  1. +18
    -13
      pages/mine/details2.vue

+ 18
- 13
pages/mine/details2.vue View File

@@ -59,7 +59,7 @@
<view @click="clickcopy()" <view @click="clickcopy()"
style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制 style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
</view> </view>
<view @click="Oftenthewrongword()"
<view @click="Oftenthewrongword(item)"
style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词 style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词
</view> </view>
<view @click="openwajue(item)" <view @click="openwajue(item)"
@@ -155,7 +155,8 @@
<view class="tian-view" style="margin-left: 20rpx;"> <view class="tian-view" style="margin-left: 20rpx;">
<view class="tian-view-t2"> <view class="tian-view-t2">
话术内容:<view class="word1"> 话术内容:<view class="word1">
<u-input :auto-height="true" type="textarea" v-model="thewrongword" :border="false" placeholder="请输入" />
<u-input v-if="wajueshow" :auto-height="true" type="textarea" v-model="thewrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view> </view>
</view> </view>
</view> </view>
@@ -167,14 +168,16 @@
<view class="tian-view"> <view class="tian-view">
<view class="tian-view-t2" style="margin-left: 20rpx;"> <view class="tian-view-t2" style="margin-left: 20rpx;">
常错词:<view class="word1"> 常错词:<view class="word1">
<u-input :auto-height="true" type="textarea" v-model="thewrongword" :border="false" placeholder="请输入" />
<u-input v-if="isshow2" :auto-height="true" type="textarea" v-model="thewrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view> </view>
</view> </view>
</view> </view>
<view class="tian-view"> <view class="tian-view">
<view class="tian-view-t2" style="margin-left: 20rpx;"> <view class="tian-view-t2" style="margin-left: 20rpx;">
正确词:<view class="word1"> 正确词:<view class="word1">
<u-input :auto-height="true" type="textarea" v-model="reswrongword" :border="false" placeholder="请输入" />
<u-input v-if="isshow2" :auto-height="true" type="textarea" v-model="reswrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view> </view>
</view> </view>
</view> </view>
@@ -1677,9 +1680,12 @@
this.cancelBeast() this.cancelBeast()
}, },
//加入长错词 //加入长错词
Oftenthewrongword() {
Oftenthewrongword(item) {
this.reswrongword = ""; this.reswrongword = "";
this.isshow2 = true; this.isshow2 = true;
this.$nextTick(() => {
this.thewrongword = item.onebest.replace(/<.*?>/ig, "");
})
}, },
//加入挖掘话术 //加入挖掘话术
openwajue(item) { openwajue(item) {
@@ -1779,8 +1785,8 @@
this.duihuawenjianid = this.luyinList[this.csdFileindex].id; this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow; this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
this.textItself = item.onebest; this.textItself = item.onebest;
let onebest = item.onebest;
this.thewrongword = onebest.replace(/<.*?>/ig, "");
// let onebest = item.onebest;
// this.thewrongword = onebest.replace(/<.*?>/ig, "");
this.messagelisy = this.dialogList[i].message this.messagelisy = this.dialogList[i].message
this.argtextindex1 = i; this.argtextindex1 = i;
this.argtextindex2 = index; this.argtextindex2 = index;
@@ -2052,7 +2058,7 @@
</script> </script>




<style lang="scss" scoped>
<style lang="scss" >
.box { .box {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
@@ -2808,12 +2814,8 @@
} }


.word1 { .word1 {
height: 80rpx;
min-height: 80rpx;
flex: 1; flex: 1;

/deep/ textarea {
max-height: 80rpx !important;
}
} }
} }
} }
@@ -2993,6 +2995,7 @@
} }
} }
} }


.jiantobox { .jiantobox {
width: 30rpx; width: 30rpx;
@@ -3042,4 +3045,6 @@
background: #2BC805 !important; background: #2BC805 !important;
color: #FFFFFF; color: #FFFFFF;
} }
</style> </style>

Loading…
Cancel
Save