no message
This commit is contained in:
parent
f8ce6fc1a4
commit
8148e84373
@ -32,26 +32,32 @@
|
|||||||
<td id="product-id" class="text-end">{$product->id}</td>
|
<td id="product-id" class="text-end">{$product->id}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>商品名称</td>
|
<td>套餐名称</td>
|
||||||
<td class="text-end">{$product->name}</td>
|
<td class="text-end">{$product->name}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<!--
|
||||||
<tr>
|
<tr>
|
||||||
<td>商品类型</td>
|
<td>商品类型</td>
|
||||||
<td class="text-end">{$product->type_text}</td>
|
<td class="text-end">{$product->type_text}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
-->
|
||||||
{if $product->type === 'tabp' || $product->type === 'time'}
|
{if $product->type === 'tabp' || $product->type === 'time'}
|
||||||
|
<!--
|
||||||
<tr>
|
<tr>
|
||||||
<td>商品时长</td>
|
<td>商品时长</td>
|
||||||
<td class="text-end">{$product->content->time} 天</td>
|
<td class="text-end">{$product->content->time} 天</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
-->
|
||||||
<tr>
|
<tr>
|
||||||
<td>等级时长</td>
|
<td>套餐时长</td>
|
||||||
<td class="text-end">{$product->content->class_time} 天</td>
|
<td class="text-end">{$product->content->class_time} 天</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<!--
|
||||||
<tr>
|
<tr>
|
||||||
<td>等级</td>
|
<td>等级</td>
|
||||||
<td class="text-end">Lv. {$product->content->class}</td>
|
<td class="text-end">Lv. {$product->content->class}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
-->
|
||||||
{/if}
|
{/if}
|
||||||
{if $product->type === 'tabp' || $product->type === 'bandwidth'}
|
{if $product->type === 'tabp' || $product->type === 'bandwidth'}
|
||||||
<tr>
|
<tr>
|
||||||
@ -77,6 +83,17 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
|
{if $product->huodong }
|
||||||
|
{if $product->huodong->class == A }
|
||||||
|
{if $product->content->class_time > 32}
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<span style="background-color: #eccafa;">此商品正在参加{$product->huodong->title}:{$product->huodong->content}</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -71,6 +71,10 @@ final class OrderController extends BaseController
|
|||||||
$product = (new Product())->where('id', $product_id)->first();
|
$product = (new Product())->where('id', $product_id)->first();
|
||||||
$product->type_text = $product->type();
|
$product->type_text = $product->type();
|
||||||
$product->content = json_decode($product->content);
|
$product->content = json_decode($product->content);
|
||||||
|
|
||||||
|
$oHuodong = Huodong::dateHit();
|
||||||
|
// $oHuodong = Huodong::dateHit("2025-01-01");
|
||||||
|
$product->huodong = $oHuodong;
|
||||||
|
|
||||||
return $response->write(
|
return $response->write(
|
||||||
$this->view()
|
$this->view()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user