1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- @extends('admin/master')
- @section('content')
- <body>
- @if(count($errors) > 0)
- <div class="Huialert Huialert-info" id="error">
- @foreach($errors->all() as $error)
- <li>{{$error}}</li>
- @endforeach
- </div>
- @endif
- <div class="page-container">
- <form action="/admin/goods/skuupdate" method="post" class="form form-horizontal">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- <input type="hidden" name="id" value="{{$sku['id']}}" />
- <input type="hidden" name="goods_id" value="{{$goods_id}}" />
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font> 商品规格:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{$sku['propsName']}}" placeholder="" name="propsName">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>成本价:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{$sku['referenceCost']}}" placeholder="" name="referenceCost">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>建议零售价:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{$sku['price']}}" placeholder="" name="price">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>分销商价格:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{$sku['outPrice']}}" placeholder="" name="outPrice">
- </div>
- </div>
-
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- <font color='red'>* </font>是否称重:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="radio" name="is_weigh" value="0" @if($sku['is_weigh']=='0') checked @else checked @endif>
- <label for="status-1" style="margin-right: 27px;">否</label>
- <input type="radio" name="is_weigh" value="1" @if($sku['is_weigh']=='1') checked @endif>
- <label for="status-0">是</label>
- </div>
- </div>
-
- <div class="row cl">
- <div class="col-9 col-offset-2">
- <button class="btn btn-primary radius" type="submit" value=" 提交 "> 修改 </button>
- <button class="btn btn-default" type="reset" onclick="return_index();"> 返回 </button>
- {{--<a href="javascript:void(0)" class="btn btn-default radius" onclick="redirect('{{url('/admin/admin/all')}}')">返回并查看结果</a>--}}
- </div>
- </div>
- </form>
- </div>
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <!--请在下方写此页面业务相关的脚本-->
- <script type="text/javascript">
- $(function(){
- setTimeout("$('#error').hide()",3000);
- });
- /*返回*/
- function return_index(){
- location.href='/admin/goods/skulist?goods_id={{$goods_id}}';
- }
- </script>
- </body>
- @endsection
|