优化岗亭跳转bug

This commit is contained in:
wuxw 2024-04-21 22:34:49 +08:00
parent f87301456c
commit 5f0b45ee8a
4 changed files with 39 additions and 8 deletions

View File

@ -7,7 +7,7 @@
},
_initEvent: function () {
vc.on('deleteMerchant', 'openDeleteMerchantModal', function (_params) {
vc.component.deleteMerchantInfo = _params;
$that.deleteMerchantInfo = _params;
$('#deleteMerchantModel').modal('show');
});
},
@ -15,7 +15,7 @@
deleteMerchant: function () {
vc.http.apiPost(
'/property.deleteProperty',
JSON.stringify(vc.component.deleteMerchantInfo), {
JSON.stringify($that.deleteMerchantInfo), {
emulateJSON: true
},
function (json, res) {
@ -41,4 +41,4 @@
}
}
});
})(window.vc, window.vc.component);
})(window.vc, window.$that);

View File

@ -253,6 +253,11 @@
vm._navJumpToIot();
return;
}
if (_catalog.url == 'MALL') {
//获取用户名
vc.jumpToMall('/');
return;
}
if (_catalog.url != '#') {
vm._settingActiveCatalog(_catalog);
vc.jumpToPage(_catalog.url);

View File

@ -91,7 +91,7 @@
vc.jumpToPage('/#/pages/property/parkingBoxAreaManage?boxId=' + _parkingBox.boxId + "&boxName=" + _parkingBox.boxName);
},
_openParkingAreaControl: function (_parkingBox) {
vc.jumpToIot('/#/pages/property/parkingAreaControl?boxId=' + _parkingBox.boxId + "&paId=" + _parkingBox.paId);
vc.jumpToIot('/#/pages/car/parkingAreaControl?boxId=' + _parkingBox.boxId + "&paId=" + _parkingBox.paId);
}
}
});

View File

@ -1319,6 +1319,32 @@
//vcFramework.reBuilderVcTree();
};
//跳转至商城
vcFramework.jumpToMall = function (url) {
let param = {
params: {
targetUrl: encodeURIComponent(url),
communityId: vc.getCurrentCommunity().communityId
}
};
//发送get请求
vc.http.apiGet('/mall.getMallToken',
param,
function (json, res) {
let _json = JSON.parse(json);
if (_json.code != 0) {
vc.toast(_json.msg);
return;
}
let _url = _json.data.url;
window.open(_url);
},
function () {
console.log('请求失败处理');
}
);
};
//跳转至物联网
vcFramework.jumpToIot = function (url) {
let param = {