Commit cc3b6163e16883e96c2111f23b8dd0b2632e306a

Authored by liujun001
1 parent 2e09eb2c

修改评价信息

garbage-removal/src/pages/order-info/order-other/evaluate-info/index.vue
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 <view class="issue-head"> 27 <view class="issue-head">
28 <text class="issue-head-title">评价回复</text> 28 <text class="issue-head-title">评价回复</text>
29 </view> 29 </view>
30 - <u-textarea @blur="blur" :value="content" :placeholder="评价回复" style="height: 180rpx;margin-top: 15px;"></u-textarea> 30 + <u-textarea @blur="blur" v-model="content" :placeholder="评价回复" style="height: 180rpx;margin-top: 15px;"></u-textarea>
31 31
32 <view class="issue-btn-box" style="margin-top: 5px;margin-bottom: 10px;"> 32 <view class="issue-btn-box" style="margin-top: 5px;margin-bottom: 10px;">
33 <u-button class="submit-btn" type="primary" @click="doSubmit(orderId, -1, 0)" v-if="userType ==='用户'">提交回复</u-button> 33 <u-button class="submit-btn" type="primary" @click="doSubmit(orderId, -1, 0)" v-if="userType ==='用户'">提交回复</u-button>
garbage-removal/src/pages/order-info/order-other/evaluate/index.vue
@@ -7,8 +7,7 @@ @@ -7,8 +7,7 @@
7 size="28" @click="setScore(index + 1)"></u-icon> 7 size="28" @click="setScore(index + 1)"></u-icon>
8 </view> 8 </view>
9 </view> 9 </view>
10 - <u-textarea v-if="textareaShow" @blur="blur" :value="content" :placeholder="textareaPlaceholder" style="height: 180rpx"></u-textarea>  
11 - 10 + <u-textarea v-if="textareaShow" @blur="blur" v-model="content" :placeholder="textareaPlaceholder" style="height: 180rpx"></u-textarea>
12 <view class="issue-btn-box"> 11 <view class="issue-btn-box">
13 <button class="submit-btn" type="primary" @click="doSubmit(orderId, score, evaluateType)">提交评价</button> 12 <button class="submit-btn" type="primary" @click="doSubmit(orderId, score, evaluateType)">提交评价</button>
14 </view> 13 </view>
@@ -26,9 +25,8 @@ const evaluateType = ref() @@ -26,9 +25,8 @@ const evaluateType = ref()
26 const score = ref(5) 25 const score = ref(5)
27 const textareaShow = ref(true) 26 const textareaShow = ref(true)
28 const textareaPlaceholder = ref("请输入对此次服务得评价") 27 const textareaPlaceholder = ref("请输入对此次服务得评价")
29 -const content = ref("") 28 +const content = ref("");
30 const doSubmit = (orderId, score, evaluateType) => { 29 const doSubmit = (orderId, score, evaluateType) => {
31 -  
32 uploadEvaluate({ orderId, score,content: content.value, evaluateType }).then(res => { 30 uploadEvaluate({ orderId, score,content: content.value, evaluateType }).then(res => {
33 if (res.data.success) { 31 if (res.data.success) {
34 uni.$u.toast("评价成功") 32 uni.$u.toast("评价成功")
@@ -56,6 +54,7 @@ onLoad((options) =&gt; { @@ -56,6 +54,7 @@ onLoad((options) =&gt; {
56 } 54 }
57 }) 55 })
58 56
  57 +
59 </script> 58 </script>
60 <style lang='scss' scoped> 59 <style lang='scss' scoped>
61 $backgroundC: #f9f9f9; 60 $backgroundC: #f9f9f9;