Commit 7fd36559bb0ff2942713714754b598364263ab4f

Authored by zhiyangdu
1 parent 2f36d8cf

暂无商品提示

src/pages/healthMall/healthMall.vue
... ... @@ -28,9 +28,13 @@
28 28 </column-list-box>
29 29 </div>
30 30 <!-- 没有更多了 -->
31   - <div v-if="isNoMore" class="no_more">
  31 + <div v-if="isNoMore && page>1" class="no_more">
32 32 — 没有更多了 —
33 33 </div>
  34 + <!-- 暂无商品 -->
  35 + <div v-else-if="phyicalGoods.list.length == 0 && page==1" class="no_more">
  36 + — 暂无商品 —
  37 + </div>
34 38 </div>
35 39 </template>
36 40  
... ... @@ -43,7 +47,7 @@ export default {
43 47 name: 'morePoints',
44 48 data () {
45 49 return {
46   - title: "", // 标题
  50 + title: "健康商城", // 标题
47 51 backs: null, // 后退按钮组
48 52 loading: true,
49 53 distance: 50,
... ... @@ -108,9 +112,8 @@ export default {
108 112 Indicator.open("加载中...");
109 113  
110 114 // 请求接口
111   - this.http("/Api/" + (this.getApiVersion().LuckDraw) + "/integralNewGoodsList", {
112   - type: this.$route.query.type,
113   - // uid: this.getStore("uid"),
  115 + this.http("/Api/" + (this.getApiVersion().LuckDraw) + "/integralMallIndex", {
  116 + type: 7,
114 117 page: page || 1
115 118 }, this.getIntegralNewGoodsListCallback, {
116 119 method: "POST"
... ... @@ -175,7 +178,7 @@ export default {
175 178 // 设置跳转参数
176 179 let params = {
177 180 type: '5',
178   - to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id,
  181 + to: window.location.origin + '/html/select_good/1/#/healthGoodDetails?goodsId=' + item.id,
179 182 shop_type: ''
180 183 };
181 184  
... ... @@ -241,7 +244,6 @@ export default {
241 244 });
242 245 }
243 246 /*设置标题 */
244   - this.$set(this, "title", "健康商城");
245 247 this.$set(this.backs, 'title', "健康商城");
246 248 },
247 249 mounted () {
... ...