Commit 583f8625 by 柳士祥

系统

parent 3b18aa78
......@@ -80,6 +80,7 @@ export default {
console.log(res);
},
fail(res) {
console.log(res);
wx.showModal({
title: '提示',
content: '系统繁忙,请稍后重试'
......
......@@ -10,8 +10,8 @@
<div class="img">
<image mode="widthFix" src="http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/png/9462ce53-792c-4607-ab7c-1875bed2d3ba.png" alt=""></image>
</div>
<p>{{ userInfo.company }}</p>
</div>
<div style="margin:8px 0;">{{companyName}}</div>
<div class="userImg">
<image mode="aspectFill" src="http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/png/22b4fd78-49c6-4596-86a0-5974f46a3805.png" alt=""></image>
</div>
......@@ -39,9 +39,9 @@ export default {
TimeOut: "",
qrCode: "",
qrCodeImg: "",
userInfo: {},
currentBrightness: 0,
licensePlateNumber:''
licensePlateNumber: '',
companyName:''
};
},
components: {},
......@@ -56,27 +56,27 @@ export default {
onShow() {
let licensePlateNumber = wx.getStorageSync('licensePlateNumber');
this.licensePlateNumber = licensePlateNumber
console.log('licensePlateNumber',licensePlateNumber);
console.log('licensePlateNumber', licensePlateNumber);
let _this = this;
wx.getScreenBrightness({
success: (res) => {
console.log('res.value', res.value);
_this.currentBrightness = res.value
},
fail: (res) => {
console.log(res, '-------getScreenBrightness--fail')
}
});
console.log(this.currentBrightness, '---currentBrightness');
console.log("---onShow");
this.setScreenBrightness(1);
if (licensePlateNumber && licensePlateNumber.trim().length != 0) {
let _this = this;
wx.getScreenBrightness({
success: (res) => {
console.log('res.value',res.value);
_this.currentBrightness = res.value
},
fail: (res) => {
console.log(res, '-------getScreenBrightness--fail')
}
});
console.log(this.currentBrightness, '---currentBrightness');
console.log("---onShow");
this.setScreenBrightness(1);
this.getQrCode();
this.init();
this.TimeOut = null;
this.TimeOut = setInterval(() => {
this.getQrCode();
}, 1000 * 10);
this.init();
} else {
wx.reLaunch({
url: '/pages/wo/fillInformation/main',
......@@ -96,7 +96,7 @@ export default {
methods: {
setScreenBrightness(val = 0.7) {
if (wx.setScreenBrightness) {
console.log('微信版本111',val)
console.log('微信版本111', val)
//设置屏幕亮度 参数值:0-1,越大越亮
wx.setScreenBrightness({
value: val
......@@ -109,20 +109,16 @@ export default {
wx.showLoading({
title: "加载中...",
});
index.getVehicleNumber().then((res) => {
wx.hideLoading();
if (res.data.ok == "true") {
console.log(res.data);
this.userInfo = res.data.data;
}
});
this.getQrCode()
},
getQrCode() {
index.generatorUniqueCodeByDynamic(this.licensePlateNumber).then((res) => {
index.getVehicleNumber(this.licensePlateNumber).then((res) => {
if (res.data.ok == "true") {
wx.hideLoading()
this.qrCode = res.data.data.uniqueCode;
this.updateTime = res.data.data.createDatetime;
console.log(res.data.data.vehicleInfoResponseDTO);
this.companyName = res.data.data.vehicleInfoResponseDTO.companyName
this.getQrcodeImg();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment