Fix:3282 【礼品功能】送礼包页面-送礼寄语未增加字数限制,页面优化调整
This commit is contained in:
@@ -30,7 +30,9 @@
|
|||||||
maxlength="30"
|
maxlength="30"
|
||||||
border="none"
|
border="none"
|
||||||
count
|
count
|
||||||
|
ref="textarea"
|
||||||
cols="30"
|
cols="30"
|
||||||
|
@input="messageChange"
|
||||||
rows="10"></u-textarea>
|
rows="10"></u-textarea>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -190,7 +192,18 @@ export default {
|
|||||||
imageUrl: this.giftImage
|
imageUrl: this.giftImage
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onReady() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.textarea.setFormatter(val => {
|
||||||
|
return val.length > 30 ? val.substring(0, 30) : val
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
messageChange(e) {
|
||||||
|
console.log(e);
|
||||||
|
this.message = e.substring(0, 30)
|
||||||
|
},
|
||||||
numberChange(e) {
|
numberChange(e) {
|
||||||
this.computedPrice(e.value)
|
this.computedPrice(e.value)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user