Showing
4 changed files
with
148 additions
and
83 deletions
@@ -472,6 +472,10 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | @@ -472,6 +472,10 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | ||
472 | //老的选中颜色去掉勾选,新的选中颜色加上勾选 | 472 | //老的选中颜色去掉勾选,新的选中颜色加上勾选 |
473 | changeColorChosed(0); | 473 | changeColorChosed(0); |
474 | 474 | ||
475 | + if (!$('.size-info').hasClass('hide')) { | ||
476 | + $('.size-info').addClass('hide'); | ||
477 | + } | ||
478 | + | ||
475 | // 当前尺码不是选中状态,选中时 | 479 | // 当前尺码不是选中状态,选中时 |
476 | } else { | 480 | } else { |
477 | hasChooseSize = true; | 481 | hasChooseSize = true; |
@@ -492,6 +496,8 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | @@ -492,6 +496,8 @@ $yohoPage.on('touchstart', '.color-list .block', function() { | ||
492 | 496 | ||
493 | curColorIndex = index + 1; | 497 | curColorIndex = index + 1; |
494 | $curSizeBlock = $this; | 498 | $curSizeBlock = $this; |
499 | + | ||
500 | + $('.size-info').html($(this).data('info')).removeClass('hide'); | ||
495 | } | 501 | } |
496 | 502 | ||
497 | // 颜色块切换勾选样式 | 503 | // 颜色块切换勾选样式 |
@@ -718,6 +724,18 @@ $yohoPage.on('touchstart', '.btn-minus', function() { | @@ -718,6 +724,18 @@ $yohoPage.on('touchstart', '.btn-minus', function() { | ||
718 | 724 | ||
719 | }); | 725 | }); |
720 | 726 | ||
727 | +$yohoPage.on('touchstart', '.close', function() { | ||
728 | + hide(); | ||
729 | +}); | ||
730 | + | ||
731 | +$yohoPage.on('touchstart', '.thumb', function() { | ||
732 | + if ($(this).hasClass('hover')) { | ||
733 | + $(this).removeClass('hover'); | ||
734 | + } else { | ||
735 | + $(this).addClass('hover'); | ||
736 | + } | ||
737 | +}) | ||
738 | + | ||
721 | exports.init = init; | 739 | exports.init = init; |
722 | exports.show = show; | 740 | exports.show = show; |
723 | exports.remove = removePannel; | 741 | exports.remove = removePannel; |
1 | .chose-panel { | 1 | .chose-panel { |
2 | position: fixed; | 2 | position: fixed; |
3 | - display: none; | ||
4 | - height: 100%; | ||
5 | top: 0; | 3 | top: 0; |
4 | + right: 0; | ||
6 | bottom: 0; | 5 | bottom: 0; |
7 | left: 0; | 6 | left: 0; |
8 | - right: 0; | ||
9 | - background: rgba(0,0,0,.3); | ||
10 | - z-index:3; | ||
11 | - | 7 | + z-index: 3; |
8 | + display: none; | ||
9 | + height: 100%; | ||
10 | + background: rgba(0, 0, 0, 0.3); | ||
12 | 11 | ||
13 | .main { | 12 | .main { |
14 | position: absolute; | 13 | position: absolute; |
15 | - height: 610px; | 14 | + right: 0; |
16 | bottom: 0; | 15 | bottom: 0; |
17 | left: 0; | 16 | left: 0; |
18 | - right: 0; | 17 | + height: 838px; |
19 | background: #fff; | 18 | background: #fff; |
20 | } | 19 | } |
21 | 20 | ||
21 | + .close { | ||
22 | + float: right; | ||
23 | + font-size: 80%; | ||
24 | + width: 30px; | ||
25 | + height: 30px; | ||
26 | + margin-right: 6px; | ||
27 | + text-align: right; | ||
28 | + } | ||
29 | + | ||
22 | .infos { | 30 | .infos { |
23 | - height: 460px; | ||
24 | - padding: 0 22px; | 31 | + padding: 0 30px; |
25 | } | 32 | } |
26 | 33 | ||
27 | .chose-items { | 34 | .chose-items { |
28 | - height: 325px; | ||
29 | overflow: auto; | 35 | overflow: auto; |
36 | + height: 500px; | ||
30 | } | 37 | } |
31 | 38 | ||
32 | .basic-info { | 39 | .basic-info { |
33 | - overflow: hidden; | ||
34 | position: relative; | 40 | position: relative; |
35 | - margin-bottom: 30px; | ||
36 | - margin-top: 30px; | 41 | + padding-bottom: 30px; |
42 | + min-height: 160px; | ||
43 | + border-bottom: 1px solid #e6e6e6; | ||
37 | } | 44 | } |
38 | 45 | ||
39 | .thumb { | 46 | .thumb { |
40 | - float: left; | ||
41 | - width: 100px; | ||
42 | - margin-right: 20px; | 47 | + width: 164px; |
48 | + /*height: 228px;*/ | ||
49 | + position: absolute; | ||
50 | + top: -60px; | ||
51 | + border: 1px solid #e6e6e6; | ||
52 | + border-radius: 5px; | ||
43 | } | 53 | } |
44 | 54 | ||
45 | .text-info { | 55 | .text-info { |
56 | + margin-left: 195px; | ||
46 | height: auto; | 57 | height: auto; |
58 | + margin-top: 30px; | ||
59 | + font-size: 24px; | ||
60 | + | ||
61 | + .seckill-time { | ||
62 | + position: absolute; | ||
63 | + bottom: 0; | ||
64 | + right: 0; | ||
65 | + float: none; | ||
66 | + } | ||
67 | + | ||
47 | .name { | 68 | .name { |
48 | - font-size: 28px; | ||
49 | - height: 74px; | ||
50 | - overflow: hidden; | ||
51 | display: -webkit-box; | 69 | display: -webkit-box; |
70 | + overflow: hidden; | ||
71 | + height: 60px; | ||
72 | + font-size: 28px; | ||
52 | -webkit-line-clamp: 2; | 73 | -webkit-line-clamp: 2; |
53 | -webkit-box-orient: vertical; | 74 | -webkit-box-orient: vertical; |
54 | } | 75 | } |
55 | 76 | ||
56 | - .price{ | ||
57 | - font-size: 24px; | 77 | + .price { |
58 | display: inline; | 78 | display: inline; |
79 | + font-size: 24px; | ||
59 | } | 80 | } |
81 | + | ||
60 | .sale-price { | 82 | .sale-price { |
61 | - color: #e10; | ||
62 | margin-right: 15px; | 83 | margin-right: 15px; |
84 | + color: #D0021b; | ||
85 | + font-size: 28px; | ||
63 | 86 | ||
64 | &.no-price { | 87 | &.no-price { |
65 | color: #000; | 88 | color: #000; |
@@ -70,34 +93,60 @@ | @@ -70,34 +93,60 @@ | ||
70 | color: #b0b0b0; | 93 | color: #b0b0b0; |
71 | text-decoration: line-through; | 94 | text-decoration: line-through; |
72 | } | 95 | } |
96 | + | ||
97 | + .size-info { | ||
98 | + font-size: 24px; | ||
99 | + display: block; | ||
100 | + margin-top: 5px; | ||
101 | + color: #444; | ||
102 | + } | ||
103 | + | ||
104 | + .hide { | ||
105 | + display: none; | ||
106 | + } | ||
73 | } | 107 | } |
74 | 108 | ||
75 | - .color-list, .size-list, .num { | 109 | + .color-list, |
110 | + .size-list, | ||
111 | + .num { | ||
76 | position: relative; | 112 | position: relative; |
77 | - font-size: 28px; | ||
78 | padding-left: 80px; | 113 | padding-left: 80px; |
79 | - input.disabled{ | ||
80 | - background-color:#fff; | 114 | + font-size: 28px; |
115 | + overflow: hidden; | ||
116 | + /*margin-top: 30px;*/ | ||
117 | + | ||
118 | + input.disabled { | ||
119 | + border-radius: 0; | ||
120 | + background-color: #fff; | ||
81 | color: #000; | 121 | color: #000; |
82 | opacity: 1; | 122 | opacity: 1; |
83 | - border-radius: 0; | ||
84 | -webkit-appearance: none; | 123 | -webkit-appearance: none; |
85 | } | 124 | } |
125 | + | ||
86 | > span { | 126 | > span { |
87 | position: absolute; | 127 | position: absolute; |
128 | + top: 10px; | ||
88 | left: 0; | 129 | left: 0; |
89 | - top: 20px; | ||
90 | } | 130 | } |
91 | - >span.left-num{ | 131 | + |
132 | + > span.left-num { | ||
92 | position: absolute; | 133 | position: absolute; |
93 | - left: 380px; | ||
94 | top: 20px; | 134 | top: 20px; |
135 | + left: 380px; | ||
136 | + color: #b0b0b0; | ||
95 | } | 137 | } |
96 | - span.disabled{ | 138 | + |
139 | + span.disabled { | ||
97 | color: #e6e6e6; | 140 | color: #e6e6e6; |
98 | } | 141 | } |
99 | } | 142 | } |
100 | 143 | ||
144 | + .color-list, | ||
145 | + .size-list { | ||
146 | + border-bottom: 1px solid #e6e6e6; | ||
147 | + margin: 30px 0; | ||
148 | + } | ||
149 | + | ||
101 | .size-list li.hide { | 150 | .size-list li.hide { |
102 | display: none; | 151 | display: none; |
103 | } | 152 | } |
@@ -106,36 +155,36 @@ | @@ -106,36 +155,36 @@ | ||
106 | display: block; | 155 | display: block; |
107 | float: left; | 156 | float: left; |
108 | box-sizing: border-box; | 157 | box-sizing: border-box; |
109 | - margin-right: 0.75rem; | ||
110 | - margin-bottom: 0.75rem; | ||
111 | - padding: 0 0.5rem; | ||
112 | - min-width: 2rem; | ||
113 | - max-width: 12rem; | ||
114 | - height: 2rem; | ||
115 | - border: 1px solid #000; | 158 | + margin-right: 30px; |
159 | + margin-bottom: 30px; | ||
160 | + padding: 0 20px; | ||
161 | + min-width: 80px; | ||
162 | + max-width: 480px; | ||
163 | + height: 60px; | ||
164 | + border: 3px solid #444; | ||
116 | text-align: center; | 165 | text-align: center; |
117 | - line-height: 2rem; | 166 | + line-height: 60px; |
118 | white-space: nowrap; | 167 | white-space: nowrap; |
119 | text-overflow: ellipsis; | 168 | text-overflow: ellipsis; |
120 | overflow: hidden; | 169 | overflow: hidden; |
170 | + border-radius: 6px; | ||
121 | 171 | ||
122 | &.chosed { | 172 | &.chosed { |
123 | border-color: #e10; | 173 | border-color: #e10; |
124 | - background: resolve('shopping-cart/right.png') no-repeat; | ||
125 | - background-size: 38px; | ||
126 | - background-position: bottom right; | ||
127 | - color: #e10; | 174 | + background: #d0021b; |
175 | + color: #fff; | ||
128 | } | 176 | } |
129 | 177 | ||
130 | &.zero-stock { | 178 | &.zero-stock { |
131 | - color: #e0e0e0; | ||
132 | - border-color: #e0e0e0; | 179 | + border-color: #e0e0e0; |
180 | + color: #e0e0e0; | ||
133 | } | 181 | } |
182 | + | ||
134 | &.zero-stock.chosed { | 183 | &.zero-stock.chosed { |
135 | border-color: #e0e0e0; | 184 | border-color: #e0e0e0; |
136 | background: none; | 185 | background: none; |
137 | - color: #e0e0e0; | ||
138 | background-color: #c0c0c0; | 186 | background-color: #c0c0c0; |
187 | + color: #e0e0e0; | ||
139 | } | 188 | } |
140 | } | 189 | } |
141 | 190 | ||
@@ -144,13 +193,13 @@ | @@ -144,13 +193,13 @@ | ||
144 | } | 193 | } |
145 | 194 | ||
146 | .num .btn { | 195 | .num .btn { |
147 | - float: left; | ||
148 | display: block; | 196 | display: block; |
149 | - height: 80px; | 197 | + float: left; |
150 | width: 80px; | 198 | width: 80px; |
199 | + height: 80px; | ||
200 | + border: 1px solid #e6e6e6; | ||
151 | text-align: center; | 201 | text-align: center; |
152 | line-height: 80px; | 202 | line-height: 80px; |
153 | - border: 1px solid #e6e6e6; | ||
154 | 203 | ||
155 | &.disable { | 204 | &.disable { |
156 | color: #e6e6e6; | 205 | color: #e6e6e6; |
@@ -159,46 +208,44 @@ | @@ -159,46 +208,44 @@ | ||
159 | 208 | ||
160 | .good-num { | 209 | .good-num { |
161 | float: left; | 210 | float: left; |
211 | + margin-left: -1px; | ||
212 | + padding: 0; | ||
162 | width: 106px; | 213 | width: 106px; |
163 | height: 80px; | 214 | height: 80px; |
164 | - line-height: 80px; | ||
165 | - padding: 0; | ||
166 | border: 1px solid #e6e6e6; | 215 | border: 1px solid #e6e6e6; |
167 | text-align: center; | 216 | text-align: center; |
168 | - margin-left: -1px; | 217 | + line-height: 80px; |
169 | } | 218 | } |
170 | - .btn-plus{ | 219 | + |
220 | + .btn-plus { | ||
171 | margin-left: -1px; | 221 | margin-left: -1px; |
172 | } | 222 | } |
173 | 223 | ||
174 | .btn-wrap { | 224 | .btn-wrap { |
175 | - position: relative; | ||
176 | - height: 120px; | ||
177 | - border-top: 1px solid #e6e6e6; | ||
178 | - padding: 20px; | ||
179 | - text-align: center; | ||
180 | - background: #fff; | ||
181 | - box-sizing: border-box; | 225 | + position: fixed; |
226 | + bottom: 0; | ||
227 | + width: 100%; | ||
182 | 228 | ||
183 | .btn-sure { | 229 | .btn-sure { |
184 | - width: 260px; | 230 | + width: 100%; |
185 | height: 80px; | 231 | height: 80px; |
186 | - background: #e10; | 232 | + border: none; |
233 | + background: #d0021b; | ||
187 | color: #fff; | 234 | color: #fff; |
188 | font-size: 32px; | 235 | font-size: 32px; |
189 | - border: none; | ||
190 | - } | ||
191 | - } | ||
192 | - | ||
193 | - .tickets-info { | ||
194 | - | ||
195 | - span.left-num { | ||
196 | - color: #e10; | ||
197 | } | 236 | } |
198 | } | 237 | } |
199 | 238 | ||
200 | - .discount-gray { | ||
201 | - background-color: #e0e0e0; | 239 | + .hover { |
240 | + position: fixed; | ||
241 | + width: 100%; | ||
242 | + background-color: black; | ||
243 | + height: 100%; | ||
244 | + top: 0px; | ||
245 | + left: 0px; | ||
246 | + right: 0px; | ||
247 | + border: 0px; | ||
248 | + z-index: 999; | ||
202 | } | 249 | } |
203 | - | ||
204 | } | 250 | } |
251 | + |
@@ -981,7 +981,7 @@ class CartModel | @@ -981,7 +981,7 @@ class CartModel | ||
981 | 981 | ||
982 | // 缩略图 | 982 | // 缩略图 |
983 | $thumbImageList[] = array( | 983 | $thumbImageList[] = array( |
984 | - 'img' => Helpers::getImageUrl($val['color_image'], 300, 417) | 984 | + 'img' => Helpers::getImageUrl($val['color_image'], 300, 395) |
985 | ); | 985 | ); |
986 | 986 | ||
987 | // 商品库存总数 | 987 | // 商品库存总数 |
@@ -15,15 +15,15 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关 | @@ -15,15 +15,15 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关 | ||
15 | 15 | ||
16 | #dev环境 | 16 | #dev环境 |
17 | 17 | ||
18 | -define('API_URL', 'http://dev-api.yohops.com:9999/'); | ||
19 | -define('SERVICE_URL', 'http://dev-service.yohops.com:9999/'); | ||
20 | -define('YOHOBUY_URL', 'http://www.yohobuy.com/'); | ||
21 | -define('SERVICE_NOTIFY', 'http://dev-service.yohops.com:9999/'); | ||
22 | - | ||
23 | -// define('API_URL', 'http://api-test2.yohops.com:9999/'); | ||
24 | -// define('SERVICE_URL', 'http://service-test2.yohops.com:9999/'); | 18 | +// define('API_URL', 'http://dev-api.yohops.com:9999/'); |
19 | +// define('SERVICE_URL', 'http://dev-service.yohops.com:9999/'); | ||
25 | // define('YOHOBUY_URL', 'http://www.yohobuy.com/'); | 20 | // define('YOHOBUY_URL', 'http://www.yohobuy.com/'); |
26 | -// define('SERVICE_NOTIFY', 'http://service-test2.yohops.com:9999/'); | 21 | +// define('SERVICE_NOTIFY', 'http://dev-service.yohops.com:9999/'); |
22 | + | ||
23 | +define('API_URL', 'http://api-test2.yohops.com:9999/'); | ||
24 | +define('SERVICE_URL', 'http://service-test2.yohops.com:9999/'); | ||
25 | +define('YOHOBUY_URL', 'http://www.yohobuy.com/'); | ||
26 | +define('SERVICE_NOTIFY', 'http://service-test2.yohops.com:9999/'); | ||
27 | 27 | ||
28 | $application = new Application(APPLICATION_PATH . '/configs/application.developer.ini'); | 28 | $application = new Application(APPLICATION_PATH . '/configs/application.developer.ini'); |
29 | $application->bootstrap()->run(); | 29 | $application->bootstrap()->run(); |
-
Please register or login to post a comment