提交 7e26e40718a7331c3d1e8ca30d09811c3889a1be

作者 wangyu
1 个父辈 41865f04

首页新增分享到朋友圈的功能

@@ -37,6 +37,14 @@ Page({ @@ -37,6 +37,14 @@ Page({
37 onresume:true 37 onresume:true
38 }) 38 })
39 this.checkUserInfo("") 39 this.checkUserInfo("")
  40 +
  41 + wx.showShareMenu({//分享到朋友圈
  42 + withShareTicket: true,
  43 + menus: ['shareAppMessage', 'shareTimeline'],
  44 + complete: (res) => {
  45 + console.log("res---",res)
  46 + },
  47 + })
40 }, 48 },
41 49
42 //判断该雇员是否有姓名和身份证号 50 //判断该雇员是否有姓名和身份证号
@@ -241,5 +249,6 @@ Page({ @@ -241,5 +249,6 @@ Page({
241 */ 249 */
242 onShareAppMessage: function() { 250 onShareAppMessage: function() {
243 251
244 - } 252 + },
  253 +
245 }) 254 })
@@ -9,7 +9,20 @@ @@ -9,7 +9,20 @@
9 "postcss": true, 9 "postcss": true,
10 "minified": true, 10 "minified": true,
11 "newFeature": true, 11 "newFeature": true,
12 - "checkInvalidKey": true 12 + "coverView": true,
  13 + "autoAudits": false,
  14 + "showShadowRootInWxmlPanel": true,
  15 + "scopeDataCheck": false,
  16 + "checkInvalidKey": true,
  17 + "checkSiteMap": true,
  18 + "uploadWithSourceMap": true,
  19 + "babelSetting": {
  20 + "ignore": [],
  21 + "disablePlugins": [],
  22 + "outputPath": ""
  23 + },
  24 + "useCompilerModule": true,
  25 + "userConfirmedUseCompilerModuleSwitch": false
13 }, 26 },
14 "compileType": "miniprogram", 27 "compileType": "miniprogram",
15 "libVersion": "2.4.2", 28 "libVersion": "2.4.2",
注册登录 后发表评论