Merge branch 'develop/wap' of git.dev.yoho.cn:web/yohobuy into develop/wap
Showing
21 changed files
with
145 additions
and
12 deletions
static/img/product/help/1.png
0 → 100755
21.5 KB
static/img/product/help/2.png
0 → 100755
32.8 KB
static/img/product/help/3.png
0 → 100755
43.9 KB
static/img/product/help/4.png
0 → 100755
64 KB
static/img/product/help/5.png
0 → 100755
53.4 KB
static/img/product/help/6.png
0 → 100755
32 KB
static/img/product/help/7.png
0 → 100755
43 KB
static/img/product/help/8.png
0 → 100755
48.6 KB
static/img/product/help/9.png
0 → 100755
18 KB
static/js/home/fresh-list.js
0 → 100644
static/sass/product/_limit-help.css
0 → 100644
1 | +.limit-help-page { | ||
2 | + padding: 28px; | ||
3 | + color: #444; | ||
4 | + | ||
5 | + h2 { | ||
6 | + font-size: 30px; | ||
7 | + font-weight: bold; | ||
8 | + } | ||
9 | + | ||
10 | + .method { | ||
11 | + display: block; | ||
12 | + width: 80px; | ||
13 | + height: 35px; | ||
14 | + line-height: 35px; | ||
15 | + background-color: #444; | ||
16 | + color: #fff; | ||
17 | + border-radius: 20px; | ||
18 | + text-align: center; | ||
19 | + margin: 20px 0; | ||
20 | + } | ||
21 | + | ||
22 | + li { | ||
23 | + font-size: 24px; | ||
24 | + } | ||
25 | + | ||
26 | + .intro-img { | ||
27 | + width: 100%; | ||
28 | + height: 220px; | ||
29 | + background-size: 100%; | ||
30 | + background-repeat: no-repeat; | ||
31 | + margin: 20px 0; | ||
32 | + } | ||
33 | + | ||
34 | + .method-1 { | ||
35 | + li:nth-child(1) .intro-img{ | ||
36 | + background-image: resolve(product/help/1.png); | ||
37 | + } | ||
38 | + li:nth-child(2) .intro-img{ | ||
39 | + background-image: resolve(product/help/2.png); | ||
40 | + } | ||
41 | + li:nth-child(3) .intro-img{ | ||
42 | + background-image: resolve(product/help/3.png); | ||
43 | + } | ||
44 | + } | ||
45 | + .method-2 { | ||
46 | + li:nth-child(1) .intro-img{ | ||
47 | + background-image: resolve(product/help/4.png); | ||
48 | + } | ||
49 | + li:nth-child(2) .intro-img{ | ||
50 | + background-image: resolve(product/help/5.png); | ||
51 | + } | ||
52 | + li:nth-child(3) .intro-img{ | ||
53 | + background-image: resolve(product/help/6.png); | ||
54 | + } | ||
55 | + li:nth-child(4) .intro-img{ | ||
56 | + background-image: resolve(product/help/7.png); | ||
57 | + } | ||
58 | + } | ||
59 | + | ||
60 | + .how { | ||
61 | + li:nth-child(1) .intro-img{ | ||
62 | + background-image: resolve(product/help/8.png); | ||
63 | + } | ||
64 | + li:nth-child(2) .intro-img{ | ||
65 | + background-image: resolve(product/help/9.png); | ||
66 | + margin-bottom: 0; | ||
67 | + } | ||
68 | + } | ||
69 | +} |
@@ -159,6 +159,9 @@ | @@ -159,6 +159,9 @@ | ||
159 | <a href="javascript:;" class="sold-out">立即购买</a> | 159 | <a href="javascript:;" class="sold-out">立即购买</a> |
160 | {{/if}} | 160 | {{/if}} |
161 | <input type="hidden" name="limitCodeUrl" value="{{limitCodeUrl}}"> | 161 | <input type="hidden" name="limitCodeUrl" value="{{limitCodeUrl}}"> |
162 | + {{#limitProductCode}} | ||
163 | + <input type="hidden" name="limitProductCode" value="{{.}}"> | ||
164 | + {{/limitProductCode}} | ||
162 | 165 | ||
163 | <a href="javascript:;" id="likeBtn" class="favorite iconfont {{#isCollect}}liked{{/isCollect}}"></a> | 166 | <a href="javascript:;" id="likeBtn" class="favorite iconfont {{#isCollect}}liked{{/isCollect}}"></a> |
164 | </div> | 167 | </div> |
1 | +{{> layout/header}} | ||
2 | +<div class="limit-help-page yoho-page"> | ||
3 | + <h2>不同限定商品获取限购码方式不同,获取限购码目前有两种方式:</h2> | ||
4 | + <span class="method">方式一</span> | ||
5 | + <ul class="method-1"> | ||
6 | + <li>1.在限定发售详情页点击分享或者底部“获取限购码”图标。 | ||
7 | + <div class="intro-img"></div> | ||
8 | + </li> | ||
9 | + <li>2.从弹出的分享中选取需要分享的渠道。 | ||
10 | + <div class="intro-img"></div> | ||
11 | + </li> | ||
12 | + <li>3.分享成功后返回Yoho!Buy有货APP会提示已获得限购码。 | ||
13 | + <div class="intro-img"></div> | ||
14 | + </li> | ||
15 | + </ul> | ||
16 | + <span class="method">方式二</span> | ||
17 | + <ul class="method-2"> | ||
18 | + <li>1.在限定发售详情页点击参加排队赢取限购码图标。 | ||
19 | + <div class="intro-img"></div> | ||
20 | + </li> | ||
21 | + <li>2.进入限定发售排队页面,点击参加排队。 | ||
22 | + <div class="intro-img"></div> | ||
23 | + </li> | ||
24 | + <li>3.排队成功后凭排队序列号作为抽奖凭证,等待开奖时间。 | ||
25 | + <div class="intro-img"></div> | ||
26 | + </li> | ||
27 | + <li>4.开奖后,排队页面会公布中奖名单,限购码会直接发送至账户。 | ||
28 | + <div class="intro-img"></div> | ||
29 | + </li> | ||
30 | + </ul> | ||
31 | + <h2>查看和使用限购码</h2> | ||
32 | + <ul class="how"> | ||
33 | + <li>1.从个人中心进入我的限购码页面,可查看所获取的限购码。 | ||
34 | + <div class="intro-img"></div> | ||
35 | + </li> | ||
36 | + <li>2.商品开售后,可凭此限购码购买对应商品。 | ||
37 | + <div class="intro-img"></div> | ||
38 | + </li> | ||
39 | + </ul> | ||
40 | +</div> | ||
41 | +{{> layout/footer}} |
@@ -314,13 +314,13 @@ class CartModel | @@ -314,13 +314,13 @@ class CartModel | ||
314 | * @param int $uid 用户ID | 314 | * @param int $uid 用户ID |
315 | * @param string $cartType 购物车类型,ordinary表示普通购物车 | 315 | * @param string $cartType 购物车类型,ordinary表示普通购物车 |
316 | * @param array $orderInfo cookie中记录的一些订单有关数据 | 316 | * @param array $orderInfo cookie中记录的一些订单有关数据 |
317 | - * @param string $limitCode 限购商品的限购码,用户限购商品购买 | 317 | + * @param string $limitProductCode 限购商品码,用户限购商品购买 |
318 | * @param string $sku 商品sku,用于限购商品购买 | 318 | * @param string $sku 商品sku,用于限购商品购买 |
319 | * @param stirng $skn 商品skn,用于限购商品购买 | 319 | * @param stirng $skn 商品skn,用于限购商品购买 |
320 | * @param int $buyNumber 购买商品数目,用户限购商品支付 | 320 | * @param int $buyNumber 购买商品数目,用户限购商品支付 |
321 | * @return array 接口返回的数据 | 321 | * @return array 接口返回的数据 |
322 | */ | 322 | */ |
323 | - public static function cartPay($uid, $cartType, $orderInfo, $limitCode, $sku, $skn, $buyNumber) | 323 | + public static function cartPay($uid, $cartType, $orderInfo, $limitProductCode, $sku, $skn, $buyNumber) |
324 | { | 324 | { |
325 | $result = array(); | 325 | $result = array(); |
326 | 326 | ||
@@ -329,7 +329,7 @@ class CartModel | @@ -329,7 +329,7 @@ class CartModel | ||
329 | $skuList = json_encode(array( | 329 | $skuList = json_encode(array( |
330 | array( | 330 | array( |
331 | 'type' => 'limitcode', | 331 | 'type' => 'limitcode', |
332 | - 'limitproductcode' => $limitCode, | 332 | + 'limitproductcode' => $limitProductCode, |
333 | 'skn' => $skn, | 333 | 'skn' => $skn, |
334 | 'sku' => $sku, | 334 | 'sku' => $sku, |
335 | 'buy_number' => $buyNumber | 335 | 'buy_number' => $buyNumber |
@@ -330,6 +330,7 @@ class DetailModel | @@ -330,6 +330,7 @@ class DetailModel | ||
330 | // 处理限购商品有关的按钮状态 | 330 | // 处理限购商品有关的按钮状态 |
331 | self::procShowStatus($result, $showStatus, $isBeginSale); | 331 | self::procShowStatus($result, $showStatus, $isBeginSale); |
332 | 332 | ||
333 | + $result['cartInfo']['limitProductCode'] = $baseInfo['limitProductCode']; | ||
333 | $result['cartInfo']['limitCodeUrl'] = 'yohobuy://' . Helpers::url('/product', array('skn' => $baseInfo['erpProductId'])); | 334 | $result['cartInfo']['limitCodeUrl'] = 'yohobuy://' . Helpers::url('/product', array('skn' => $baseInfo['erpProductId'])); |
334 | } | 335 | } |
335 | 336 |
@@ -295,14 +295,14 @@ class IndexController extends AbstractAction | @@ -295,14 +295,14 @@ class IndexController extends AbstractAction | ||
295 | } | 295 | } |
296 | 296 | ||
297 | // 如果传递了code, sku,skn,buy_number就代表是限购商品 | 297 | // 如果传递了code, sku,skn,buy_number就代表是限购商品 |
298 | - $limitCode = $this->get('code', ''); | 298 | + $limitProductCode = $this->get('code', ''); |
299 | $sku = $this->get('sku', ''); | 299 | $sku = $this->get('sku', ''); |
300 | $skn = $this->get('skn', ''); | 300 | $skn = $this->get('skn', ''); |
301 | $buyNumber = $this->get('buy_number', ''); | 301 | $buyNumber = $this->get('buy_number', ''); |
302 | 302 | ||
303 | // 购物车商品为空跳转到购物车页面 | 303 | // 购物车商品为空跳转到购物车页面 |
304 | $uid = $this->getUid(true); | 304 | $uid = $this->getUid(true); |
305 | - $order = CartModel::cartPay($uid, $cartType, $orderInfo, $limitCode, $sku, $skn, $buyNumber); | 305 | + $order = CartModel::cartPay($uid, $cartType, $orderInfo, $limitProductCode, $sku, $skn, $buyNumber); |
306 | if (isset($order['cartUrl'])) { | 306 | if (isset($order['cartUrl'])) { |
307 | $this->go($order['cartUrl']); | 307 | $this->go($order['cartUrl']); |
308 | } | 308 | } |
@@ -229,10 +229,10 @@ class IndexController extends AbstractAction | @@ -229,10 +229,10 @@ class IndexController extends AbstractAction | ||
229 | $this->_view->display('index', $data); | 229 | $this->_view->display('index', $data); |
230 | } | 230 | } |
231 | 231 | ||
232 | - public function limitDetailAction() | 232 | + public function limitHelpAction() |
233 | { | 233 | { |
234 | $data = array(); | 234 | $data = array(); |
235 | - $this->_view->display('limit-detail', $data); | 235 | + $this->_view->display('limit-help', $data); |
236 | } | 236 | } |
237 | 237 | ||
238 | public function limitAction() | 238 | public function limitAction() |
-
Please register or login to post a comment