Showing
4 changed files
with
30 additions
and
4 deletions
@@ -28,7 +28,7 @@ exports.index = (req, res) => { | @@ -28,7 +28,7 @@ exports.index = (req, res) => { | ||
28 | thumb: 'http://img10.static.yhbimg.com/goodsimg/2015/08/05/06/016aeb5985c7e186b5c4e43e165311126d.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70', | 28 | thumb: 'http://img10.static.yhbimg.com/goodsimg/2015/08/05/06/016aeb5985c7e186b5c4e43e165311126d.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70', |
29 | name: '阿斯顿发到付', | 29 | name: '阿斯顿发到付', |
30 | comments: [{ | 30 | comments: [{ |
31 | - img: 'http://img10.static.yhbimg.com/goodsimg/2015/08/05/06/016aeb5985c7e186b5c4e43e165311126d.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70' | 31 | + img: '//img12.static.yhbimg.com/article/2016/10/25/14/02fffad7f7caef65d7acb61a7334ece93a.jpg?imageView2/1/w/360/h/240' |
32 | }, { | 32 | }, { |
33 | img: 'http://img10.static.yhbimg.com/goodsimg/2015/08/05/06/016aeb5985c7e186b5c4e43e165311126d.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70' | 33 | img: 'http://img10.static.yhbimg.com/goodsimg/2015/08/05/06/016aeb5985c7e186b5c4e43e165311126d.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70' |
34 | }] | 34 | }] |
@@ -15,7 +15,13 @@ module.exports = { | @@ -15,7 +15,13 @@ module.exports = { | ||
15 | port: 6002, | 15 | port: 6002, |
16 | siteUrl: 'http://www.yohobuy.com', | 16 | siteUrl: 'http://www.yohobuy.com', |
17 | domains: { | 17 | domains: { |
18 | - favApi: 'http://192.168.102.31:8092/brower', | 18 | + // api: 'http://api.yoho.yohoops.org/', |
19 | + // service: 'http://service.yoho.yohoops.org/', | ||
20 | + // search: 'http://search.yohoops.org/yohosearch/' | ||
21 | + //api: 'http://testapi.yoho.cn:28078/', | ||
22 | + //service: 'http://testservice.yoho.cn:28077/', | ||
23 | + //api: 'http://api-test1.yohops.com:9999/', | ||
24 | + //service: 'http://service-test1.yohops.com:9999/', | ||
19 | api: 'http://api.yoho.cn/', | 25 | api: 'http://api.yoho.cn/', |
20 | service: 'http://service.yoho.cn/', | 26 | service: 'http://service.yoho.cn/', |
21 | search: 'http://192.168.102.216:8080/yohosearch/' | 27 | search: 'http://192.168.102.216:8080/yohosearch/' |
@@ -33,6 +39,10 @@ module.exports = { | @@ -33,6 +39,10 @@ module.exports = { | ||
33 | useOneapm: false, | 39 | useOneapm: false, |
34 | useCache: false, | 40 | useCache: false, |
35 | memcache: { | 41 | memcache: { |
42 | + | ||
43 | + // master: ['192.168.102.222:11213'], | ||
44 | + // slave: ['192.168.102.222:11213'], | ||
45 | + // session: ['192.168.102.222:11213'], | ||
36 | master: ['127.0.0.1:11211'], | 46 | master: ['127.0.0.1:11211'], |
37 | slave: ['127.0.0.1:11211'], | 47 | slave: ['127.0.0.1:11211'], |
38 | session: ['127.0.0.1:11211'], | 48 | session: ['127.0.0.1:11211'], |
@@ -9,8 +9,8 @@ var $ = require('yoho-jquery'), | @@ -9,8 +9,8 @@ var $ = require('yoho-jquery'), | ||
9 | Dialog = require('./dialog').Dialog; | 9 | Dialog = require('./dialog').Dialog; |
10 | 10 | ||
11 | var tpl = '<div class="toolbar">' + | 11 | var tpl = '<div class="toolbar">' + |
12 | - '<span class="preview-route-left"><i class="iconfont"></i>向左转</span>' + | ||
13 | - '<span class="preview-route-right"><i class="iconfont"></i>向右转</span>' + | 12 | + '<a class="preview-route-left" href="javacript:void(0);"><i class="iconfont"></i>向左转</a>' + |
13 | + '<a class="preview-route-right" href="javacript:void(0);"><i class="iconfont"></i>向右转</a>' + | ||
14 | '</div>' + | 14 | '</div>' + |
15 | '<div class="preview-body"><img /></div>'; | 15 | '<div class="preview-body"><img /></div>'; |
16 | 16 | ||
@@ -62,6 +62,7 @@ ImgPreview.prototype.preview = function(url) { | @@ -62,6 +62,7 @@ ImgPreview.prototype.preview = function(url) { | ||
62 | 62 | ||
63 | this._data.rotate = 0; | 63 | this._data.rotate = 0; |
64 | this.$img.attr('src', this._data.url); | 64 | this.$img.attr('src', this._data.url); |
65 | + this.refresh(); | ||
65 | 66 | ||
66 | this.show(); | 67 | this.show(); |
67 | }; | 68 | }; |
@@ -2,6 +2,8 @@ | @@ -2,6 +2,8 @@ | ||
2 | padding:10px; | 2 | padding:10px; |
3 | padding-top:0; | 3 | padding-top:0; |
4 | border:none; | 4 | border:none; |
5 | + box-shadow: 0 0 5px #AAA; | ||
6 | + max-width:990px; | ||
5 | 7 | ||
6 | .toolbar{ | 8 | .toolbar{ |
7 | padding: 10px; | 9 | padding: 10px; |
@@ -13,4 +15,17 @@ | @@ -13,4 +15,17 @@ | ||
13 | margin-right: 10px; | 15 | margin-right: 10px; |
14 | } | 16 | } |
15 | } | 17 | } |
18 | + | ||
19 | + .close{ | ||
20 | + right:2px; | ||
21 | + | ||
22 | + i{ | ||
23 | + font-size: 26px; | ||
24 | + color: #666; | ||
25 | + } | ||
26 | + } | ||
27 | + | ||
28 | + .preview-body{ | ||
29 | + overflow: hidden; | ||
30 | + } | ||
16 | } | 31 | } |
-
Please register or login to post a comment