MrShi
2025-07-19 edb50cb0dc65061d5ce9f8d4ff26fcee12b09eee
small-program/pages/index/index.vue
@@ -467,6 +467,7 @@
         getaccept(e, orderId, index) {
            this.$u.api.accept({ orderId })
               .then(res => {
                  if (res.code === 200) {
                  uni.showToast({ title: '抢单成功!', icon: 'success', duration: 2000 })
                  setTimeout(() => {
                     this.page = 1
@@ -474,6 +475,7 @@
                     this.orderList = []
                     this.getOrderList()
                  }, 2000)
                  }
               })
         },
         clickSort(id) {
@@ -620,7 +622,9 @@
                  priceNum1: that.form.days,
                  type: 2
               }).then(res => {
                  if (res.code === 200) {
                  that.form.estimatedAccount = res.data
                  }
               })
            }
         },
@@ -758,14 +762,17 @@
         getCategoryLists() {
            this.$u.api.getCategoryList({ type: 1 })
               .then(res => {
                  if (res.code === 200) {
                  this.car = res.data
                  this.form.categoryId = res.data[0].id
                  this.form.categoryName = res.data[0].name
                  this.carRemark = res.data[0].remark
                  this.carImage = res.data[0].iconFull
                  }
               })
            this.$u.api.getCategoryList({ type: 2 })
               .then(res => {
                  if (res.code === 200) {
                  res.data.forEach(item => {
                     item.num = ''
                     item.list = item.detailList.map(child => {
@@ -776,6 +783,7 @@
                     })
                  })
                  this.orderFood = res.data
                  }
               })
         }
      }