feat: 识别码机,追加商米SN标识

This commit is contained in:
liangzilin
2023-11-14 16:39:16 +08:00
parent 14b6100257
commit ea15f8e02b
3 changed files with 20 additions and 23 deletions

View File

@@ -162,22 +162,8 @@ export default {
};
},
onLoad: function () {
// 写死
// this.machineId = "861741042996303";
// this.getDataList();
// return;
plus.device.getInfo({
success: (e) => {
const imei = e.imei.split(",");
this.machineId = imei[0];
this.getDataList();
},
fail: function (e) {
console.log("getDeviceInfo failed: " + JSON.stringify(e));
},
});
// this.getDataList()
this.machineId = uni.getStorageSync("store_obj").imei
this.getDataList()
},
methods: {
all_price(spendAmount, couponAmount, pointAmount) {