...
|
...
|
@@ -515,17 +515,29 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
* @returns {*}
|
|
|
*/
|
|
|
sendWechatMessage(uid, actPrizeId, extra = {}) {
|
|
|
let info = {};
|
|
|
let baseUri = 'page/subPackage/pages/zeroSell/detail';
|
|
|
|
|
|
switch (+extra.miniAppType) {
|
|
|
case 29:
|
|
|
info.miniAppType = extra.miniAppType;
|
|
|
baseUri = 'pages/zeroSell/detail';
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
return this.get({
|
|
|
data: {
|
|
|
data: Object.assign({
|
|
|
method: 'wechat.message.send',
|
|
|
sendScene: 'MINI_ACTIVITY_JOIN',
|
|
|
params: JSON.stringify({
|
|
|
activityTitle: extra.actName,
|
|
|
activityTime: `${timeFormat(extra.actStartTime)} - ${timeFormat(extra.actEndTime)}`,
|
|
|
pageUrl: 'page/subPackage/pages/zeroSell/detail?actPrizeId=' + actPrizeId
|
|
|
pageUrl: `${baseUri}?actPrizeId=${actPrizeId}`
|
|
|
}),
|
|
|
uidList: [uid]
|
|
|
}
|
|
|
}, info)
|
|
|
});
|
|
|
}
|
|
|
}; |
...
|
...
|
|