Add url 参数 review by chenlin
Showing
1 changed file
with
9 additions
and
3 deletions
@@ -158,12 +158,14 @@ class GroupPurchaseContainer extends Component { | @@ -158,12 +158,14 @@ class GroupPurchaseContainer extends Component { | ||
158 | let { | 158 | let { |
159 | activityId, | 159 | activityId, |
160 | shareCodeInfo, | 160 | shareCodeInfo, |
161 | + groupListParams, | ||
161 | } = this.props.groupPurchase; | 162 | } = this.props.groupPurchase; |
162 | let { unionType } = this.props.app; | 163 | let { unionType } = this.props.app; |
163 | 164 | ||
164 | let bigImage = shareCodeInfo.get('bigImage'); | 165 | let bigImage = shareCodeInfo.get('bigImage'); |
165 | let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : ''; | 166 | let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : ''; |
166 | - let shareUrl = `https://m.yohobuy.com/activity/group/list?productPool=${activityId}&type=2&title=&groupPurchase=&union_type=${unionType}`; | 167 | + let shareUrl = `https://m.yohobuy.com/activity/group/list?type=2&title=&groupPurchase=&union_type=${unionType}`; |
168 | + shareUrl = Helper.joinWxProgramPath(shareUrl,groupListParams) | ||
167 | 169 | ||
168 | InteractionManager.runAfterInteractions(()=>{ | 170 | InteractionManager.runAfterInteractions(()=>{ |
169 | let param = { | 171 | let param = { |
@@ -183,12 +185,14 @@ class GroupPurchaseContainer extends Component { | @@ -183,12 +185,14 @@ class GroupPurchaseContainer extends Component { | ||
183 | let { | 185 | let { |
184 | activityId, | 186 | activityId, |
185 | shareCodeInfo, | 187 | shareCodeInfo, |
188 | + groupListParams, | ||
186 | } = this.props.groupPurchase; | 189 | } = this.props.groupPurchase; |
187 | let { unionType } = this.props.app; | 190 | let { unionType } = this.props.app; |
188 | 191 | ||
189 | let bigImage = shareCodeInfo.get('bigImage'); | 192 | let bigImage = shareCodeInfo.get('bigImage'); |
190 | let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : ''; | 193 | let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : ''; |
191 | - let shareUrl = `https://m.yohobuy.com/activity/group/list?productPool=${activityId}&type=2&title=&groupPurchase=&union_type=${unionType}`; | 194 | + let shareUrl = `https://m.yohobuy.com/activity/group/list?type=2&title=&groupPurchase=&union_type=${unionType}`; |
195 | + shareUrl = Helper.joinWxProgramPath(shareUrl,groupListParams) | ||
192 | 196 | ||
193 | InteractionManager.runAfterInteractions(()=>{ | 197 | InteractionManager.runAfterInteractions(()=>{ |
194 | let param = { | 198 | let param = { |
@@ -207,12 +211,14 @@ class GroupPurchaseContainer extends Component { | @@ -207,12 +211,14 @@ class GroupPurchaseContainer extends Component { | ||
207 | let { | 211 | let { |
208 | activityId, | 212 | activityId, |
209 | shareCodeInfo, | 213 | shareCodeInfo, |
214 | + groupListParams, | ||
210 | } = this.props.groupPurchase; | 215 | } = this.props.groupPurchase; |
211 | let { unionType } = this.props.app; | 216 | let { unionType } = this.props.app; |
212 | 217 | ||
213 | let bigImage = shareCodeInfo.get('bigImage'); | 218 | let bigImage = shareCodeInfo.get('bigImage'); |
214 | let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : ''; | 219 | let productIcon = bigImage ? getSlicedUrl(bigImage,150*DEVICE_WIDTH_RATIO, 120*DEVICE_WIDTH_RATIO, 2) : ''; |
215 | - let shareUrl = `https://m.yohobuy.com/activity/group/list?productPool=${activityId}&type=2&title=&groupPurchase=&union_type=${unionType}`; | 220 | + let shareUrl = `https://m.yohobuy.com/activity/group/list?type=2&title=&groupPurchase=&union_type=${unionType}`; |
221 | + shareUrl = Helper.joinWxProgramPath(shareUrl,groupListParams) | ||
216 | 222 | ||
217 | InteractionManager.runAfterInteractions(()=>{ | 223 | InteractionManager.runAfterInteractions(()=>{ |
218 | let param = { | 224 | let param = { |
-
Please register or login to post a comment