Authored by 郝肖肖

电子门票前端数据

@@ -151,8 +151,9 @@ @@ -151,8 +151,9 @@
151 151
152 <div class="trade-content"> 152 <div class="trade-content">
153 <div id="type-chose" class="type-chose"> 153 <div id="type-chose" class="type-chose">
  154 + {{#if isTicket}}
154 <div class="chose-color row clearfix"> 155 <div class="chose-color row clearfix">
155 - <span class="title pull-left">选颜色:</span> 156 + <span class="title pull-left">选日期:</span>
156 <ul class="colors pull-left clearfix"> 157 <ul class="colors pull-left clearfix">
157 {{#each colors}} 158 {{#each colors}}
158 <li class="{{#if focus}}focus{{/if}} {{#if disable}}disable{{/if}} pull-left" title="{{title}}" data-color="{{name}}" data-total="{{total}}"> 159 <li class="{{#if focus}}focus{{/if}} {{#if disable}}disable{{/if}} pull-left" title="{{title}}" data-color="{{name}}" data-total="{{total}}">
@@ -161,7 +162,36 @@ @@ -161,7 +162,36 @@
161 {{/each}} 162 {{/each}}
162 </ul> 163 </ul>
163 </div> 164 </div>
  165 + <div class="chose-size row clearfix">
  166 + <span class="title pull-left">
  167 + 选区域:
  168 + </span>
  169 + <div id="sizes" class="size-wrapper pull-left">
  170 + {{#each colors}}
  171 + <ul class="size{{#unless focus}} hide{{/unless}}">
  172 + {{#each size}}
  173 + <li {{#unless num}}class="disable"{{/unless}} data-sku="{{sku}}" data-num="{{num}}" data-name="{{name}}">{{name}}</li>
  174 + {{/each}}
164 175
  176 + <span class="size-warn warn-tip hide">
  177 + <i class="iconfont">&#xe62c;</i>
  178 + 请选择区域
  179 + </span>
  180 + </ul>
  181 + {{/each}}
  182 + </div>
  183 + </div>
  184 + {{^}}
  185 + <div class="chose-color row clearfix">
  186 + <span class="title pull-left">选颜色:</span>
  187 + <ul class="colors pull-left clearfix">
  188 + {{#each colors}}
  189 + <li class="{{#if focus}}focus{{/if}} {{#if disable}}disable{{/if}} pull-left" title="{{title}}" data-color="{{name}}" data-total="{{total}}">
  190 + <img src="{{src}}">
  191 + </li>
  192 + {{/each}}
  193 + </ul>
  194 + </div>
165 <div class="chose-size row clearfix"> 195 <div class="chose-size row clearfix">
166 <span class="title pull-left"> 196 <span class="title pull-left">
167 {{#if virtualGoods}} 197 {{#if virtualGoods}}
@@ -198,6 +228,8 @@ @@ -198,6 +228,8 @@
198 {{/unless}} 228 {{/unless}}
199 </div> 229 </div>
200 </div> 230 </div>
  231 + {{/if}}
  232 +
201 233
202 <div class="chose-count row clearfix"> 234 <div class="chose-count row clearfix">
203 <span class="title pull-left">选数量:</span> 235 <span class="title pull-left">选数量:</span>
@@ -234,10 +266,18 @@ @@ -234,10 +266,18 @@
234 <span class="lc-btn lc-sold-out">限购码已抢光</span> 266 <span class="lc-btn lc-sold-out">限购码已抢光</span>
235 {{/if}} 267 {{/if}}
236 {{/ fashionTopGoods}} 268 {{/ fashionTopGoods}}
  269 +
  270 + {{#if isTicket}}
  271 + <span class="size-warn warn-tip"> &nbsp;限购4张</span>
  272 + {{/if}}
237 </div> 273 </div>
238 </div> 274 </div>
239 275
240 <p class="row"> 276 <p class="row">
  277 + {{#if isTicket}}
  278 + {{!-- 电子门票按钮 --}}
  279 + <span id="buy-now" class="buy-btn buy-now item-buy{{#if dis}} dis{{/if}}" data-base="{{buyNowBase}}">立即购买</span>
  280 + {{^}}
241 {{!-- 各颜色下所有尺码均售罄则只显示售罄按钮 --}} 281 {{!-- 各颜色下所有尺码均售罄则只显示售罄按钮 --}}
242 {{#unless soldOut}} 282 {{#unless soldOut}}
243 {{# buyNow}} 283 {{# buyNow}}
@@ -259,6 +299,8 @@ @@ -259,6 +299,8 @@
259 </span> 299 </span>
260 {{/if}} 300 {{/if}}
261 {{/unless}} 301 {{/unless}}
  302 + {{/if}}
  303 +
262 304
263 <span id="sold-out" class="buy-btn dis{{#unless soldOut}} hide{{/if}}"> 305 <span id="sold-out" class="buy-btn dis{{#unless soldOut}} hide{{/if}}">
264 <i class="iconfont">&#xe62d;</i> 306 <i class="iconfont">&#xe62d;</i>
@@ -69,6 +69,9 @@ class ItemModel @@ -69,6 +69,9 @@ class ItemModel
69 $goodsInfo['isOutlets'] = $baseInfo['isOutlets'] == 'Y' ? 'outlets' : ''; 69 $goodsInfo['isOutlets'] = $baseInfo['isOutlets'] == 'Y' ? 'outlets' : '';
70 } 70 }
71 71
  72 + //电子门票
  73 + $goodsInfo['isTicket'] = TRUE;
  74 +
72 // 商品价格 75 // 商品价格
73 if (isset($baseInfo['productPriceBo'])) { 76 if (isset($baseInfo['productPriceBo'])) {
74 $goodsInfo['marketPrice'] = $baseInfo['productPriceBo']['formatMarketPrice']; 77 $goodsInfo['marketPrice'] = $baseInfo['productPriceBo']['formatMarketPrice'];