Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
482c6a50
ShopXO
项目概览
starsw001
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
482c6a50
编写于
4月 26, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
运费插件优化
上级
766803bc
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
53 addition
and
23 deletion
+53
-23
application/plugins/view/freightfee/admin/index.html
application/plugins/view/freightfee/admin/index.html
+3
-0
application/plugins/view/freightfee/admin/saveinfo.html
application/plugins/view/freightfee/admin/saveinfo.html
+27
-15
public/static/plugins/css/freightfee/admin.css
public/static/plugins/css/freightfee/admin.css
+4
-0
public/static/plugins/css/petscms/pets.detail.css
public/static/plugins/css/petscms/pets.detail.css
+6
-3
public/static/plugins/js/freightfee/admin.js
public/static/plugins/js/freightfee/admin.js
+13
-5
未找到文件。
application/plugins/view/freightfee/admin/index.html
浏览文件 @
482c6a50
...
...
@@ -57,6 +57,7 @@
<th>
首费(元)
</th>
<th>
续件数(件)
</th>
<th>
续费(元)
</th>
<th>
满(免运费)
</th>
</tr>
</thead>
{{else /}}
...
...
@@ -67,6 +68,7 @@
<th>
首费(元)
</th>
<th>
续件数(kg)
</th>
<th>
续费(元)
</th>
<th>
满(免运费)
</th>
</tr>
</thead>
{{/if}}
...
...
@@ -84,6 +86,7 @@
<td>
{{$v.first_price}}
</td>
<td>
{{$v.continue}}
</td>
<td>
{{$v.continue_price}}
</td>
<td>
{{$v.free_shipping_price}}
</td>
</tr>
{{/foreach}}
</tbody>
...
...
application/plugins/view/freightfee/admin/saveinfo.html
浏览文件 @
482c6a50
...
...
@@ -41,11 +41,12 @@
{{if empty($data['data'])}}
<thead>
<tr>
<th>
运送到
</th>
<th>
首件数(件)
</th>
<th>
首费(元)
</th>
<th>
续件数(件)
</th>
<th>
续费(元)
</th>
<th>
运送到
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
首件数(件)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
首费(元)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
续件数(件)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
续费(元)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
满(免运费)
</th>
<th>
操作
</th>
</tr>
</thead>
...
...
@@ -68,6 +69,9 @@
<td>
<input
type=
"number"
class=
"am-radius continue-price-name"
name=
"data[0][continue_price]"
min=
"0.00"
max=
"999.99"
step=
"0.01"
data-validation-message=
"应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位"
required
/>
</td>
<td>
<input
type=
"number"
class=
"am-radius continue-free-shipping-price-name"
name=
"data[0][free_shipping_price]"
min=
"0.00"
step=
"0.01"
data-validation-message=
"满免运费,小数保留两位"
/>
</td>
<td>
<!--operation-->
</td>
</tr>
</tbody>
...
...
@@ -75,11 +79,12 @@
{{if isset($data['valuation']) and $data['valuation'] eq 0}}
<thead>
<tr>
<th>
运送到
</th>
<th>
首件数(件)
</th>
<th>
首费(元)
</th>
<th>
续件数(件)
</th>
<th>
续费(元)
</th>
<th>
运送到
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
首件数(件)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
首费(元)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
续件数(件)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
续费(元)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
满(免运费)
</th>
<th>
操作
</th>
</tr>
</thead>
...
...
@@ -110,6 +115,9 @@
<td>
<input
type=
"number"
class=
"am-radius continue-price-name"
name=
"data[{{$k}}][continue_price]"
min=
"0.00"
max=
"999.99"
step=
"0.01"
data-validation-message=
"应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位"
value=
"{{$v.continue_price}}"
required
/>
</td>
<td>
<input
type=
"number"
class=
"am-radius continue-free-shipping-price-name"
name=
"data[{{$k}}][free_shipping_price]"
min=
"0.00"
step=
"0.01"
data-validation-message=
"满免运费,小数保留两位"
value=
"{{if isset($v['free_shipping_price']) and $v['free_shipping_price'] gt 0}}{{$v.free_shipping_price}}{{/if}}"
/>
</td>
{{if $v['region'] eq 'default'}}
<td>
<!--operation-->
</td>
{{else /}}
...
...
@@ -123,11 +131,12 @@
{{else /}}
<thead>
<tr>
<th>
运送到
</th>
<th>
首件数(kg)
</th>
<th>
首费(元)
</th>
<th>
续件数(kg)
</th>
<th>
续费(元)
</th>
<th>
运送到
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
首件数(kg)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
首费(元)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
续件数(kg)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
续费(元)
<span
class=
"am-form-group-label-tips-must"
>
*
</span></th>
<th>
满(免运费)
</th>
<th>
操作
</th>
</tr>
</thead>
...
...
@@ -158,6 +167,9 @@
<td>
<input
type=
"number"
class=
"am-radius continue-price-name"
name=
"data[{{$k}}][continue_price]"
min=
"0.00"
max=
"999.99"
step=
"0.01"
step=
"0.01"
data-validation-message=
"应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位"
value=
"{{$v.continue_price}}"
required
/>
</td>
<td>
<input
type=
"number"
class=
"am-radius continue-free-shipping-price-name"
name=
"data[{{$k}}][free_shipping_price]"
min=
"0.00"
step=
"0.01"
data-validation-message=
"满免运费,小数保留两位"
value=
"{{if isset($v['free_shipping_price']) and $v['free_shipping_price'] gt 0}}{{$v.free_shipping_price}}{{/if}}"
/>
</td>
{{if $v['region'] eq 'default'}}
<td>
<!--operation-->
</td>
{{else /}}
...
...
public/static/plugins/css/freightfee/admin.css
浏览文件 @
482c6a50
...
...
@@ -37,6 +37,10 @@
position
:
absolute
;
margin-left
:
-1000000px
;
}
.freightfee-rules
.am-form-group-label-tips-must
{
vertical-align
:
middle
;
margin-left
:
5px
!important
;
}
/**
* 弹窗
...
...
public/static/plugins/css/petscms/pets.detail.css
浏览文件 @
482c6a50
...
...
@@ -10,7 +10,7 @@
#ai-topsearch
{
background
:
#03A9F4
none
repeat
scroll
0%
0%
;
}
.goods-category-title
,
.navigation-user
,
.navigation-user
.nav-user
{
.goods-category-title
,
.navigation-user
,
.navigation-user
.nav-user
,
.shop-navigation
.am-btn
{
background
:
#03A9F4
;
}
.navigation-user
*
{
...
...
@@ -19,8 +19,8 @@
.am-footer-default
{
border-top
:
2px
solid
#03A9F4
;
}
.
am-slider-a1
.am-control-nav
li
a
.am-active
{
b
ackground
-color
:
#03A9F4
;
.
shop-navigation
.am-btn
,
.shop-navigation
.navigation-search
input
{
b
order
-color
:
#03A9F4
;
}
.shop-navigation
.am-topbar-nav
>
li
>
a
:hover
,
a
:hover
,
a
:focus
{
color
:
#03A9F4
;
...
...
@@ -35,6 +35,9 @@
.pets-detail
{
margin-top
:
10px
;
}
.pets-detail
.am-slider-a1
.am-control-nav
li
a
.am-active
{
background-color
:
#03A9F4
;
}
.provide-submit
,
.base-share
{
margin-top
:
20px
;
}
...
...
public/static/plugins/js/freightfee/admin.js
浏览文件 @
482c6a50
...
...
@@ -23,11 +23,12 @@ $(function()
$this
.
parents
(
'
.am-form-group
'
).
attr
(
'
data-value
'
,
valuation
);
var
thead
=
'
<tr>
'
;
thead
+=
'
<th>运送到</th>
'
;
thead
+=
'
<th>首件数(
'
+
unit
+
'
)</th>
'
;
thead
+=
'
<th>首费(元)</th>
'
;
thead
+=
'
<th>续件数(
'
+
unit
+
'
)</th>
'
;
thead
+=
'
<th>续费(元)</th>
'
;
thead
+=
'
<th>运送到<span class="am-form-group-label-tips-must">*</span></th>
'
;
thead
+=
'
<th>首件数(
'
+
unit
+
'
)<span class="am-form-group-label-tips-must">*</span></th>
'
;
thead
+=
'
<th>首费(元)<span class="am-form-group-label-tips-must">*</span></th>
'
;
thead
+=
'
<th>续件数(
'
+
unit
+
'
)<span class="am-form-group-label-tips-must">*</span></th>
'
;
thead
+=
'
<th>续费(元)<span class="am-form-group-label-tips-must">*</span></th>
'
;
thead
+=
'
<th>满(免运费)</th>
'
;
thead
+=
'
<th>操作</th>
'
;
thead
+=
'
</tr>
'
;
...
...
@@ -53,6 +54,9 @@ $(function()
html
+=
'
<td>
'
;
html
+=
'
<input type="number" class="am-radius continue-price-name" name="data[0][continue_price]" min="0.00" max="999.99" step="0.01" data-validation-message="应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位" required />
'
;
html
+=
'
</td>
'
;
html
+=
'
<td>
'
;
html
+=
'
<input type="number" class="am-radius continue-free-shipping-price-name" name="data[0][free_shipping_price]" min="0.00" step="0.01" data-validation-message="满免运费,小数保留两位" />
'
;
html
+=
'
</td>
'
;
html
+=
'
<td><!--operation--></td>
'
;
html
+=
'
</tr>
'
;
break
;
...
...
@@ -76,6 +80,9 @@ $(function()
html
+=
'
<td>
'
;
html
+=
'
<input type="number" class="am-radius continue-price-name" name="data[0][continue_price]" min="0.00" max="999.99" step="0.01" step="0.01" data-validation-message="应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位" required />
'
;
html
+=
'
</td>
'
;
html
+=
'
<td>
'
;
html
+=
'
<input type="number" class="am-radius continue-free-shipping-price-name" name="data[0][free_shipping_price]" min="0.00" step="0.01" data-validation-message="满免运费,小数保留两位" />
'
;
html
+=
'
</td>
'
;
html
+=
'
<td><!--operation--></td>
'
;
html
+=
'
</tr>
'
;
break
;
...
...
@@ -131,6 +138,7 @@ $(function()
$
(
'
.freightfee-rules table.am-table
'
).
find
(
'
tbody tr:last .first-price-name
'
).
attr
(
'
name
'
,
'
data[
'
+
index
+
'
][first_price]
'
);
$
(
'
.freightfee-rules table.am-table
'
).
find
(
'
tbody tr:last .continue-name
'
).
attr
(
'
name
'
,
'
data[
'
+
index
+
'
][continue]
'
);
$
(
'
.freightfee-rules table.am-table
'
).
find
(
'
tbody tr:last .continue-price-name
'
).
attr
(
'
name
'
,
'
data[
'
+
index
+
'
][continue_price]
'
);
$
(
'
.freightfee-rules table.am-table
'
).
find
(
'
tbody tr:last .continue-free-shipping-price-name
'
).
attr
(
'
name
'
,
'
data[
'
+
index
+
'
][free_shipping_price]
'
);
});
// 行移除
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录