|
@@ -105,10 +105,10 @@ export default {
|
105
|
105
|
},
|
106
|
106
|
|
107
|
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
|
112
|
setInterval(() => {
|
113
|
113
|
this.getWeight();
|
114
|
114
|
// this.getPrice();
|
|
@@ -117,14 +117,14 @@ export default {
|
117
|
117
|
},
|
118
|
118
|
|
119
|
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
|
128
|
this.weighData.weight = ret.code;
|
129
|
129
|
|
130
|
130
|
let num = Number(ret.code);
|