xieruidong 2 years ago
parent
commit
121dbb94bd
2 changed files with 30 additions and 0 deletions
  1. 4 0
      application/common/library/Email.php
  2. 26 0
      application/contract/view/view/show.html

+ 4 - 0
application/common/library/Email.php

@@ -230,6 +230,10 @@ class Email
             //邮件功能已关闭
             $this->setError(__('Mail already closed'));
         }
+        user_log('sendems',[
+            'to'=>$this->mail,
+            'error'=>$this->error,
+        ]);
         return $result;
     }
 

+ 26 - 0
application/contract/view/view/show.html

@@ -53,6 +53,32 @@
                 </div>
             </div>
         </div>
+        <table>
+            <thead>
+            <tr>
+                <td>名称</td>
+                <td>数量</td>
+                <td>单价(元)</td>
+                <td>金额</td>
+            </tr>
+            </thead>
+            <tbody>
+            {foreach name="order.info" item='a'}
+            <tr>
+                <td>{$a.goods_name}-{$a.sku_name}</td>
+                <td>{$a.num}</td>
+                <td>{$a.amount}</td>
+                <td class="name tops" style="border-right: none">{$a.amount_goods_real}</td>
+            </tr>
+            <tr>
+                <td>{$a.goods_name}-{$a.sku_name}安装</td>
+                <td>{$a.num_install}</td>
+                <td>{:$a['amount_install']>0?bcdiv($a['amount_install'],$a['num_install']):0}</td>
+                <td class="name tops" style="border-right: none">{$a.amount_install}</td>
+            </tr>
+            {/foreach}
+            </tbody>
+        </table>
         <div class="flex-s">
             <div class="flex-left bold">二:产品质量及包装要求:</div>
         </div>