Authored by 邱骏

分享

... ... @@ -57,7 +57,7 @@ Page({
referer: referer
});
}
if (options.login !== undefined) {
if (options.login || options.login === 0) {
this.setData({
needBind: (options.login === '0' || !options.login) ? 0 : true
});
... ...
... ... @@ -39,6 +39,12 @@ Page({
data: {
userInfo: {}, // 用户信息
activityInfo: {}, // 活动信息
shareInfo: {
default_image: '',
product_name: '',
product_qrCode: '',
product_skn: ''
},
test_uid: [349709, // 测试用
500030924,
500030922,
... ... @@ -129,8 +135,11 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
onShow: function(options) {
setTimeout(this.hidePopup, 4000);
this.setData({
shareInfo: Object.assign(this.data.shareInfo, options)
});
},
/**
... ...
... ... @@ -23,6 +23,12 @@ Page(Object.assign({
data: {
actId: 0,
userInfo: {}, // 用户信息
shareInfo: {
default_image: '',
product_name: '',
product_qrCode: '',
product_skn: ''
},
bgStyle: [ // 排队图片
'../../static/images/limit/queue_bg_1.png',
'../../static/images/limit/queue_bg_2.png',
... ... @@ -75,7 +81,11 @@ Page(Object.assign({
actId: actId
});
this.getQueueList(actId);
this.setData({
shareInfo: Object.assign(this.data.shareInfo, options)
});
}
},
/**
... ... @@ -88,7 +98,8 @@ Page(Object.assign({
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
onShow: function(options) {
console.log(options);
if (app.getUid()) {
this.setData({
hideInviteButton: 0
... ... @@ -131,7 +142,7 @@ Page(Object.assign({
let params = {
FROM: res.from,
SHARE_RESUIL: 0,
TITLE: this.data.productName,
TITLE: this.data.shareInfo.product_name,
DESC: '我在有货限定频道发现一个不错的商品赶快来看看吧!',
PATH: `/pages/product/detail/detail?limitProductCode=${this.data.limitProductCode}&originUid=${app.getUid()}`,
};
... ...
... ... @@ -33,7 +33,7 @@
"list": []
},
"miniprogram": {
"current": 4,
"current": 0,
"list": [
{
"id": 0,
... ...