Commit 4c7dd4b9 by 高淑倩

modify: 图片导航_padding

parent 58d9e530
...@@ -34,7 +34,9 @@ a { ...@@ -34,7 +34,9 @@ a {
.pd1530{ .pd1530{
padding: 0 30rpx; padding: 0 30rpx;
} }
.pd1520 {
padding: 0 15rpx;
}
.df-1 { .df-1 {
flex: 1; } flex: 1; }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</view> </view>
<!-- 图片导航 {{pItem.navigation.images}} pd1530--> <!-- 图片导航 {{pItem.navigation.images}} pd1530-->
<view class="pd1530" wx:if="{{pItem.type == 3}}"> <view class="pd1520" wx:if="{{pItem.type == 3}}">
<pic-nav bind:updatePage="updatePage" pic-nav="{{pItem.navigation.images}}" /> <pic-nav bind:updatePage="updatePage" pic-nav="{{pItem.navigation.images}}" />
</view> </view>
<!-- 底部 --> <!-- 底部 -->
......
...@@ -60,7 +60,8 @@ function imageUtil(e) { ...@@ -60,7 +60,8 @@ function imageUtil(e) {
success: function (res) { success: function (res) {
// var windowWidth = res.windowWidth/2; // var windowWidth = res.windowWidth/2;
// var windowHeight = res.windowHeight/2; // var windowHeight = res.windowHeight/2;
var windowWidth = (res.windowWidth - 30)/2; // var windowWidth = (res.windowWidth - 30)/2;
var windowWidth = (res.windowWidth - 15)/2;
var windowHeight = res.windowHeight/2; var windowHeight = res.windowHeight/2;
var windowscale = windowHeight/windowWidth;//屏幕高宽比 var windowscale = windowHeight/windowWidth;//屏幕高宽比
if(originalScale < windowscale){//图片高宽比小于屏幕高宽比 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