Przeglądaj źródła

员工页面头部文字处理

kk.shi 3 lat temu
rodzic
commit
94317297d3

+ 7 - 1
pages/welfareMall/staff/noStaff.js

@@ -62,5 +62,11 @@ Page({
    */
   onShareAppMessage: function () {
 
-  }
+  },
+  handlePageSizes(e) {
+    console.log(e)
+    this.setData({
+      bodyImageHeight: e.detail.bodyImageHeight
+    })
+}
 })

+ 2 - 2
pages/welfareMall/staff/noStaff.wxml

@@ -1,9 +1,9 @@
 <!--pages/welfareMall/staff/noStaff.wxml-->
 <page-wrap id="Page">
-  <custom-page head-bg-image="https://dy.shpr.top/welfareGo/staffbg.png">
+  <custom-page head-bg-image="https://dy.shpr.top/welfareGo/staffbg.png" bind:sizes="handlePageSizes">
     <topbar slot="head" title="" back-color="" title-color="" />
     <view slot="body" class="sign-scroll-body">
-      <view class="noStaff-head flex-column">
+      <view class="noStaff-head flex-column" style="height: {{bodyImageHeight}}px;">
         <image wx:if="{{!isLogin}}" class="head-noStaff-logo" src="/images/welfareMall/staff-logo.png" />
           <!-- 获取用户头像 -->
           <open-data wx:if="{{isLogin}}" class="head-noStaff-logo" type="userAvatarUrl"></open-data>

+ 1 - 1
pages/welfareMall/staff/noStaff.wxss

@@ -35,8 +35,8 @@ page{
 }
 
 .head-text{
-  height: 40rpx;
   font-size: 36rpx;
   font-weight: 500;
   color: #F6C6A3;
+  margin-bottom: 34rpx;
 }