Authored by 刘传洋

comment

... ... @@ -28,7 +28,7 @@ exports.index = (req, res) => {
thumb: 'http://img10.static.yhbimg.com/goodsimg/2015/08/05/06/016aeb5985c7e186b5c4e43e165311126d.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70',
name: '阿斯顿发到付',
comments: [{
img: 'http://img10.static.yhbimg.com/goodsimg/2015/08/05/06/016aeb5985c7e186b5c4e43e165311126d.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70'
img: '//img12.static.yhbimg.com/article/2016/10/25/14/02fffad7f7caef65d7acb61a7334ece93a.jpg?imageView2/1/w/360/h/240'
}, {
img: 'http://img10.static.yhbimg.com/goodsimg/2015/08/05/06/016aeb5985c7e186b5c4e43e165311126d.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70'
}]
... ...
... ... @@ -15,7 +15,13 @@ module.exports = {
port: 6002,
siteUrl: 'http://www.yohobuy.com',
domains: {
favApi: 'http://192.168.102.31:8092/brower',
// api: 'http://api.yoho.yohoops.org/',
// service: 'http://service.yoho.yohoops.org/',
// search: 'http://search.yohoops.org/yohosearch/'
//api: 'http://testapi.yoho.cn:28078/',
//service: 'http://testservice.yoho.cn:28077/',
//api: 'http://api-test1.yohops.com:9999/',
//service: 'http://service-test1.yohops.com:9999/',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
search: 'http://192.168.102.216:8080/yohosearch/'
... ... @@ -33,6 +39,10 @@ module.exports = {
useOneapm: false,
useCache: false,
memcache: {
// master: ['192.168.102.222:11213'],
// slave: ['192.168.102.222:11213'],
// session: ['192.168.102.222:11213'],
master: ['127.0.0.1:11211'],
slave: ['127.0.0.1:11211'],
session: ['127.0.0.1:11211'],
... ...
... ... @@ -9,8 +9,8 @@ var $ = require('yoho-jquery'),
Dialog = require('./dialog').Dialog;
var tpl = '<div class="toolbar">' +
'<span class="preview-route-left"><i class="iconfont"></i>向左转</span>' +
'<span class="preview-route-right"><i class="iconfont"></i>向右转</span>' +
'<a class="preview-route-left" href="javacript:void(0);"><i class="iconfont">&#xe639;</i>向左转</a>' +
'<a class="preview-route-right" href="javacript:void(0);"><i class="iconfont">&#xe63a;</i>向右转</a>' +
'</div>' +
'<div class="preview-body"><img /></div>';
... ... @@ -62,6 +62,7 @@ ImgPreview.prototype.preview = function(url) {
this._data.rotate = 0;
this.$img.attr('src', this._data.url);
this.refresh();
this.show();
};
... ...
... ... @@ -2,6 +2,8 @@
padding:10px;
padding-top:0;
border:none;
box-shadow: 0 0 5px #AAA;
max-width:990px;
.toolbar{
padding: 10px;
... ... @@ -13,4 +15,17 @@
margin-right: 10px;
}
}
.close{
right:2px;
i{
font-size: 26px;
color: #666;
}
}
.preview-body{
overflow: hidden;
}
}
... ...