Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
4c7dd4b9
Commit
4c7dd4b9
authored
Jun 17, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 图片导航_padding
parent
58d9e530
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
base.wxss
src/base/base.wxss
+3
-1
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+1
-1
util.js
src/utils/util.js
+2
-1
No files found.
src/base/base.wxss
View file @
4c7dd4b9
...
...
@@ -34,7 +34,9 @@ a {
.pd1530{
padding: 0 30rpx;
}
.pd1520 {
padding: 0 15rpx;
}
.df-1 {
flex: 1; }
...
...
src/pages/userCenter/userCenter.wxml
View file @
4c7dd4b9
...
...
@@ -15,7 +15,7 @@
</view>
<!-- 图片导航 {{pItem.navigation.images}} pd1530-->
<view class="pd15
3
0" wx:if="{{pItem.type == 3}}">
<view class="pd15
2
0" wx:if="{{pItem.type == 3}}">
<pic-nav bind:updatePage="updatePage" pic-nav="{{pItem.navigation.images}}" />
</view>
<!-- 底部 -->
...
...
src/utils/util.js
View file @
4c7dd4b9
...
...
@@ -60,7 +60,8 @@ 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 - 30)/2;
var
windowWidth
=
(
res
.
windowWidth
-
15
)
/
2
;
var
windowHeight
=
res
.
windowHeight
/
2
;
var
windowscale
=
windowHeight
/
windowWidth
;
//屏幕高宽比
if
(
originalScale
<
windowscale
){
//图片高宽比小于屏幕高宽比
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment