songxingwei 2 anos atrás
pai
commit
ed8e6c9e7c
2 arquivos alterados com 2 adições e 1 exclusões
  1. 1 0
      app/data/sys.php
  2. 1 1
      app/data/view/shop/order/index.html

+ 1 - 0
app/data/sys.php

@@ -53,6 +53,7 @@ if (!function_exists('show_goods_spec')) {
      */
     function show_goods_spec(string $spec): string
     {
+        dump($spec);die;
         $specs = [];
         foreach (explode(';;', $spec) as $sp) {
             $specs[] = explode('::', $sp)[1];

+ 1 - 1
app/data/view/shop/order/index.html

@@ -122,7 +122,7 @@
                     {foreach $vo.items as $g}
                     <div>
                         <b class="color-blue">{$g.stock_sales|default=0}件</b><span class="color-red"> x </span><b class="color-blue">{$g.price_selling+0}元 </b>
-                        {$g.goods_name|default=''} <span class="color-green"> ( {$g.goods_spec} )</span>
+                        {$g.goods_name|default=''} <span class="color-green"> ( {$g.goods_spec|show_goods_spec} )</span>
                     </div>
                     {/foreach}
                 </td>