Browse Source

广告图

lizhen_gitee 2 years ago
parent
commit
2ccec0607c

+ 2 - 2
application/admin/view/unishop/ads/add.html

@@ -20,12 +20,12 @@
             <input id="c-product_id" data-rule="" data-source="unishop/product/index" data-show-field="title" class="form-control selectpage" name="row[product_id]" type="text" value="">
         </div>
     </div>
-    <div class="form-group">
+    <!--<div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Background')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-background" data-rule="required" class="form-control" name="row[background]" type="text">
         </div>
-    </div>
+    </div>-->
 <!--    <div class="form-group">-->
 <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Position')}:</label>-->
 <!--        <div class="col-xs-12 col-sm-8">-->

+ 2 - 2
application/admin/view/unishop/ads/edit.html

@@ -20,12 +20,12 @@
             <input id="c-product_id" data-rule="" data-source="unishop/product/index" data-show-field="title" class="form-control selectpage" name="row[product_id]" type="text" value="{$row.product_id}">
         </div>
     </div>
-    <div class="form-group">
+    <!--<div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Background')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-background" data-rule="required" class="form-control" name="row[background]" type="text" value="{$row.background}">
         </div>
-    </div>
+    </div>-->
 <!--    <div class="form-group">-->
 <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Position')}:</label>-->
 <!--        <div class="col-xs-12 col-sm-8">-->

+ 2 - 2
public/assets/js/backend/unishop/ads.js

@@ -30,9 +30,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
                         {field: 'product_id', title: __('product_id'),visible:false},
                         {field: 'product.title', title: __('Product title')},
-                        {field: 'background', title: __('Background'),formatter:function (value, row, index) {
+                        /*{field: 'background', title: __('Background'),formatter:function (value, row, index) {
                                 return '<p style="background:'+value+'">'+value+'</p>';
-                            }},
+                            }},*/
                         {field: 'position', title: __('Position'),visible:false},
                         {field: 'status', title: __('Status'),formatter: Table.api.formatter.toggle},
                         {field: 'weigh', title: __('Weigh')},