|
@@ -1,7 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
<!-- #ifdef MP-ALIPAY -->
|
|
<!-- #ifdef MP-ALIPAY -->
|
|
- <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="盲票列表" leftIconSize="0"></u-navbar>
|
|
|
|
|
|
+ <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="盲票列表" leftIconSize="0">
|
|
|
|
+ </u-navbar>
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
<!-- #ifndef MP-ALIPAY -->
|
|
<!-- #ifndef MP-ALIPAY -->
|
|
<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="盲票列表"></u-navbar>
|
|
<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="盲票列表"></u-navbar>
|
|
@@ -18,12 +19,13 @@
|
|
<!-- #ifndef MP-ALIPAY -->
|
|
<!-- #ifndef MP-ALIPAY -->
|
|
<view class="title ells-one">{{ item.title }}</view>
|
|
<view class="title ells-one">{{ item.title }}</view>
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
-
|
|
|
|
|
|
+
|
|
<view class="price">¥{{ $numberFormat(item.salePrice) }}</view>
|
|
<view class="price">¥{{ $numberFormat(item.salePrice) }}</view>
|
|
</view>
|
|
</view>
|
|
</navigator>
|
|
</navigator>
|
|
<view style="width: 100%;">
|
|
<view style="width: 100%;">
|
|
- <u-loadmore :line="true" v-if="list.length>8" :status="status" :loading-text="'努力加载中'" :nomore-text="'已经到底了'" />
|
|
|
|
|
|
+ <u-loadmore :line="true" v-if="list.length>8" :status="status" :loading-text="'努力加载中'"
|
|
|
|
+ :nomore-text="'已经到底了'" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="flex empty" v-if="!list.length">
|
|
<view class="flex empty" v-if="!list.length">
|
|
@@ -39,13 +41,17 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- status: 'nomore',//上拉刷新状态
|
|
|
|
|
|
+ status: 'nomore', //上拉刷新状态
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
total: 0,
|
|
total: 0,
|
|
list: [],
|
|
list: [],
|
|
|
|
+ ids: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- onLoad() {
|
|
|
|
|
|
+ onLoad(options) {
|
|
|
|
+ if (options.ids) {
|
|
|
|
+ this.ids = JSON.parse(options.ids)
|
|
|
|
+ }
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -57,7 +63,8 @@
|
|
categoryId: '',
|
|
categoryId: '',
|
|
tagId: '',
|
|
tagId: '',
|
|
type: 'online',
|
|
type: 'online',
|
|
- noToken: true
|
|
|
|
|
|
+ noToken: true,
|
|
|
|
+ boxIds: this.ids
|
|
}
|
|
}
|
|
$http.post(`/api/v1/mp/user/mall/ticket/list?pageNum=${this.pageNum}&pageSize=20`, data).then(
|
|
$http.post(`/api/v1/mp/user/mall/ticket/list?pageNum=${this.pageNum}&pageSize=20`, data).then(
|
|
res => {
|
|
res => {
|
|
@@ -77,12 +84,12 @@
|
|
},
|
|
},
|
|
|
|
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
- if(this.total < this.pageNum * 20) return ;
|
|
|
|
|
|
+ if (this.total < this.pageNum * 20) return;
|
|
this.status = 'loading';
|
|
this.status = 'loading';
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
++this.pageNum
|
|
++this.pageNum
|
|
- if(this.total < this.pageNum * 20) this.status = 'nomore';
|
|
|
|
- else this.status = 'loading';
|
|
|
|
|
|
+ if (this.total < this.pageNum * 20) this.status = 'nomore';
|
|
|
|
+ else this.status = 'loading';
|
|
this.getList()
|
|
this.getList()
|
|
// }, 2000)
|
|
// }, 2000)
|
|
},
|
|
},
|
|
@@ -124,6 +131,7 @@
|
|
font-size: 36rpx;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
+
|
|
.titletwo {
|
|
.titletwo {
|
|
width: 100%;
|
|
width: 100%;
|
|
line-height: 40rpx;
|
|
line-height: 40rpx;
|