Commit 6d433ab0d1110f3dd4cd4d3ca140b0b1b4f510d6
1 parent
9e8a9b75
组合购列表动态标题设置
Showing
4 changed files
with
43 additions
and
20 deletions
packageB/pages/zuhegou/index/index.js
@@ -126,6 +126,11 @@ Page({ | @@ -126,6 +126,11 @@ Page({ | ||
126 | onLoad: function (options) { | 126 | onLoad: function (options) { |
127 | self = this; | 127 | self = this; |
128 | var the_id = options.id; | 128 | var the_id = options.id; |
129 | + if(options.title) { | ||
130 | + wx.setNavigationBarTitle({ | ||
131 | + title: options.title, | ||
132 | + }); | ||
133 | + }; | ||
129 | var first_leader=''; | 134 | var first_leader=''; |
130 | //--如果tg_id是空的话,分享回来-- | 135 | //--如果tg_id是空的话,分享回来-- |
131 | if (the_id == undefined || the_id == null || the_id == "") { | 136 | if (the_id == undefined || the_id == null || the_id == "") { |
packageB/pages/zuhegou/list/list.js
@@ -126,7 +126,7 @@ Page({ | @@ -126,7 +126,7 @@ Page({ | ||
126 | //--没有更多就不调用-- | 126 | //--没有更多就不调用-- |
127 | if(!this.data.ismore) return false; | 127 | if(!this.data.ismore) return false; |
128 | 128 | ||
129 | - var e = this,th=e, i = "/api/weshop/prom/zhbuy/page?page=" + e.data.currentPage; | 129 | + var e = this,th=e, i = "/api/weshop/prom/zhbuy/page?is_end=0&timetype=1&page=" + e.data.currentPage; |
130 | var plist=null,alllist=th.data.goodlist; | 130 | var plist=null,alllist=th.data.goodlist; |
131 | if(!alllist) alllist=[]; | 131 | if(!alllist) alllist=[]; |
132 | 132 | ||
@@ -206,7 +206,7 @@ Page({ | @@ -206,7 +206,7 @@ Page({ | ||
206 | 206 | ||
207 | // console.log("11"+pagePath); | 207 | // console.log("11"+pagePath); |
208 | return { | 208 | return { |
209 | - title: "组合购", | 209 | + title: "组合购列表", |
210 | path:pagePath, | 210 | path:pagePath, |
211 | } | 211 | } |
212 | }, | 212 | }, |
packageB/pages/zuhegou/list/list.json
packageB/pages/zuhegou/list/list.wxml
@@ -34,13 +34,42 @@ | @@ -34,13 +34,42 @@ | ||
34 | 34 | ||
35 | <view class="kill-list"> | 35 | <view class="kill-list"> |
36 | <view class="kill-item" wx:for="{{goodlist}}"> | 36 | <view class="kill-item" wx:for="{{goodlist}}"> |
37 | - <navigator class="kill-pic rel" url="/packageB/pages/zuhegou/index/index?id={{item.id}}" hover-class="none"> | 37 | + <navigator class="kill-pic rel" url="/packageB/pages/zuhegou/index/index?id={{item.id}}&title={{item.name}}" hover-class="none"> |
38 | <!-- <image class="abs xc-miaosha" src="{{url}}/miniapp/images/zms.png"></image> --> | 38 | <!-- <image class="abs xc-miaosha" src="{{url}}/miniapp/images/zms.png"></image> --> |
39 | <image class="wh100" src="{{url+item.img_url}}" data-val="{{item.img_url}}" | 39 | <image class="wh100" src="{{url+item.img_url}}" data-val="{{item.img_url}}" |
40 | data-errorimg="goodlist[{{index}}].img_url" binderror="bind_bnerr2" lazy-load="true"></image> | 40 | data-errorimg="goodlist[{{index}}].img_url" binderror="bind_bnerr2" lazy-load="true"></image> |
41 | </navigator> | 41 | </navigator> |
42 | <view class="kill-cont"> | 42 | <view class="kill-cont"> |
43 | - <navigator class="goods-name ellipsis-2" url="/packageB/pages/zuhegou/index/index?id={{item.id}}" hover-class="none">{{item.name}}</navigator> | 43 | + <navigator class="goods-name ellipsis-2" url="/packageB/pages/zuhegou/index/index?id={{item.id}}&title={{item.name}}" hover-class="none"> |
44 | + {{item.name}} | ||
45 | + | ||
46 | + <view class="goods-num"> | ||
47 | + <view> | ||
48 | + <view>组合数量: {{item.zhbuyqty}}</view> | ||
49 | + <view>活动时间: {{filters.format_time(item.start_time) + '至' + filters.format_time(item.end_time)}}</view> | ||
50 | + <!-- <view class="{{type==1?'xc-wc':'blue_c'}}"> | ||
51 | + <text>剩余:</text> | ||
52 | + <text class='tui-conutdown-box'> {{item.djs.day}}</text>天 | ||
53 | + <text class='tui-conutdown-box'>{{item.djs.hou}}</text>时 | ||
54 | + <text class='tui-conutdown-box'>{{item.djs.min}}</text>分 | ||
55 | + <text class='tui-conutdown-box tui-countdown-bg'>{{item.djs.sec}}</text>秒 | ||
56 | + </view> --> | ||
57 | + <view class="fs40 flex xc-buttom-money {{type==1?'xc-wc':'blue_c'}}" > | ||
58 | + <view class="fs28" style="line-height: 16px;">¥</view> | ||
59 | + <text>{{item.zhprice}}</text> | ||
60 | + <!-- <span class="underline fs20">零售价¥{{item.market_price}}</span> --> | ||
61 | + </view> | ||
62 | + | ||
63 | + </view> | ||
64 | + <!-- <view class="kill-btn "> --> | ||
65 | + <!-- <navigator style="background-color: #059de5;" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:if="{{type==0}}" >即将开始</navigator> --> | ||
66 | + <!-- <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:if="{{item.status==1 && type==1}}">马上抢</navigator> | ||
67 | + <navigator class="huise"url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:if="{{item.status==3 && type==1}}">已抢光</navigator> --> | ||
68 | + <!-- </view> --> | ||
69 | + </view> | ||
70 | + | ||
71 | + | ||
72 | + </navigator> | ||
44 | 73 | ||
45 | <!-- <view class="flex-vertical xc-strip-frame"> | 74 | <!-- <view class="flex-vertical xc-strip-frame"> |
46 | <view class="xc-strip-blank rel"> | 75 | <view class="xc-strip-blank rel"> |
@@ -58,30 +87,19 @@ | @@ -58,30 +87,19 @@ | ||
58 | </view> --> | 87 | </view> --> |
59 | 88 | ||
60 | 89 | ||
61 | - <view class="goods-num"> | 90 | + <!-- <view class="goods-num"> |
62 | <view> | 91 | <view> |
63 | <view>组合数量: {{item.zhbuyqty}}</view> | 92 | <view>组合数量: {{item.zhbuyqty}}</view> |
64 | <view>活动时间: {{filters.format_time(item.start_time) + '至' + filters.format_time(item.end_time)}}</view> | 93 | <view>活动时间: {{filters.format_time(item.start_time) + '至' + filters.format_time(item.end_time)}}</view> |
65 | - <!-- <view class="{{type==1?'xc-wc':'blue_c'}}"> | ||
66 | - <text>剩余:</text> | ||
67 | - <text class='tui-conutdown-box'> {{item.djs.day}}</text>天 | ||
68 | - <text class='tui-conutdown-box'>{{item.djs.hou}}</text>时 | ||
69 | - <text class='tui-conutdown-box'>{{item.djs.min}}</text>分 | ||
70 | - <text class='tui-conutdown-box tui-countdown-bg'>{{item.djs.sec}}</text>秒 | ||
71 | - </view> --> | 94 | + |
72 | <view class="fs40 flex xc-buttom-money {{type==1?'xc-wc':'blue_c'}}" > | 95 | <view class="fs40 flex xc-buttom-money {{type==1?'xc-wc':'blue_c'}}" > |
73 | <view class="fs28" style="line-height: 16px;">¥</view> | 96 | <view class="fs28" style="line-height: 16px;">¥</view> |
74 | <text>{{item.zhprice}}</text> | 97 | <text>{{item.zhprice}}</text> |
75 | - <!-- <span class="underline fs20">零售价¥{{item.market_price}}</span> --> | 98 | + |
76 | </view> | 99 | </view> |
77 | 100 | ||
78 | </view> | 101 | </view> |
79 | - <!-- <view class="kill-btn "> --> | ||
80 | - <!-- <navigator style="background-color: #059de5;" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:if="{{type==0}}" >即将开始</navigator> --> | ||
81 | - <!-- <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:if="{{item.status==1 && type==1}}">马上抢</navigator> | ||
82 | - <navigator class="huise"url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:if="{{item.status==3 && type==1}}">已抢光</navigator> --> | ||
83 | - <!-- </view> --> | ||
84 | - </view> | 102 | + </view> --> |
85 | </view> | 103 | </view> |
86 | </view> | 104 | </view> |
87 | <!-- <view style="height:120rpx"></view> --> | 105 | <!-- <view style="height:120rpx"></view> --> |