浏览代码

优化提示

seimin 1 年之前
父节点
当前提交
7d694425b0
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      components/bigScreen/bigScreen.vue
  2. 2 2
      pages/quickOrderAcceptanceWx/quickOrderAcceptanceWx.vue

+ 2 - 2
components/bigScreen/bigScreen.vue

@@ -305,9 +305,9 @@
305 305
                                 title: "加载中",
306 306
                                 mask: true,
307 307
                               });
308
-                              post("/workerOrder/receiveOrders", {ids: res.data.toString()}).then((res) => {
308
+                              post("/workerOrder/receiveOrders", {ids: res.data.toString()}).then((result) => {
309 309
                                 uni.hideLoading();
310
-                                if (res.status == 200) {
310
+                                if (result.status == 200) {
311 311
                                   uni.showModal({
312 312
                                     title: "提示",
313 313
                                     content: `本次接单包括${res.names.join('、')},${res.data.length}个工单已接单完成`,

+ 2 - 2
pages/quickOrderAcceptanceWx/quickOrderAcceptanceWx.vue

@@ -68,9 +68,9 @@
68 68
                     title: "加载中",
69 69
                     mask: true,
70 70
                   });
71
-                  post("/workerOrder/receiveOrders", {ids: res.data.toString()}).then((res) => {
71
+                  post("/workerOrder/receiveOrders", {ids: res.data.toString()}).then((result) => {
72 72
                     uni.hideLoading();
73
-                    if (res.status == 200) {
73
+                    if (result.status == 200) {
74 74
                       uni.showModal({
75 75
                         title: "提示",
76 76
                         content: `本次接单包括${res.names.join('、')},${res.data.length}个工单已接单完成`,