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
3ce0eb07
Commit
3ce0eb07
authored
Jun 17, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 样式
parent
557c6640
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
picNav.wxml
src/component/picNav/picNav.wxml
+4
-2
picNav.wxss
src/component/picNav/picNav.wxss
+17
-3
util.js
src/utils/util.js
+1
-1
No files found.
src/component/picNav/picNav.wxml
View file @
3ce0eb07
<!--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
src/component/picNav/picNav.wxss
View file @
3ce0eb07
/* 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; */
}
src/utils/util.js
View file @
3ce0eb07
...
...
@@ -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
){
//图片高宽比小于屏幕高宽比
...
...
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