1
|
-<?php return function ($in, $debugopt = 1) {
|
|
|
2
|
- $cx = array(
|
|
|
3
|
- 'flags' => array(
|
|
|
4
|
- 'jstrue' => false,
|
|
|
5
|
- 'jsobj' => false,
|
|
|
6
|
- 'spvar' => true,
|
|
|
7
|
- 'prop' => false,
|
|
|
8
|
- 'method' => false,
|
|
|
9
|
- 'mustlok' => true,
|
|
|
10
|
- 'echo' => false,
|
|
|
11
|
- 'debug' => $debugopt,
|
|
|
12
|
- ),
|
|
|
13
|
- 'constants' => array(),
|
|
|
14
|
- 'helpers' => array(),
|
|
|
15
|
- 'blockhelpers' => array(),
|
|
|
16
|
- 'hbhelpers' => array(),
|
|
|
17
|
- 'partials' => array(),
|
|
|
18
|
- 'scopes' => array(),
|
|
|
19
|
- 'sp_vars' => array('root' => $in),
|
|
|
20
|
- 'lcrun' => 'Plugin\LCRun3',
|
|
|
21
|
-
|
|
|
22
|
- );
|
|
|
23
|
-
|
|
|
24
|
- return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('new')), $in, false, function($cx, $in) {return ''.' '.((Plugin\LCRun3::ifvar($cx, $in)) ? '
|
|
|
25
|
- <div class="good-info" data-id="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('id')), ENT_QUOTES, 'UTF-8').'">
|
|
|
26
|
- <div class="tag-container clearfix">
|
|
|
27
|
-'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('tags')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_new')), $in, false, function($cx, $in) {return ' <p class="good-tag new-tag">NEW</p>
|
|
|
28
|
-';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_advance')), $in, false, function($cx, $in) {return ' <p class="good-tag renew-tag">再到着</p>
|
|
|
29
|
-';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_discount')), $in, false, function($cx, $in) {return ' <p class="good-tag sale-tag">SALE</p>
|
|
|
30
|
-';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_yohoood')), $in, false, function($cx, $in) {return ' <div class="good-tag yohood-tag"></div>
|
|
|
31
|
-';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_limited')), $in, false, function($cx, $in) {return ' <p class="good-tag limit-tag">限量商品</p>
|
|
|
32
|
-';}).'';}).' </div>
|
|
|
33
|
- <div class="good-detail-img">
|
|
|
34
|
- <a class="good-thumb" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'">
|
|
|
35
|
- <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('thumb')), ENT_QUOTES, 'UTF-8').'">
|
|
|
36
|
- </a>
|
|
|
37
|
-'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_soon_sold_out')), $in, false, function($cx, $in) {return ' <p class="few-tag">即将售罄</p>
|
|
|
38
|
-';}).' </div>
|
|
|
39
|
- <div class="good-detail-text">
|
|
|
40
|
- <div class="name">
|
|
|
41
|
- <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').'</a>
|
|
|
42
|
- </div>
|
|
|
43
|
- <div class="price">
|
|
|
44
|
- <span class="sale-price '.((Plugin\LCRun3::isec($cx, Plugin\LCRun3::v($cx, $in, array('price')))) ? 'no-price' : '').'">¥'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('salePrice')), ENT_QUOTES, 'UTF-8').'</span>
|
|
|
45
|
-'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('price')), $in, false, function($cx, $in) {return ' <span class="market-price">¥'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</span>
|
|
|
46
|
-';}).' </div>
|
|
|
47
|
- </div>
|
|
|
48
|
- </div>
|
|
|
49
|
- ' : '').''.'';}).'';
|
|
|
50
|
-}
|
|
|
51
|
-?> |
|
|