...
|
...
|
@@ -59,8 +59,9 @@ Page({ |
|
|
id: options.scene,
|
|
|
type: 2,
|
|
|
})
|
|
|
wx.setStorageSync('s4_id', options.s4_id)
|
|
|
wx.setStorageSync('s4_name', options.s4_name)
|
|
|
|
|
|
// wx.setStorageSync('s4_id', options.s4_id)
|
|
|
// wx.setStorageSync('s4_name', options.s4_name)
|
|
|
} else {
|
|
|
that.setData({
|
|
|
id: options.id,
|
...
|
...
|
@@ -72,6 +73,24 @@ Page({ |
|
|
if (options.s4_name) {
|
|
|
wx.setStorageSync('s4_name', options.s4_name)
|
|
|
}
|
|
|
if(options.is_share){
|
|
|
wx.setStorageSync('is_share', options.is_share)
|
|
|
}
|
|
|
// 改
|
|
|
// if (options.is_share == 1) {
|
|
|
// that.setData({
|
|
|
// is_share: options.is_share,
|
|
|
// id: options.id,
|
|
|
// type: options.type,
|
|
|
// })
|
|
|
// wx.setStorageSync('is_share', options.is_share)
|
|
|
// wx.setStorageSync('s4_id', options.s4_id)
|
|
|
// wx.setStorageSync('s4_name', options.s4_name)
|
|
|
// } else {
|
|
|
// that.setData({
|
|
|
// id: options.id,
|
|
|
// })
|
|
|
// }
|
|
|
}
|
|
|
if (!token) {
|
|
|
wx.showModal({
|
...
|
...
|
@@ -326,7 +345,7 @@ Page({ |
|
|
// 设置菜单中的转发按钮触发转发事件时的转发内容
|
|
|
var shareObj = {
|
|
|
title: "分享", // 默认是小程序的名称(可以写slogan等)
|
|
|
path: '/pages/details/details?id=' + that.data.id + '&type=' + that.data.type + '&s4_id=' + s4_id + '&s4_name=' + s4_name, // 默认是当前页面,必须是以‘/’开头的完整路径
|
|
|
path: '/pages/details/details?id=' + that.data.id + '&type=' + that.data.type + '&s4_id=' + s4_id + '&s4_name=' + s4_name + '&is_share=1', // 默认是当前页面,必须是以‘/’开头的完整路径
|
|
|
imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
|
|
|
success: function (res) {
|
|
|
console.log(res, '转发成功')
|
...
|
...
|
|