mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
644e240592
commit
02da507fb0
4
app.js
4
app.js
@ -36,8 +36,8 @@ let opts = {
|
|||||||
// app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
// app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||||
|
|
||||||
|
|
||||||
app.use('/callComponent',proxy('http://owner.homecommunity.cn:8008',opts));
|
app.use('/callComponent',proxy('http://proxy.homecommunity.cn:9011',opts));
|
||||||
app.use('/app',proxy('http://owner.homecommunity.cn:8008',opts));
|
app.use('/app',proxy('http://proxy.homecommunity.cn:9011',opts));
|
||||||
|
|
||||||
// app.use('/callComponent',proxy('http://127.0.0.1:8008',opts));
|
// app.use('/callComponent',proxy('http://127.0.0.1:8008',opts));
|
||||||
// app.use('/app',proxy('http://127.0.0.1:8008',opts));
|
// app.use('/app',proxy('http://127.0.0.1:8008',opts));
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<div class="form-group text-center " style="margin-top: 50px;">
|
<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 class="margin-top">无牌车进场二维码</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ibox-content">
|
<div class="ibox-content">
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function () {
|
||||||
|
|
||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function () {
|
||||||
vc.on('unlicensedCarMachineQrCode', 'open', function (_params) {
|
vc.on('unlicensedCarMachineQrCode', 'open', function (_params) {
|
||||||
@ -21,16 +21,17 @@
|
|||||||
// = _params;
|
// = _params;
|
||||||
vc.copyObject(_params, vc.component.unlicensedCarMachineQrCodeInfo);
|
vc.copyObject(_params, vc.component.unlicensedCarMachineQrCodeInfo);
|
||||||
vc.component.unlicensedCarMachineQrCodeInfo.communityId = vc.getCurrentCommunity().communityId;
|
vc.component.unlicensedCarMachineQrCodeInfo.communityId = vc.getCurrentCommunity().communityId;
|
||||||
|
$that._loadUnlicensedCodeUrl();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
_loadQrCodeUrl:function(){
|
_loadUnlicensedCodeUrl:function(){
|
||||||
//判断是否支付
|
//判断是否支付
|
||||||
var param = {
|
var param = {
|
||||||
params: {
|
params: {
|
||||||
communityId: vc.getCurrentCommunity().communityId,
|
communityId: vc.getCurrentCommunity().communityId,
|
||||||
boxId: $that.parkingAreaControlFeeInfo.boxId,
|
boxId: $that.unlicensedCarMachineQrCodeInfo.boxId,
|
||||||
machineId: $that.parkingAreaControlFeeInfo.machineId,
|
machineId: $that.unlicensedCarMachineQrCodeInfo.machineId,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//发送get请求
|
//发送get请求
|
||||||
@ -45,8 +46,8 @@
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
_viewQr: function (_data) {
|
_viewQr: function (_data) {
|
||||||
document.getElementById("qrcode").innerHTML = "";
|
document.getElementById("uncode").innerHTML = "";
|
||||||
let qrcode = new QRCode(document.getElementById("qrcode"), {
|
let qrcode = new QRCode(document.getElementById("uncode"), {
|
||||||
text: "无牌车入场二维码", //你想要填写的文本
|
text: "无牌车入场二维码", //你想要填写的文本
|
||||||
width: 200, //生成的二维码的宽度
|
width: 200, //生成的二维码的宽度
|
||||||
height: 200, //生成的二维码的高度
|
height: 200, //生成的二维码的高度
|
||||||
|
|||||||
@ -84,4 +84,5 @@
|
|||||||
<vc:create path="property/parkingAreaControlFee"></vc:create>
|
<vc:create path="property/parkingAreaControlFee"></vc:create>
|
||||||
</div>
|
</div>
|
||||||
<vc:create path="property/parkingAreaControlCustomCarInout"></vc:create>
|
<vc:create path="property/parkingAreaControlCustomCarInout"></vc:create>
|
||||||
|
<vc:create path="property/unlicensedCarMachineQrCode"></vc:create>
|
||||||
</div>
|
</div>
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user