gx
queenwuli
2021-01-15 4b80c98ef5fda8d6358778f2efe8bb35cb20ccf9
hive-app/pages/workbench/orderList.vue
@@ -49,6 +49,7 @@
                  <text class="blue-btn small-btn" @click="cancelOrder(item.orderId)">取消订单</text>
               </view>
            </view>
            <no-record :isShow="!list.length" txt="暂无订单记录"></no-record>
            <view v-if="list.length">
               <uni-load-more :status="loadStatus" color="#a5abaf"></uni-load-more>
            </view>
@@ -69,6 +70,7 @@
      },
      data() {
         return {
            queryKey: '',
            orderStatus: 0,
            tabs:[
               {
@@ -96,6 +98,9 @@
      onLoad(options) {
         if(options.status){
            this.orderStatus = Number(options.status);
         }
         if(options.queryKey){
            this.queryKey = options.queryKey;
         }
         this.loadList()
         
@@ -184,7 +189,6 @@
                content: '确定取消订单吗?',
                success: (res) => {
                    if (res.confirm) {
                        console.log('用户点击确定');
                     this.$httpUtils.request('/api/order/cancelOrder/'+id).then((res) => {
                        if(res.status == 200){
                           this.reloadData()