wangguoyu vor 1 Monat
Ursprung
Commit
e9aa692938
2 geänderte Dateien mit 58 neuen und 28 gelöschten Zeilen
  1. 31 1
      pages/admin/Hetong/sanfangHetong.vue
  2. 27 27
      pages/admin/my/index.vue

+ 31 - 1
pages/admin/Hetong/sanfangHetong.vue

@@ -45,7 +45,7 @@
 									<view @click="handleDelete(item)" class="del-btn-box">
 										<icon class="del-btn"></icon>
 									</view>
-									<button type="default" class="phone-green-btn ht-head-btn">推送</button>
+									<button type="default" class="phone-green-btn ht-head-btn" @click="tuisong">推送</button>
 									<button type="default" class="phone-green-btn ht-head-btn"
 										@click.stop="handlePreview(item)">预览</button>
 									<button type="default" class="phone-white-btn ht-head-btn"
@@ -163,6 +163,36 @@
 		searchDialogRef.value.handleShow();
 	}
 
+	function tuisong(){
+		
+		if (!plus.runtime.isApplicationExist({
+				pname: 'com.tencent.mm'
+			})) {
+			uni.showToast({
+				title: '请先安装微信',
+				icon: 'none'
+			});
+			return;
+		}
+		
+		// 分享到小程序  我想加个参数  
+		uni.share({
+		    provider: 'weixin',
+		    scene: "WXSceneSession",
+		    type: 5,
+		    imageUrl: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/share-logo@3.png',
+		    title: '欢迎体验uniapp12312',
+		    miniProgram: {
+		        id: 'gh_fa5889151e7d',
+		        path: 'pages/Login/clientIndex?from=appcx',
+		        type: 2,
+		        webUrl: 'http://uniapp.dcloud.io'
+		    },
+		    success: ret => {
+		        console.log(JSON.stringify(ret));
+		    }
+		});
+	}
 	function goUpPage() {
 		uni.redirectTo({
 			url: '/pages/admin/ShouYe/shouye'

+ 27 - 27
pages/admin/my/index.vue

@@ -144,35 +144,35 @@
 	}
 
 	function ewmBtn() {
-		//imageDialogRef.value.handleShow();
+		imageDialogRef.value.handleShow();
 
-		if (!plus.runtime.isApplicationExist({
-				pname: 'com.tencent.mm'
-			})) {
-			uni.showToast({
-				title: '请先安装微信',
-				icon: 'none'
-			});
-			return;
-		}
+		// if (!plus.runtime.isApplicationExist({
+		// 		pname: 'com.tencent.mm'
+		// 	})) {
+		// 	uni.showToast({
+		// 		title: '请先安装微信',
+		// 		icon: 'none'
+		// 	});
+		// 	return;
+		// }
 		
-		// 分享到小程序  我想加个参数  
-		uni.share({
-		    provider: 'weixin',
-		    scene: "WXSceneSession",
-		    type: 5,
-		    imageUrl: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/share-logo@3.png',
-		    title: '欢迎体验uniapp12312',
-		    miniProgram: {
-		        id: 'gh_fa5889151e7d',
-		        path: 'pages/Login/clientIndex?from=appcx',
-		        type: 2,
-		        webUrl: 'http://uniapp.dcloud.io'
-		    },
-		    success: ret => {
-		        console.log(JSON.stringify(ret));
-		    }
-		});
+		// // 分享到小程序  我想加个参数  
+		// uni.share({
+		//     provider: 'weixin',
+		//     scene: "WXSceneSession",
+		//     type: 5,
+		//     imageUrl: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/share-logo@3.png',
+		//     title: '欢迎体验uniapp12312',
+		//     miniProgram: {
+		//         id: 'gh_fa5889151e7d',
+		//         path: 'pages/Login/clientIndex?from=appcx',
+		//         type: 2,
+		//         webUrl: 'http://uniapp.dcloud.io'
+		//     },
+		//     success: ret => {
+		//         console.log(JSON.stringify(ret));
+		//     }
+		// });
 		// // #ifdef APP-HARMONY
 		// uniShare(['https://img-cdn-aliyun.dcloud.net.cn/stream/icon/__UNI__HelloUniApp.png'])
 		// // #endif