|
@@ -243,18 +243,20 @@ define(['$', 'template', 'product', 'cart', 'api', 'order', 'user', 'config', 'r
|
|
dtd.resolve();
|
|
dtd.resolve();
|
|
},
|
|
},
|
|
afteropen: function (pageData, dtd) {
|
|
afteropen: function (pageData, dtd) {
|
|
|
|
+ dtd.resolve();
|
|
|
|
+ var type = pageData.pushData.type;
|
|
if (config.isWX) {
|
|
if (config.isWX) {
|
|
wx.ready(function () {
|
|
wx.ready(function () {
|
|
wx.onMenuShareTimeline({
|
|
wx.onMenuShareTimeline({
|
|
- title: '家政服务' + cachePageData.product.desc[1].content + ',首选壹管家',
|
|
|
|
|
|
+ title: '家政服务' + product.getWXShare(type).name + ',首选壹管家',
|
|
link: 'http://www.yiguanjia.me/o2o/web/index',
|
|
link: 'http://www.yiguanjia.me/o2o/web/index',
|
|
- imgUrl: cachePageData.product.desc[0].content
|
|
|
|
|
|
+ imgUrl: product.getWXShare(type).className
|
|
});
|
|
});
|
|
wx.onMenuShareAppMessage({
|
|
wx.onMenuShareAppMessage({
|
|
- title: '家政服务' + cachePageData.product.desc[1].content + ',首选壹管家',
|
|
|
|
- desc: '全程管家,精心每一个细节',
|
|
|
|
|
|
+ title: '家政服务' + product.getWXShare(type).name + ',首选壹管家',
|
|
|
|
+ desc: '全程管家,精心没一个细节',
|
|
link: 'http://www.yiguanjia.me/o2o/web/index',
|
|
link: 'http://www.yiguanjia.me/o2o/web/index',
|
|
- imgUrl: cachePageData.product.desc[0].content
|
|
|
|
|
|
+ imgUrl: product.getWXShare(type).className
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|