提交 7e26e40718a7331c3d1e8ca30d09811c3889a1be

作者 wangyu
1 个父辈 41865f04

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

... ... @@ -37,6 +37,14 @@ Page({
37 37 onresume:true
38 38 })
39 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 249 */
242 250 onShareAppMessage: function() {
243 251
244   - }
  252 + },
  253 +
245 254 })
\ No newline at end of file
... ...
... ... @@ -9,7 +9,20 @@
9 9 "postcss": true,
10 10 "minified": true,
11 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 27 "compileType": "miniprogram",
15 28 "libVersion": "2.4.2",
... ...
注册登录 后发表评论