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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>商品名称</td>
|
||||
<td>套餐名称</td>
|
||||
<td class="text-end">{$product->name}</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td>商品类型</td>
|
||||
<td class="text-end">{$product->type_text}</td>
|
||||
</tr>
|
||||
-->
|
||||
{if $product->type === 'tabp' || $product->type === 'time'}
|
||||
<!--
|
||||
<tr>
|
||||
<td>商品时长</td>
|
||||
<td class="text-end">{$product->content->time} 天</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td>等级时长</td>
|
||||
<td>套餐时长</td>
|
||||
<td class="text-end">{$product->content->class_time} 天</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td>等级</td>
|
||||
<td class="text-end">Lv. {$product->content->class}</td>
|
||||
</tr>
|
||||
-->
|
||||
{/if}
|
||||
{if $product->type === 'tabp' || $product->type === 'bandwidth'}
|
||||
<tr>
|
||||
@ -77,6 +83,17 @@
|
||||
{/if}
|
||||
</tr>
|
||||
{/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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -71,6 +71,10 @@ final class OrderController extends BaseController
|
||||
$product = (new Product())->where('id', $product_id)->first();
|
||||
$product->type_text = $product->type();
|
||||
$product->content = json_decode($product->content);
|
||||
|
||||
$oHuodong = Huodong::dateHit();
|
||||
// $oHuodong = Huodong::dateHit("2025-01-01");
|
||||
$product->huodong = $oHuodong;
|
||||
|
||||
return $response->write(
|
||||
$this->view()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user