mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-30 10:59:47 +08:00
小程序优化
This commit is contained in:
parent
2774d9b71a
commit
768a687b13
@ -740,10 +740,12 @@ Page({
|
||||
|
||||
// 自定义分享
|
||||
onShareAppMessage() {
|
||||
var user = app.get_user_info(this, 'onShareAppMessage') || null;
|
||||
var user_id = (user != null && (user.id || null) != null) ? user.id : 0;
|
||||
return {
|
||||
title: app.data.application_title +'-'+ this.data.goods.title,
|
||||
desc: app.data.application_describe,
|
||||
path: '/pages/goods-detail/goods-detail?share=goods-detail&goods_id='+this.data.goods.id
|
||||
path: '/pages/goods-detail/goods-detail?goods_id='+this.data.goods.id +'&referrer='+user_id
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -647,10 +647,12 @@ Page({
|
||||
|
||||
// 自定义分享
|
||||
onShareAppMessage() {
|
||||
var user = app.get_user_cache_info(this, 'onShareAppMessage') || null;
|
||||
var user_id = (user != null && (user.id || null) != null) ? user.id : 0;
|
||||
return {
|
||||
title: app.data.application_title + '-' + this.data.goods.title,
|
||||
desc: app.data.application_describe,
|
||||
path: '/pages/goods-detail/goods-detail?share=goods-detail&goods_id=' + this.data.goods.id
|
||||
path: '/pages/goods-detail/goods-detail?goods_id=' +this.data.goods.id +'&referrer='+user_id
|
||||
};
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user