Commit 3ce0eb07 by 高淑倩

modify: 样式

parent 557c6640
<!--component/picNav/picNav.wxml-->
<view class="pic-nav">
<!--<view class="pic-nav">
<block wx:for="{{picNav}}" wx:key="{{index}}" wx:for-item="item">
<view class="nav-block" style="width: {{imagewidth}}px;height: {{imageheight}}px;">
<image style="width: {{imagewidth}}px;height: {{imageheight}}px;" src="http://testimg3.bigaka.com{{item.imageUrl}}" data-appid="{{item.link.appid}}" data-path="{{item.link.url}}" data-link="{{item.link}}" data-item="{{item}}" bindload="imageLoad" bindtap='preview' />
......@@ -7,4 +7,5 @@
</block>
</view>
<authorization-modal isAuthorization='{{isAuthorization}}'/>
-->
<view class="pic-nav"><view wx:for="{{picNav}}" wx:key="{{index}}" wx:for-item="item" class="nav-block" style="width: {{imagewidth}}px;height: {{imageheight}}px;"><image class="pic-img" style="width: {{imagewidth}}px;height: {{imageheight}}px;" src="http://testimg3.bigaka.com{{item.imageUrl}}" data-appid="{{item.link.appid}}" data-path="{{item.link.url}}" data-link="{{item.link}}" data-item="{{item}}" bindload="imageLoad" bindtap='preview'/></view></view>
\ No newline at end of file
/* component/picNav/picNav.wxss */
.pic-nav {
/* .pic-nav {
display: flex;
overflow: hidden;
padding: 0;
margin: 0;
box-sizing:content-box;
}
\ No newline at end of file
} */
.pic-nav {
display: flex;
padding: 0;
margin: 0;
overflow: hidden;
box-sizing: border-box;
flex-direction: row;
align-items: center;
}
.pic-img {
/* display: block; */
/* vertical-align: top; */
/* float: left; */
}
......@@ -60,7 +60,7 @@ function imageUtil(e) {
success: function (res) {
// var windowWidth = res.windowWidth/2;
// var windowHeight = res.windowHeight/2;
var windowWidth = (res.windowWidth-30)/2;
var windowWidth = (res.windowWidth - 42)/2;
var windowHeight = res.windowHeight/2;
var windowscale = windowHeight/windowWidth;//屏幕高宽比
if(originalScale < windowscale){//图片高宽比小于屏幕高宽比
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment