|
@@ -20,15 +20,15 @@
|
|
|
<div class="layui-card-header">
|
|
|
<span class="ns-card-title">基础信息</span>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="layui-card-body">
|
|
|
+
|
|
|
+ <div class="layui-card-body">
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label"><span class="required">*</span>商品名称:</label>
|
|
|
<div class="layui-input-inline">
|
|
|
<input name="goods_name" type="text" placeholder="请输入商品名称,不能超过60个字符" maxlength="60" autocomplete="off" lay-verify="goods_name" class="layui-input ns-len-long">
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label"><span class="required">*</span>商品分类:</label>
|
|
|
<div class="layui-input-inline">
|
|
@@ -41,7 +41,7 @@
|
|
|
</div>
|
|
|
<button class="layui-btn layui-btn-primary" onclick="selectedCategoryPopup()">选择</button>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">服务提示:</label>
|
|
|
<div class="layui-input-inline">
|
|
@@ -55,14 +55,14 @@
|
|
|
<input type="text" name="keywords" placeholder="商品发票提示语" autocomplete="off" class="layui-input ns-len-long">
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- -->
|
|
|
+ <!-- <div class="layui-form-item">-->
|
|
|
+ <!-- <label class="layui-form-label">单位:</label>-->
|
|
|
+ <!-- <div class="layui-input-block">-->
|
|
|
+ <!-- <input type="text" name="unit" placeholder="请输入单位" autocomplete="off" class="layui-input ns-len-short">-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
|
|
|
-<!-- <div class="layui-form-item">-->
|
|
|
-<!-- <label class="layui-form-label">单位:</label>-->
|
|
|
-<!-- <div class="layui-input-block">-->
|
|
|
-<!-- <input type="text" name="unit" placeholder="请输入单位" autocomplete="off" class="layui-input ns-len-short">-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
-
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">商品品牌:</label>
|
|
|
<div class="layui-input-inline ns-len-mid">
|
|
@@ -74,13 +74,13 @@
|
|
|
<input type="hidden" name="brand_name" />
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
-<!-- <div class="layui-form-item js-goods-shop-category">-->
|
|
|
-<!-- <label class="layui-form-label">店内分类:</label>-->
|
|
|
-<!-- <div class="layui-input-inline"></div>-->
|
|
|
-<!-- <button class="layui-btn layui-btn-primary">添加</button>-->
|
|
|
-<!-- </div>-->
|
|
|
-
|
|
|
+
|
|
|
+ <!-- <div class="layui-form-item js-goods-shop-category">-->
|
|
|
+ <!-- <label class="layui-form-label">店内分类:</label>-->
|
|
|
+ <!-- <div class="layui-input-inline"></div>-->
|
|
|
+ <!-- <button class="layui-btn layui-btn-primary">添加</button>-->
|
|
|
+ <!-- </div>-->
|
|
|
+
|
|
|
{if $is_install_supply}
|
|
|
<div class="layui-form-item js-supplier">
|
|
|
<label class="layui-form-label">供应商:</label>
|
|
@@ -136,23 +136,23 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-card ns-card-common">
|
|
|
<div class="layui-card-header">
|
|
|
<span class="ns-card-title">价格库存</span>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="layui-card-body">
|
|
|
+
|
|
|
+ <div class="layui-card-body">
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">启用多规格:</label>
|
|
|
<div class="layui-input-inline">
|
|
|
<input type="checkbox" value="1" lay-skin="switch" name="spec_type" lay-filter="spec_type" lay-verify="spec_type">
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- 单规格 -->
|
|
|
<div class="js-single-spec">
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label"><span class="required">*</span>销售价:</label>
|
|
|
<div class="layui-input-inline">
|
|
@@ -160,8 +160,6 @@
|
|
|
</div>
|
|
|
<div class="layui-form-mid layui-word-aux">元</div>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">市场价:</label>
|
|
|
<div class="layui-input-inline">
|
|
@@ -169,7 +167,7 @@
|
|
|
</div>
|
|
|
<div class="layui-form-mid layui-word-aux">元</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">成本价:</label>
|
|
|
<div class="layui-input-inline">
|
|
@@ -177,39 +175,39 @@
|
|
|
</div>
|
|
|
<div class="layui-form-mid layui-word-aux">元</div>
|
|
|
</div>
|
|
|
-
|
|
|
|
|
|
-
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label">体积:</label>
|
|
|
- <div class="layui-input-inline">
|
|
|
- <input type="text" name="volume" placeholder="0.00" class="layui-input ns-len-short" lay-verify="volume" autocomplete="off">
|
|
|
- </div>
|
|
|
- <div class="layui-form-mid layui-word-aux">m3</div>
|
|
|
- </div>
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ <!--<div class="layui-form-item">-->
|
|
|
+ <!-- <label class="layui-form-label">体积:</label>-->
|
|
|
+ <!-- <div class="layui-input-inline">-->
|
|
|
+ <!-- <input type="text" name="volume" placeholder="0.00" class="layui-input ns-len-short" lay-verify="volume" autocomplete="off">-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- <div class="layui-form-mid layui-word-aux">m3</div>-->
|
|
|
+ <!--</div>-->
|
|
|
+
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">商品编码:</label>
|
|
|
<div class="layui-input-inline">
|
|
|
<input type="text" name="sku_no" placeholder="请输入商品编码" maxlength="50" class="layui-input ns-len-long" autocomplete="off">
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- 多规格 -->
|
|
|
<div class="js-more-spec">
|
|
|
-
|
|
|
+
|
|
|
<!--规格项/规格值-->
|
|
|
<div class="spec-edit-list"></div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item js-add-spec">
|
|
|
<label class="layui-form-label"></label>
|
|
|
<div class="layui-input-inline">
|
|
|
<button class="layui-btn layui-btn-primary" type="button">添加规格</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item batch-operation-sku">
|
|
|
<label class="layui-form-label">批量操作:</label>
|
|
|
<div class="layui-input-inline">
|
|
@@ -218,21 +216,21 @@
|
|
|
<span class="ns-text-color" data-field="market_price" data-verify="market_price">市场价</span>
|
|
|
<span class="ns-text-color" data-field="cost_price" data-verify="cost_price">成本价</span>
|
|
|
<span class="ns-text-color" data-field="stock" data-verify="stock">库存</span>
|
|
|
- <span class="ns-text-color" data-field="weight" data-verify="weight">重量(kg)</span>
|
|
|
- <span class="ns-text-color" data-field="volume" data-verify="volume">体积(m³)</span>
|
|
|
+ <!--<span class="ns-text-color" data-field="weight" data-verify="weight">重量(kg)</span>-->
|
|
|
+ <!--<span class="ns-text-color" data-field="volume" data-verify="volume">体积(m³)</span>-->
|
|
|
<span class="ns-text-color" data-field="sku_no" data-verify="">商品编码</span>
|
|
|
<input type="text" class="layui-input ns-len-short" name="batch_operation_sku" autocomplete="off" />
|
|
|
<button class="layui-btn ns-bg-color confirm" type="button">确定</button>
|
|
|
<button class="layui-btn layui-btn-primary cancel" type="button">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!--sku列表-->
|
|
|
<div class="layui-form-item sku-table">
|
|
|
<label class="layui-form-label"></label>
|
|
|
<div class="layui-input-block"></div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label"><span class="required">*</span>会员价:</label>
|
|
@@ -255,7 +253,7 @@
|
|
|
</div>
|
|
|
<div class="layui-form-mid layui-word-aux">/件</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label"><span class="required">*</span>库存预警:</label>
|
|
|
<div class="layui-input-inline">
|
|
@@ -263,7 +261,14 @@
|
|
|
</div>
|
|
|
<div class="layui-form-mid layui-word-aux">/件 (设置最低库存预警值。当库存低于预警值时商家中心商品列表页库存列红字提醒,0为不预警。)</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label"><span class="required">*</span>销量:</label>
|
|
|
+ <div class="layui-input-inline">
|
|
|
+ <input type="number" name="sale_num" placeholder="0" lay-verify="sale_num" class="layui-input ns-len-short" autocomplete="off">
|
|
|
+ </div>
|
|
|
+ <div class="layui-form-mid layui-word-aux">/件</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">是否免邮:</label>
|
|
|
<div class="layui-input-block">
|
|
@@ -271,7 +276,7 @@
|
|
|
<input type="radio" name="is_free_shipping" value="0" title="否" lay-filter="is_free_shipping">
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item js-shipping-template">
|
|
|
<label class="layui-form-label">运费模板:</label>
|
|
|
<div class="layui-input-inline">
|
|
@@ -297,39 +302,39 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
-<!-- <div class="layui-card ns-card-common">-->
|
|
|
-<!-- <div class="layui-card-header">-->
|
|
|
-<!-- <span class="ns-card-title">其他信息</span>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- -->
|
|
|
-<!-- <div class="layui-card-body">-->
|
|
|
-<!-- <div class="layui-form-item">-->
|
|
|
-<!-- <label class="layui-form-label">排序:</label>-->
|
|
|
-<!-- <div class="layui-input-inline">-->
|
|
|
-<!-- <input type="number" name="sort" class="layui-input ns-len-short" placeholder="0" autocomplete="off">-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- -->
|
|
|
-<!-- <div class="layui-form-item">-->
|
|
|
-<!-- <label class="layui-form-label"><span class="required">*</span>是否上架:</label>-->
|
|
|
-<!-- <div class="layui-input-block ns-len-mid">-->
|
|
|
-<!-- <input type="radio" name="goods_state" value="1" title="立刻上架" checked>-->
|
|
|
-<!--<!– <input type="radio" name="goods_state" value="0" title="放入仓库">–>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
+
|
|
|
+ <!-- <div class="layui-card ns-card-common">-->
|
|
|
+ <!-- <div class="layui-card-header">-->
|
|
|
+ <!-- <span class="ns-card-title">其他信息</span>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- -->
|
|
|
+ <!-- <div class="layui-card-body">-->
|
|
|
+ <!-- <div class="layui-form-item">-->
|
|
|
+ <!-- <label class="layui-form-label">排序:</label>-->
|
|
|
+ <!-- <div class="layui-input-inline">-->
|
|
|
+ <!-- <input type="number" name="sort" class="layui-input ns-len-short" placeholder="0" autocomplete="off">-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- -->
|
|
|
+ <!-- <div class="layui-form-item">-->
|
|
|
+ <!-- <label class="layui-form-label"><span class="required">*</span>是否上架:</label>-->
|
|
|
+ <!-- <div class="layui-input-block ns-len-mid">-->
|
|
|
+ <!-- <input type="radio" name="goods_state" value="1" title="立刻上架" checked>-->
|
|
|
+ <!--<!– <input type="radio" name="goods_state" value="0" title="放入仓库">–>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
</div>
|
|
|
|
|
|
<!-- 媒体设置 -->
|
|
|
<div class="layui-tab-item">
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-card ns-card-common">
|
|
|
<div class="layui-card-header">
|
|
|
<span class="ns-card-title">基础信息</span>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-card-body">
|
|
|
<div class="layui-form-item goods-image-wrap">
|
|
|
<label class="layui-form-label"><span class="required">*</span>图片上传:</label>
|
|
@@ -344,44 +349,44 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
-<!-- <div class="layui-card ns-card-common">-->
|
|
|
-<!-- <div class="layui-card-header">-->
|
|
|
-<!-- <span class="ns-card-title">展示视频</span>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- -->
|
|
|
-<!-- <div class="layui-card-body">-->
|
|
|
-<!-- <div class="layui-form-item">-->
|
|
|
-<!-- <label class="layui-form-label">视频上传:</label>-->
|
|
|
-<!-- <div class="layui-input-block">-->
|
|
|
-<!-- <div class="video-thumb">-->
|
|
|
-<!-- <video id="goods_video" class="video-js vjs-big-play-centered" controls="" poster="SHOP_IMG/goods_video_preview.png" preload="auto"></video>-->
|
|
|
-<!-- <span class="delete-video hide" onclick="deleteVideo()"></span>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- <div id="videoUpload" title="视频上传" style="position: absolute;left: 0;width: 290px;height: 135px;opacity: 0;cursor: pointer;z-index:10;"></div>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- -->
|
|
|
-<!-- <div class="layui-form-item">-->
|
|
|
-<!-- <label class="layui-form-label">视频地址:</label>-->
|
|
|
-<!-- <div class="layui-input-block">-->
|
|
|
-<!-- <input type="text" name="video_url" placeholder="在此输入外链视频地址" autocomplete="off" class="layui-input ns-len-long">-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- <div class="file-title ns-word-aux">-->
|
|
|
-<!-- <div>注意事项:</div>-->
|
|
|
-<!-- <ul>-->
|
|
|
-<!-- <li>1、检查upload文件夹是否有读写权限。</li>-->
|
|
|
-<!-- <li>2、PHP默认上传限制为2MB,需要在php.ini配置文件中修改“post_max_size”和“upload_max_filesize”的大小。</li>-->
|
|
|
-<!-- <li>3、视频支持手动输入外链视频地址或者上传本地视频文件</li>-->
|
|
|
-<!-- <li>4、必须上传.mp4视频格式</li>-->
|
|
|
-<!-- <li>5、视频文件大小不能超过500MB</li>-->
|
|
|
-<!-- </ul>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- </div>-->
|
|
|
+
|
|
|
+ <!-- <div class="layui-card ns-card-common">-->
|
|
|
+ <!-- <div class="layui-card-header">-->
|
|
|
+ <!-- <span class="ns-card-title">展示视频</span>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- -->
|
|
|
+ <!-- <div class="layui-card-body">-->
|
|
|
+ <!-- <div class="layui-form-item">-->
|
|
|
+ <!-- <label class="layui-form-label">视频上传:</label>-->
|
|
|
+ <!-- <div class="layui-input-block">-->
|
|
|
+ <!-- <div class="video-thumb">-->
|
|
|
+ <!-- <video id="goods_video" class="video-js vjs-big-play-centered" controls="" poster="SHOP_IMG/goods_video_preview.png" preload="auto"></video>-->
|
|
|
+ <!-- <span class="delete-video hide" onclick="deleteVideo()"></span>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- <div id="videoUpload" title="视频上传" style="position: absolute;left: 0;width: 290px;height: 135px;opacity: 0;cursor: pointer;z-index:10;"></div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- -->
|
|
|
+ <!-- <div class="layui-form-item">-->
|
|
|
+ <!-- <label class="layui-form-label">视频地址:</label>-->
|
|
|
+ <!-- <div class="layui-input-block">-->
|
|
|
+ <!-- <input type="text" name="video_url" placeholder="在此输入外链视频地址" autocomplete="off" class="layui-input ns-len-long">-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- <div class="file-title ns-word-aux">-->
|
|
|
+ <!-- <div>注意事项:</div>-->
|
|
|
+ <!-- <ul>-->
|
|
|
+ <!-- <li>1、检查upload文件夹是否有读写权限。</li>-->
|
|
|
+ <!-- <li>2、PHP默认上传限制为2MB,需要在php.ini配置文件中修改“post_max_size”和“upload_max_filesize”的大小。</li>-->
|
|
|
+ <!-- <li>3、视频支持手动输入外链视频地址或者上传本地视频文件</li>-->
|
|
|
+ <!-- <li>4、必须上传.mp4视频格式</li>-->
|
|
|
+ <!-- <li>5、视频文件大小不能超过500MB</li>-->
|
|
|
+ <!-- </ul>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </div>-->
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- 属性设置 -->
|
|
|
<div class="layui-tab-item">
|
|
|
<div class="ns-form">
|
|
@@ -397,7 +402,7 @@
|
|
|
<input type="hidden" name="goods_attr_name" />
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="layui-form-item js-attr-list ns-special-length">
|
|
|
<label class="layui-form-label"></label>
|
|
|
<div class="layui-input-block">
|
|
@@ -406,15 +411,15 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- 商品详情 -->
|
|
|
<div class="layui-tab-item">
|
|
|
<div class="ns-form">
|
|
|
<div class="layui-form-item">
|
|
|
<font color="red">商品详情图 : 1095 * 高度不限 px</font>
|
|
|
<label class="layui-form-label">商品详情:</label><div class="layui-input-inline ns-special-length">
|
|
|
- <script id="editor" type="text/plain" style="width:100%;height:500px;"></script>
|
|
|
- </div>
|
|
|
+ <script id="editor" type="text/plain" style="width:100%;height:500px;"></script>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<script type="text/javascript" charset="utf-8" src="__STATIC__/ext/ueditor/ueditor.config.js"></script>
|
|
@@ -423,7 +428,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="fixed-btn">
|
|
|
<button class="layui-btn layui-btn-primary ns-border-color ns-text-color js-prev" lay-submit="" lay-filter="prev">上一步</button>
|
|
|
<button class="layui-btn ns-bg-color js-save" lay-submit="" lay-filter="save">保存</button>
|
|
@@ -433,41 +438,41 @@
|
|
|
|
|
|
<!--选择商品分类-->
|
|
|
<script type="text/html" id="selectedCategory">
|
|
|
-
|
|
|
- <div class="category-list">
|
|
|
-
|
|
|
- <div class="item">
|
|
|
- <!--后续做搜索-->
|
|
|
- <ul>
|
|
|
- {foreach name="$goods_category_list" item="vo"}
|
|
|
- {{# if(d.category_id_1 == '{$vo['category_id']}' ){ }}
|
|
|
- <li data-category-id="{$vo['category_id']}" data-commission-rate="{$vo['commission_rate']}" data-level="{$vo['level']}" class="selected">
|
|
|
+
|
|
|
+ <div class="category-list">
|
|
|
+
|
|
|
+ <div class="item">
|
|
|
+ <!--后续做搜索-->
|
|
|
+ <ul>
|
|
|
+ {foreach name="$goods_category_list" item="vo"}
|
|
|
+ {{# if(d.category_id_1 == '{$vo['category_id']}' ){ }}
|
|
|
+ <li data-category-id="{$vo['category_id']}" data-commission-rate="{$vo['commission_rate']}" data-level="{$vo['level']}" class="selected">
|
|
|
{{# }else{ }}
|
|
|
- <li data-category-id="{$vo['category_id']}" data-commission-rate="{$vo['commission_rate']}" data-level="{$vo['level']}">
|
|
|
+ <li data-category-id="{$vo['category_id']}" data-commission-rate="{$vo['commission_rate']}" data-level="{$vo['level']}">
|
|
|
{{# } }}
|
|
|
- <span class="category-name">{$vo['category_name']}</span>
|
|
|
- <span class="right-arrow">></span>
|
|
|
- </li>
|
|
|
- {/foreach}
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="item" data-level="2">
|
|
|
- <!--后续做搜索-->
|
|
|
- <ul></ul>
|
|
|
- </div>
|
|
|
-
|
|
|
-<!-- <div class="item" data-level="3">-->
|
|
|
-<!-- <!–后续做搜索–>-->
|
|
|
-<!-- <ul></ul>-->
|
|
|
-<!-- </div>-->
|
|
|
-
|
|
|
+ <span class="category-name">{$vo['category_name']}</span>
|
|
|
+ <span class="right-arrow">></span>
|
|
|
+ </li>
|
|
|
+ {/foreach}
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="selected-category-wrap">
|
|
|
- <label>您当前选择的是:</label>
|
|
|
- <span class="js-selected-category"></span>
|
|
|
+
|
|
|
+ <div class="item" data-level="2">
|
|
|
+ <!--后续做搜索-->
|
|
|
+ <ul></ul>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- <div class="item" data-level="3">-->
|
|
|
+ <!-- <!–后续做搜索–>-->
|
|
|
+ <!-- <ul></ul>-->
|
|
|
+ <!-- </div>-->
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="selected-category-wrap">
|
|
|
+ <label>您当前选择的是:</label>
|
|
|
+ <span class="js-selected-category"></span>
|
|
|
+ </div>
|
|
|
</script>
|
|
|
|
|
|
<!--店内分类-->
|
|
@@ -482,15 +487,15 @@
|
|
|
{{# }else{ }}
|
|
|
<option value="{$vo['category_id']}">{$vo['category_name']}</option>
|
|
|
{{# } }}
|
|
|
- {notempty name="$vo['child_list']"}
|
|
|
- {foreach name="$vo['child_list']" item="second"}
|
|
|
- {{# if(d.list[i] == {$second['category_id']} ){ }}
|
|
|
- <option value="{$second['category_id']}" selected> {$second['category_name']}</option>
|
|
|
- {{# }else{ }}
|
|
|
- <option value="{$second['category_id']}"> {$second['category_name']}</option>
|
|
|
- {{# } }}
|
|
|
- {/foreach}
|
|
|
- {/notempty}
|
|
|
+ {notempty name="$vo['child_list']"}
|
|
|
+ {foreach name="$vo['child_list']" item="second"}
|
|
|
+ {{# if(d.list[i] == {$second['category_id']} ){ }}
|
|
|
+ <option value="{$second['category_id']}" selected> {$second['category_name']}</option>
|
|
|
+ {{# }else{ }}
|
|
|
+ <option value="{$second['category_id']}"> {$second['category_name']}</option>
|
|
|
+ {{# } }}
|
|
|
+ {/foreach}
|
|
|
+ {/notempty}
|
|
|
{/foreach}
|
|
|
</select>
|
|
|
<i class="layui-icon layui-icon-close" data-index="{{i}}"></i>
|
|
@@ -500,7 +505,7 @@
|
|
|
|
|
|
<!--规格项模板-->
|
|
|
<script type="text/html" id="specTemplate">
|
|
|
-
|
|
|
+
|
|
|
{{# for(var i=0;i<d.list.length;i++){ }}
|
|
|
<div class="spec-item" data-index="{{i}}">
|
|
|
<div class="layui-form-item spec">
|
|
@@ -515,65 +520,57 @@
|
|
|
</select>
|
|
|
<i class="layui-icon layui-icon-close" data-index="{{i}}"></i>
|
|
|
</div>
|
|
|
-
|
|
|
- {{# if(i==0){ }}
|
|
|
- <div class="layui-input-inline">
|
|
|
- {{# if(d.add_spec_img){ }}
|
|
|
- <input type="checkbox" name="add_spec_img" title="添加规格图片" lay-skin="primary" lay-filter="add_spec_img" checked>
|
|
|
- {{# }else{ }}
|
|
|
- <input type="checkbox" name="add_spec_img" title="添加规格图片" lay-skin="primary" lay-filter="add_spec_img">
|
|
|
- {{# } }}
|
|
|
- </div>
|
|
|
- {{# } }}
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
{{# if(d.list[i].spec_name != ''){ }}
|
|
|
<div class="layui-form-item spec-value">
|
|
|
- {{# }else{ }}
|
|
|
- <div class="layui-form-item spec-value" style="display:none;">
|
|
|
- {{# } }}
|
|
|
- <label class="layui-form-label"></label>
|
|
|
- <div class="layui-input-block spec-value">
|
|
|
- {{# if(d.list[i].value.length){ }}
|
|
|
- <ul>
|
|
|
- {{# for(var j=0;j<d.list[i].value.length;j++){ }}
|
|
|
- <li data-index="{{j}}" data-parent-index="{{i}}" >
|
|
|
- {{# if(i==0 && d.add_spec_img){ }}
|
|
|
- <div class="img-wrap">
|
|
|
- {{# if(d.list[i].value[j].image){ }}
|
|
|
- <img src="{{ns.img(d.list[i].value[j].image)}}" alt="">
|
|
|
- {{# }else{ }}
|
|
|
- <img src="SHOP_IMG/goods_spec_value_empty.png" alt="">
|
|
|
+ {{# }else{ }}
|
|
|
+ <div class="layui-form-item spec-value" style="display:none;">
|
|
|
+ {{# } }}
|
|
|
+ <label class="layui-form-label"></label>
|
|
|
+ <div class="layui-input-block spec-value">
|
|
|
+ {{# if(d.list[i].value.length){ }}
|
|
|
+ <ul>
|
|
|
+ {{# for(var j=0;j<d.list[i].value.length;j++){ }}
|
|
|
+ <li data-index="{{j}}" data-parent-index="{{i}}" >
|
|
|
+ {{# if(i==0 && d.add_spec_img){ }}
|
|
|
+ <div class="img-wrap">
|
|
|
+ {{# if(d.list[i].value[j].image){ }}
|
|
|
+ <img src="{{ns.img(d.list[i].value[j].image)}}" alt="">
|
|
|
+ {{# }else{ }}
|
|
|
+ <img src="SHOP_IMG/goods_spec_value_empty.png" alt="">
|
|
|
+ {{# } }}
|
|
|
+ </div>
|
|
|
{{# } }}
|
|
|
- </div>
|
|
|
+ <span>{{d.list[i].value[j].spec_value_name}}</span>
|
|
|
+ <i class="layui-icon layui-icon-close" data-parent-index="{{i}}" data-index="{{j}}"></i>
|
|
|
+ </li>
|
|
|
{{# } }}
|
|
|
- <span>{{d.list[i].value[j].spec_value_name}}</span>
|
|
|
- <i class="layui-icon layui-icon-close" data-parent-index="{{i}}" data-index="{{j}}"></i>
|
|
|
- </li>
|
|
|
+ </ul>
|
|
|
{{# } }}
|
|
|
- </ul>
|
|
|
- {{# } }}
|
|
|
-
|
|
|
- <a class="ns-text-color" href="javascript:;" data-index="{{i}}">+添加规格值</a>
|
|
|
-
|
|
|
- <div class="add-spec-value-popup" data-index="{{i}}">
|
|
|
-
|
|
|
- <select name="spec_value_item"></select>
|
|
|
- <button class="layui-btn layui-btn-primary ns-border-color ns-text-color js-cancel-spec-value">取消</button>
|
|
|
-
|
|
|
+
|
|
|
+ <a class="ns-text-color" href="javascript:;" data-index="{{i}}">+添加规格值</a>
|
|
|
+
|
|
|
+ <div class="add-spec-value-popup" data-index="{{i}}">
|
|
|
+
|
|
|
+ <select name="spec_value_item"></select>
|
|
|
+ <button class="layui-btn layui-btn-primary ns-border-color ns-text-color js-cancel-spec-value">取消</button>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
-
|
|
|
- </div>
|
|
|
- {{# } }}
|
|
|
-
|
|
|
+ {{# } }}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<!--SKU列表模板-->
|
|
|
<script type="text/html" id="skuTableTemplate">
|
|
|
-
|
|
|
+
|
|
|
{{# if(d.skuList.length){ }}
|
|
|
<table class="layui-table">
|
|
|
<colgroup>
|
|
@@ -584,79 +581,70 @@
|
|
|
<!--<col width="10%">-->
|
|
|
<!--<col width="10%">-->
|
|
|
<!--<col width="10%">-->
|
|
|
- <!--<col width="10%">-->
|
|
|
- <!--<col width="10%">-->
|
|
|
+
|
|
|
<!--<col width="10%">-->
|
|
|
</colgroup>
|
|
|
<thead>
|
|
|
- <tr>
|
|
|
- {{# if(d.showSpecName){ }}
|
|
|
- <th colspan="{{d.colSpan}}">商品规格</th>
|
|
|
- {{# } }}
|
|
|
- <th rowspan="{{d.rowSpan}}"><span class="required">*</span>SKU图片</th>
|
|
|
- <th rowspan="{{d.rowSpan}}">副标题</th>
|
|
|
- <th rowspan="{{d.rowSpan}}"><span class="required">*</span>销售价</th>
|
|
|
- <th rowspan="{{d.rowSpan}}">市场价</th>
|
|
|
- <th rowspan="{{d.rowSpan}}">成本价</th>
|
|
|
- <th rowspan="{{d.rowSpan}}"><span class="required">*</span>库存</th>
|
|
|
- <th rowspan="{{d.rowSpan}}">重量(kg)</th>
|
|
|
- <th rowspan="{{d.rowSpan}}">体积(m³)</th>
|
|
|
- <th rowspan="{{d.rowSpan}}">SKU编码</th>
|
|
|
- </tr>
|
|
|
- {{# if(d.colSpan>1){ }}
|
|
|
- <tr>
|
|
|
- {{# for(var i=0;i<d.specList.length;i++){ }}
|
|
|
- <th>{{d.specList[i].spec_name}}</th>
|
|
|
- {{# } }}
|
|
|
- </tr>
|
|
|
+ <tr>
|
|
|
+ {{# if(d.showSpecName){ }}
|
|
|
+ <th colspan="{{d.colSpan}}">商品规格</th>
|
|
|
{{# } }}
|
|
|
+ <th rowspan="{{d.rowSpan}}"><span class="required">*</span>SKU图片</th>
|
|
|
+ <th rowspan="{{d.rowSpan}}">副标题</th>
|
|
|
+ <th rowspan="{{d.rowSpan}}"><span class="required">*</span>销售价</th>
|
|
|
+ <th rowspan="{{d.rowSpan}}">市场价</th>
|
|
|
+ <th rowspan="{{d.rowSpan}}">成本价</th>
|
|
|
+ <th rowspan="{{d.rowSpan}}"><span class="required">*</span>库存</th>
|
|
|
+ <th rowspan="{{d.rowSpan}}">SKU编码</th>
|
|
|
+ </tr>
|
|
|
+ {{# if(d.colSpan>1){ }}
|
|
|
+ <tr>
|
|
|
+ {{# for(var i=0;i<d.specList.length;i++){ }}
|
|
|
+ <th>{{d.specList[i].spec_name}}</th>
|
|
|
+ {{# } }}
|
|
|
+ </tr>
|
|
|
+ {{# } }}
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {{# for(var i=0;i<d.skuList.length;i++){ }}
|
|
|
- <tr>
|
|
|
- <td id="sku_img_{{i}}">
|
|
|
- {{# for(var j=0;j<d.skuList[i].sku_images_arr.length;j++){ }}
|
|
|
- <div class="img-wrap" data-index="{{j}}" data-parent-index="{{i}}">
|
|
|
- <a href="javascript:void(0)">
|
|
|
- <img src="{{ns.img(d.skuList[i].sku_images_arr[j])}}" layer-src />
|
|
|
- </a>
|
|
|
- <div class="operation">
|
|
|
- <i title="图片预览" class="iconfont iconreview js-preview"></i>
|
|
|
- <i title="删除图片" class="layui-icon layui-icon-delete js-delete"></i>
|
|
|
- </div>
|
|
|
+ {{# for(var i=0;i<d.skuList.length;i++){ }}
|
|
|
+ <tr>
|
|
|
+ <td id="sku_img_{{i}}">
|
|
|
+ {{# for(var j=0;j<d.skuList[i].sku_images_arr.length;j++){ }}
|
|
|
+ <div class="img-wrap" data-index="{{j}}" data-parent-index="{{i}}">
|
|
|
+ <a href="javascript:void(0)">
|
|
|
+ <img src="{{ns.img(d.skuList[i].sku_images_arr[j])}}" layer-src />
|
|
|
+ </a>
|
|
|
+ <div class="operation">
|
|
|
+ <i title="图片预览" class="iconfont iconreview js-preview"></i>
|
|
|
+ <i title="删除图片" class="layui-icon layui-icon-delete js-delete"></i>
|
|
|
</div>
|
|
|
- {{# } }}
|
|
|
- {{# if(d.skuList[i].sku_images_arr.length<d.goods_sku_max){ }}
|
|
|
- <div class="upload-sku-img" data-index="{{i}}"><i class="layui-icon layui-icon-add-1"></i></div>
|
|
|
- {{# } }}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" name="spec_name" placeholder="副标题" maxlength="100" value="{{d.skuList[i].spec_name}}" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" name="price" placeholder="销售价" lay-verify="sku_price" value="{{d.skuList[i].price}}" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" name="market_price" placeholder="市场价" value="{{d.skuList[i].market_price}}" lay-verify="sku_market_price" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" name="cost_price" placeholder="成本价" value="{{d.skuList[i].cost_price}}" lay-verify="sku_cost_price" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" name="stock" placeholder="库存" value="{{d.skuList[i].stock}}" lay-verify="sku_stock" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" name="weight" placeholder="重量(kg)" value="{{d.skuList[i].weight}}" lay-verify="sku_weight" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" name="volume" placeholder="体积(m³)" value="{{d.skuList[i].volume}}" lay-verify="sku_volume" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input type="text" name="sku_no" placeholder="SKU编码" value="{{d.skuList[i].sku_no}}" maxlength="50" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- {{# } }}
|
|
|
-
|
|
|
+ </div>
|
|
|
+ {{# } }}
|
|
|
+ {{# if(d.skuList[i].sku_images_arr.length<d.goods_sku_max){ }}
|
|
|
+ <div class="upload-sku-img" data-index="{{i}}"><i class="layui-icon layui-icon-add-1"></i></div>
|
|
|
+ {{# } }}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" name="spec_name" placeholder="副标题" maxlength="100" value="{{d.skuList[i].spec_name}}" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" name="price" placeholder="销售价" lay-verify="sku_price" value="{{d.skuList[i].price}}" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" name="market_price" placeholder="市场价" value="{{d.skuList[i].market_price}}" lay-verify="sku_market_price" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" name="cost_price" placeholder="成本价" value="{{d.skuList[i].cost_price}}" lay-verify="sku_cost_price" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" name="stock" placeholder="库存" value="{{d.skuList[i].stock}}" lay-verify="sku_stock" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input type="text" name="sku_no" placeholder="SKU编码" value="{{d.skuList[i].sku_no}}" maxlength="50" class="layui-input ns-len-small" autocomplete="off" data-index="{{i}}">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ {{# } }}
|
|
|
+
|
|
|
</tbody>
|
|
|
</table>
|
|
|
{{# } }}
|
|
@@ -665,24 +653,24 @@
|
|
|
<!--商品主图列表-->
|
|
|
<script type="text/html" id="goodsImage">
|
|
|
{{# if(d.length){ }}
|
|
|
- {{# for(var i=0;i<d.length;i++){ }}
|
|
|
- {{# if(d[i]){ }}
|
|
|
- <div class="item" data-index="{{i}}">
|
|
|
- <div class="img-wrap">
|
|
|
- <img src="{{ns.img(d[i])}}" layer-src>
|
|
|
- </div>
|
|
|
- <div class="operation">
|
|
|
- <i title="图片预览" class="iconfont iconreview js-preview"></i>
|
|
|
- <i title="删除图片" class="layui-icon layui-icon-delete js-delete" data-index="{{i}}"></i>
|
|
|
- </div>
|
|
|
- {{# }else{ }}
|
|
|
- <div class="item empty">
|
|
|
+ {{# for(var i=0;i<d.length;i++){ }}
|
|
|
+ {{# if(d[i]){ }}
|
|
|
+ <div class="item" data-index="{{i}}">
|
|
|
+ <div class="img-wrap">
|
|
|
+ <img src="{{ns.img(d[i])}}" layer-src>
|
|
|
+ </div>
|
|
|
+ <div class="operation">
|
|
|
+ <i title="图片预览" class="iconfont iconreview js-preview"></i>
|
|
|
+ <i title="删除图片" class="layui-icon layui-icon-delete js-delete" data-index="{{i}}"></i>
|
|
|
+ </div>
|
|
|
+ {{# }else{ }}
|
|
|
+ <div class="item empty">
|
|
|
{{# } }}
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
{{# } }}
|
|
|
- {{# }else{ }}
|
|
|
+ {{# }else{ }}
|
|
|
<div class="item empty"></div>
|
|
|
- {{# } }}
|
|
|
+ {{# } }}
|
|
|
</script>
|
|
|
|
|
|
<!--属性列表模板-->
|
|
@@ -693,24 +681,24 @@
|
|
|
<col width="90%">
|
|
|
</colgroup>
|
|
|
<tbody>
|
|
|
- {{# for(var i=0;i<d.list.length;i++){ }}
|
|
|
- <tr data-attr-class-id="{{d.list[i].attr_class_id}}" data-attr-class-name="{{d.list[i].attr_class_name}}" data-attr-id="{{d.list[i].attr_id}}" data-attr-name="{{d.list[i].attr_name}}" data-attr-type="{{d.list[i].attr_type}}">
|
|
|
- <td>{{d.list[i].attr_name}}</td>
|
|
|
- <td>
|
|
|
- {{# if(d.list[i].attr_type == 1){ }}
|
|
|
- {{# for(var j=0;j<d.list[i].attr_value_format.length;j++){ }}
|
|
|
- <input type="radio" name="attr_value_{{d.list[i].attr_id}}" value="{{d.list[i].attr_value_format[j].attr_value_id}}" title="{{d.list[i].attr_value_format[j].attr_value_name}}" data-attr-value-name="{{d.list[i].attr_value_format[j].attr_value_name}}" />
|
|
|
- {{# } }}
|
|
|
- {{# }else if(d.list[i].attr_type == 2){ }}
|
|
|
- {{# for(var j=0;j<d.list[i].attr_value_format.length;j++){ }}
|
|
|
- <input type="checkbox" name="attr_value_{{d.list[i].attr_id}}" value="{{d.list[i].attr_value_format[j].attr_value_id}}" title="{{d.list[i].attr_value_format[j].attr_value_name}}" data-attr-value-name="{{d.list[i].attr_value_format[j].attr_value_name}}" lay-skin="primary">
|
|
|
- {{# } }}
|
|
|
- {{# }else if(d.list[i].attr_type == 3){ }}
|
|
|
- <input type="text" name="attr_value_{{d.list[i].attr_id}}" placeholder="{{d.list[i].attr_name}}" class="layui-input ns-len-mid" autocomplete="off">
|
|
|
- {{# } }}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- {{# } }}
|
|
|
+ {{# for(var i=0;i<d.list.length;i++){ }}
|
|
|
+ <tr data-attr-class-id="{{d.list[i].attr_class_id}}" data-attr-class-name="{{d.list[i].attr_class_name}}" data-attr-id="{{d.list[i].attr_id}}" data-attr-name="{{d.list[i].attr_name}}" data-attr-type="{{d.list[i].attr_type}}">
|
|
|
+ <td>{{d.list[i].attr_name}}</td>
|
|
|
+ <td>
|
|
|
+ {{# if(d.list[i].attr_type == 1){ }}
|
|
|
+ {{# for(var j=0;j<d.list[i].attr_value_format.length;j++){ }}
|
|
|
+ <input type="radio" name="attr_value_{{d.list[i].attr_id}}" value="{{d.list[i].attr_value_format[j].attr_value_id}}" title="{{d.list[i].attr_value_format[j].attr_value_name}}" data-attr-value-name="{{d.list[i].attr_value_format[j].attr_value_name}}" />
|
|
|
+ {{# } }}
|
|
|
+ {{# }else if(d.list[i].attr_type == 2){ }}
|
|
|
+ {{# for(var j=0;j<d.list[i].attr_value_format.length;j++){ }}
|
|
|
+ <input type="checkbox" name="attr_value_{{d.list[i].attr_id}}" value="{{d.list[i].attr_value_format[j].attr_value_id}}" title="{{d.list[i].attr_value_format[j].attr_value_name}}" data-attr-value-name="{{d.list[i].attr_value_format[j].attr_value_name}}" lay-skin="primary">
|
|
|
+ {{# } }}
|
|
|
+ {{# }else if(d.list[i].attr_type == 3){ }}
|
|
|
+ <input type="text" name="attr_value_{{d.list[i].attr_id}}" placeholder="{{d.list[i].attr_name}}" class="layui-input ns-len-mid" autocomplete="off">
|
|
|
+ {{# } }}
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ {{# } }}
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</script>
|