优化代码

This commit is contained in:
1098226878@qq.com 2022-01-13 11:46:33 +08:00
parent 644e240592
commit 02da507fb0
5 changed files with 222 additions and 232 deletions

4
app.js
View File

@ -36,8 +36,8 @@ let opts = {
// app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
app.use('/callComponent',proxy('http://owner.homecommunity.cn:8008',opts));
app.use('/app',proxy('http://owner.homecommunity.cn:8008',opts));
app.use('/callComponent',proxy('http://proxy.homecommunity.cn:9011',opts));
app.use('/app',proxy('http://proxy.homecommunity.cn:9011',opts));
// app.use('/callComponent',proxy('http://127.0.0.1:8008',opts));
// app.use('/app',proxy('http://127.0.0.1:8008',opts));

View File

@ -8,7 +8,7 @@
<div>
<div>
<div class="form-group text-center " style="margin-top: 50px;">
<div id="qrcode" style="width:200px; height:200px;margin:0 auto "></div>
<div id="uncode" style="width:200px; height:200px;margin:0 auto "></div>
<div class="margin-top">无牌车进场二维码</div>
</div>
<div class="ibox-content">

View File

@ -12,7 +12,7 @@
}
},
_initMethod: function () {
},
_initEvent: function () {
vc.on('unlicensedCarMachineQrCode', 'open', function (_params) {
@ -21,16 +21,17 @@
// = _params;
vc.copyObject(_params, vc.component.unlicensedCarMachineQrCodeInfo);
vc.component.unlicensedCarMachineQrCodeInfo.communityId = vc.getCurrentCommunity().communityId;
$that._loadUnlicensedCodeUrl();
});
},
methods: {
_loadQrCodeUrl:function(){
_loadUnlicensedCodeUrl:function(){
//判断是否支付
var param = {
params: {
communityId: vc.getCurrentCommunity().communityId,
boxId: $that.parkingAreaControlFeeInfo.boxId,
machineId: $that.parkingAreaControlFeeInfo.machineId,
boxId: $that.unlicensedCarMachineQrCodeInfo.boxId,
machineId: $that.unlicensedCarMachineQrCodeInfo.machineId,
}
};
//发送get请求
@ -45,8 +46,8 @@
);
},
_viewQr: function (_data) {
document.getElementById("qrcode").innerHTML = "";
let qrcode = new QRCode(document.getElementById("qrcode"), {
document.getElementById("uncode").innerHTML = "";
let qrcode = new QRCode(document.getElementById("uncode"), {
text: "无牌车入场二维码", //你想要填写的文本
width: 200, //生成的二维码的宽度
height: 200, //生成的二维码的高度

View File

@ -84,4 +84,5 @@
<vc:create path="property/parkingAreaControlFee"></vc:create>
</div>
<vc:create path="property/parkingAreaControlCustomCarInout"></vc:create>
<vc:create path="property/unlicensedCarMachineQrCode"></vc:create>
</div>

File diff suppressed because it is too large Load Diff