mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
444ad7f1a1
commit
1546883bee
@ -1,10 +1,10 @@
|
||||
<div class="margin-top">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<img :src="parkingAreaControlCarInoutInfo.inImg" width="100%" height="350px" />
|
||||
<img :src="parkingAreaControlCarInoutInfo.inImg" :onerror="imgOnErrorIn()" width="100%" height="350px" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<img :src="parkingAreaControlCarInoutInfo.outImg" width="100%" height="350px" />
|
||||
<img :src="parkingAreaControlCarInoutInfo.outImg" :onerror="imgOnErrorOut()" width="100%" height="350px" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -21,17 +21,30 @@
|
||||
return;
|
||||
}
|
||||
if (_parkingAreaControl.inMachineId == _data.extMachineId) {
|
||||
//$that.parkingAreaControlCarInoutInfo.inImg = _data.img;
|
||||
setTimeout(function() {
|
||||
$that.parkingAreaControlCarInoutInfo.inImg = _data.img;
|
||||
}, 1500)
|
||||
}
|
||||
|
||||
if (_parkingAreaControl.outMachineId == _data.extMachineId) {
|
||||
//$that.parkingAreaControlCarInoutInfo.outImg = _data.img;
|
||||
setTimeout(function() {
|
||||
$that.parkingAreaControlCarInoutInfo.outImg = _data.img;
|
||||
}, 1500)
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
imgOnErrorIn: function() {
|
||||
//let _img = $that.parkingAreaControlCarInoutInfo.inImg
|
||||
|
||||
},
|
||||
imgOnErrorOut: function() {
|
||||
//let _img = $that.parkingAreaControlCarInoutInfo.outImg
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
@ -28,6 +28,7 @@
|
||||
// = _params;
|
||||
vc.copyObject(_params, vc.component.parkingAreaControlCustomCarInoutInfo);
|
||||
vc.component.parkingAreaControlCustomCarInoutInfo.communityId = vc.getCurrentCommunity().communityId;
|
||||
$that._queryCustomCarMoney();
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -57,7 +57,8 @@
|
||||
function(json, res) {
|
||||
let _info = JSON.parse(json);
|
||||
$that._viewQr(_info.data)
|
||||
}, function (errInfo, error) {
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
@ -68,11 +69,13 @@
|
||||
carNum: $that.parkingAreaControlFeeInfo.carNum,
|
||||
amount: $that.parkingAreaControlFeeInfo.pay,
|
||||
payCharge: $that.parkingAreaControlFeeInfo.payCharge,
|
||||
machineId: $that.parkingAreaControlFeeInfo.machineId
|
||||
machineId: $that.parkingAreaControlFeeInfo.machineId,
|
||||
boxId: $that.parkingAreaControlFeeInfo.boxId,
|
||||
})
|
||||
},
|
||||
clearParkingAreaControlFeeInfo: function() {
|
||||
let _machineId = $that.parkingAreaControlFeeInfo.machineId;
|
||||
let _boxId = $that.parkingAreaControlFeeInfo.boxId;
|
||||
|
||||
$that.parkingAreaControlFeeInfo = {
|
||||
carNum: "",
|
||||
@ -82,7 +85,8 @@
|
||||
remark: "",
|
||||
open: "",
|
||||
openMsg: "",
|
||||
machineId: _machineId
|
||||
machineId: _machineId,
|
||||
boxId: _boxId
|
||||
}
|
||||
},
|
||||
_viewQr: function(_data) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user