|
|
@@ -1,5 +1,8 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
+ <!-- #ifdef MP-WEIXIN -->
|
|
|
+ <official-account class="relevance"></official-account>
|
|
|
+ <!-- #endif -->
|
|
|
<image class="logo" src="/static/bg-home.jpg" mode="widthFix"></image>
|
|
|
<view class="getPhone-box" :style="{ bottom: bottomCss}">
|
|
|
<button type="primary" class="custom-btn" open-type="getPhoneNumber" style="margin-right: 5%!important;"
|
|
|
@@ -29,11 +32,11 @@
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.getEquipmentHeight();
|
|
|
- this.loginRequest();
|
|
|
console.log('onload')
|
|
|
// getApp().globalData.lastId = options.scene ? options.scene : getApp().globalData.user_id
|
|
|
},
|
|
|
onShow() {
|
|
|
+ this.loginRequest();
|
|
|
console.log('onshow')
|
|
|
},
|
|
|
onShareAppMessage() {
|
|
|
@@ -105,6 +108,7 @@
|
|
|
});
|
|
|
},
|
|
|
judgeUserType(type,pass){
|
|
|
+ console.log(type,pass)
|
|
|
switch (true){
|
|
|
case type === 3: //需要授权
|
|
|
console.log(type,pass)
|
|
|
@@ -125,7 +129,7 @@
|
|
|
complete: () => {}
|
|
|
})
|
|
|
break;
|
|
|
- case type === (1 || 2) && pass === -1: //禁止入场
|
|
|
+ case pass === -1: //禁止入场
|
|
|
uni.redirectTo({
|
|
|
url: '/pages/index/failPage/index', //失败页面
|
|
|
success: res => {},
|
|
|
@@ -191,7 +195,15 @@
|
|
|
// background-repeat: no-repeat;
|
|
|
// background-size: 100% 100%;
|
|
|
}
|
|
|
-
|
|
|
+ /* #ifdef MP-WEIXIN */
|
|
|
+ .relevance {
|
|
|
+ width: 100%;
|
|
|
+ height: 60px;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ z-index: 999;
|
|
|
+ }
|
|
|
+ /* #endif */
|
|
|
.logo {
|
|
|
width: 100%;
|
|
|
position: relative;
|