修改展示样式
This commit is contained in:
parent
ce80855767
commit
62cbcf7a9d
5
app.json
5
app.json
|
|
@ -46,5 +46,8 @@
|
||||||
"navigationBarTextStyle": "black"
|
"navigationBarTextStyle": "black"
|
||||||
},
|
},
|
||||||
"style": "v2",
|
"style": "v2",
|
||||||
"sitemapLocation": "sitemap.json"
|
"sitemapLocation": "sitemap.json",
|
||||||
|
"networkTimeout": {
|
||||||
|
"request": 60000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -13,6 +13,19 @@ Component({
|
||||||
data(value) {
|
data(value) {
|
||||||
if(Object.keys(this.properties.data).length) {
|
if(Object.keys(this.properties.data).length) {
|
||||||
this.setData({dataSource: this.properties.data})
|
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})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<!--components/ImageInfo/index.wxml-->
|
<!--components/ImageInfo/index.wxml-->
|
||||||
<view class="info_contanier">
|
<view class="info_contanier">
|
||||||
<image class="info_item" src="{{dataSource.carUrl}}"></image>
|
<image class="info_item" src="{{dataSource.carUrl}}"></image>
|
||||||
<image class="info_item" src="{{dataSource.registerFlowmanVoList[0].healthUrl}}"></image>
|
<image wx:if="{{imageList[0]}}" class="info_item" src="{{imageList[0]}}"></image>
|
||||||
<image class="info_item" src="{{dataSource.registerFlowmanVoList[0].passingUrl}}"></image>
|
<image wx:if="{{imageList[1]}}" class="info_item" src="{{imageList[1]}}"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
/* components/ImageInfo/index.wxss */
|
/* components/ImageInfo/index.wxss */
|
||||||
.info_contanier {
|
.info_contanier {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10rpx;
|
margin-top: 10rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.info_item {
|
.info_item {
|
||||||
width: 220rpx;
|
width: 200rpx;
|
||||||
height: 220rpx;
|
height: 200rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue