Browse Source

fix:个人中心页面样式修改

chenzhen2 1 year ago
parent
commit
9ccd3bc007

+ 1 - 1
project.private.config.json

@@ -14,7 +14,7 @@
       "list": [
         {
           "name": "",
-          "pathName": "pages/auth/index",
+          "pathName": "pages/bindTenant/index",
           "query": "",
           "launchMode": "default",
           "scene": null

+ 3 - 0
src/packagesEnv/pages/search/index.wpy

@@ -13,6 +13,7 @@ page {
     display: flex;
     position: relative;
     margin: 40rpx auto;
+    margin-top: 0;
     margin-bottom: 32rpx;
     width: 670rpx;
     height: 96rpx;
@@ -296,6 +297,7 @@ import eventHub from '@/common/eventHub';
 import { mapState } from '@wepy/x';
 import store from '@/store';
 import utils from '@/common/utils';
+import { checkHasUserInfo } from '@/service/user.js';
 import { findControllSpace } from '@/packagesEnv/api/mapApi';
 import testMixin from '@/mixins/test';
 
@@ -325,6 +327,7 @@ wepy.page({
     }),
   },
   onLoad() {
+    checkHasUserInfo()
     this.init();
   },
   onReady() {

+ 20 - 1
src/pages/auth/index.wpy

@@ -4,11 +4,14 @@ page {
   height: 100%;
 }
 .auth-box {
+  position: relative;
   box-sizing: border-box;
   padding-top: 136rpx;
   width: 100%;
+  background: #fff;
   height: 100%;
   .login-box {
+    // position: absolute;
     padding-top: 40px;
     .avatar-wrapper {
       position: relative;
@@ -41,6 +44,7 @@ page {
       bottom: 228rpx;
       left: 50%;
       transform: translateX(-50%);
+      z-index: 999;
       .bind-btn {
         width: 548rpx;
         height: 100rpx;
@@ -76,12 +80,25 @@ page {
       border: 1px solid rgba(61, 203, 204, 1);
     }
   }
+  .top {
+    position: absolute;
+    width: 100%;
+    top: 0;
+    z-index: 33;
+  }
+  .bottom {
+    position: absolute;
+    width: 100%;
+    bottom: 0;
+    z-index: 33;
+  }
 }
 </style>
 <template>
-<div class="auth-box" :style="{'background-image': 'url('+h5StaticPath+'/page-home/homeBack.jpg)'}">
+<div class="auth-box">
   <page-top-bar title=" " 
   titleColor="#1B2129"></page-top-bar>
+  <image class="top" src="{{h5StaticPath}}/page-bind-tenant/auth-top.jpg"/>
   <div class="login-box">
     <button class="avatar-wrapper"
       v-if="canIUseGetUserProfile"
@@ -101,6 +118,8 @@ page {
     </div>
     <!-- <button class="home-btn" @click="goHome">首页</button> -->
   </div>
+  <image class="bottom" src="{{h5StaticPath}}/page-bind-tenant/auth-bottom.jpg"/>
+
 </div>
 </template>
 

+ 1 - 1
src/pages/bindTenant/index.wpy

@@ -217,7 +217,7 @@ wepy.page({
           this.selecItem = this.tenantData[0];
         } else {
           wx.showToast({
-            title: '未获得公司服务权限!',
+            title: '您的手机号还未获得公司服务权限!',
             duration: 5000,
             icon: 'none',
           });