Commit ae89ec6442655f7e9a210574d0d94696b210c9be
1 parent
c0985f55
修改ios 提交评价无内容
Showing
1 changed file
with
4 additions
and
3 deletions
garbage-removal/src/pages/order-info/order-other/evaluate/index.vue
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | </view> | 9 | </view> |
| 10 | <textarea v-if="textareaShow" @blur="blur" :value="content" :placeholder="textareaPlaceholder" /> | 10 | <textarea v-if="textareaShow" @blur="blur" :value="content" :placeholder="textareaPlaceholder" /> |
| 11 | <view class="issue-btn-box"> | 11 | <view class="issue-btn-box"> |
| 12 | - <button class="submit-btn" type="primary" @click="doSubmit(orderId, score, content, evaluateType)">提交评价</button> | 12 | + <button class="submit-btn" type="primary" @click="doSubmit(orderId, score, evaluateType)">提交评价</button> |
| 13 | </view> | 13 | </view> |
| 14 | </view> | 14 | </view> |
| 15 | </template> | 15 | </template> |
| @@ -26,8 +26,9 @@ const score = ref(5) | @@ -26,8 +26,9 @@ const score = ref(5) | ||
| 26 | const textareaShow = ref(true) | 26 | const textareaShow = ref(true) |
| 27 | const textareaPlaceholder = ref("请输入对此次服务得评价") | 27 | const textareaPlaceholder = ref("请输入对此次服务得评价") |
| 28 | const content = ref("") | 28 | const content = ref("") |
| 29 | -const doSubmit = (orderId, score, content, evaluateType) => { | ||
| 30 | - uploadEvaluate({ orderId, score, content, evaluateType }).then(res => { | 29 | +const doSubmit = (orderId, score, evaluateType) => { |
| 30 | + | ||
| 31 | + uploadEvaluate({ orderId, score,content: content.value, evaluateType }).then(res => { | ||
| 31 | if (res.data.success) { | 32 | if (res.data.success) { |
| 32 | uni.$u.toast("评价成功") | 33 | uni.$u.toast("评价成功") |
| 33 | setTimeout(() => { | 34 | setTimeout(() => { |