<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
  		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
                <title><!--{$config.system_title}--><!--{if $config.is_code !='1'}-->-<!--{$copyright_header}--><!--{/if}--></title>
                <meta name="description" content="<!--{$config.system_desc}-->" />
                <meta name="keywords" content="<!--{$config.system_keyword}-->" />
		<link rel="stylesheet" type="text/css" href="<!--{$salepath}-->/static/layui/css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="<!--{$salepath}-->/static/css/admin.css"/>
	</head>
	<body>
		<form class="layui-form column-content-detail">
					<div class="layui-tab">
						
						<div class="layui-tab-content">
							<div class="layui-tab-item layui-show">
								<div class="layui-form-item">
									<label class="layui-form-label">产品名：</label>
									<div  class="layui-input-block">
										<select name="catid" lay-verify="required">
											<option value="" class="Product">请选择产品分类</option>
                                                <!--{foreach $allProduct as $parent}-->
                                                    <option click=aa() value="<!--{$parent.catid}-->" data-text="<!--{$parent.productname}-->"><!--{$parent.productname}--></option>
                                                <!--{/foreach}-->
										</select>
									</div>
								</div>

								<div class="layui-form-item">
									<label class="layui-form-label">售价：</label>
									<div class="layui-input-block">
										<input type="number" name="bprice" required lay-verify="required" placeholder="请输入价格" autocomplete="off" class="layui-input" value="" id="secValueId">
									</div>
								</div>
								
								<div class="layui-form-item">
									<label class="layui-form-label">默认库存：</label>
									<div class="layui-input-block">
										<input type="number" name="stock" required lay-verify="required" placeholder="请输入库存" autocomplete="off" class="layui-input" value="0">
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-form-item" style="padding-left: 10px;">
						<div class="layui-input-block">
							<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">立即提交</button>&nbsp;&nbsp;&nbsp;
							<a href="javascript:history.back(-1)"><button type="button" class="layui-btn layui-btn-primary">返回</button></a>
						</div>
					</div>
				</form>
	
		
		<script src="<!--{$salepath}-->static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="<!--{$salepath}-->static/js/common.js" type="text/javascript" charset="utf-8"></script>
        <script src="<!--{$salepath}-->static/js/jquery-3.2.1.js" type="text/javascript" charset="utf-8"></script>	
		<script>
			$(function(){
				$('dd').click(function(){

					alert($('.layui-this').html());
				})
				
			})
		</script>
	</body>
</html>
