Commit 483791f06e58c938386eec798689ee5c235f7321
1 parent
ecc4e5fa
预售简版的海报 的显示完成
Showing
1 changed file
with
13 additions
and
13 deletions
packageC/pages/presell/goodsInfo/goodsInfo.js
| @@ -311,7 +311,7 @@ Page({ | @@ -311,7 +311,7 @@ Page({ | ||
| 311 | } | 311 | } |
| 312 | //-- 如果有room_id的获取 -- | 312 | //-- 如果有room_id的获取 -- |
| 313 | if (gid_str.length > 2 && gid_str[3]) { | 313 | if (gid_str.length > 2 && gid_str[3]) { |
| 314 | - room_id = gid_str[2]; | 314 | + room_id = gid_str[3]; |
| 315 | room_user_share = 1; | 315 | room_user_share = 1; |
| 316 | } | 316 | } |
| 317 | } | 317 | } |
| @@ -2774,6 +2774,7 @@ Page({ | @@ -2774,6 +2774,7 @@ Page({ | ||
| 2774 | this.saveImageToPhotosAlbumDef() | 2774 | this.saveImageToPhotosAlbumDef() |
| 2775 | } | 2775 | } |
| 2776 | }, | 2776 | }, |
| 2777 | + | ||
| 2777 | //--定义的保存图片方法,分享团--- | 2778 | //--定义的保存图片方法,分享团--- |
| 2778 | saveImageToPhotosAlbum: function () { | 2779 | saveImageToPhotosAlbum: function () { |
| 2779 | //--先判断会员状态-- | 2780 | //--先判断会员状态-- |
| @@ -3138,19 +3139,18 @@ Page({ | @@ -3138,19 +3139,18 @@ Page({ | ||
| 3138 | var app = getApp(); | 3139 | var app = getApp(); |
| 3139 | var unit = that.data.screenWidth / 750 * 1.35; //基础单位, | 3140 | var unit = that.data.screenWidth / 750 * 1.35; //基础单位, |
| 3140 | var path2 = that.data.data.original_img; | 3141 | var path2 = that.data.data.original_img; |
| 3141 | - var scene = th.data.gid + ""; | ||
| 3142 | - scene += "." + th.data.sele_g.prom_type + "." + th.data.sele_g.prom_id; | ||
| 3143 | 3142 | ||
| 3144 | - var user_id = getApp().globalData.user_id ? getApp().globalData.user_id : 0; | ||
| 3145 | - if (user_id > 0) { | ||
| 3146 | - scene += "_" + user_id; | ||
| 3147 | - } | ||
| 3148 | - //-- 如果不是会员分享过来的要分享给别人 -- | ||
| 3149 | - if (getApp().globalData.room_id && th.data.data.goods_id == getApp().globalData.room_goods_id && !getApp().globalData.room_user_share) { | ||
| 3150 | - //固定房间是第3个字符 | ||
| 3151 | - if (!user_id) scene += "_0"; | ||
| 3152 | - scene += "_" + getApp().globalData.room_id; | ||
| 3153 | - } | 3143 | + var scene = th.data.gid + "_"+th.data.presellList.id; |
| 3144 | + var user_id = getApp().globalData.user_id ? getApp().globalData.user_id : 0; | ||
| 3145 | + if (user_id > 0) { | ||
| 3146 | + scene += "_" + user_id; | ||
| 3147 | + } | ||
| 3148 | + //-- 如果不是会员分享过来的要分享给别人 -- | ||
| 3149 | + if (getApp().globalData.room_id && th.data.data.goods_id == getApp().globalData.room_goods_id && !getApp().globalData.room_user_share) { | ||
| 3150 | + //固定房间是第3个字符 | ||
| 3151 | + if (!user_id) scene += "_0"; | ||
| 3152 | + scene += "_" + getApp().globalData.room_id; | ||
| 3153 | + } | ||
| 3154 | 3154 | ||
| 3155 | ///二微码 | 3155 | ///二微码 |
| 3156 | var path3 = os.url + "/api/wx/open/app/user/getWeAppEwm/" + | 3156 | var path3 = os.url + "/api/wx/open/app/user/getWeAppEwm/" + |