Showing
9 changed files
with
46 additions
and
18 deletions
framework @ 119c247f
static/img/me/fav-s208089bda2.png
0 → 100644

6.61 KB
static/img/me/fav-s7d0775342b.png
deleted
100644 → 0

6.24 KB
static/img/me/fav/fav-more.png
0 → 100644

1.31 KB
@@ -12,20 +12,16 @@ var $ = require('jquery'), | @@ -12,20 +12,16 @@ var $ = require('jquery'), | ||
12 | require('./jquery.uploadifive'); | 12 | require('./jquery.uploadifive'); |
13 | 13 | ||
14 | $('#upload-img').uploadifive({ | 14 | $('#upload-img').uploadifive({ |
15 | - 'auto': false, | ||
16 | - 'buttonClass': 'nav-btn', | ||
17 | - 'formData': { | ||
18 | - | ||
19 | - }, | ||
20 | - 'fileType': 'image/*', | ||
21 | - 'uploadScript': 'url', | ||
22 | - 'fileObjName': 'imgName', | ||
23 | - 'fileSizeLimit': 1024, | ||
24 | - 'onAddQueueItem': function (file) { | 15 | + auto: true, |
16 | + buttonClass: 'nav-btn', | ||
17 | + fileType: 'image/*', | ||
18 | + uploadScript: '/home/suggestimgUpload', | ||
19 | + fileObjName: 'fileData', | ||
20 | + fileSizeLimit: 1024, | ||
21 | + onAddQueueItem: function (file) { | ||
25 | console.log(file); | 22 | console.log(file); |
26 | - alert(1); | ||
27 | }, | 23 | }, |
28 | - 'onQueueComplete': function (file) { | ||
29 | - | 24 | + onQueueComplete: function (file) { |
25 | + console.log(file); | ||
30 | } | 26 | } |
31 | }); | 27 | }); |
@@ -184,9 +184,12 @@ $fav: sprite-map("me/fav/*.png",$spacing: 5px); | @@ -184,9 +184,12 @@ $fav: sprite-map("me/fav/*.png",$spacing: 5px); | ||
184 | .fav-brand-swiper { | 184 | .fav-brand-swiper { |
185 | 185 | ||
186 | .swiper-header { | 186 | .swiper-header { |
187 | - height: pxToRem(60px); | 187 | + height: pxToRem(100px); |
188 | padding: pxToRem(20px) pxToRem(30px); | 188 | padding: pxToRem(20px) pxToRem(30px); |
189 | display: inline-block; | 189 | display: inline-block; |
190 | + position: relative; | ||
191 | + width: 100%; | ||
192 | + @include box-sizing(); | ||
190 | 193 | ||
191 | .swiper-logo { | 194 | .swiper-logo { |
192 | height: 100%; | 195 | height: 100%; |
@@ -229,6 +232,19 @@ $fav: sprite-map("me/fav/*.png",$spacing: 5px); | @@ -229,6 +232,19 @@ $fav: sprite-map("me/fav/*.png",$spacing: 5px); | ||
229 | } | 232 | } |
230 | } | 233 | } |
231 | } | 234 | } |
235 | + .fav-more { | ||
236 | + $width: pxToRem(image_width(sprite-file($fav, fav-more))); | ||
237 | + $height: pxToRem(image_height(sprite-file($fav, fav-more))); | ||
238 | + | ||
239 | + @include rem-sprite($fav, fav-more); | ||
240 | + width: $width; | ||
241 | + height: $height; | ||
242 | + | ||
243 | + position: absolute; | ||
244 | + top: 50%; | ||
245 | + right: pxToRem(30px); | ||
246 | + margin-top: -$height / 2; | ||
247 | + } | ||
232 | } | 248 | } |
233 | .swiper-container { | 249 | .swiper-container { |
234 | height: pxToRem(300px); | 250 | height: pxToRem(300px); |
@@ -66,7 +66,7 @@ | @@ -66,7 +66,7 @@ | ||
66 | {{/ discount}} | 66 | {{/ discount}} |
67 | </div> | 67 | </div> |
68 | </div> | 68 | </div> |
69 | - <a href="{{link}}"></a> | 69 | + <a class="fav-more" href="{{link}}"></a> |
70 | </div> | 70 | </div> |
71 | <div id="swiper-container-{{id}}" class="swiper-container" data-id="{{id}}"> | 71 | <div id="swiper-container-{{id}}" class="swiper-container" data-id="{{id}}"> |
72 | <ul class="swiper-wrapper swiper-wrapper-{{id}}"> | 72 | <ul class="swiper-wrapper swiper-wrapper-{{id}}"> |
1 | {{> layout/header}} | 1 | {{> layout/header}} |
2 | <div class="yoho-suggest-sub-page yoho-page"> | 2 | <div class="yoho-suggest-sub-page yoho-page"> |
3 | {{# suggestSub}} | 3 | {{# suggestSub}} |
4 | - <div class="suggest-sub-form"> | 4 | + <div class="suggest-sub-form" |
5 | + data-version="{{param.app_version}}" | ||
6 | + data-type="{{param.client_type}}" | ||
7 | + data-os-version="{{param.os_version}}" | ||
8 | + data-screen-size="{{param.screen_size}}" | ||
9 | + data-v="{{param.v}}" | ||
10 | + data-project="{{param.project}}" | ||
11 | + data-client-secret="{{param.client_secret}}"> | ||
5 | <textarea name="" id="suggest-textarea" placeholder="请输入意见反馈,我们会以消息形式回复您的建议或意见,改进产品体验,谢谢!"></textarea> | 12 | <textarea name="" id="suggest-textarea" placeholder="请输入意见反馈,我们会以消息形式回复您的建议或意见,改进产品体验,谢谢!"></textarea> |
6 | <div class="img-form"> | 13 | <div class="img-form"> |
7 | <span class="img-add"> | 14 | <span class="img-add"> |
@@ -157,6 +157,15 @@ class HomeController extends AbstractAction | @@ -157,6 +157,15 @@ class HomeController extends AbstractAction | ||
157 | )); | 157 | )); |
158 | } | 158 | } |
159 | 159 | ||
160 | + | ||
161 | + /** | ||
162 | + * 用户收藏的商品-删除 | ||
163 | + */ | ||
164 | + public function favoriteDelAction() { | ||
165 | + | ||
166 | + //$this->echoJson(); | ||
167 | + } | ||
168 | + | ||
160 | /** | 169 | /** |
161 | * 用户收藏的品牌 | 170 | * 用户收藏的品牌 |
162 | */ | 171 | */ |
@@ -381,7 +390,7 @@ class HomeController extends AbstractAction | @@ -381,7 +390,7 @@ class HomeController extends AbstractAction | ||
381 | 'suggestSub' => true, | 390 | 'suggestSub' => true, |
382 | 'pageFooter' => true | 391 | 'pageFooter' => true |
383 | ); | 392 | ); |
384 | - print_r($data); | 393 | + //print_r($data); |
385 | 394 | ||
386 | $this->_view->display('suggest_sub', $data); | 395 | $this->_view->display('suggest_sub', $data); |
387 | } | 396 | } |
-
Please register or login to post a comment