Authored by 陈峰

Merge branch 'feature/limit' into 'gray'

Feature/limit



See merge request !1502
... ... @@ -221,6 +221,13 @@ exports.limit = (req, res, next) => {
}
result.appSrc = appSrc.common;
result.miniPath = helpers.urlFormat('/api/wechat/miniapp.jpg', {
miniapp_type: 4,
param: JSON.stringify({
limitProductCode: productCode,
}),
miniQrType: 11,
});
result.wxshare = {
shareLink: helpers.urlFormat('/product/detail/limit', {code: productCode}),
shareImg: result.banner.replace('//', 'http://'),
... ...
{
"name": "yohobuywap-node",
"version": "6.6.26",
"version": "6.6.27",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -7,4 +7,11 @@ $(function() {
desc: $('#shareDesc').val(),
imgUrl: $('#shareImg').val(),
});
setTimeout(() => {
const $miniAppOpen = $('#mini-app-open');
if ($miniAppOpen[0]) {
$miniAppOpen[0].click();
}
}, 500);
});
... ...