Commit 7fd36559bb0ff2942713714754b598364263ab4f
1 parent
2f36d8cf
暂无商品提示
Showing
1 changed file
with
9 additions
and
7 deletions
src/pages/healthMall/healthMall.vue
| @@ -28,9 +28,13 @@ | @@ -28,9 +28,13 @@ | ||
| 28 | </column-list-box> | 28 | </column-list-box> |
| 29 | </div> | 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 | </div> | 33 | </div> |
| 34 | + <!-- 暂无商品 --> | ||
| 35 | + <div v-else-if="phyicalGoods.list.length == 0 && page==1" class="no_more"> | ||
| 36 | + — 暂无商品 — | ||
| 37 | + </div> | ||
| 34 | </div> | 38 | </div> |
| 35 | </template> | 39 | </template> |
| 36 | 40 | ||
| @@ -43,7 +47,7 @@ export default { | @@ -43,7 +47,7 @@ export default { | ||
| 43 | name: 'morePoints', | 47 | name: 'morePoints', |
| 44 | data () { | 48 | data () { |
| 45 | return { | 49 | return { |
| 46 | - title: "", // 标题 | 50 | + title: "健康商城", // 标题 |
| 47 | backs: null, // 后退按钮组 | 51 | backs: null, // 后退按钮组 |
| 48 | loading: true, | 52 | loading: true, |
| 49 | distance: 50, | 53 | distance: 50, |
| @@ -108,9 +112,8 @@ export default { | @@ -108,9 +112,8 @@ export default { | ||
| 108 | Indicator.open("加载中..."); | 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 | page: page || 1 | 117 | page: page || 1 |
| 115 | }, this.getIntegralNewGoodsListCallback, { | 118 | }, this.getIntegralNewGoodsListCallback, { |
| 116 | method: "POST" | 119 | method: "POST" |
| @@ -175,7 +178,7 @@ export default { | @@ -175,7 +178,7 @@ export default { | ||
| 175 | // 设置跳转参数 | 178 | // 设置跳转参数 |
| 176 | let params = { | 179 | let params = { |
| 177 | type: '5', | 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 | shop_type: '' | 182 | shop_type: '' |
| 180 | }; | 183 | }; |
| 181 | 184 | ||
| @@ -241,7 +244,6 @@ export default { | @@ -241,7 +244,6 @@ export default { | ||
| 241 | }); | 244 | }); |
| 242 | } | 245 | } |
| 243 | /*设置标题 */ | 246 | /*设置标题 */ |
| 244 | - this.$set(this, "title", "健康商城"); | ||
| 245 | this.$set(this.backs, 'title', "健康商城"); | 247 | this.$set(this.backs, 'title', "健康商城"); |
| 246 | }, | 248 | }, |
| 247 | mounted () { | 249 | mounted () { |