Commit 6ea11ad9 by 李嘉林

优化核验页面显示

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