Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp_snapshot
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄秀兰
mp_snapshot
Commits
297fb407
Commit
297fb407
authored
Jul 19, 2017
by
黄秀兰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exif 时间格式调整
parent
a80f5c81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
8 deletions
+32
-8
components/slider/slider.js
+10
-1
pages/index/index.js
+13
-3
pages/index/index.wxss
+9
-4
No files found.
components/slider/slider.js
View file @
297fb407
...
@@ -45,6 +45,15 @@ function renderSliderData ( res, root_images ) {
...
@@ -45,6 +45,15 @@ function renderSliderData ( res, root_images ) {
// expoureBiasValue
// expoureBiasValue
var
exposureBiasValue
=
formatNum
(
exif
.
exposureBiasValue
);
var
exposureBiasValue
=
formatNum
(
exif
.
exposureBiasValue
);
// create_time
var
create_time
;
if
(
exif
.
create_time
.
search
(
/
\/
/g
)
==
-
1
)
{
var
create_time_arr
=
exif
.
create_time
.
split
(
' '
);
var
create_time_date
=
create_time_arr
[
0
].
split
(
':'
).
join
(
'-'
);
create_time
=
create_time_date
+
' '
+
create_time_arr
[
1
];
}
var
exif_obj
=
{
var
exif_obj
=
{
make
:
exif
.
make
,
make
:
exif
.
make
,
...
@@ -55,7 +64,7 @@ function renderSliderData ( res, root_images ) {
...
@@ -55,7 +64,7 @@ function renderSliderData ( res, root_images ) {
iso
:
exif
.
ISO
,
iso
:
exif
.
ISO
,
exposure
:
exposureBiasValue
,
exposure
:
exposureBiasValue
,
lens
:
exif
.
lensModel
,
lens
:
exif
.
lensModel
,
create_time
:
exif
.
create_time
create_time
:
create_time
}
}
var
obj
=
{
var
obj
=
{
exif
:
exif_obj
,
exif
:
exif_obj
,
...
...
pages/index/index.js
View file @
297fb407
...
@@ -429,14 +429,12 @@ Page({
...
@@ -429,14 +429,12 @@ Page({
var
pre_obj
=
_this
.
formatTimeStamp
(
pre_timestamp
);
var
pre_obj
=
_this
.
formatTimeStamp
(
pre_timestamp
);
date
=
pre_obj
.
year
+
'-'
+
pre_obj
.
month
+
'-'
+
pre_obj
.
date
;
date
=
pre_obj
.
year
+
'-'
+
pre_obj
.
month
+
'-'
+
pre_obj
.
date
;
console
.
log
(
'pre:'
+
date
);
}
}
else
if
(
type
==
'next'
)
{
else
if
(
type
==
'next'
)
{
var
next_timestamp
=
timestamp
+
24
*
60
*
60
*
1000
;
var
next_timestamp
=
timestamp
+
24
*
60
*
60
*
1000
;
var
next_obj
=
_this
.
formatTimeStamp
(
next_timestamp
);
var
next_obj
=
_this
.
formatTimeStamp
(
next_timestamp
);
date
=
next_obj
.
year
+
'-'
+
next_obj
.
month
+
'-'
+
next_obj
.
date
;
date
=
next_obj
.
year
+
'-'
+
next_obj
.
month
+
'-'
+
next_obj
.
date
;
console
.
log
(
'next:'
+
date
);
}
}
_this
.
circleGetCurrent
(
date
,
type
);
_this
.
circleGetCurrent
(
date
,
type
);
...
@@ -542,5 +540,16 @@ Page({
...
@@ -542,5 +540,16 @@ Page({
_this
.
is_pull_down_refresh
=
false
;
_this
.
is_pull_down_refresh
=
false
;
});
});
};
};
},
},
onShareAppMessage
:
function
()
{
var
top
=
this
.
data
.
top_photo
;
var
name
=
'米拍|天天快拍 '
;
if
(
isEmptyObj
(
top
)
)
{
}
else
{
}
}
});
});
\ No newline at end of file
pages/index/index.wxss
View file @
297fb407
...
@@ -84,10 +84,15 @@ page {
...
@@ -84,10 +84,15 @@ page {
height: 110rpx;
height: 110rpx;
}
}
.top-photo-rewards .rewards {
.top-photo-rewards .rewards {
position: absolute;
position:absolute;
left: 50%;
left:50%;
transform: translateX(-50%);
transform:translateX(-50%);
bottom: 18rpx;
bottom:18rpx;
width:70%;
text-align:center;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
}
/* top1:作品详细信息 */
/* top1:作品详细信息 */
.top-photo-details {
.top-photo-details {
...
...
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