zhaoxiaohai 3 years ago
parent
commit
49ee54afc3
3 changed files with 36 additions and 0 deletions
  1. 6 0
      pages/portal/index.js
  2. 4 0
      pages/portal/index.wxml
  3. 26 0
      pages/portal/index.wxss

+ 6 - 0
pages/portal/index.js

@@ -295,6 +295,12 @@ Page({
             newProductIndex2: e.detail.current
         })
     },
+    /* 跳转登录 */
+    toLogin() {
+        wx.navigateTo({
+            url: '/pages/login/index',
+        })
+    },
     /**
      * 生命周期函数--监听页面初次渲染完成
      */

+ 4 - 0
pages/portal/index.wxml

@@ -179,4 +179,8 @@
 <!-- 招商图片 -->
 <view class="attract-investment">
     <image src="{{portal_middle_4[0].attinfos[0].fobsurl}}" mode="aspectFill"></image>
+</view>
+<view style="height: 50px;"></view>
+<view class="footer">
+    <van-button custom-class='footer-button' bindtap="toLogin">欢迎登录布万家</van-button>
 </view>

+ 26 - 0
pages/portal/index.wxss

@@ -422,4 +422,30 @@ page {
     font-weight: 500;
     color: #FFFFFF !important;
     padding: 0 !important;
+}
+
+/* 吸底 */
+.footer {
+    display: flex;
+    justify-content: center;
+    position: fixed;
+    width: 100vw;
+    padding: 30rpx 0;
+    background-color: #ffffff;
+    z-index: 9999;
+    bottom: 0;
+    left: 0;
+    box-shadow: 0px -4px 16px 0px rgba(0, 0, 0, 0.05);
+}
+
+.footer-button {
+    width: 356rpx !important;
+    height: 78rpx !important;
+    background: linear-gradient(180deg, #84E3EC 0%, #4DC2D4 100%) !important;
+    box-shadow: 2rpx 2rpx 8rpx 0px rgba(0, 0, 0, 0.12) !important;
+    border-radius: 39rpx;
+    font-size: 36rpx !important;
+    font-family: PingFangSC-Medium, PingFang SC !important;
+    font-weight: 550 !important;
+    color: #FFFFFF;
 }