dyjh 6 anni fa
parent
commit
6dff453e91

+ 0 - 2
app/Models/AlbumBannerModel.php

xqd
@@ -34,11 +34,9 @@ class AlbumBannerModel extends BaseModel
                            'store_id',
                            'pic_url',
                            'title',
-                           'page_url',
                            'sort',
                            'addtime',
                            'is_delete',
-                           'type'
                           ];
 
 }

+ 32 - 0
database/migrations/2019_05_30_200039_drop_column_album_banner.php

xqd
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class DropColumnAlbumBanner extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('album_banner', function (Blueprint $table) {
+            $table->dropColumn(['type','page_url']);
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('album_banner', function (Blueprint $table) {
+            //
+        });
+    }
+}

+ 2 - 30
resources/views/admin/album/banner/edit.blade.php

xqd xqd
@@ -54,34 +54,6 @@
                                                    placeholder="">
                                         </div>
 
-                                    </div>
-                                    <div class="form-group">
-
-                                        <label class="control-label col-sm-3">链接地址</label>
-
-                                        <div class="col-sm-9">
-                                            <input id="data_page_url" name="data[page_url]" class="form-control"
-                                                   value="{{ $data['page_url'] or ''}}"
-                                                   placeholder="">
-                                        </div>
-
-                                    </div>
-
-                                    <div class="form-group">
-
-                                        <label class="control-label col-sm-3">类型</label>
-
-                                        <div class="col-sm-9">
-                                            <label class="radio-inline">
-                                                <input type="radio" name="data[type]" value="1"
-                                                       @if(isset($data['type']) && $data['type'] == '1')checked="checked" @endif/>商城
-                                            </label>
-                                            <label class="radio-inline">
-                                                <input type="radio" name="data[type]" value="2"
-                                                       @if(isset($data['type']) && $data['type'] == '2')checked="checked" @endif/>拼团
-                                            </label>
-                                        </div>
-
                                     </div>
                                     <div class="form-group">
 
@@ -89,8 +61,8 @@
 
                                         <div class="col-sm-9">
                                             <input id="data_sort" name="data[sort]" class="form-control"
-                                                   value="{{ $data['sort'] or ''}}" required="" aria-required="true"
-                                                   placeholder="值越大越靠前">
+                                                   value="{{ $data['sort'] or '0'}}" required="" aria-required="true"
+                                                   placeholder="值越大越靠前"><span class="help-block m-b-none">数值越大越靠前</span>
                                         </div>
 
                                     </div>

+ 0 - 2
resources/views/admin/album/banner/index.blade.php

xqd xqd
@@ -41,7 +41,6 @@
                                 <th class="sorting" data-sort="id">ID</th>
                                 <th class="sorting" data-sort="pic_url"> 缩略图</th>
                                 <th class="sorting" data-sort="title"> 标题</th>
-                                <th class="sorting" data-sort="page_url">链接地址</th>
                                 <th class="sorting" data-sort="sort"> 排序</th>
                                 <th class="sorting" data-sort="created_at">创建时间</th>
                                 <th width="22%">相关操作</th>
@@ -55,7 +54,6 @@
                                         <td>{{ $item->id }}</td>
                                         <td><img src="{{ $item->pic_url }}" style="height: 50px"></td>
                                         <td>{{ $item->title }}</td>
-                                        <td>{{ $item->page_url }}</td>
                                         <td>{{ $item->sort }}</td>
                                         <td>{{ $item->created_at }}</td>
                                         <td>