Authored by zhangxiaoru

shopcollection

@@ -20,7 +20,7 @@ const shopList = (uid, tabName) => { @@ -20,7 +20,7 @@ const shopList = (uid, tabName) => {
20 }).then((result) => { 20 }).then((result) => {
21 if (result && result.code === 200) { 21 if (result && result.code === 200) {
22 _.forEach(result.data, function(data) { 22 _.forEach(result.data, function(data) {
23 - let href = 'https://m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby: yohobuy={"action":"go.shop","params":{"shop_id":"' 23 + let href = '//m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby: yohobuy={"action":"go.shop","params":{"shop_id":"'
24 + data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}'; 24 + data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}';
25 25
26 data.isFavorite = data.isFavorite === 'Y'; 26 data.isFavorite = data.isFavorite === 'Y';
@@ -93,7 +93,7 @@ likeHammer.on('tap', function(e) { @@ -93,7 +93,7 @@ likeHammer.on('tap', function(e) {
93 var opt = 'ok', 93 var opt = 'ok',
94 $this = $(e.target); 94 $this = $(e.target);
95 95
96 - //jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP 96 + // jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP
97 if (jumpToApp === '1') { 97 if (jumpToApp === '1') {
98 return false; 98 return false;
99 } 99 }
@@ -113,7 +113,7 @@ likeHammer.on('tap', function(e) { @@ -113,7 +113,7 @@ likeHammer.on('tap', function(e) {
113 uid: uid 113 uid: uid
114 }, 114 },
115 success: function(data) { 115 success: function(data) {
116 - console.log(data) 116 + console.log(data);
117 if (data.code === 200) { 117 if (data.code === 200) {
118 $this.toggleClass('like'); 118 $this.toggleClass('like');
119 tip.show(data.message); 119 tip.show(data.message);
@@ -213,6 +213,7 @@ seckillObj = { @@ -213,6 +213,7 @@ seckillObj = {
213 213
214 if (focusElem.length) { 214 if (focusElem.length) {
215 location.reload(); 215 location.reload();
  216 +
216 // that.refreshProductList( 217 // that.refreshProductList(
217 // focusElem.find('input.activityId').val(), 218 // focusElem.find('input.activityId').val(),
218 // focusElem.find('input.date').val() 219 // focusElem.find('input.date').val()
@@ -49,17 +49,21 @@ @@ -49,17 +49,21 @@
49 49
50 .collect { 50 .collect {
51 float: right; 51 float: right;
52 - margin-right: 30px; 52 + margin-right: 15px;
53 line-height: 70px; 53 line-height: 70px;
54 height: 70px; 54 height: 70px;
55 55
56 .fans { 56 .fans {
57 - margin-right: 30px; 57 + margin-right: 10px;
58 color: #666; 58 color: #666;
59 } 59 }
60 60
61 .collect-btn { 61 .collect-btn {
62 color: #b0b0b0; 62 color: #b0b0b0;
  63 + display: inline-block;
  64 + width: 50px;
  65 + font-size: 24px;
  66 + text-align: center;
63 } 67 }
64 68
65 .already-collect { 69 .already-collect {