Commit a80f5c81 by 黄秀兰

up

parent 6add8e94
...@@ -18,7 +18,7 @@ function renderSliderData ( res, root_images ) { ...@@ -18,7 +18,7 @@ function renderSliderData ( res, root_images ) {
var src = root_images + item.src; var src = root_images + item.src;
var exif = JSON.parse(item.exif); var exif = JSON.parse(item.exif);
var keys = ['make', 'model', 'focalLength', 'fNumber', 'exposureTime', 'ISO', 'exposureBiasValue', 'lensModel']; var keys = ['make', 'model', 'focalLength', 'fNumber', 'exposureTime', 'ISO', 'exposureBiasValue', 'lensModel', 'create_time'];
var len = keys.length; var len = keys.length;
if ( item.exif ) { if ( item.exif ) {
...@@ -54,7 +54,8 @@ function renderSliderData ( res, root_images ) { ...@@ -54,7 +54,8 @@ function renderSliderData ( res, root_images ) {
shutterSpeed: exposureTime, shutterSpeed: exposureTime,
iso: exif.ISO, iso: exif.ISO,
exposure: exposureBiasValue, exposure: exposureBiasValue,
lens: exif.lensModel lens: exif.lensModel,
create_time: exif.create_time
} }
var obj = { var obj = {
exif: exif_obj, exif: exif_obj,
......
...@@ -50,6 +50,10 @@ ...@@ -50,6 +50,10 @@
<text>镜头</text> <text>镜头</text>
<text>{{ slider.photos[slider.current-1].exif.lens }}</text> <text>{{ slider.photos[slider.current-1].exif.lens }}</text>
</view> </view>
<view>
<text>拍摄日期</text>
<text>{{ slider.photos[slider.current-1].exif.create_time }}</text>
</view>
</view> </view>
</view> </view>
<image class="slider-loading" src="../../images/loading.gif" hidden="{{ slider.is_hide_loading }}"></image> <image class="slider-loading" src="../../images/loading.gif" hidden="{{ slider.is_hide_loading }}"></image>
......
...@@ -177,7 +177,6 @@ Page({ ...@@ -177,7 +177,6 @@ Page({
var pre = obj.relate.pre; var pre = obj.relate.pre;
console.log(current_day);
current_day = this.dateToDay(current_day); current_day = this.dateToDay(current_day);
render_date.start = obj.date_range.range_min; render_date.start = obj.date_range.range_min;
......
...@@ -183,6 +183,7 @@ page { ...@@ -183,6 +183,7 @@ page {
padding: 20rpx 15rpx; padding: 20rpx 15rpx;
color: #999; color: #999;
line-height: 1.4; line-height: 1.4;
word-wrap: break-word;
} }
/* 快拍 */ /* 快拍 */
......
...@@ -424,12 +424,15 @@ Page({ ...@@ -424,12 +424,15 @@ Page({
}, err => { }, err => {
console.log(err); console.log(err);
var msg = err.data.message; var msg = err.data.message;
wx.hideLoading();
if ( msg ) { if ( msg ) {
wx.showToast({ wx.showToast({
title: msg title: msg
}); });
}; };
wx.hideLoading();
that.is_uploading = false; that.is_uploading = false;
}) })
}; };
...@@ -447,15 +450,13 @@ Page({ ...@@ -447,15 +450,13 @@ Page({
}, err => { }, err => {
console.log(err); console.log(err);
var msg = err.data.message; // var msg = err.data.message;
that.is_uploading = false; that.is_uploading = false;
wx.hideLoading(); wx.hideLoading();
if ( msg ) { wx.showToast({
wx.showToast({ title: err
title: msg });
});
};
}); });
} }
}); });
......
...@@ -115,6 +115,7 @@ page { ...@@ -115,6 +115,7 @@ page {
.des { .des {
line-height: 1.4; line-height: 1.4;
color: #666; color: #666;
word-wrap: break-word;
} }
/* 评论面板 */ /* 评论面板 */
.work-comment-panel { .work-comment-panel {
......
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