Pārlūkot izejas kodu

报告预览页面禁用分享、转发和复制链接操作

htc 6 dienas atpakaļ
vecāks
revīzija
2f7e9f02ce
3 mainītis faili ar 16 papildinājumiem un 2 dzēšanām
  1. 6 2
      pages.json
  2. 5 0
      pagesHome/pdf.vue
  3. 5 0
      pagesHome/pdfZyb.vue

+ 6 - 2
pages.json

@@ -158,13 +158,17 @@
 				{
 				{
 					"path": "pdf",
 					"path": "pdf",
 					"style": {
 					"style": {
-						"navigationStyle": "custom"
+						"navigationStyle": "custom",
+						"enableShareAppMessage": false, // 隐藏右上角菜单中的分享相关选项
+						"enableMenu": false // 关键:隐藏右上角的三个点菜单按钮(微信小程序基础库 2.19.0+ 支持)
 					}
 					}
 				},
 				},
 				{
 				{
 					"path": "pdfZyb",
 					"path": "pdfZyb",
 					"style": {
 					"style": {
-						"navigationStyle": "custom"
+						"navigationStyle": "custom",
+						"enableShareAppMessage": false, // 隐藏右上角菜单中的分享相关选项
+						"enableMenu": false // 关键:隐藏右上角的三个点菜单按钮(微信小程序基础库 2.19.0+ 支持)
 					}
 					}
 				},
 				},
 				{
 				{

+ 5 - 0
pagesHome/pdf.vue

@@ -243,6 +243,11 @@
 		this.reportId = options.reportId;
 		this.reportId = options.reportId;
 		this.getReportData();
 		this.getReportData();
 	},
 	},
+	onReady() {
+		// #ifdef MP-WEIXIN
+			wx.hideShareMenu();
+	    // #endif	
+	},
     mounted() {
     mounted() {
 		this.calculateScaleAndPosition();
 		this.calculateScaleAndPosition();
 		uni.onWindowResize(() => {
 		uni.onWindowResize(() => {

+ 5 - 0
pagesHome/pdfZyb.vue

@@ -303,6 +303,11 @@
 		this.reportId = options.reportId;
 		this.reportId = options.reportId;
 		this.getReportData();
 		this.getReportData();
 	},
 	},
+	onReady() {
+		// #ifdef MP-WEIXIN
+			wx.hideShareMenu();
+	    // #endif	
+	},
     mounted() {
     mounted() {
 		this.calculateScaleAndPosition();
 		this.calculateScaleAndPosition();
 		uni.onWindowResize(() => {
 		uni.onWindowResize(() => {