扫码进来按钮

This commit is contained in:
魏啾
2024-12-27 14:48:26 +08:00
parent 71a8f48e70
commit eddd7b949e
2 changed files with 14 additions and 2 deletions

View File

@@ -213,4 +213,7 @@ export default {
researhqrcode(data) { //查询人脸认证结果
return uni.api.post("hfive/researhqrcode", data);
},
checkqrcodestatus(data) { //检查二维码状态
return uni.api.post("user/checkqrcodestatus", data);
},
}

View File

@@ -94,7 +94,8 @@
<u-icon name="weixin-fill" color="#04be02" size="28"></u-icon>
微信抬头一键导入
</view>
<view class="content_bottom" @click="requestSubscribeMessage">确定</view>
<view class="content_bottom" @click="requestSubscribeMessage"
:style="disabled?'':'background:rgb(219 214 214);color: #666666;'">确定</view>
</view>
</template>
@@ -151,7 +152,6 @@
} else {
this.form.id = e.id
}
// 获取开票抬头
// 这是H5
// #ifdef H5
@@ -163,6 +163,15 @@
this.showtitle = true
this.form.open_id = uni.cache.get('open_id')
// #endif
// 这是状态
let RES = await this.api.checkqrcodestatus({
id: this.form.id
})
if (RES.code == 1) {
this.disabled = true
} else {
this.disabled = false
}
// 开票失败的回显
if (e.view_type == 'fail') {
this.form.view_type = e.view_type;