phone-bill-goods.blade.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <div class='panel panel-default'>
  2. <div class='panel-body'>
  3. <div class='panel-body' id="param-items1">
  4. <div class="form-group" >
  5. <label class="col-xs-12 col-sm-3 col-md-2 control-label">92折话费慢充</label>
  6. <div class="col-sm-6 col-xs-6" >
  7. <label class="radio-inline">
  8. <input type="radio" name="widgets[phone_bill][status]" value="1" @if ($status == 1) checked="checked" @endif />
  9. 开启
  10. </label>
  11. <label class="radio-inline">
  12. <input type="radio" name="widgets[phone_bill][status]" value="0" @if ($status == 0) checked="checked" @endif />
  13. 关闭
  14. </label>
  15. <span class='help-block'>
  16. 首次发布商品,先点击发布商品,再重新编辑商品,设置话费慢充规格!
  17. </span>
  18. </div>
  19. </div>
  20. <div class="form-group" >
  21. <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
  22. <div class="col-sm-6 col-xs-6" >
  23. <table class="table">
  24. <thead >
  25. <tr>
  26. <th class="col-sm-2 col-xs-2">规格项</th>
  27. <th class="col-sm-4 col-xs-4">关联第三方面值</th>
  28. </tr>
  29. </thead>
  30. <tbody >
  31. @foreach($options as $key => $item)
  32. <tr>
  33. <td>
  34. {{$item->title}}
  35. </td>
  36. <input type="hidden" value="{{$item->id}}" name='widgets[phone_bill][options][]'>
  37. <td>
  38. <div class="input-group">
  39. <select name='widgets[phone_bill][type][]' class='form-control diy-notice' id="" >
  40. <option value="">
  41. 请选择面值
  42. </option>
  43. @for($i = 1 ;$i<4;$i++)
  44. <option value="{{$i}}"
  45. @foreach($goods as $key => $value)
  46. @if($value['type'] == $i && $value['option_id'] == $item['id'])
  47. selected
  48. @endif
  49. @endforeach
  50. >
  51. @if($i == 1) 50 @elseif ($i == 2) 100 @else 200 @endif
  52. </option>
  53. @endfor
  54. </select>
  55. </div>
  56. </td>
  57. </tr>
  58. @endforeach
  59. </tbody>
  60. </table>
  61. <span class='help-block'>
  62. 如果您修改了商品规格,需要手动设置关联!
  63. </span>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <script>
  70. /* $('.diy-notice').select2();*/
  71. </script>