Commit c277307e by 柳士祥

车牌号细节修复

parent 80835d6b
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<div class="img"> <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> <image mode="widthFix" src="http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/png/9462ce53-792c-4607-ab7c-1875bed2d3ba.png" alt=""></image>
</div> </div>
<p>{{ companyName }}</p>
</div> </div>
<div style="margin:8px 0;">{{companyName}}</div>
<div class="userImg"> <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> <image mode="aspectFill" src="http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/png/22b4fd78-49c6-4596-86a0-5974f46a3805.png" alt=""></image>
</div> </div>
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import live from "@/api/live";
import index from "@/api/index"; import index from "@/api/index";
import QRCode from "@/utils/weapp-qrcode.js"; import QRCode from "@/utils/weapp-qrcode.js";
export default { export default {
...@@ -71,12 +72,12 @@ export default { ...@@ -71,12 +72,12 @@ export default {
console.log("---onShow"); console.log("---onShow");
this.setScreenBrightness(1); this.setScreenBrightness(1);
if (licensePlateNumber && licensePlateNumber.trim().length != 0) { if (licensePlateNumber && licensePlateNumber.trim().length != 0) {
this.init(); this.getQrCode();
this.TimeOut = null; this.TimeOut = null;
this.TimeOut = setInterval(() => { this.TimeOut = setInterval(() => {
this.getQrCode(); this.getQrCode();
}, 1000 * 10); }, 1000 * 10);
this.init();
} else { } else {
wx.reLaunch({ wx.reLaunch({
url: '/pages/wo/fillInformation/main', url: '/pages/wo/fillInformation/main',
...@@ -109,12 +110,16 @@ export default { ...@@ -109,12 +110,16 @@ export default {
wx.showLoading({ wx.showLoading({
title: "加载中...", title: "加载中...",
}); });
this.getQrCode() live.getUserInfo().then((res) => {
if (res.data.ok == "true") {
wx.hideLoading();
}
});
}, },
getQrCode() { getQrCode() {
index.getVehicleNumber(this.licensePlateNumber).then((res) => { index.getVehicleNumber(this.licensePlateNumber).then((res) => {
if (res.data.ok == "true") { if (res.data.ok == "true") {
wx.hideLoading()
this.qrCode = res.data.data.uniqueCode; this.qrCode = res.data.data.uniqueCode;
this.updateTime = res.data.data.createDatetime; this.updateTime = res.data.data.createDatetime;
console.log(res.data.data.vehicleInfoResponseDTO); 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