seimin 3 年 前
コミット
2e40923131
共有1 個のファイルを変更した7 個の追加7 個の削除を含む
  1. 7 7
      pages/pharmacyDetails/pharmacyDetails.vue

+ 7 - 7
pages/pharmacyDetails/pharmacyDetails.vue

@@ -83,7 +83,7 @@ export default {
83
           id: this.infoDATA.id,
83
           id: this.infoDATA.id,
84
         }).then((result) => {
84
         }).then((result) => {
85
           this.isLoading = false;
85
           this.isLoading = false;
86
-          if (result.status == 200) {
86
+          if (result.state == 200) {
87
             uni.showToast({
87
             uni.showToast({
88
               title: result.info || "开始配药成功!",
88
               title: result.info || "开始配药成功!",
89
               success() {
89
               success() {
@@ -119,11 +119,11 @@ export default {
119
             //     });
119
             //     });
120
             //   }
120
             //   }
121
             // });
121
             // });
122
-          } else if(result.status == 503){//未建单
123
-            uni.showToast({
124
-              icon: "none",
125
-              title: result.error,
126
-            });
122
+          // } else if(result.state == 503){//未建单
123
+          //   uni.showToast({
124
+          //     icon: "none",
125
+          //     title: result.error,
126
+          //   });
127
           } else {
127
           } else {
128
             // this.isLoading = false;
128
             // this.isLoading = false;
129
             uni.showToast({
129
             uni.showToast({
@@ -137,7 +137,7 @@ export default {
137
           id: this.infoDATA.id,
137
           id: this.infoDATA.id,
138
         }).then((result) => {
138
         }).then((result) => {
139
           this.isLoading = false;
139
           this.isLoading = false;
140
-          if (result.status == 200) {
140
+          if (result.state == 200) {
141
             uni.showToast({
141
             uni.showToast({
142
               title: result.info || "完成配药成功!",
142
               title: result.info || "完成配药成功!",
143
               success() {
143
               success() {