hookehuyr

fix

......@@ -2,7 +2,8 @@
VITE_BASE = /
# 测试open-id
VITE_OPENID = api-test-openid
# VITE_OPENID = api-test-openid
VITE_OPENID = o8BRf1gLDWieH3Y3JvbrI_4IjaME
# B端账号
VITE_ID = 13761653761
......
<template>
<div class="video-wrapper" style="position: relative;">
<!-- FIXME: 反馈意见:需要更改图片 -->
<div v-if="mp && detail.showStatus" class="status">
<van-image v-if="item.status === 'ENABLE'" round width="6rem" height="6rem" style="vertical-align: bottom;" :src="icon_enable" />
<van-image v-if="item.status === 'DISABLE'" round width="6rem" height="6rem" style="vertical-align: bottom;" :src="icon_refuse" />
......
......@@ -50,17 +50,18 @@ function hasScrollbar() {
return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight);
}
// onMounted(() => {
// 因为微信第一次进入默认全屏,之后产生的导航栏会影响位置
// if (hasScrollbar()) {
// if (wxInfo().isiOS || wxInfo().isAndroid) {
// location.reload()
// $router.go(0)
// }
// }
// 背景颜色全屏
// $('.client-index-page').height($(document).height());
// })
onMounted(() => {
// 判断微信授权状态,进入页面时未授权需要授权跳转
if (!Cookies.get('PHPSESSID')) {
$router.replace({
path: '/auth',
query: {
href: location.hash,
userType: 'c'
}
});
}
})
// 自定义按钮颜色样式
const styleObject1 = reactive({
......
......@@ -16,7 +16,7 @@
:rules="[{ validator, message: '请输入正确手机号' }]" />
</div>
<div class="van-hairline--bottom">
<van-field v-model="pin" center clearable name="pin" label="短信验证码" placeholder="请输入短信验证码"
<van-field v-model="pin" center clearable name="pin" type="digit" label="短信验证码" placeholder="请输入短信验证码"
:formatter="formatter" :rules="[{ required: true, message: '请填写验证码' }]">
<template #button>
<van-button @click="sendCode" size="small" type="primary" :disabled="disabled">
......