Browse Source

订单支付方式

lizhen_gitee 10 months ago
parent
commit
444742d7fe

+ 2 - 0
addons/unishop/model/Product.php

@@ -135,6 +135,8 @@ class Product extends Model
     public function getSpecTableListAttr($value, $data) {
         $specs = !empty($data['specTableList']) ? json_decode($data['specTableList'], true) : [];
         foreach ($specs as &$spec) {
+            unset($spec['code']);
+
             $spec['image'] = Config::getImagesFullUrl($spec['image']);
 
             $spec['value_text'] = '';

+ 1 - 0
application/admin/lang/zh-cn/unishop/order.php

@@ -10,6 +10,7 @@ return [
     'Pay_type'         => '付款方式',
     'Online'           => '在线支付',
     'Offline'          => '到货付款',
+    'Wallet'          => '钱包余额',
     'wxPay'            => '微信付款',
     'aliPay'           => '支付宝付',
     'Ip'               => '下单ip',

+ 1 - 1
public/assets/js/backend/unishop/order.js

@@ -96,7 +96,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'delivery_price', title: __('Delivery_price'), operate:'BETWEEN'},
                         {field: 'total_price', title: __('Total_price'), operate:'BETWEEN'},
                         {field: 'status', title: __('Status'), searchList: {"-1":__('Refund'),"0":__('Cancel'),"1":__('Normal')}, formatter: Table.api.formatter.status},
-                        {field: 'pay_type', title: __('Pay_type'), searchList: {"1":__('Online'),"2":__('Offline'),"3":__('wxPay'),"4":__('aliPay')}, formatter: Table.api.formatter.normal},
+                        {field: 'pay_type', title: __('Pay_type'), searchList: {"1":__('Online'),"2":__('Wallet'),"3":__('wxPay'),"4":__('aliPay')}, formatter: Table.api.formatter.normal},
                         {field: 'ip', title: __('Ip'), visible:false},
                         {field: 'have_paid_status', title: __('Have_paid'), searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom},
                         {field: 'have_delivered_status', title: __('Have_delivered'),searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom},