|
@@ -21,8 +21,14 @@
|
|
|
<mote-lines-divide :dt="item.publishingContent" :line="3" expandText="展开" foldHint="收起" />
|
|
|
</view>
|
|
|
<view class="row3">
|
|
|
- <image :src="item1" mode="aspectFill" v-for="(item1,index) in item.imgList" class="img">
|
|
|
+ <!-- <image :src="item1" mode="aspectFill" v-for="(item1,index) in item.imgList" class="img">
|
|
|
+ </image> -->
|
|
|
+ <image :src="item1" mode="aspectFill" v-for="(item1,index) in item.imgList"
|
|
|
+ @tap="previewImage(item,index)" class="img">
|
|
|
</image>
|
|
|
+ <image v-if='item.imgList.length%3==1||item.imgList.length%3==2' class="img"
|
|
|
+ style='background:#fff;'></image>
|
|
|
+ <image v-if='item.imgList.length%3==1' class="img" style='background:#fff;'></image>
|
|
|
</view>
|
|
|
<view class="row4">
|
|
|
<u-icon name="map-fill" color="#AFB3BF" size="28" bold></u-icon>
|
|
@@ -181,22 +187,23 @@
|
|
|
currentPage: page.num,
|
|
|
userId: this.userInfo.id,
|
|
|
}
|
|
|
- await this.$api.doRequest('get', '/transactionExchangeInfo/selectTransactionExchangeInfo', _obj).then(res => {
|
|
|
- console.log(res.data)
|
|
|
- if (res.data.code == 200) {
|
|
|
- let curPageData = res.data.data.records;
|
|
|
- let curPageLen = curPageData.length;
|
|
|
- let totalPage = res.data.data.total;
|
|
|
- if (page.num == 1) this.goods = [];
|
|
|
- this.goods = this.goods.concat(curPageData);
|
|
|
- console.log(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(',')
|
|
|
- // }
|
|
|
- }
|
|
|
- uni.hideLoading()
|
|
|
- })
|
|
|
+ await this.$api.doRequest('get', '/transactionExchangeInfo/selectTransactionExchangeInfo', _obj).then(
|
|
|
+ res => {
|
|
|
+ console.log(res.data)
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ let curPageData = res.data.data.records;
|
|
|
+ let curPageLen = curPageData.length;
|
|
|
+ let totalPage = res.data.data.total;
|
|
|
+ if (page.num == 1) this.goods = [];
|
|
|
+ this.goods = this.goods.concat(curPageData);
|
|
|
+ console.log(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(',')
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ uni.hideLoading()
|
|
|
+ })
|
|
|
if (this.goods.length > 0) {
|
|
|
for (let i = 0; i < this.goods.length; i++) {
|
|
|
await this.$api.doRequest('get', 'appendix/query/getFileList', {
|
|
@@ -212,7 +219,7 @@
|
|
|
this.goods[i].imgList = arr
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -360,9 +367,9 @@
|
|
|
.img {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
- width: 214rpx;
|
|
|
- height: 214rpx;
|
|
|
+ /* justify-content: space-between; */
|
|
|
+ width: 210rpx;
|
|
|
+ height: 210rpx;
|
|
|
margin-bottom: 20rpx;
|
|
|
background: lightblue;
|
|
|
list-style: none;
|