Переглянути джерело

wesmiler ECY 画画交易平台

APPLE 3 роки тому
батько
коміт
f3bcad80b5
1 змінених файлів з 2 додано та 32 видалено
  1. 2 32
      public/assets/js/backend/shop/material.js

+ 2 - 32
public/assets/js/backend/shop/material.js

@@ -26,16 +26,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {checkbox: true},
                         {checkbox: true},
                         {field: 'id', title: __('Id')},
                         {field: 'id', title: __('Id')},
                         {field: 'title', title: __('文案')},
                         {field: 'title', title: __('文案')},
-                        {field: 'description', title: __('编号')},
-                        {field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
-                        {field: 'price', title: __('初始价格'), operate:'BETWEEN'},
-                        {field: 'price1', title: __('当前价格'), operate:'BETWEEN'},
-                        {field: 'userid', title: __('归属人')},
-                        {field: 'stuid', title: __('茶室')},
-                        {field: 'topprice', title: __('拆分价格')},
-                        {field: 'son_nums', title: __('拆分单数')},
-                        {field: 'on_sale', title: __('上架'), formatter: Table.api.formatter.toggle, searchList: {1: __('是'),'0': __('否')}},
-                        {field: 'isnew', title: __('拆单商品'), formatter: Table.api.formatter.status, searchList: {1: __('是'),'0': __('否')}},
+                        {field: 'crete_time', title: __('时间')},
+                        {field: 'status', title: __('状态'), formatter: Table.api.formatter.toggle, searchList: {1: __('是'),'2': __('否')}},
                         {field: 'operate', title: __('Operate') , buttons: [
                         {field: 'operate', title: __('Operate') , buttons: [
                                 {
                                 {
                                     name: 'edit',
                                     name: 'edit',
@@ -70,28 +62,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
         api: {
         api: {
             bindevent: function () {
             bindevent: function () {
                 Form.api.bindevent($("form[role=form]"));
                 Form.api.bindevent($("form[role=form]"));
-                $(document).on('change', "#c-username", function () {
-                    $.getJSON("/index.php/api/index/getuserid",{username:$('#c-username').val()},function(json){
-                        if(json.code == 0)
-                        {
-                            layer.msg(json.msg);
-                        }else{
-                            $('#c-userid').val(json.msg);
-                        }
-
-                    });
-                });
-                $(document).on('change', "#c-studio", function () {
-                    $.getJSON("/index.php/api/index/getstuid",{title:$('#c-studio').val()},function(json){
-                        if(json.code == 0)
-                        {
-                            layer.msg(json.msg);
-                        }else{
-                            $('#c-stuid').val(json.msg);
-                        }
-
-                    });
-                });
             }
             }
         }
         }
     };
     };