wjt
2024-07-23 c3b2d6d35b77d11ff86d45926501493b7fc8886e
qiye/record/details.vue
@@ -168,7 +168,7 @@
            </view>
         </view>
      </view>
      <view class="bottom" v-if="msg.orderStatus==3 || msg.orderStatus== 4">
      <view class="bottom" v-if=" msg.orderStatus== 5">
         <view class="one" v-if="msg.isComplaint != 1 && msg.isEva == 1">
            <view class="b1" @click="open()">
               投诉
@@ -187,6 +187,15 @@
               我要评价
            </view>
         </view>
      </view>
      <view class="bottom" v-if=" msg.orderStatus == 4">
         <view class="one" >
            <view class="b1" style="background-color: #1171E0;color: white;" @click="enterOrder()">
               确认
            </view>
         </view>
      </view>
      <u-popup :show="show" @close="close" mode="bottom" round="10" closeable>
         <view class="page-box">
@@ -224,7 +233,7 @@
   import { order } from '@/api/index.js'
   import { getDicts } from '@/api/data.js'
   import { config } from '@/common/config'
   import { orderComplaint } from '@/api/qiye.js'
   import { orderComplaint, confirmOrderId } from '@/api/qiye.js'
   export default {
      data() {
         return {
@@ -259,6 +268,27 @@
         this.getdata()
      },
      methods: {
         enterOrder() {
            uni.showModal({
               title: '提示',
               content: '确认该订单?',
               success: val => {
                  if(val.confirm) {
                     confirmOrderId({orderId: this.msg.orderId}).then(val => {
                        if(val.data.code == 200) {
                           uni.showToast({
                              title: '确认成功',
                              icon: 'none'
                           })
                           this.getdata()
                        }
                     })
                  }
               }
            })
         },
         getdata(){
            order(this.id).then(val => {