Commit 6d433ab0d1110f3dd4cd4d3ca140b0b1b4f510d6

Authored by taiyuan
1 parent 9e8a9b75

组合购列表动态标题设置

packageB/pages/zuhegou/index/index.js
... ... @@ -126,6 +126,11 @@ Page({
126 126 onLoad: function (options) {
127 127 self = this;
128 128 var the_id = options.id;
  129 + if(options.title) {
  130 + wx.setNavigationBarTitle({
  131 + title: options.title,
  132 + });
  133 + };
129 134 var first_leader='';
130 135 //--如果tg_id是空的话,分享回来--
131 136 if (the_id == undefined || the_id == null || the_id == "") {
... ...
packageB/pages/zuhegou/list/list.js
... ... @@ -126,7 +126,7 @@ Page({
126 126 //--没有更多就不调用--
127 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 130 var plist=null,alllist=th.data.goodlist;
131 131 if(!alllist) alllist=[];
132 132  
... ... @@ -206,7 +206,7 @@ Page({
206 206  
207 207 // console.log("11"+pagePath);
208 208 return {
209   - title: "组合购",
  209 + title: "组合购列表",
210 210 path:pagePath,
211 211 }
212 212 },
... ...
packageB/pages/zuhegou/list/list.json
1 1 {
2   - "navigationBarTitleText": "组合列表",
  2 + "navigationBarTitleText": "组合列表",
3 3 "usingComponents": {
4 4 "share_box": "/components/share_box/share_box"
5 5 }
... ...
packageB/pages/zuhegou/list/list.wxml
... ... @@ -34,13 +34,42 @@
34 34  
35 35 <view class="kill-list">
36 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 38 <!-- <image class="abs xc-miaosha" src="{{url}}/miniapp/images/zms.png"></image> -->
39 39 <image class="wh100" src="{{url+item.img_url}}" data-val="{{item.img_url}}"
40 40 data-errorimg="goodlist[{{index}}].img_url" binderror="bind_bnerr2" lazy-load="true"></image>
41 41 </navigator>
42 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 74 <!-- <view class="flex-vertical xc-strip-frame">
46 75 <view class="xc-strip-blank rel">
... ... @@ -58,30 +87,19 @@
58 87 </view> -->
59 88  
60 89  
61   - <view class="goods-num">
  90 + <!-- <view class="goods-num">
62 91 <view>
63 92 <view>组合数量: {{item.zhbuyqty}}</view>
64 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 95 <view class="fs40 flex xc-buttom-money {{type==1?'xc-wc':'blue_c'}}" >
73 96 <view class="fs28" style="line-height: 16px;">¥</view>
74 97 <text>{{item.zhprice}}</text>
75   - <!-- <span class="underline fs20">零售价¥{{item.market_price}}</span> -->
  98 +
76 99 </view>
77 100  
78 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 103 </view>
86 104 </view>
87 105 <!-- <view style="height:120rpx"></view> -->
... ...