浏览代码

取消多余的分享功能

pansl 1 年之前
父节点
当前提交
b113899f0a
共有 5 个文件被更改,包括 12 次插入71 次删除
  1. 3 2
      manifest.json
  2. 0 22
      pages/member/index.vue
  3. 0 32
      pages/video/index.nvue
  4. 0 3
      pages/zhuiju/index.vue
  5. 9 12
      uni_modules/uview-ui/libs/mixin/mpShare.js

+ 3 - 2
manifest.json

@@ -67,12 +67,13 @@
     },
     "quickapp" : {},
     "mp-weixin" : {
-        "appid" : "wx86822355ccd03a78",
+        "appid" : "wxb07a6d6bf08e40d2",
         "lazyCodeLoading" : "requiredComponents", //按需注入
         "setting" : {
             "urlCheck" : false,
             "postcss" : true,
-            "minified" : true
+            "minified" : true,
+            "es6" : true
         },
         "usingComponents" : true,
         "requiredBackgroundModes" : [ "audio" ],

+ 0 - 22
pages/member/index.vue

@@ -149,28 +149,6 @@ export default {
     let res = await getUserInfo();
     this.userinfo = res.data;
   },
-  onShareAppMessage: function (res) {
-    // #ifdef MP-WEIXIN 
-    var href = '/pages/login/login?fxpid=' + this.uid
-    console.log(res)
-    let that = this;
-    const obj = {
-      title: "发送给好友",
-      imageUrl: '',
-      path: href,
-      success: function (res) {
-        console.log(res, "转发成功")
-      },
-      fail: function (res) {
-        wx.showToast({
-          title: '发送失败',
-          icon: 'none'
-        })
-      }
-    }
-    return obj
-    // #endif
-  },
   onShareTimeline(e) {
 
   },

+ 0 - 32
pages/video/index.nvue

@@ -33,16 +33,6 @@
 									<text
 										style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;">{{currentVideoInfo.total_zan}}</text>
 								</view>
-								<!-- 3.分享 -->
-								<!-- <view style="opacity: 0.9; margin-top: 17px;">
-							<image src="@/static/img/video/share-fill.png"
-								style="width: 40px; height: 40px; position: absolute; right: 5px;"></image>
-							<text
-								style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; font-weight: bold; margin-top: 40px;">分享</text>
-							<button open-type="share"
-								style="position: absolute; background: none; width: 100%; height: 100%;"
-								@click.stop="share"></button>
-						</view> -->
 								<!-- 4.追剧 -->
 								<view class="comment" style="opacity: 0.9; margin-top: 17px;">
 									<view v-if="videoInfo.is_binge_watch" @click="unBingewatch">
@@ -363,28 +353,6 @@
 		onShow() {
 
 		},
-		onShareAppMessage: function(res) {
-			// #ifdef MP-WEIXIN
-			var href = '/pages/video/index?video_id=' + this.video_id + "&"
-			console.log(res)
-			let that = this;
-			const obj = {
-				title: "发送给好友",
-				imageUrl: '',
-				path: href,
-				success: function(res) {
-					console.log(res, "转发成功")
-				},
-				fail: function(res) {
-					wx.showToast({
-						title: '发送失败',
-						icon: 'none'
-					})
-				}
-			}
-			return obj
-			// #endif
-		},
 		watch: {
 			activeIndex: {
 				handler(newVal, oldVal) {

+ 0 - 3
pages/zhuiju/index.vue

@@ -96,9 +96,6 @@ export default {
   onPageScroll(e) {
 
   },
-  onShareAppMessage(e) {
-
-  },
   onShareTimeline(e) {
 
   },

+ 9 - 12
uni_modules/uview-ui/libs/mixin/mpShare.js

@@ -1,13 +1,10 @@
 module.exports = {
-    onLoad() {
-        // 设置默认的转发参数
-        uni.$u.mpShare = {
-            title: '', // 默认为小程序名称
-            path: '', // 默认为当前页面路径
-            imageUrl: '' // 默认为当前页面的截图
-        }
-    },
-    onShareAppMessage() {
-        return uni.$u.mpShare
-    }
-}
+  onLoad() {
+    // 设置默认的转发参数
+    uni.$u.mpShare = {
+      title: "", // 默认为小程序名称
+      path: "", // 默认为当前页面路径
+      imageUrl: "", // 默认为当前页面的截图
+    };
+  },
+};