cr 4 gadi atpakaļ
vecāks
revīzija
ee60d7ce08

+ 12 - 12
src/pages/manage/cashier/weighModal.vue

@@ -96,10 +96,10 @@ export default {
96
         },
96
         },
97
 
97
 
98
         getData() {
98
         getData() {
99
-            // var ret = testModule.open({
100
-            //     name: "unimp",
101
-            //     age: 1,
102
-            // });
99
+            var ret = testModule.open({
100
+                name: "unimp",
101
+                age: 1,
102
+            });
103
             setInterval(() => {
103
             setInterval(() => {
104
                 this.getWeight();
104
                 this.getWeight();
105
                 // this.getPrice();
105
                 // this.getPrice();
@@ -108,14 +108,14 @@ export default {
108
         },
108
         },
109
 
109
 
110
         getWeight() {
110
         getWeight() {
111
-            // var ret = testModule.getWeight({
112
-            //     name: "unimp",
113
-            //     age: 1,
114
-            // });
115
-            // if (!ret) {
116
-            //     this.fn.showToast("获取weight错误");
117
-            // }
118
-            let ret = { code: "1.340" };
111
+            var ret = testModule.getWeight({
112
+                name: "unimp",
113
+                age: 1,
114
+            });
115
+            if (!ret) {
116
+                this.fn.showToast("获取weight错误");
117
+            }
118
+            // let ret = { code: "1.340" };
119
             this.weighData.weight = ret.code;
119
             this.weighData.weight = ret.code;
120
 
120
 
121
             let num = Number(ret.code);
121
             let num = Number(ret.code);

+ 12 - 12
src/pages/manage/cashier/weighModal2.vue

@@ -105,10 +105,10 @@ export default {
105
         },
105
         },
106
 
106
 
107
         getData() {
107
         getData() {
108
-            // var ret = testModule.open({
109
-            //     name: "unimp",
110
-            //     age: 1,
111
-            // });
108
+            var ret = testModule.open({
109
+                name: "unimp",
110
+                age: 1,
111
+            });
112
             setInterval(() => {
112
             setInterval(() => {
113
                 this.getWeight();
113
                 this.getWeight();
114
                 // this.getPrice();
114
                 // this.getPrice();
@@ -117,14 +117,14 @@ export default {
117
         },
117
         },
118
 
118
 
119
         getWeight() {
119
         getWeight() {
120
-            // var ret = testModule.getWeight({
121
-            //     name: "unimp",
122
-            //     age: 1,
123
-            // });
124
-            // if (!ret) {
125
-            //     this.fn.showToast("获取weight错误");
126
-            // }
127
-            let ret = { code: "1.340" };
120
+            var ret = testModule.getWeight({
121
+                name: "unimp",
122
+                age: 1,
123
+            });
124
+            if (!ret) {
125
+                this.fn.showToast("获取weight错误");
126
+            }
127
+            // let ret = { code: "1.340" };
128
             this.weighData.weight = ret.code;
128
             this.weighData.weight = ret.code;
129
 
129
 
130
             let num = Number(ret.code);
130
             let num = Number(ret.code);