zhaoxiaohai 3 years ago
parent
commit
1e8867f5fb

+ 2 - 1
app.json

@@ -45,7 +45,8 @@
         "pages/storeMessage/select",
         "pages/storeMessage/join",
         "pages/storeMessage/storehomepage",
-        "pages/storeMessage/editor/editor"
+        "pages/storeMessage/editor/editor",
+        "pages/webView/index"
     ],
     "usingComponents": {
         "van-button": "@vant/weapp/button/index",

+ 3 - 2
components/My_liveAccountMsg/index.js

@@ -75,6 +75,7 @@ Component({
                     })
                 }
             })
-        },
-    }
+        }
+    },
+
 })

+ 1 - 3
components/My_liveAccountMsg/index.wxml

@@ -2,9 +2,7 @@
     <!-- 标题和按钮 -->
     <view class="msgBox-title-and-but">
         <view class="msgBox-title">直播账号信息</view>
-        <view class="msgBox-but">
-            <van-button custom-class="custom-class-msgBox-but">一键分享</van-button>
-        </view>
+        <slot wx:if="{{accountMsg.fliveshowurl}}"></slot>
     </view>
     <!-- 直播信息 -->
     <view wx:if="{{accountStatus==1}}" class="account-information">

+ 5 - 1
pages/liveStreaming/index.js

@@ -289,6 +289,10 @@ Page({
    * 用户点击右上角分享
    */
   onShareAppMessage: function () {
-
+    return {
+      title: this.data.accountMsg.channelname,
+      path: "/pages/webView/index?url=" + this.data.accountMsg.fliveshowurl,
+      imageUrl: this.data.accountMsg.channelcoverimageurl
+    }
   }
 })

+ 10 - 2
pages/liveStreaming/index.wxml

@@ -1,9 +1,17 @@
 <view style="height: 14rpx;"></view>
 <My_NavTabs tabsList="{{tabsList}}" tabsIndex="{{tabsIndex}}" bindsetIndex="setIndex" liveDownload="{{true}}" />
 <!-- 私域直播 -->
-<My_liveAccountMsg wx:if="{{tabsIndex==0}}" accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}"></My_liveAccountMsg>
+<My_liveAccountMsg wx:if="{{tabsIndex==0}}" accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}">
+    <view class="msgBox-but">
+        <van-button open-type='share' custom-class="custom-class-msgBox-but">一键分享</van-button>
+    </view>
+</My_liveAccountMsg>
 <!-- 展会直播 -->
-<My_liveAccountMsg wx:else accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}" isSY="{{false}}"></My_liveAccountMsg>
+<My_liveAccountMsg wx:else accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}" isSY="{{false}}">
+    <view class="msgBox-but">
+        <van-button open-type='share' custom-class="custom-class-msgBox-but">一键分享</van-button>
+    </view>
+</My_liveAccountMsg>
 <!-- 数据 -->
 <view wx:if="{{accountStatus==1}}" class="msgBox clearfix" style="white-space:nowrap;">
     <!-- 标题和按钮 -->

+ 10 - 0
pages/liveStreaming/index.wxss

@@ -162,4 +162,14 @@
     background: #F6F7F8 !important;
     border-radius: 4rpx !important;
     border: 0 !important;
+}
+
+/* 一键开播按钮 */
+.custom-class-msgBox-but {
+    width: 116rpx !important;
+    height: 44rpx !important;
+    background: #4DC2D4 !important;
+    border-radius: 22rpx;
+    font-size: 20rpx !important;
+    font-family: PingFangSC-Medium, PingFang SC;
 }

+ 4 - 2
pages/tabbar-pages/home/index.wxml

@@ -46,7 +46,9 @@
         </swiper-item>
     </swiper>
 </My_DisplayBox>
-<view style="height: 50px;"></view>
+<!-- <view style="height: 50px;"></view> -->
 
 <!-- 调用tabbar中的信息查询 -->
-<CusTabBar id="gxshuju"></CusTabBar>
+<block>
+    <CusTabBar id="gxshuju"></CusTabBar>
+</block>

+ 66 - 0
pages/webView/index.js

@@ -0,0 +1,66 @@
+// pages/webView/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 3 - 0
pages/webView/index.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 1 - 0
pages/webView/index.wxml

@@ -0,0 +1 @@
+<web-view src="https://www.buwanjia.com/customer/index.html"></web-view>

+ 1 - 0
pages/webView/index.wxss

@@ -0,0 +1 @@
+/* pages/webView/index.wxss */

+ 7 - 0
project.private.config.json

@@ -170,6 +170,13 @@
                     "name": "",
                     "pathName": "pages/storeMessage/editor/editor",
                     "query": "isDisabled=false",
+                    "launchMode": "default",
+                    "scene": null
+                },
+                {
+                    "name": "",
+                    "pathName": "pages/webView/index",
+                    "query": "",
                     "scene": null,
                     "launchMode": "default"
                 }