nfc牌位接口绑定修改
This commit is contained in:
parent
4adf0b0684
commit
5b818deed5
|
|
@ -645,14 +645,14 @@ export default {
|
||||||
uni.showLoading({ title: "提交中...", mask: true });
|
uni.showLoading({ title: "提交中...", mask: true });
|
||||||
try {
|
try {
|
||||||
const payload = {
|
const payload = {
|
||||||
// memorialMac: this.deviceMac,
|
memorialMac: this.deviceMac,
|
||||||
nfcMac: this.cardNo,
|
nfcMac: this.cardNo,
|
||||||
};
|
};
|
||||||
// 优先使用 memorialId,如果没有则使用 unitId
|
// 优先使用 memorialId,如果没有则使用 unitId
|
||||||
const memorialId = this.memorialId || this.unitId;
|
// const memorialId = this.memorialId || this.unitId;
|
||||||
if (memorialId) {
|
// if (memorialId) {
|
||||||
payload.memorialId = memorialId;
|
// payload.memorialId = memorialId;
|
||||||
}
|
// }
|
||||||
const res = await bindNfcCard(payload);
|
const res = await bindNfcCard(payload);
|
||||||
const success = res && (res.code === 200 || res.status === 200);
|
const success = res && (res.code === 200 || res.status === 200);
|
||||||
const message = (res && res.msg) || "";
|
const message = (res && res.msg) || "";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user