| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <div class='panel panel-default'>
- <div class='panel-body'>
- <div class='panel-body' id="param-items1">
- <div class="form-group" >
- <label class="col-xs-12 col-sm-3 col-md-2 control-label">92折话费慢充</label>
- <div class="col-sm-6 col-xs-6" >
- <label class="radio-inline">
- <input type="radio" name="widgets[phone_bill][status]" value="1" @if ($status == 1) checked="checked" @endif />
- 开启
- </label>
- <label class="radio-inline">
- <input type="radio" name="widgets[phone_bill][status]" value="0" @if ($status == 0) checked="checked" @endif />
- 关闭
- </label>
- <span class='help-block'>
- 首次发布商品,先点击发布商品,再重新编辑商品,设置话费慢充规格!
- </span>
- </div>
- </div>
- <div class="form-group" >
- <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
- <div class="col-sm-6 col-xs-6" >
- <table class="table">
- <thead >
- <tr>
- <th class="col-sm-2 col-xs-2">规格项</th>
- <th class="col-sm-4 col-xs-4">关联第三方面值</th>
- </tr>
- </thead>
- <tbody >
- @foreach($options as $key => $item)
- <tr>
- <td>
- {{$item->title}}
- </td>
- <input type="hidden" value="{{$item->id}}" name='widgets[phone_bill][options][]'>
- <td>
- <div class="input-group">
- <select name='widgets[phone_bill][type][]' class='form-control diy-notice' id="" >
- <option value="">
- 请选择面值
- </option>
- @for($i = 1 ;$i<4;$i++)
- <option value="{{$i}}"
- @foreach($goods as $key => $value)
- @if($value['type'] == $i && $value['option_id'] == $item['id'])
- selected
- @endif
- @endforeach
- >
- @if($i == 1) 50 @elseif ($i == 2) 100 @else 200 @endif
- </option>
- @endfor
- </select>
- </div>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <span class='help-block'>
- 如果您修改了商品规格,需要手动设置关联!
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- /* $('.diy-notice').select2();*/
- </script>
|