Commit cc3b6163e16883e96c2111f23b8dd0b2632e306a
1 parent
2e09eb2c
修改评价信息
Showing
2 changed files
with
4 additions
and
5 deletions
garbage-removal/src/pages/order-info/order-other/evaluate-info/index.vue
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | <view class="issue-head"> |
| 28 | 28 | <text class="issue-head-title">评价回复</text> |
| 29 | 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 | 32 | <view class="issue-btn-box" style="margin-top: 5px;margin-bottom: 10px;"> |
| 33 | 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 | 7 | size="28" @click="setScore(index + 1)"></u-icon> |
| 8 | 8 | </view> |
| 9 | 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 | 11 | <view class="issue-btn-box"> |
| 13 | 12 | <button class="submit-btn" type="primary" @click="doSubmit(orderId, score, evaluateType)">提交评价</button> |
| 14 | 13 | </view> |
| ... | ... | @@ -26,9 +25,8 @@ const evaluateType = ref() |
| 26 | 25 | const score = ref(5) |
| 27 | 26 | const textareaShow = ref(true) |
| 28 | 27 | const textareaPlaceholder = ref("请输入对此次服务得评价") |
| 29 | -const content = ref("") | |
| 28 | +const content = ref(""); | |
| 30 | 29 | const doSubmit = (orderId, score, evaluateType) => { |
| 31 | - | |
| 32 | 30 | uploadEvaluate({ orderId, score,content: content.value, evaluateType }).then(res => { |
| 33 | 31 | if (res.data.success) { |
| 34 | 32 | uni.$u.toast("评价成功") |
| ... | ... | @@ -56,6 +54,7 @@ onLoad((options) => { |
| 56 | 54 | } |
| 57 | 55 | }) |
| 58 | 56 | |
| 57 | + | |
| 59 | 58 | </script> |
| 60 | 59 | <style lang='scss' scoped> |
| 61 | 60 | $backgroundC: #f9f9f9; | ... | ... |