|
@@ -174,14 +174,14 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
|
|
/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
|
|
- upCallback(page) {
|
|
|
|
|
|
+ async upCallback(page) {
|
|
//联网加载数据
|
|
//联网加载数据
|
|
let _obj = {
|
|
let _obj = {
|
|
pageSize: page.size,
|
|
pageSize: page.size,
|
|
currentPage: page.num,
|
|
currentPage: page.num,
|
|
userId: this.userInfo.id,
|
|
userId: this.userInfo.id,
|
|
}
|
|
}
|
|
- this.$api.doRequest('get', '/transactionExchangeInfo/selectTransactionExchangeInfo', _obj).then(res => {
|
|
|
|
|
|
+ await this.$api.doRequest('get', '/transactionExchangeInfo/selectTransactionExchangeInfo', _obj).then(res => {
|
|
console.log(res.data)
|
|
console.log(res.data)
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
let curPageData = res.data.data.records;
|
|
let curPageData = res.data.data.records;
|
|
@@ -191,12 +191,30 @@
|
|
this.goods = this.goods.concat(curPageData);
|
|
this.goods = this.goods.concat(curPageData);
|
|
console.log(curPageLen, totalPage)
|
|
console.log(curPageLen, totalPage)
|
|
this.mescroll.endByPage(curPageLen, totalPage);
|
|
this.mescroll.endByPage(curPageLen, totalPage);
|
|
- for (let i = 0; i < this.goods.length; i++) {
|
|
|
|
- this.goods[i].imgList = this.goods[i].urlImg.split(',')
|
|
|
|
- }
|
|
|
|
|
|
+ // for (let i = 0; i < this.goods.length; i++) {
|
|
|
|
+ // this.goods[i].imgList = this.goods[i].urlImg.split(',')
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
})
|
|
})
|
|
|
|
+ if (this.goods.length > 0) {
|
|
|
|
+ for (let i = 0; i < this.goods.length; i++) {
|
|
|
|
+ await this.$api.doRequest('get', 'appendix/query/getFileList', {
|
|
|
|
+ appendixIds: this.goods[i].urlImg
|
|
|
|
+ }).then(res1 => {
|
|
|
|
+ if (i == this.goods.length - 1) {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ }
|
|
|
|
+ var arr = []
|
|
|
|
+ for (let q = 0; q < res1.data.data.length; q++) {
|
|
|
|
+ arr.push(res1.data.data[q].appendixPath)
|
|
|
|
+ }
|
|
|
|
+ this.goods[i].imgList = arr
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//点击空布局按钮的回调
|
|
//点击空布局按钮的回调
|
|
emptyClick() {
|
|
emptyClick() {
|