|
@@ -43,28 +43,9 @@ export default {
|
|
|
return {
|
|
|
show: false,
|
|
|
user: this.getUser(),
|
|
|
- sort: [
|
|
|
- {
|
|
|
- name: '综合',
|
|
|
- key: 1,
|
|
|
- isAsc: 'desc',
|
|
|
- check: false
|
|
|
- },
|
|
|
- {
|
|
|
- name: '日期',
|
|
|
- key: 2,
|
|
|
- isAsc: 'desc',
|
|
|
- check: false
|
|
|
- },
|
|
|
- {
|
|
|
- name: '价格',
|
|
|
- key: 3,
|
|
|
- isAsc: 'desc',
|
|
|
- check: false
|
|
|
- }
|
|
|
- ],
|
|
|
+ sort: [{ name: '综合' }, { name: '日期' }, { name: '价格' }],
|
|
|
list: [],
|
|
|
- param: { pageNo: 1, pageSize: 10, },
|
|
|
+ param: { pageNo: 1, pageSize: 10 },
|
|
|
loadMore: true
|
|
|
};
|
|
|
},
|
|
@@ -74,7 +55,7 @@ export default {
|
|
|
methods: {
|
|
|
getData() {
|
|
|
this.http.request({
|
|
|
- url: '/level-one-server/TbGoodsTransit/getTransitList',
|
|
|
+ url: '/level-one-server/app/TbGoodsTransit/getList',
|
|
|
data: this.param,
|
|
|
loading: 'false',
|
|
|
success: res => {
|
|
@@ -107,6 +88,27 @@ export default {
|
|
|
},
|
|
|
detail(id) {
|
|
|
uni.navigateTo({ url: '/pages/market/one/detail?id=' + id });
|
|
|
+ },
|
|
|
+ //刷新数据
|
|
|
+ refresh() {
|
|
|
+ this.loadMore = true;
|
|
|
+ this.param.pageNo = 1;
|
|
|
+ this.list = [];
|
|
|
+ this.getData();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //下拉刷新
|
|
|
+ onPullDownRefresh() {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.refresh();
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ }, 1000);
|
|
|
+ },
|
|
|
+ //上拉加载
|
|
|
+ onReachBottom() {
|
|
|
+ if (this.loadMore) {
|
|
|
+ this.param.pageNo++;
|
|
|
+ this.getData();
|
|
|
}
|
|
|
}
|
|
|
};
|