mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化岗亭跳转bug
This commit is contained in:
parent
f87301456c
commit
5f0b45ee8a
@ -7,7 +7,7 @@
|
|||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function () {
|
||||||
vc.on('deleteMerchant', 'openDeleteMerchantModal', function (_params) {
|
vc.on('deleteMerchant', 'openDeleteMerchantModal', function (_params) {
|
||||||
vc.component.deleteMerchantInfo = _params;
|
$that.deleteMerchantInfo = _params;
|
||||||
$('#deleteMerchantModel').modal('show');
|
$('#deleteMerchantModel').modal('show');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -15,7 +15,7 @@
|
|||||||
deleteMerchant: function () {
|
deleteMerchant: function () {
|
||||||
vc.http.apiPost(
|
vc.http.apiPost(
|
||||||
'/property.deleteProperty',
|
'/property.deleteProperty',
|
||||||
JSON.stringify(vc.component.deleteMerchantInfo), {
|
JSON.stringify($that.deleteMerchantInfo), {
|
||||||
emulateJSON: true
|
emulateJSON: true
|
||||||
},
|
},
|
||||||
function (json, res) {
|
function (json, res) {
|
||||||
@ -41,4 +41,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(window.vc, window.vc.component);
|
})(window.vc, window.$that);
|
||||||
@ -253,6 +253,11 @@
|
|||||||
vm._navJumpToIot();
|
vm._navJumpToIot();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (_catalog.url == 'MALL') {
|
||||||
|
//获取用户名
|
||||||
|
vc.jumpToMall('/');
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (_catalog.url != '#') {
|
if (_catalog.url != '#') {
|
||||||
vm._settingActiveCatalog(_catalog);
|
vm._settingActiveCatalog(_catalog);
|
||||||
vc.jumpToPage(_catalog.url);
|
vc.jumpToPage(_catalog.url);
|
||||||
|
|||||||
@ -91,7 +91,7 @@
|
|||||||
vc.jumpToPage('/#/pages/property/parkingBoxAreaManage?boxId=' + _parkingBox.boxId + "&boxName=" + _parkingBox.boxName);
|
vc.jumpToPage('/#/pages/property/parkingBoxAreaManage?boxId=' + _parkingBox.boxId + "&boxName=" + _parkingBox.boxName);
|
||||||
},
|
},
|
||||||
_openParkingAreaControl: function (_parkingBox) {
|
_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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1319,6 +1319,32 @@
|
|||||||
//vcFramework.reBuilderVcTree();
|
//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) {
|
vcFramework.jumpToIot = function (url) {
|
||||||
let param = {
|
let param = {
|
||||||
@ -2102,7 +2128,7 @@
|
|||||||
return _newDate.getFullYear() + '-' + add0(_newDate.getMonth() + 1) + '-' + add0(_newDate.getDate());
|
return _newDate.getFullYear() + '-' + add0(_newDate.getMonth() + 1) + '-' + add0(_newDate.getDate());
|
||||||
};
|
};
|
||||||
|
|
||||||
vcFramework.addPersonMonth = function(_date,_month){
|
vcFramework.addPersonMonth = function (_date, _month) {
|
||||||
// 设置日期为下个月
|
// 设置日期为下个月
|
||||||
_date.setMonth(_date.getMonth() + 1);
|
_date.setMonth(_date.getMonth() + 1);
|
||||||
// 如果日期是31号,并且下个月没有31号(例如2月),则日期会自动调整为下个月的最后一天
|
// 如果日期是31号,并且下个月没有31号(例如2月),则日期会自动调整为下个月的最后一天
|
||||||
@ -3246,7 +3272,7 @@
|
|||||||
ret += (150.0 * Math.sin(lng / 12.0 * PI) + 300.0 * Math.sin(lng / 30.0 * PI)) * 2.0 / 3.0;
|
ret += (150.0 * Math.sin(lng / 12.0 * PI) + 300.0 * Math.sin(lng / 30.0 * PI)) * 2.0 / 3.0;
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
vcFramework.wgs84togcj02=function(lng, lat) {
|
vcFramework.wgs84togcj02 = function (lng, lat) {
|
||||||
var lat = +lat;
|
var lat = +lat;
|
||||||
var lng = +lng;
|
var lng = +lng;
|
||||||
if (out_of_china(lng, lat)) {
|
if (out_of_china(lng, lat)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user