Browse Source

首页引入公众号组件

ZhangWenQiang 6 years atrás
parent
commit
6876c3c158
2 changed files with 17 additions and 2 deletions
  1. 5 1
      pages/index/index.wxml
  2. 12 1
      pages/index/index.wxss

+ 5 - 1
pages/index/index.wxml

@@ -228,4 +228,8 @@
 </view>
 <view class="loading_no" hidden='{{isScroll}}'>{{showNoMore}}</view>
 <!-- 客服 -->
-<button id="kefu" open-type="contact" bindcontact="handleContact" hover-class='kefu-hover'></button>
+<button id="kefu" open-type="contact" bindcontact="handleContact" hover-class='kefu-hover'></button>
+<!-- 公众号组件 -->
+<view class='office'>
+  <official-account></official-account>
+</view>

+ 12 - 1
pages/index/index.wxss

@@ -485,7 +485,7 @@
 
 #kefu {
   position: fixed;
-  bottom: 60rpx;
+  bottom: 90rpx;
   right: 30rpx;
   width: 124rpx;
   height: 124rpx;
@@ -512,3 +512,14 @@
   background-color: #f5f5f5;
   color: #696969;
 }
+
+/* 公众号组件 */
+
+.office {
+  display: flex;
+  position: fixed;
+  bottom: 20rpx;
+  width: 100%;
+  justify-content: center;
+  align-items: center;
+}