Commit ae89ec6442655f7e9a210574d0d94696b210c9be

Authored by liujun001
1 parent c0985f55

修改ios 提交评价无内容

garbage-removal/src/pages/order-info/order-other/evaluate/index.vue
... ... @@ -9,7 +9,7 @@
9 9 </view>
10 10 <textarea v-if="textareaShow" @blur="blur" :value="content" :placeholder="textareaPlaceholder" />
11 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 13 </view>
14 14 </view>
15 15 </template>
... ... @@ -26,8 +26,9 @@ const score = ref(5)
26 26 const textareaShow = ref(true)
27 27 const textareaPlaceholder = ref("请输入对此次服务得评价")
28 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 32 if (res.data.success) {
32 33 uni.$u.toast("评价成功")
33 34 setTimeout(() => {
... ...