Authored by 陈峰

Merge branch 'gray' into 'master'

Gray



See merge request !1504
@@ -221,6 +221,13 @@ exports.limit = (req, res, next) => { @@ -221,6 +221,13 @@ exports.limit = (req, res, next) => {
221 } 221 }
222 222
223 result.appSrc = appSrc.common; 223 result.appSrc = appSrc.common;
  224 + result.miniPath = helpers.urlFormat('/api/wechat/miniapp.jpg', {
  225 + miniapp_type: 4,
  226 + param: JSON.stringify({
  227 + limitProductCode: productCode,
  228 + }),
  229 + miniQrType: 11,
  230 + });
224 result.wxshare = { 231 result.wxshare = {
225 shareLink: helpers.urlFormat('/product/detail/limit', {code: productCode}), 232 shareLink: helpers.urlFormat('/product/detail/limit', {code: productCode}),
226 shareImg: result.banner.replace('//', 'http://'), 233 shareImg: result.banner.replace('//', 'http://'),
1 { 1 {
2 "name": "yohobuywap-node", 2 "name": "yohobuywap-node",
3 - "version": "6.6.26", 3 + "version": "6.6.27",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -7,4 +7,11 @@ $(function() { @@ -7,4 +7,11 @@ $(function() {
7 desc: $('#shareDesc').val(), 7 desc: $('#shareDesc').val(),
8 imgUrl: $('#shareImg').val(), 8 imgUrl: $('#shareImg').val(),
9 }); 9 });
  10 + setTimeout(() => {
  11 + const $miniAppOpen = $('#mini-app-open');
  12 +
  13 + if ($miniAppOpen[0]) {
  14 + $miniAppOpen[0].click();
  15 + }
  16 + }, 1000);
10 }); 17 });