Commit c277307e by 柳士祥

车牌号细节修复

parent 80835d6b
......@@ -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>{{ companyName }}</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>
......@@ -28,6 +28,7 @@
</template>
<script type="text/ecmascript-6">
import live from "@/api/live";
import index from "@/api/index";
import QRCode from "@/utils/weapp-qrcode.js";
export default {
......@@ -71,12 +72,12 @@ export default {
console.log("---onShow");
this.setScreenBrightness(1);
if (licensePlateNumber && licensePlateNumber.trim().length != 0) {
this.init();
this.getQrCode();
this.TimeOut = null;
this.TimeOut = setInterval(() => {
this.getQrCode();
}, 1000 * 10);
this.init();
} else {
wx.reLaunch({
url: '/pages/wo/fillInformation/main',
......@@ -109,12 +110,16 @@ export default {
wx.showLoading({
title: "加载中...",
});
this.getQrCode()
live.getUserInfo().then((res) => {
if (res.data.ok == "true") {
wx.hideLoading();
}
});
},
getQrCode() {
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);
......
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