diff --git a/app.js b/app.js index 9d5f501..7ee7ddc 100644 --- a/app.js +++ b/app.js @@ -251,7 +251,7 @@ App({ title: t, mask: e, duration: a, - image:"/packageA/images/gt.png", + image:"/images/gt.png", complete: function() { "function" == typeof o && setTimeout(o, a); } diff --git a/packageA/images/gt.png b/images/gt.png index 354851e..354851e 100644 --- a/packageA/images/gt.png +++ b/images/gt.png diff --git a/packageA/pages/activity_share/activity_share.js b/packageA/pages/activity_share/activity_share.js index 784fcd4..b3859ea 100644 --- a/packageA/pages/activity_share/activity_share.js +++ b/packageA/pages/activity_share/activity_share.js @@ -142,7 +142,7 @@ Page({ //礼包的转发 if(th.data.currentIndex==3){ var lbid=th.data.hui_active.lbId; - var url="pages/giftpack/giftpacklist/giftpacklist?lbId="+lbid+"&isBuy=1"; + var url="/pages/giftpack/giftpacklist/giftpacklist?lbId="+lbid+"&isBuy=1"; if(getApp().globalData.user_id){ url+="&first_leader="+getApp().globalData.user_id; } @@ -1060,6 +1060,28 @@ Page({ this.data.is_load=0; this.data.currentPage=1; this.requestGoodsList(); + }, + + + go_goods:function(e){ + var index=e.currentTarget.dataset.index; + var item=this.data.list[index]; + var url="/pages/goods/goodsInfo/goodsInfo?goods_id=" + item.goods_id; + getApp().goto(url); + }, + + go_coll_good:function(e){ + var gid=e.currentTarget.dataset.gid; + var url="/pages/goods/goodsInfo/goodsInfo?goods_id=" + gid; + getApp().goto(url); + }, + + go_libao:function(e){ + var index=e.currentTarget.dataset.index; + var item=this.data.list[index]; + var lbid=item.lbId; + var url="/pages/giftpack/giftpacklist/giftpacklist?lbId="+lbid+"&isBuy=1"; + getApp().goto(url); } diff --git a/packageA/pages/activity_share/activity_share.wxml b/packageA/pages/activity_share/activity_share.wxml index 7fe123b..3d3183c 100644 --- a/packageA/pages/activity_share/activity_share.wxml +++ b/packageA/pages/activity_share/activity_share.wxml @@ -26,13 +26,13 @@ scroll-y="true" bindscrolltolower="refresh" scroll-anchoring - refresher-enabled> + > - + ¥{{item.price}} 零售价:¥{{item.market_price}} - 分享 + 分享 @@ -107,7 +107,7 @@ - + 零售价:¥{{item.giftPosPrice}} - 分享 + 分享 @@ -151,7 +151,7 @@ 活动详情 - + 必买商品 商品编号:{{hui_active.goods_sn}} {{hui_active.main_goods_name}} @@ -168,7 +168,7 @@ - + {{index+1}} {{item.goods_name}} ¥{{g_filter.toFix(item.shop_price,2)}} @@ -206,11 +206,11 @@ - + {{index+1}} {{item.goods_name}} ¥{{item.shop_price}} - 分享 + 分享 diff --git a/packageA/pages/goods_share/goods_share.js b/packageA/pages/goods_share/goods_share.js index aeb8bb2..35948dc 100644 --- a/packageA/pages/goods_share/goods_share.js +++ b/packageA/pages/goods_share/goods_share.js @@ -792,6 +792,13 @@ Page({ this.data.is_load=0; this.data.currentPage=1; this.requestGoodsList(); + }, + + go_goods:function(e){ + var index=e.currentTarget.dataset.index; + var item=this.data.list[index]; + var url="/pages/goods/goodsInfo/goodsInfo?goods_id=" + item.goods_id; + getApp().goto(url); } diff --git a/packageA/pages/goods_share/goods_share.wxml b/packageA/pages/goods_share/goods_share.wxml index 6705aed..ec817b0 100644 --- a/packageA/pages/goods_share/goods_share.wxml +++ b/packageA/pages/goods_share/goods_share.wxml @@ -33,9 +33,9 @@ scroll-y="true" bindscrolltolower="refresh" scroll-anchoring - refresher-enabled> + > - + ¥{{item.fir_rate+item.sec_rate+item.thi_rate}} - + 分享 diff --git a/packageA/pages/live_share/live_share.js b/packageA/pages/live_share/live_share.js index e340ea0..2631ba1 100644 --- a/packageA/pages/live_share/live_share.js +++ b/packageA/pages/live_share/live_share.js @@ -179,6 +179,16 @@ Page({ this.requestGoodsList(); }, + cancel:function(){ + this.setData({share_hidden:1}); + }, + go_live:function(e){ + var index=e.currentTarget.dataset.index; + var item=this.data.list[index]; + var url='/packageA/pages/liveStreamDetails/liveStreamDetails?id=' + item.id + '&live=ing'; + getApp().goto(url); + } + }) \ No newline at end of file diff --git a/packageA/pages/live_share/live_share.wxml b/packageA/pages/live_share/live_share.wxml index 14b4030..353d0c1 100644 --- a/packageA/pages/live_share/live_share.wxml +++ b/packageA/pages/live_share/live_share.wxml @@ -14,10 +14,10 @@ scroll-y="true" bindscrolltolower="refresh" scroll-anchoring - refresher-enabled> + > - + {{item.name}} 直播时间:{{filter.format_time(item.start_time, 2)}} 主播:{{item['anchor_name']}} - 分享 + 分享 diff --git a/packageA/pages/quan/quan.js b/packageA/pages/quan/quan.js index 154edc6..3e541d1 100644 --- a/packageA/pages/quan/quan.js +++ b/packageA/pages/quan/quan.js @@ -156,6 +156,20 @@ Page({ com.set_type(1); }, + cancel:function(){ + this.setData({share_hidden:1}); + }, + + go_quan:function(e){ + var index=e.currentTarget.dataset.index; + var item=this.data.list[index]; + var url="/packageA/pages/quan_pro/quan_pro?id="+item.id; + getApp().goto(url); + } + + + + diff --git a/packageA/pages/quan/quan.wxml b/packageA/pages/quan/quan.wxml index ff8e6a0..b2cd17c 100644 --- a/packageA/pages/quan/quan.wxml +++ b/packageA/pages/quan/quan.wxml @@ -17,7 +17,7 @@ refresher-enabled> - + {{item.name}} @@ -40,7 +40,7 @@ 分类一({{item.useobjectname}}) 单品({{item.useobjectname}}) - 分享 + 分享