Commit 7151a473ae7b1c8601a4f3195572a55dad9663f3

Authored by 前端开发-罗建龙
1 parent a1be4992

优化商品分组列表分享

pages/goods/goodsList/goodsList.js
... ... @@ -48,8 +48,9 @@ Page({
48 48  
49 49 onLoad: function(t) {
50 50 //----------商品分组自定义分享图片----------
51   - if (t.gid) {
52   - this.get_share_imgurl(t.gid) //获取分享图片
  51 + if (t.gid || t.group_id) {
  52 + let id = t.gid || t.group_id
  53 + this.get_share_imgurl(id) //获取分享图片
53 54 }
54 55  
55 56 //---------------------end------------
... ...