1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <div class="form-group col-sm-12">
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- @foreach ($specAttr as $value)
- <th>{{$value['spec_name']}}</th>
- @endforeach
- <th>配图</th>
- <th>原价</th>
- <th>折扣价</th>
- <th>库存</th>
- <th>起购数量</th>
- <th>限购数量</th>
- <th>是否上架</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($skuList as $key=>$value)
- <tr>
- @foreach (explode(',',$value['attr_names']) as $v)
- <td>{{$v}}</td>
- @endforeach
- <td>
- <div id="sku_thumb{{$key}}">
- <a id="sku_thumb-image{{$key}}" href="#" data-toggle="image" class="img-thumb">
- <img src="{{path_compat($value['sku_thumb']??'')}}" height="30" />
- </a>
- <input type="hidden" name="sku[{{$value['attr_names']}}][sku_thumb]" laceholder="缩略图" value="{{$value['sku_thumb']??''}}" id="input-sku_thumb{{$key}}" />
- </div>
- </td>
- <td><input type="text" name="sku[{{$value['attr_names']}}][market_price]" placeholder="原价" value="{{$value['market_price']}}"></td>
- <td><input type="text" name="sku[{{$value['attr_names']}}][price]" placeholder="折扣价" value="{{$value['price']}}"></td>
- <td><input type="number" name="sku[{{$value['attr_names']}}][stock]" placeholder="库存" value="{{$value['stock']}}"></td>
- <td><input type="number" name="sku[{{$value['attr_names']}}][min_quota]" placeholder="起购数量" value="{{$value['min_quota']}}"></td>
- <td><input type="number" name="sku[{{$value['attr_names']}}][quota]" placeholder="限购数量" value="{{$value['quota']}}"></td>
- <td>
- <select name="sku[{{$value['attr_names']}}][status]" >
- <option value="0" @if( $value['status'] == 0) selected @endif >上架</option>
- <option value="1" @if( $value['status'] == 1) selected @endif >下架</option>
- </select>
- </td>
- <td><button type="button" class="btn btn-xs btn-danger remove_sku">删除 </button> </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- </div>
|