|
@@ -127,9 +127,9 @@ export default {
|
127
|
127
|
this.fn.showToast("获取weight错误");
|
128
|
128
|
}
|
129
|
129
|
// let ret = { code: "1.340" };
|
130
|
|
- this.weighData.weight = ret.code;
|
|
130
|
+ this.weighData.weight = ret.data;
|
131
|
131
|
|
132
|
|
- let num = Number(ret.code);
|
|
132
|
+ let num = Number(ret.data);
|
133
|
133
|
if (num) {
|
134
|
134
|
let amt = num * this.weighData.price;
|
135
|
135
|
amt = amt.toFixed(2);
|
|
@@ -144,7 +144,7 @@ export default {
|
144
|
144
|
if (!ret) {
|
145
|
145
|
this.fn.showToast("获取price错误");
|
146
|
146
|
}
|
147
|
|
- this.weighData.price = ret.code;
|
|
147
|
+ this.weighData.price = ret.data;
|
148
|
148
|
},
|
149
|
149
|
getAmt() {
|
150
|
150
|
var ret = testModule.getAmt({
|
|
@@ -154,7 +154,7 @@ export default {
|
154
|
154
|
if (!ret) {
|
155
|
155
|
this.fn.showToast("获取Amt错误");
|
156
|
156
|
}
|
157
|
|
- this.weighData.amt = ret.code;
|
|
157
|
+ this.weighData.amt = ret.data;
|
158
|
158
|
},
|
159
|
159
|
},
|
160
|
160
|
|