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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
7 deletions
+31
-7
components/slider/slider.js
+10
-1
pages/index/index.js
+12
-2
pages/index/index.wxss
+9
-4
No files found.
components/slider/slider.js
View file @
297fb407
...
...
@@ -46,6 +46,15 @@ function renderSliderData ( res, root_images ) {
// expoureBiasValue
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
=
{
make
:
exif
.
make
,
model
:
exif
.
model
,
...
...
@@ -55,7 +64,7 @@ function renderSliderData ( res, root_images ) {
iso
:
exif
.
ISO
,
exposure
:
exposureBiasValue
,
lens
:
exif
.
lensModel
,
create_time
:
exif
.
create_time
create_time
:
create_time
}
var
obj
=
{
exif
:
exif_obj
,
...
...
pages/index/index.js
View file @
297fb407
...
...
@@ -429,14 +429,12 @@ Page({
var
pre_obj
=
_this
.
formatTimeStamp
(
pre_timestamp
);
date
=
pre_obj
.
year
+
'-'
+
pre_obj
.
month
+
'-'
+
pre_obj
.
date
;
console
.
log
(
'pre:'
+
date
);
}
else
if
(
type
==
'next'
)
{
var
next_timestamp
=
timestamp
+
24
*
60
*
60
*
1000
;
var
next_obj
=
_this
.
formatTimeStamp
(
next_timestamp
);
date
=
next_obj
.
year
+
'-'
+
next_obj
.
month
+
'-'
+
next_obj
.
date
;
console
.
log
(
'next:'
+
date
);
}
_this
.
circleGetCurrent
(
date
,
type
);
...
...
@@ -543,4 +541,15 @@ Page({
});
};
},
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 {
height: 110rpx;
}
.top-photo-rewards .rewards {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 18rpx;
position:absolute;
left:50%;
transform:translateX(-50%);
bottom:18rpx;
width:70%;
text-align:center;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
/* top1:作品详细信息 */
.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