diff --git a/src/application/admin/view/article/category/edit.tpl b/src/application/admin/view/article/category/edit.tpl index 37f89eb5..2fee5a5e 100644 --- a/src/application/admin/view/article/category/edit.tpl +++ b/src/application/admin/view/article/category/edit.tpl @@ -2,45 +2,45 @@ {block name="body"} - {assign name="page_title" value=":lang($id>0?'Edit':'Add').lang('Category')" /} - {include file="public/bread" menu="category_index" title="$page_title"/} +{assign name="page_title" value=":lang($id>0?'Edit':'Add').lang('Category')" /} +{include file="public/bread" menu="category_index" title="$page_title"/} -
- -
-
-
-
-
-
- {:lang('Category Title')} -
- +
+ +
+ +
+
+
+
+ {:lang('Category Title')}
+
-
-
-
- 简称 -
- +
+
+
+
+ 简称
+
-
+
+
父分类
- +
@@ -48,7 +48,8 @@
分类别名
- +
@@ -63,32 +64,31 @@
- {if !empty($model['icon'])} -
- icon -
{$model.icon}
+ {if !empty($model[' icon'])}
+ icon +
{$model.icon}
- - {/if} -
-
-
-
- 分类图片 -
-
- - -
+ + {/if}
- {if !empty($model['image'])} +
+
+
+ 分类图片 +
+
+ + +
+
+ {if !empty($model['image'])}
image
{$model.image}
- - {/if} -
+ + {/if} +
@@ -96,7 +96,8 @@
排序
- +
@@ -104,7 +105,8 @@
分页
- +
@@ -113,21 +115,25 @@
-
独立模板编写index.tpl及view.tpl放在“分类别名”目录下,参考article/index.tpl及view.tpl
+
+ 独立模板编写index.tpl及view.tpl放在“分类别名”目录下,参考article/index.tpl及view.tpl
- +
@@ -135,27 +141,27 @@
关键词
- +
+ placeholder="请输入分类描述(选填)">{$model.description|default=''}
- -
+ + {/block} {block name="script"} - + {/block} \ No newline at end of file diff --git a/src/application/admin/view/article/index/comments.tpl b/src/application/admin/view/article/index/comments.tpl index d1f8ee3b..a359898e 100644 --- a/src/application/admin/view/article/index/comments.tpl +++ b/src/application/admin/view/article/index/comments.tpl @@ -29,22 +29,23 @@ - -
- -
- -
+ + {/foreach} + +
+
+ +
+
- - + + - - + +
+ @@ -55,99 +56,98 @@ - - + + {empty name="lists"}{:list_empty(8)}{/empty} - {volist name="lists" id="v" } - - - - - - - - + {volist name="lists" id="v" } + + + + + + + + - - - {/volist} - -
编号 文章状态  
[{$v.category_title}]{$v.article_title}{$v.create_time|showdate}{$v.nickname}
{$v.username}
{$v.email}{$v.content|cutstr=20} - {if $v[' status']==1} 已审核 - {else/} - 未审核 - {/if} -
[{$v.category_title}]{$v.article_title}{$v.create_time|showdate}{$v.nickname}
{$v.username}
{$v.email}{$v.content|cutstr=20} + {if $v[' status']==1} 已审核 + {else/} + 未审核 + {/if} + - - -
-
- {$page|raw} + + + + + + + + {/volist} + + +
+ {$page|raw} - - {/block} - {block name="script"} - - {/block} \ No newline at end of file + +{/block} +{block name="script"} + +{/block} \ No newline at end of file diff --git a/src/application/admin/view/article/index/edit.tpl b/src/application/admin/view/article/index/edit.tpl index fd4063be..6d80492b 100644 --- a/src/application/admin/view/article/index/edit.tpl +++ b/src/application/admin/view/article/index/edit.tpl @@ -9,11 +9,12 @@
- +
- +
@@ -21,26 +22,29 @@
- +
- +
@@ -49,16 +53,16 @@
- +
{if !empty($article['cover'])} -
- image -
{$article.cover}
-
- +
+ image +
{$article.cover}
+
+ {/if}
@@ -67,25 +71,29 @@
{if !empty($article['prop_data'])} {foreach $article['prop_data'] as $k => $prop} -
- - - -
+
+ + + +
{/foreach} {/if}
- 添加字段 + + 添加字段
-
+
{volist name="types" id="type" key="k"} - + {/volist}
@@ -94,7 +102,8 @@
+ - +
@@ -102,13 +111,14 @@
+ - +
- +
@@ -129,64 +139,64 @@ diff --git a/src/application/admin/view/article/index/index.tpl b/src/application/admin/view/article/index/index.tpl index 5b9f07b9..5276e3b7 100644 --- a/src/application/admin/view/article/index/index.tpl +++ b/src/application/admin/view/article/index/index.tpl @@ -34,14 +34,15 @@
- +
@@ -64,121 +65,119 @@ {empty name="lists"}{:list_empty(8)}{/empty} {volist name="lists" id="v" } - - - {$v.title} - - {$types[$v['type']]} - - {$v.create_time|showdate} - {$v.username} - {$v.category_title} - - {if $v['status'] == 1} - 已发布 - {else/} - 未发布 - {/if} - - - - - - - - - {/volist} - - -
- {$page|raw} + + + {$v.title} + + {$types[$v['type']]} + + {$v.create_time|showdate} + {$v.username} + {$v.category_title} + + {if $v['status'] == 1} + 已发布 + {else/} + 未发布 + {/if} + + + + + + + + + + + {/volist} + + +
+ {$page|raw} - - {/block} - {block name="script"} - - {/block} \ No newline at end of file + +{/block} +{block name="script"} + +{/block} \ No newline at end of file diff --git a/src/application/admin/view/credit/category/edit.tpl b/src/application/admin/view/credit/category/edit.tpl index b8fe9262..2c495ad2 100644 --- a/src/application/admin/view/credit/category/edit.tpl +++ b/src/application/admin/view/credit/category/edit.tpl @@ -2,44 +2,44 @@ {block name="body"} - {include file="public/bread" menu="credit_category_index" title="分类信息"/} +{include file="public/bread" menu="credit_category_index" title="分类信息"/} -
- -
-
-
-
-
-
- 分类名称 -
- +
+ +
+ +
+
+
+
+ 分类名称
+
-
-
-
- 简称 -
- +
+
+
+
+ 简称
+
-
+
+
父分类
- +
@@ -47,27 +47,28 @@
分类别名
- +
-
-
+
+
分类图标
- +
{if !empty($model['icon'])} -
- icon -
{$model.icon}
-
- +
+ icon +
{$model.icon}
+
+ {/if}
@@ -76,51 +77,52 @@ 分类图片
- +
{if !empty($model['image'])} -
- image -
{$model.image}
-
- +
+ image +
{$model.image}
+
+ {/if}
-
-
-
-
- 排序 -
- +
+
+
+
+ 排序
+
-
-
-
- 关键词 -
- +
+
+
+
+ 关键词
+
-
- - -
- - - -
+
+
+ + +
+ + +
+
{/block} {block name="script"} - + {/block} \ No newline at end of file diff --git a/src/application/admin/view/credit/goods/edit.tpl b/src/application/admin/view/credit/goods/edit.tpl index b325bf68..eafa53b1 100644 --- a/src/application/admin/view/credit/goods/edit.tpl +++ b/src/application/admin/view/credit/goods/edit.tpl @@ -11,21 +11,25 @@
商品名称
- +
单位
- +
商品简介
- +
商品货号
- +
@@ -33,7 +37,8 @@
商品分类
@@ -44,16 +49,16 @@ 商品主图
- +
{if !empty($goods['image'])} -
- image -
{$goods.image}
-
- +
+ image +
{$goods.image}
+
+ {/if}
@@ -66,10 +71,12 @@
@@ -78,7 +85,8 @@
- +
积分
@@ -92,7 +100,8 @@
- +
@@ -100,7 +109,8 @@
- +
已售
@@ -112,7 +122,8 @@
- +
排序越大越靠前 @@ -124,9 +135,11 @@
{volist name="levels" id="lv" key="k"} - + {/volist}
@@ -135,7 +148,8 @@
- +
填写0不限制 @@ -151,14 +165,17 @@
{foreach $goods['prop_data']??[] as $k => $prop} -
- - - -
+
+ + + +
{/foreach}
- 添加属性 + + 添加属性
@@ -180,10 +197,10 @@ + } + }); + }) + } + })(window) + {/block} \ No newline at end of file diff --git a/src/application/admin/view/oauth/edit.tpl b/src/application/admin/view/oauth/edit.tpl index 929cdb4a..f6441b64 100644 --- a/src/application/admin/view/oauth/edit.tpl +++ b/src/application/admin/view/oauth/edit.tpl @@ -7,51 +7,49 @@
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
- - -
+ +
+ + +
+
+ + +
+
+ + +
+
+ +
- {if !empty($model['image'])} +
+ +
+
+ + +
+
+ {if !empty($model['image'])}
image
{$model.image}
- - {/if} -
-
- - -
- + + {/if} +
+
+ + +
+
{/block} \ No newline at end of file diff --git a/src/application/admin/view/page/index.tpl b/src/application/admin/view/page/index.tpl index 4732db9e..e9e0eabe 100644 --- a/src/application/admin/view/page/index.tpl +++ b/src/application/admin/view/page/index.tpl @@ -5,11 +5,12 @@ {include file="public/bread" menu="page_index" title="单页列表" /}
- +
-
-
- 分组 -
- -
-
- -
- -
-
-
+
+
+ 分组 +
+ +
+
+ +
+ +
+
+
@@ -57,27 +61,30 @@ - {php}$empty=list_empty(7);{/php} - {volist name="lists" id="v" empty="$empty"} + {php}$empty=list_empty(7);{/php} + {volist name="lists" id="v" empty="$empty"} - {$v.group}{if $v['group_use_template'] == 1} 独立模板{/if} + {$v.group}{if $v['group_use_template'] == 1} 独立模板{/if} + {$v.name}{if $v['use_template'] == 1} 独立模板{/if} {$v.title} {$v.sort} {if $v['status'] == 1} - 显示 + 显示 {else/} - 隐藏 + 隐藏 {/if} - - + + - {/volist} + {/volist} {$page|raw} @@ -85,62 +92,62 @@ {/block} {block name="script"} - + }); + }; + })(window) + {/block} \ No newline at end of file diff --git a/src/application/admin/view/shop/category/edit.tpl b/src/application/admin/view/shop/category/edit.tpl index 2c79855b..fb05aaaa 100644 --- a/src/application/admin/view/shop/category/edit.tpl +++ b/src/application/admin/view/shop/category/edit.tpl @@ -2,52 +2,53 @@ {block name="body"} - {include file="public/bread" menu="shop_category_index" title="分类信息"/} +{include file="public/bread" menu="shop_category_index" title="分类信息"/} -
- -
-
-
-
-
-
- 分类名称 -
- +
+ +
+ +
+
+
+
+ 分类名称
+
-
-
-
- 简称 -
- +
+
+
+
+ 简称
+
-
-
-
-
- 父分类 -
+
+
+
+
+
+ 父分类 +
-
-
-
-
- 分类别名 -
- +
+
+
+
+ 分类别名 +
+
@@ -62,12 +63,11 @@
- {if !empty($model['icon'])} -
- icon -
{$model.icon}
-
- + {if !empty($model[' icon'])}
+ icon +
{$model.icon}
+
+ {/if}
@@ -76,16 +76,16 @@ 分类图片
- +
{if !empty($model['image'])} -
- image -
{$model.image}
-
- +
+ image +
{$model.image}
+
+ {/if}
@@ -95,17 +95,20 @@
排序
- +
@@ -115,14 +118,15 @@
关键词
- +
- +
{if !empty($specs)} @@ -130,9 +134,10 @@
{volist name="specs" id="val" key="k"} - + {/volist}
@@ -140,18 +145,18 @@
+ placeholder="请输入分类描述(选填)">{$model.description|default=''}
-
-
+
+
{/block} {block name="script"} - + {/block} \ No newline at end of file diff --git a/src/application/admin/view/shop/coupon/update.tpl b/src/application/admin/view/shop/coupon/update.tpl index f911b3d6..6eef486b 100644 --- a/src/application/admin/view/shop/coupon/update.tpl +++ b/src/application/admin/view/shop/coupon/update.tpl @@ -7,247 +7,267 @@
-
-
- - -
-
- -
-
- - - - - -
+ +
+ +
-
-
- -
- +
+ +
+
+ + + + + +
+
-
-
- -
- {$brand.title|default=''} - -
- 选择品牌 +
+ +
+
-
-
- -
- {$product.title|default=''} - -
- 选择商品 +
+ +
+ {$brand.title|default=''} + +
-
-
- -
- {$product.title|default=''}/{$sku.goods_no|default=''} - -
- 选择SKU +
+ +
+ {$product.title|default=''} + +
-
-
- -
-
- - +
+ +
+ {$product.title|default=''}/{$sku.goods_no|default=''} + +
+ 选择SKU +
-
-
- -
-
-
+
+ +
+
+ + +
- -
-
+
+
+ +
+
+
+
+ +
+
+
+
-
-
-
- -
- -
-
%
+
+ +
+ +
+
%
+
-
-
- -
-
-
- +
+ +
+
+
+ +
+
- -
-
-
- +
+
+ +
+
-
-
-
- -
-
- {volist name="levels" id="lv" key="k"} -
-
- -
-
- 每会员最多领取 +
+ +
+
+ 每会员最多领取 +
+
-
-
-
-
- - -
-
- - +
+
+ + +
+
+ + +
-
-
- -
-
- - +
+ +
+
+ + +
-
-
- -
- -
-
+
+ +
+ +
+
+
-
-
- -
- -
-
+
+ +
+ +
+
+
-
-
- -
+
{/block} {block name="script"} - + }); + $('.btn-pick-sku').click(function (e) { + var box = $(this).parents('.input-group'); + var input = box.find('input[type=hidden]'); + var title = box.find('span.form-control'); + dialog.pickProduct(function (product) { + title.text(product.title + '/' + product.goods_no); + input.val(product.sku_id); + $('[name=product_id]').val(product.id) + .parents('.input-group').find('span.form-control').text(product.title); + }, { searchtype: 'sku' }); + }); + {/block} \ No newline at end of file diff --git a/src/application/admin/view/shop/help/edit.tpl b/src/application/admin/view/shop/help/edit.tpl index 7cbf0cb6..520aa02f 100644 --- a/src/application/admin/view/shop/help/edit.tpl +++ b/src/application/admin/view/shop/help/edit.tpl @@ -9,11 +9,12 @@
- +
- +
@@ -21,29 +22,32 @@
- +
- +
{if !empty($article['image'])} -
- image -
{$article.image}
-
- +
+ image +
{$article.image}
+
+ {/if}
@@ -51,14 +55,17 @@
{foreach $article['prop_data']??[] as $k => $prop} -
- - - -
+
+ + + +
{/foreach}
- 添加属性 + + 添加属性
@@ -67,7 +74,8 @@
+ - +
@@ -75,13 +83,14 @@
+ - +
- +
@@ -102,10 +111,10 @@ + }); + }; + })(window) + {/block} \ No newline at end of file diff --git a/src/application/admin/view/shop/product/edit.tpl b/src/application/admin/view/shop/product/edit.tpl index 58406335..28ea96f5 100644 --- a/src/application/admin/view/shop/product/edit.tpl +++ b/src/application/admin/view/shop/product/edit.tpl @@ -5,391 +5,466 @@
-
-
-
-
-
-
商品名称
- -
单位
- -
-
-
-
-
商品特性
- -
-
-
-
-
商品货号
- + +
+
+
+
+
商品名称
+ +
单位
+ +
-
-
-
-
商品分类
- +
+
+
商品特性
+ +
-
-
-
-
商品品牌
- +
+
+
商品货号
+ +
-
- {if $needarea} -
- - - -
-
发布地
- - - +
+
+
商品分类
+ +
-
- {/if} -
-
-
- 商品主图 +
+
+
商品品牌
+
-
- - +
+ {if $needarea} +
+ + + +
+
发布地
+ + +
- {if !empty($product['image'])} + {/if} +
+
+
+ 商品主图 +
+
+ + +
+
+ {if !empty($product['image'])}
image
{$product.image}
- - {/if} + + {/if} +
-
-
-
-
商品属性
-
-
- -
-
- - +
+
+
商品属性
+
+
+ +
+
+ + +
-
-
- -
-
- - + - +
+ +
+
+ + + + +
-
-
- -
-
- {foreach $types as $k=>$type} +
+ +
+
+ {foreach $types as $k=>$type} - {/foreach} + {/foreach} +
-
-
- -
-
- {volist name="levels" id="lv" key="k"} -
-
- -
-
- - +
+ +
+
+ + +
-
-
- -
-
- - +
+ +
+
+ + +
-
-
- -
-
- - - - - +
+ +
+
+ + + + + +
-
- {php}$layercounts = array_column($levels,'commission_layer');$layercount = max($layercounts);{/php} -
-
- {for start="0" end="$layercount"} + {php}$layercounts = array_column($levels,'commission_layer');$layercount = + max($layercounts);{/php} +
+
+ {for start="0" end="$layercount"}
第 {$i+1} 代
+ value="{$product['commission_percent'][$i]|default=''}" + class="form-control" />
%
- {/for} + {/for} +
-
-
-
- {for start="0" end="$layercount"} +
+
+ {for start="0" end="$layercount"}
第 {$i+1} 代
-
- {/for} -
-
-
-
- {volist name="levels" id="lv" key="k"} -
-
- {$lv.level_name} + value="{$product['commission_percent'][$i]|default=''}" + class="form-control" />
- {for start="0" end="$layercount"} - -
- / -
{/for}
- {/volist}
-
-
此处佣金层级按会员组设置的最大层级,不需要分佣的层级填写0即可,如需增加分级,先在会员组中设置一个最大值
-
- -
-
+
+
{volist name="levels" id="lv" key="k"} - +
+
+ {$lv.level_name} +
+ {for start="0" end="$layercount"} + +
+ / +
+ {/for} +
{/volist}
-
-
- -
-
只有选中的会员组可以购买,不选则不限制
+
+ 此处佣金层级按会员组设置的最大层级,不需要分佣的层级填写0即可,如需增加分级,先在会员组中设置一个最大值
+
+ +
+
+ {volist name="levels" id="lv" key="k"} + + {/volist} +
+
-
-
- -
-
- - 最多购买 - +
+ +
+
只有选中的会员组可以购买,不选则不限制
-
-
- -
-
默认为0不限制购买数量
+
+ +
+
+ + 最多购买 + +
+
-
-
- -
- + + {volist name="postages" id="pos" key="k"} {php} - $selected=''; - if(($product['id']==0 && $pos['is_default']) || $product['postage_id']==$pos['id']){ - $selected='selected'; - } + $selected=''; + if(($product['id']==0 && $pos['is_default']) || + $product['postage_id']==$pos['id']){ + $selected='selected'; + } {/php} - - {/volist} - + + {/volist} + +
-
-
- -
-
- {if !empty($product['prop_data'])} - {foreach $product['prop_data'] as $k => $prop} -
- - - +
+ +
+
+ {if !empty($product['prop_data'])} + {foreach $product['prop_data'] as $k => $prop} +
+ + +
- {/foreach} - {/if} + {/foreach} + {/if} +
+ + 添加属性
- 添加属性
-
-
- -
-
- {foreach $product['spec_data'] as $k => $spec} -
- - -
- +
+ +
+
+ {foreach $product['spec_data'] as $k => $spec} +
+ + +
+ +
+ {/foreach}
- {/foreach} + + 添加规格
- 添加规格
-
-
- - - - {foreach $product['spec_data'] as $k => $spec} - - {/foreach} - - - - - - - - - - - - - {foreach $skus as $k => $sku} - - {foreach $product['spec_data'] as $sk => $spec} - - {/foreach} - - - - - + + + + + + {/foreach} + +
{$spec['title']}规格货号  规格图片重量(克)  销售价  独立价  市场价  成本价  库存  操作
{$sku['specs'][$sk]} - - - - {if !empty($price_levels)} +
+ + + + {foreach $product['spec_data'] as $k => $spec} + + {/foreach} + + + + + + + + + + + + + {foreach $skus as $k => $sku} + + {foreach $product['spec_data'] as $sk => $spec} + + {/foreach} + + + + + - - - - - - {/foreach} - -
{$spec['title']}规格货号  规格图片重量(克)  销售价  独立价  市场价  成本价  库存  操作
{$sku['specs'][$sk]} + + + + + {if !empty($price_levels)} {foreach $price_levels as $plv} -
{$plv.level_name}
+
{$plv.level_name}
{/foreach} {else/} - - {/if} -
-
+ {/if} +
+
-
- - -
-
- - -
- +
+ + +
+
+ + +
+
{/block} @@ -400,35 +475,35 @@ {/if} {/block} \ No newline at end of file diff --git a/src/application/admin/view/shop/product/index.tpl b/src/application/admin/view/shop/product/index.tpl index 4269ac04..1533bc8a 100644 --- a/src/application/admin/view/shop/product/index.tpl +++ b/src/application/admin/view/shop/product/index.tpl @@ -8,7 +8,8 @@
@@ -32,14 +35,15 @@
- +
@@ -60,13 +64,14 @@ - {empty name="lists"}{:list_empty(8)}{/empty} - {volist name="lists" id="v" } + {empty name="lists"}{:list_empty(8)}{/empty} + {volist name="lists" id="v" } -
- image +
+ image
@@ -81,39 +86,48 @@ {foreach $v['skus'] as $key => $sku} -
- - {$sku.goods_no} - - ¥{$sku.price} - - 库存 - - {$sku.storage} - - - -
+
+ + {$sku.goods_no} + + ¥{$sku.price} + + 库存 + + {$sku.storage} + + + +
{/foreach} {$v.create_time|showdate} {$v.category_title} {if $v['status'] == 1} - 已上架 - {else/} - 已下架 + 已上架 + {else/} + 已下架 {/if} - - - - - + + + + + + + - {/volist} + {/volist}
@@ -122,8 +136,8 @@
{/block} {block name="script"} - - + - + }) + {/block} \ No newline at end of file