修改展示样式

This commit is contained in:
余菲 2022-10-31 17:52:23 +08:00
parent ce80855767
commit 62cbcf7a9d
4 changed files with 24 additions and 7 deletions

View File

@ -46,5 +46,8 @@
"navigationBarTextStyle": "black"
},
"style": "v2",
"sitemapLocation": "sitemap.json"
"sitemapLocation": "sitemap.json",
"networkTimeout": {
"request": 60000
}
}

View File

@ -13,6 +13,19 @@ Component({
data(value) {
if(Object.keys(this.properties.data).length) {
this.setData({dataSource: this.properties.data})
let list = this.properties.data.registerFlowmanVoList || []
let arr = []
if(list.length > 0) {
list.forEach(item=> {
if(item.healthUrl) {
arr.push(item.healthUrl)
}
if(item.passingUrl) {
arr.push(item.passingUrl)
}
})
}
this.setData({imageList: arr})
}
}
},

View File

@ -1,6 +1,6 @@
<!--components/ImageInfo/index.wxml-->
<view class="info_contanier">
<image class="info_item" src="{{dataSource.carUrl}}"></image>
<image class="info_item" src="{{dataSource.registerFlowmanVoList[0].healthUrl}}"></image>
<image class="info_item" src="{{dataSource.registerFlowmanVoList[0].passingUrl}}"></image>
<image wx:if="{{imageList[0]}}" class="info_item" src="{{imageList[0]}}"></image>
<image wx:if="{{imageList[1]}}" class="info_item" src="{{imageList[1]}}"></image>
</view>

View File

@ -1,12 +1,13 @@
/* components/ImageInfo/index.wxss */
.info_contanier {
width: 100%;
padding: 10rpx;
margin-top: 10rpx;
display: flex;
justify-content: space-between;
justify-content: flex-start;
align-items: center;
}
.info_item {
width: 220rpx;
height: 220rpx;
width: 200rpx;
height: 200rpx;
margin-right: 10rpx;
}