Commit 6ea11ad9 by 李嘉林

优化核验页面显示

parent df3e39b9
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<div class="checkBtn flex" @click="toCheck">核验</div> <div class="checkBtn flex" @click="toCheck">核验</div>
</div> </div>
</div> </div>
<div class="userInfo"> <div class="userInfo" v-if="showInfo">
<div class="img"> <div class="img">
<image <image
mode="widthFix" mode="widthFix"
...@@ -47,10 +47,12 @@ ...@@ -47,10 +47,12 @@
<div class="val">云顶大酒店1层</div> <div class="val">云顶大酒店1层</div>
</div> </div>
</div> </div>
<template v-if="showInfo">
<div class="seat"></div> <div class="seat"></div>
<div class="btm flex"> <div class="btm flex">
<div class="btn" @click="confirm">再扫一次</div> <div class="btn" @click="confirm">再扫一次</div>
</div> </div>
</template>
</div> </div>
</template> </template>
...@@ -60,6 +62,7 @@ export default { ...@@ -60,6 +62,7 @@ export default {
data() { data() {
return { return {
checkText: "", checkText: "",
showInfo: false,
}; };
}, },
components: {}, components: {},
...@@ -80,6 +83,7 @@ export default { ...@@ -80,6 +83,7 @@ export default {
title: "加载中...", title: "加载中...",
}); });
setTimeout(() => { setTimeout(() => {
this.showInfo = true;
wx.hideLoading(); wx.hideLoading();
}, 500); }, 500);
}, },
...@@ -96,6 +100,8 @@ export default { ...@@ -96,6 +100,8 @@ export default {
success(res) { success(res) {
console.log(res, "---success"); console.log(res, "---success");
_this.checkText = res.result; _this.checkText = res.result;
// 调接口完成改true 暂时为测试
_this.showInfo = true;
}, },
fail(res) { fail(res) {
wx.showToast({ wx.showToast({
......
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