Commit 5e08825013f193942b9c908e36175a497234e8cf
1 parent
2db52dc1
1. 小程序在助力的时候,不需要判断是不是已经关注了公众号
2. 搭配的页面上,点击商品图片时,要能够跳转到商品详情
Showing
3 changed files
with
10 additions
and
3 deletions
packageA/pages/prom_list/prom_list.js
| ... | ... | @@ -1568,6 +1568,12 @@ Page({ |
| 1568 | 1568 | price=price.toFixed(2); |
| 1569 | 1569 | cut_pirce=cut_pirce.toFixed(2); |
| 1570 | 1570 | this.setData({dp_price: this.data.dp_price,cut_price:this.data.cut_price}); |
| 1571 | + }, | |
| 1572 | + | |
| 1573 | + go_goods:function (e) { | |
| 1574 | + var gid=e.currentTarget.dataset.gid; | |
| 1575 | + var url="/pages/goods/goodsInfo/goodsInfo?goods_id="+gid; | |
| 1576 | + getApp().goto(url); | |
| 1571 | 1577 | } |
| 1572 | 1578 | |
| 1573 | 1579 | ... | ... |
packageA/pages/prom_list/prom_list.wxml
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | <view class="goods_list" wx:if="{{data && data.goods_name}}"> |
| 7 | 7 | <view class="item flex ai-center"> |
| 8 | 8 | <view style="width:80rpx;height: 100%" class="flex ai-center jc-center"><icon type="success" size="18"></icon></view> |
| 9 | - <view class="r_box flex"> | |
| 9 | + <view class="r_box flex" bindtap="go_goods" data-gid="{{data.goods_id}}"> | |
| 10 | 10 | <view><image class="r_box_img" src="{{data.original_img}}"></image></view> |
| 11 | 11 | <view class="flex jc_sb"> |
| 12 | 12 | <view class="fs30" style="margin: 18rpx"> |
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 | <icon bindtap="set_sele" wx:else data-ind="{{index}}" data-set="1" type="success" size="18" color="#adadad"></icon> |
| 27 | 27 | |
| 28 | 28 | </view> |
| 29 | - <view class="r_box flex"> | |
| 29 | + <view class="r_box flex" bindtap="go_goods" data-gid="{{item.goods_id}}"> | |
| 30 | 30 | <view><image class="r_box_img" src="{{iurl+item.original_img}}" binderror="bind_bnerr3" data-errorimg="collocationList[{{index}}].original_img"></image></view> |
| 31 | 31 | <view class="flex jc_sb"> |
| 32 | 32 | <view class="fs30" style="margin: 18rpx"> | ... | ... |
pages/user/assistance/friend_assistance.js
| ... | ... | @@ -126,7 +126,8 @@ Page({ |
| 126 | 126 | id: this.data.tasking, |
| 127 | 127 | storeId: os.stoid, |
| 128 | 128 | userId: this.data.userId, |
| 129 | - zlUserId: t_user_id | |
| 129 | + zlUserId: t_user_id, | |
| 130 | + isWeappUser:1, //是不是小程序的入口,不需要判断 | |
| 130 | 131 | }; |
| 131 | 132 | console.log(data); |
| 132 | 133 | getApp().request.json_post("/api/weshop/marketing/help/help/task/involve/insert", | ... | ... |