bianjunhui 6 stundas atpakaļ
vecāks
revīzija
4dfa50d2ed

+ 7 - 0
application/admin/view/functional/deal/add.html

@@ -52,6 +52,13 @@
             <input id="c-location" class="form-control" name="row[location]" type="text">
         </div>
     </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('适用产品')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <textarea id="c-product_ids" class="form-control" name="row[product_ids]"></textarea>
+
+        </div>
+    </div>
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
         <div class="col-xs-12 col-sm-8">

+ 7 - 7
application/admin/view/functional/deal/edit.html

@@ -1,13 +1,7 @@
 <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
 
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Fid')}:</label>
-        <div class="col-xs-12 col-sm-8">
-            <input id="c-fid" class="form-control" name="row[fid]" type="number" value="{$row.fid|htmlentities}">
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
+        <label class="control-label col-xs-12 col-sm-2">{:__('名称')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
         </div>
@@ -52,6 +46,12 @@
             <ul class="row list-inline faupload-preview" id="p-image_m"></ul>
         </div>
     </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('适用产品')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <textarea id="c-product_ids" class="form-control" name="row[product_ids]" >{$row.product_ids|htmlentities}</textarea>
+        </div>
+    </div>
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('位置')}:</label>
         <div class="col-xs-12 col-sm-8">

+ 1 - 0
public/assets/js/backend/functional/deal.js

@@ -32,6 +32,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'id', title: __('Id')},
                         {field: 'name', title: __('名称'), operate: 'LIKE'},
                         {field: 'location', title: __('位置'), operate: 'LIKE'},
+                        {field: 'product_ids', title: __('适用产品'), operate: false},
                         {field: 'url', title: __('Url'), operate: 'LIKE', formatter: Table.api.formatter.url},
                         {field: 'image', title: __('PC端图片'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
                         {field: 'image_m', title: __('M端图片'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},