赞
踩
【share.js】:
- const app = getApp();
- var shareTicket,that, sessionKey, encryptedData;
- Page({
- data: {
-
- },
- onShow: function() {
- that = this;
- var p = new Promise(that.toLogin).then((val) => {
- console.log('成功回调的结果', val);
- sessionKey = val;
- })
- },
- onLoad: function(options) {
- console.log('onLoad=======获取返回的shareTicket', options, app.shareTicket)
- shareTicket = app.shareTicket;
- /*
- * withShareTicket:true
- * 被打开的时候,可以获取一些信息,例如:群标识
- * onLaunch / onShow 获取到shareTicket
- */
- wx.showShareMenu({
- withShareTicket: true,
- success: (res) => {
- console.log('showShareMenu----onload---success', res);
- },
- fail: () => {
- console.log('fail&
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。