mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-18 16:46:43 +08:00
优化代码
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<!-- 新契约基本问题件 -->
|
<!-- 新契约基本问题件 -->
|
||||||
<div class="feedback" v-if="issueType === 'TB89'">
|
<div class="feedback" v-if="issueType === 'TB89'">
|
||||||
<div class="title">问题件回复:</div>
|
<div class="title">问题件回复:</div>
|
||||||
<textarea placeholder="请输入" v-model="newContract.feedback" :disabled="newContract.feedbackAvailable"></textarea>
|
<textarea placeholder="请输入" v-model="newContract.feedback"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="checkedBox" v-if="issueType !== '818901'">
|
<div class="checkedBox" v-if="issueType !== '818901'">
|
||||||
<van-checkbox v-model="checked" class="checked" icon-size="16px" shape="square"
|
<van-checkbox v-model="checked" class="checked" icon-size="16px" shape="square"
|
||||||
@@ -141,8 +141,7 @@ export default {
|
|||||||
problemDetail: {},
|
problemDetail: {},
|
||||||
newContract: {
|
newContract: {
|
||||||
// 新契约
|
// 新契约
|
||||||
feedback: '',
|
feedback: ''
|
||||||
feedbackAvailable: false
|
|
||||||
},
|
},
|
||||||
transfer: {
|
transfer: {
|
||||||
// 转账失败
|
// 转账失败
|
||||||
@@ -229,12 +228,13 @@ export default {
|
|||||||
|
|
||||||
// 新契约问题件签名前必须输入回复内容
|
// 新契约问题件签名前必须输入回复内容
|
||||||
if (this.issueType === 'TB89') {
|
if (this.issueType === 'TB89') {
|
||||||
if (!this.newContract.feedback.trim()) {
|
let reply = this.newContract.feedback.trim()
|
||||||
|
if (!reply) {
|
||||||
return this.$toast('请填写具体回复信息')
|
return this.$toast('请填写具体回复信息')
|
||||||
} else if (this.newContract.feedback.trim().length < 4 || this.newContract.feedback.trim().length > 400) {
|
} else if (reply.length < 4 || reply.length > 400) {
|
||||||
return this.$toast('请输入4-400个字符')
|
return this.$toast('请输入4-400个字符')
|
||||||
} else {
|
} else {
|
||||||
localStorage.setItem('problemReplay', this.newContract.feedback.trim())
|
localStorage.setItem('problemReplay', reply)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 转账不成功签名前必须选择处理方式
|
// 转账不成功签名前必须选择处理方式
|
||||||
@@ -681,7 +681,6 @@ export default {
|
|||||||
// localstorage存在回复内容时回显回复内容
|
// localstorage存在回复内容时回显回复内容
|
||||||
if (localStorage.getItem('problemReplay')) {
|
if (localStorage.getItem('problemReplay')) {
|
||||||
this.newContract.feedback = localStorage.getItem('problemReplay')
|
this.newContract.feedback = localStorage.getItem('problemReplay')
|
||||||
this.newContract.feedbackAvailable = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 微信签名后回显同意协议
|
// 微信签名后回显同意协议
|
||||||
|
|||||||
Reference in New Issue
Block a user