Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
ShopXO
提交
5ec4d9bd
ShopXO
项目概览
飞鱼0526
/
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,发现更多精彩内容 >>
提交
5ec4d9bd
编写于
5月 21, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
订单售后
上级
db9c14a4
变更
15
展开全部
隐藏空白更改
内联
并排
Showing
15 changed file
with
510 addition
and
42 deletion
+510
-42
application/admin/view/default/goodscomments/index.html
application/admin/view/default/goodscomments/index.html
+1
-1
application/admin/view/default/site/nav.html
application/admin/view/default/site/nav.html
+3
-0
application/admin/view/default/site/orderaftersale.html
application/admin/view/default/site/orderaftersale.html
+33
-0
application/index/controller/Order.php
application/index/controller/Order.php
+45
-1
application/index/view/default/order/aftersale.html
application/index/view/default/order/aftersale.html
+136
-0
application/index/view/default/order/aftersale_popup.html
application/index/view/default/order/aftersale_popup.html
+104
-0
application/index/view/default/order/comments.html
application/index/view/default/order/comments.html
+4
-4
application/index/view/default/order/detail.html
application/index/view/default/order/detail.html
+22
-22
application/index/view/default/order/index.html
application/index/view/default/order/index.html
+3
-3
config/shopxo.sql
config/shopxo.sql
+5
-5
public/static/index/default/css/common.css
public/static/index/default/css/common.css
+3
-3
public/static/index/default/css/order.aftersale.css
public/static/index/default/css/order.aftersale.css
+91
-0
public/static/index/default/css/order.comments.css
public/static/index/default/css/order.comments.css
+4
-2
public/static/index/default/css/order.css
public/static/index/default/css/order.css
+1
-1
public/static/index/default/js/order.aftersale.js
public/static/index/default/js/order.aftersale.js
+55
-0
未找到文件。
application/admin/view/default/goodscomments/index.html
浏览文件 @
5ec4d9bd
...
...
@@ -269,7 +269,7 @@
<dd
class=
"goods-info"
>
<div
class=
"base"
>
<a
href=
"javascript:;"
target=
"_blank"
>
<img
src=
"{{$attachment_host}}/static/common/images/user-img-sm.gif"
alt=
"{{$v.goods.title}}"
class=
"am-img-thumbnail am-radius am-align-left"
/>
<img
src=
"{{$attachment_host}}/static/common/images/user-img-sm.gif"
class=
"am-img-thumbnail am-radius am-align-left"
/>
</a>
<a
class=
"am-text-top title"
href=
"javascript:;"
target=
"_blank"
>
...
</a>
</div>
...
...
application/admin/view/default/site/nav.html
浏览文件 @
5ec4d9bd
...
...
@@ -17,4 +17,7 @@
<li
{{
if
$
nav_type
eq
'
imagesverify
'}}
class=
"am-active"
{{/
if
}}
data-type=
"imagesverify"
>
<a
href=
"{{:MyUrl('admin/site/index', ['nav_type'=>'imagesverify'])}}"
>
图片验证码
</a>
</li>
<li
{{
if
$
nav_type
eq
'
orderaftersale
'}}
class=
"am-active"
{{/
if
}}
data-type=
"orderaftersale"
>
<a
href=
"{{:MyUrl('admin/site/index', ['nav_type'=>'orderaftersale'])}}"
>
订单售后
</a>
</li>
</ul>
\ No newline at end of file
application/admin/view/default/site/orderaftersale.html
0 → 100644
浏览文件 @
5ec4d9bd
{{include file="public/header" /}}
<!-- right content start -->
<div
class=
"content-right"
>
<div
class=
"content"
>
<!-- table nav start -->
{{include file="site/nav" /}}
<!-- table nav end -->
<!-- form start -->
<form
class=
"am-form form-validation view-save"
action=
"{{:MyUrl('admin/site/save')}}"
method=
"POST"
request-type=
"ajax-url"
request-value=
"{{:MyUrl('admin/site/index', ['nav_type'=>'orderaftersale'])}}"
enctype=
"multipart/form-data"
>
<div
class=
"am-form-group"
>
<label>
{{$data.home_order_aftersale_return_only_money_reason.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_order_aftersale_return_only_money_reason.describe}}
</span></label>
<textarea
rows=
"6"
name=
"{{$data.home_order_aftersale_return_only_money_reason.only_tag}}"
class=
"am-radius"
placeholder=
"{{$data.home_order_aftersale_return_only_money_reason.name}}"
data-validation-message=
"{{$data.home_order_aftersale_return_only_money_reason.error_tips}}"
>
{{if !empty($data)}}{{$data.home_order_aftersale_return_only_money_reason.value}}{{/if}}
</textarea>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.home_order_aftersale_return_money_goods_reason.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_order_aftersale_return_money_goods_reason.describe}}
</span></label>
<textarea
rows=
"6"
name=
"{{$data.home_order_aftersale_return_money_goods_reason.only_tag}}"
class=
"am-radius"
placeholder=
"{{$data.home_order_aftersale_return_money_goods_reason.name}}"
data-validation-message=
"{{$data.home_order_aftersale_return_money_goods_reason.error_tips}}"
>
{{if !empty($data)}}{{$data.home_order_aftersale_return_money_goods_reason.value}}{{/if}}
</textarea>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"nav_type"
value=
"{{$nav_type}}"
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block"
data-am-loading=
"{loadingText:'处理中...'}"
>
保存
</button>
</div>
</form>
<!-- form end -->
</div>
</div>
<!-- right content end -->
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end
\ No newline at end of file
application/index/controller/Order.php
浏览文件 @
5ec4d9bd
...
...
@@ -174,7 +174,7 @@ class Order extends Common
}
else
{
$this
->
assign
(
'msg'
,
'没有相关数据'
);
return
$this
->
fetch
(
'public/tips_error'
);
}
}
}
/**
...
...
@@ -199,6 +199,50 @@ class Order extends Common
}
}
/**
* 售后页面
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2019-05-21
* @desc description
*/
public
function
Aftersale
()
{
// 参数
$params
=
input
();
$params
[
'user'
]
=
$this
->
user
;
$params
[
'user_type'
]
=
'user'
;
// 条件
$where
=
OrderService
::
OrderListWhere
(
$params
);
// 获取列表
$data_params
=
array
(
'm'
=>
0
,
'n'
=>
1
,
'where'
=>
$where
,
);
$data
=
OrderService
::
OrderList
(
$data_params
);
if
(
!
empty
(
$data
[
'data'
][
0
]))
{
$this
->
assign
(
'data'
,
$data
[
'data'
][
0
]);
// 仅退款原因
$return_only_money_reason
=
MyC
(
'home_order_aftersale_return_only_money_reason'
);
$this
->
assign
(
'return_only_money_reason_list'
,
empty
(
$return_only_money_reason
)
?
[]
:
explode
(
"
\n
"
,
$return_only_money_reason
));
// 退款退货原因
$return_money_goods_reason
=
MyC
(
'home_order_aftersale_return_money_goods_reason'
);
$this
->
assign
(
'return_money_goods_reason_list'
,
empty
(
$return_money_goods_reason
)
?
[]
:
explode
(
"
\n
"
,
$return_money_goods_reason
));
return
$this
->
fetch
();
}
else
{
$this
->
assign
(
'msg'
,
'没有相关数据'
);
return
$this
->
fetch
(
'public/tips_error'
);
}
}
/**
* 订单支付
* @author Devil
...
...
application/index/view/default/order/aftersale.html
0 → 100644
浏览文件 @
5ec4d9bd
{{include file="public/header" /}}
<!-- header top nav -->
{{include file="public/header_top_nav" /}}
<!-- search -->
{{include file="public/nav_search" /}}
<!-- header nav -->
{{include file="public/header_nav" /}}
<!-- goods category -->
{{include file="public/goods_category" /}}
<!-- content -->
<div
class=
"am-container user-main"
>
<!-- user menu start -->
{{include file="public/user_menu" /}}
<!-- user menu end -->
<!-- content start -->
<div
class=
"user-content"
>
<div
class=
"user-content-body"
>
{{if true }}
<!-- 商品列表 -->
{{if !empty($data.items)}}
<table
class=
"am-table"
>
<thead>
<tr>
<th>
商品信息
</th>
<th
class=
"am-hide-sm-only"
>
单价
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
{{foreach $data.items as $goods}}
<tr
id=
"data-list-{{$goods.id}}"
>
<td
class=
"base"
>
<div
class=
"goods-detail"
>
<a
href=
"{{$goods.goods_url}}"
target=
"_blank"
>
<img
src=
"{{$goods.images}}"
>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$goods.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$goods.title}}
</a>
{{if !empty($goods.spec)}}
<ul
class=
"goods-attr"
>
{{foreach $goods.spec as $spec}}
<li>
{{$spec.type}}:{{$spec.value}}
</li>
{{/foreach}}
</ul>
{{/if}}
</div>
</div>
<div
class=
"wap-base am-show-sm-only"
>
{{if $goods['original_price'] gt 0}}
<span
class=
"original-price"
>
¥{{$goods.original_price}}
</span>
{{/if}}
<strong
class=
"total-price-content"
>
¥{{$goods.price}}
</strong>
<span
class=
"wap-number"
>
x{{$goods.buy_number}}
</span>
</div>
</td>
<td
class=
"am-hide-sm-only"
>
{{if $goods['original_price'] gt 0}}
<p
class=
"original-price"
>
¥{{$goods.original_price}}
</p>
{{/if}}
<p
class=
"line-price"
>
¥{{$goods.price}} x {{$goods.buy_number}}
</p>
</td>
<td
class=
"operations"
>
<!-- <a href="{{:MyUrl('index/order/aftersale', ['order_id'=>$data['id'], 'goods_id'=>$goods['goods_id']])}}" target="_blank" class="am-btn am-btn-default am-btn-xs am-radius am-icon-puzzle-piece am-btn-block"> 申请售后</a> -->
<button
class=
"am-btn am-btn-default am-btn-xs am-radius am-icon-puzzle-piece am-btn-block"
data-order-id=
"{{$data.id}}"
data-goods-id=
"{{$goods.goods_id}}"
data-number=
"{{$goods.buy_number}}"
data-price=
"{{$data.pay_price}}"
>
申请售后
</button>
</td>
</tr>
{{/foreach}}
</tbody>
</table>
{{if !empty($data['extension_data'])}}
<div
class=
"am-alert am-alert-warning"
>
{{foreach $data.extension_data as $ertk=>$ext}}
<div
class=
"items am-cf"
>
<div
class=
"items-title am-fl"
>
{{$ext.name}}:
</div>
<div
class=
"items-detail am-fl"
>
{{$ext.tips}}
</div>
</div>
{{/foreach}}
</div>
{{/if}}
<div
class=
"am-alert am-alert-secondary"
>
{{if !empty($data.price)}}
<div
class=
"items am-cf"
>
<div
class=
"items-title am-fl"
>
商品总价:
</div>
<div
class=
"items-detail am-fl"
>
¥{{$data.price}}
</div>
</div>
{{/if}}
{{if !empty($data.increase_price)}}
<div
class=
"items am-cf"
>
<div
class=
"items-title am-fl"
>
增加金额:
</div>
<div
class=
"items-detail am-fl"
>
+¥{{$data.increase_price}}
</div>
</div>
{{/if}}
{{if !empty($data.preferential_price)}}
<div
class=
"items am-cf"
>
<div
class=
"items-title am-fl"
>
优惠金额:
</div>
<div
class=
"items-detail am-fl"
>
-¥{{$data.preferential_price}}
</div>
</div>
{{/if}}
{{if !empty($data.total_price)}}
<div
class=
"items am-cf"
>
<div
class=
"items-title am-fl"
>
订单总价:
</div>
<div
class=
"items-detail am-fl line-price"
>
¥{{$data.total_price}}
</div>
</div>
{{/if}}
{{if !empty($data.pay_price)}}
<div
class=
"items am-cf"
>
<div
class=
"items-title am-fl"
>
支付金额:
</div>
<div
class=
"items-detail am-fl"
>
<strong
class=
"total-price-content"
>
¥{{$data.pay_price}}
</strong>
</div>
</div>
{{/if}}
</div>
{{include file="order/aftersale_popup" /}}
{{/if}}
{{else /}}
<div
class=
"table-no"
><i
class=
"am-icon-warning"
></i>
你已进行过评论
</div>
{{/if}}
</div>
</div>
<!-- content end -->
</div>
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->
\ No newline at end of file
application/index/view/default/order/aftersale_popup.html
0 → 100644
浏览文件 @
5ec4d9bd
<div
class=
"am-popup"
id=
"aftersale-popup"
>
<div
class=
"am-popup-inner"
>
<div
class=
"am-popup-hd"
>
<h4
class=
"am-popup-title"
>
售后申请
</h4>
<span
data-am-modal-close
class=
"am-close"
>
×
</span>
</div>
<div
class=
"am-popup-bd"
>
<form
class=
"am-form form-validation view-save"
action=
"{{:PluginsHomeUrl('answers', 'index', 'answer')}}"
method=
"POST"
request-type=
"ajax-reload"
>
<div
class=
"am-cf aftersale-type"
>
<div
class=
"am-fl am-vertical-align"
data-type=
"0"
>
<div
class=
"am-vertical-align-middle"
>
<div
class=
"am-fl icon"
>
<i
class=
"am-icon-random"
></i>
</div>
<p
class=
"name"
>
仅退款
</p>
<p
class=
"desc"
>
未收到货(包含未签收),或卖家协商同意前提下
</p>
</div>
</div>
<div
class=
"am-fr am-vertical-align"
data-type=
"1"
>
<div
class=
"am-vertical-align-middle"
>
<div
class=
"am-fl icon"
>
<i
class=
"am-icon-retweet"
></i>
</div>
<p
class=
"name"
>
退货退款
</p>
<p
class=
"desc"
>
已收到货,需要退换已收到的货物
</p>
</div>
</div>
</div>
<ul
class=
"aftersale-step"
>
<li>
<span
class=
"number"
>
1
</span>
<span
class=
"text"
>
用户申请退款
</span>
</li>
<li>
<span
class=
"number"
>
2
</span>
<span
class=
"text"
>
管理员处理退款申请
</span>
</li>
<li>
<span
class=
"number"
>
3
</span>
<span
class=
"text"
>
退款完毕
</span>
</li>
</ul>
<div
class=
"am-form-group form-only-money"
>
<label>
退款原因
<span
class=
"am-form-group-label-tips-must"
>
必选
</span></label>
<select
name=
"return_only_money_reason"
class=
"chosen-select"
data-placeholder=
"退款原因..."
data-validation-message=
"请选择退款原因"
required
>
<option
value=
""
>
退款原因...
</option>
{{if !empty($return_only_money_reason_list)}}
{{foreach $return_only_money_reason_list as $reason}}
<option
value=
"{{$reason}}"
>
{{$reason}}
</option>
{{/foreach}}
{{/if}}
</select>
</div>
<div
class=
"am-form-group form-money-goods"
>
<label>
退款原因
<span
class=
"am-form-group-label-tips-must"
>
必选
</span></label>
<select
name=
"return_money_goods_reason"
class=
"chosen-select"
data-placeholder=
"退款原因..."
data-validation-message=
"请选择退款原因"
required
>
<option
value=
""
>
退款原因...
</option>
{{if !empty($return_money_goods_reason_list)}}
{{foreach $return_money_goods_reason_list as $reason}}
<option
value=
"{{$reason}}"
>
{{$reason}}
</option>
{{/foreach}}
{{/if}}
</select>
</div>
<div
class=
"am-form-group"
>
<label>
商品件数
<span
class=
"am-form-group-label-tips-must"
>
必填
</span></label>
<div
class=
"am-input-group am-input-group-sm"
>
<span
class=
"am-input-group-label"
>
-
</span>
<input
type=
"text"
name=
"number"
class=
"am-form-field"
value=
"1"
min=
"1"
max=
"3"
data-validation-message=
"请填写有效的商品件数"
required
/>
<span
class=
"am-input-group-label"
>
+
</span>
</div>
</div>
<div
class=
"am-form-group"
>
<label>
退款金额
<span
class=
"am-form-group-label-tips-must"
>
必填
</span></label>
<input
type=
"number"
name=
"price"
step=
"0.01"
max=
"3"
class=
"am-radius"
placeholder=
"退款金额"
data-validation-message=
"请输入有效的退款金额"
required
/>
</div>
<div
class=
"am-form-group"
>
<label>
退款说明
<span
class=
"am-form-group-label-tips-must"
>
必填
</span></label>
<textarea
class=
"am-radius"
name=
"msg"
rows=
"5"
minlength=
"5"
maxlength=
"200"
placeholder=
"退款说明 5~200 个字符之间"
data-validation-message=
"退款说明格式 5~200 个字符之间"
required
></textarea>
</div>
<div
class=
"am-form-group"
>
<label>
上传凭证
<span
class=
"am-form-group-label-tips"
>
最多上传3张图片
</span></label>
<ul
class=
"plug-file-upload-view goods-images-view"
data-form-name=
"images[]"
data-max-number=
"3"
data-dialog-type=
"images"
>
</ul>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.goods-images-view"
>
+上传图片
</div>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"order_id"
value=
""
/>
<input
type=
"hidden"
name=
"goods_id"
value=
""
/>
<input
type=
"hidden"
name=
"type"
value=
""
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block"
data-am-loading=
"{loadingText:'处理中...'}"
>
提交
</button>
</div>
</form>
</div>
</div>
</div>
\ No newline at end of file
application/index/view/default/order/comments.html
浏览文件 @
5ec4d9bd
...
...
@@ -26,7 +26,7 @@
<form
class=
"am-form form-validation"
method=
"post"
action=
"{{:MyUrl('index/order/commentssave')}}"
request-type=
"ajax-url"
request-value=
"{{$referer_url}}"
>
<!-- 商品列表 -->
{{if !empty($data.items)}}
<div
class=
"order-goods
am-form-group
business-form-block"
>
<div
class=
"order-goods business-form-block"
>
<table
class=
"am-table"
>
<thead>
<tr>
...
...
@@ -45,10 +45,10 @@
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$goods.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$goods.title}}
</a>
{{if !empty($goods.
attribute
)}}
{{if !empty($goods.
spec
)}}
<ul
class=
"goods-attr"
>
{{foreach $goods.
attribute as $attr
}}
<li>
{{$
attr.attr_type_name}}:{{$attr.attr_nam
e}}
</li>
{{foreach $goods.
spec as $spec
}}
<li>
{{$
spec.type}}:{{$spec.valu
e}}
</li>
{{/foreach}}
</ul>
{{/if}}
...
...
application/index/view/default/order/detail.html
浏览文件 @
5ec4d9bd
...
...
@@ -93,82 +93,82 @@
<div
class=
"am-panel am-panel-default"
>
<div
class=
"am-panel-hd"
>
订单信息
</div>
<div
class=
"am-panel-bd"
>
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
收货地址:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.receive_name}}, {{$data.receive_tel}}, {{$data.receive_province_name}} {{$data.receive_city_name}} {{$data.receive_county_name}} {{$data.receive_address}}
</div>
</div>
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
订单编号:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.order_no}}
</div>
</div>
{{if !empty($data.status_name)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
订单状态:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.status_name}}
</div>
</div>
{{/if}}
{{if !empty($data.pay_status_name)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
支付状态:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.pay_status_name}}
</div>
</div>
{{/if}}
{{if !empty($data.payment_name)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
支付方式:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.payment_name}}
</div>
</div>
{{/if}}
{{if !empty($data.user_note)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
用户留言:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.user_note}}
</div>
</div>
{{/if}}
{{if !empty($data.add_time)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
下单时间:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.add_time}}
</div>
</div>
{{/if}}
{{if !empty($data.confirm_time)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
确认时间:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.confirm_time}}
</div>
</div>
{{/if}}
{{if !empty($data.pay_time)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
付款时间:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.pay_time}}
</div>
</div>
{{/if}}
{{if !empty($data.delivery_time)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
发货时间:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.delivery_time}}
</div>
</div>
{{/if}}
{{if !empty($data.collect_time)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
收货时间:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.collect_time}}
</div>
</div>
{{/if}}
{{if !empty($data.user_is_comments_time)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
评论时间:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.user_is_comments_time}}
</div>
</div>
{{/if}}
{{if in_array($data['status'], [5]) and !empty($data['cancel_time'])}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
取消时间:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.cancel_time}}
</div>
</div>
{{/if}}
{{if in_array($data['status'], [6]) and !empty($data['close_time'])}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
关闭时间:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.close_time}}
</div>
</div>
...
...
@@ -222,14 +222,14 @@
</div>
{{if in_array($data['status'], [3,4])}}
<div
class=
"logistics"
>
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
快递公司:
</div>
<div
class=
"items-detail am-fl"
>
{{if !empty($data.express_name)}}{{$data.express_name}}{{/if}}
</div>
</div>
{{if !empty($data.express_number)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
快递单号:
</div>
<div
class=
"items-detail am-fl"
>
{{$data.express_number}}
</div>
</div>
...
...
@@ -299,7 +299,7 @@
{{if !empty($data['extension_data'])}}
<div
class=
"am-alert am-alert-warning"
>
{{foreach $data.extension_data as $ertk=>$ext}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
{{$ext.name}}:
</div>
<div
class=
"items-detail am-fl"
>
{{$ext.tips}}
</div>
</div>
...
...
@@ -309,31 +309,31 @@
<div
class=
"am-alert am-alert-secondary"
>
{{if !empty($data.price)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
商品总价:
</div>
<div
class=
"items-detail am-fl"
>
¥{{$data.price}}
</div>
</div>
{{/if}}
{{if !empty($data.increase_price)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
增加金额:
</div>
<div
class=
"items-detail am-fl"
>
+¥{{$data.increase_price}}
</div>
</div>
{{/if}}
{{if !empty($data.preferential_price)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
优惠金额:
</div>
<div
class=
"items-detail am-fl"
>
-¥{{$data.preferential_price}}
</div>
</div>
{{/if}}
{{if !empty($data.total_price)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
订单总价:
</div>
<div
class=
"items-detail am-fl line-price"
>
¥{{$data.total_price}}
</div>
</div>
{{/if}}
{{if !empty($data.pay_price)}}
<div
class=
"items"
>
<div
class=
"items
am-cf
"
>
<div
class=
"items-title am-fl"
>
支付金额:
</div>
<div
class=
"items-detail am-fl"
>
<strong
class=
"total-price-content"
>
¥{{$data.pay_price}}
</strong>
...
...
application/index/view/default/order/index.html
浏览文件 @
5ec4d9bd
...
...
@@ -207,10 +207,10 @@
<a
href=
"{{:MyUrl('index/order/comments', ['id'=>$order['id']])}}"
target=
"_blank"
class=
"am-btn am-btn-primary am-btn-xs am-radius am-icon-heart-o am-btn-block"
>
评论
</a>
{{/if}}
{{if in_array($order['status'], [
4,5,6
])}}
<a
href=
"{{:MyUrl('index/order/aftersale', ['id'=>$order['id']])}}"
target=
"_blank"
class=
"am-btn am-btn-
primary
am-btn-xs am-radius am-icon-puzzle-piece am-btn-block"
>
售后
</a>
{{if in_array($order['status'], [
2,3,4
])}}
<a
href=
"{{:MyUrl('index/order/aftersale', ['id'=>$order['id']])}}"
target=
"_blank"
class=
"am-btn am-btn-
default
am-btn-xs am-radius am-icon-puzzle-piece am-btn-block"
>
售后
</a>
{{/if}}
{{if in_array($order['status'], [4,5,6])}}
<button
type=
"button"
class=
"am-btn am-btn-danger am-btn-xs am-radius am-icon-trash-o am-btn-block submit-delete"
data-url=
"{{:MyUrl('index/order/delete')}}"
data-id=
"{{$order.id}}"
data-view=
"reload"
>
删除
</button>
{{/if}}
...
...
config/shopxo.sql
浏览文件 @
5ec4d9bd
此差异已折叠。
点击以展开。
public/static/index/default/css/common.css
浏览文件 @
5ec4d9bd
...
...
@@ -14,7 +14,6 @@ time, mark, audio, video {
margin
:
0
;
padding
:
0
;
border
:
0
;
font
:
inherit
;
vertical-align
:
baseline
;
font-family
:
arial
,
"Lantinghei SC"
,
"Microsoft Yahei"
;
}
...
...
@@ -32,6 +31,7 @@ button { outline: none; }
.am-input-group-sm
>
.am-input-group-btn
>
.am-btn
{
height
:
28px
;
font-size
:
12px
!important
;
line-height
:
26px
;
}
...
...
@@ -131,8 +131,8 @@ color: #F5F5F2;font-size: 12px;cursor:pointer;border-radius:0px 0px; position: a
/*分类*/
.goods-category-s
{
display
:
block
;
position
:
absolute
;
z-index
:
100
;}
.goods-category-s
.all-goods
{
font-size
:
16px
;}
.goods-category-title
{
background
:
#d2364c
;
color
:
#fff
;
height
:
40px
;
line-height
:
44px
;
display
:
block
;
position
:
absolute
;
width
:
150px
;
text-align
:
center
;
font-size
:
16px
;
top
:
2px
;
z-index
:
6
;
cursor
:
pointer
;}
.goods-category-s
.all-goods
,
.goods-category-title
.all-goods
{
font-size
:
16px
;}
.goods-category-title
{
background
:
#d2364c
;
color
:
#fff
;
height
:
40px
;
line-height
:
44px
;
display
:
block
;
position
:
absolute
;
width
:
150px
;
text-align
:
center
;
top
:
2px
;
z-index
:
6
;
cursor
:
pointer
;}
.goods-category-s
.category-content
{
position
:
relative
;
width
:
150px
;
float
:
left
;
z-index
:
113
;
background
:
#fff
;
top
:
45px
;}
.goods-category-s
.category-content
.all-goods
{
display
:
block
;
padding
:
0
;
border-radius
:
5px
5px
0
0
;
font-weight
:
600
;
line-height
:
36px
;
width
:
150px
;
height
:
36px
;
padding
:
0
;
border-radius
:
5px
5px
0
0
;
color
:
#fff
;
text-align
:
center
;
font
:
16px
/
36px
"Microsoft YaHei"
;}
.goods-category-s
.category-content
.all-goods
em
{
font
:
12px
/
36px
"Microsoft YaHei"
;
}
...
...
public/static/index/default/css/order.aftersale.css
0 → 100644
浏览文件 @
5ec4d9bd
/**
* 商品列表
*/
.order-goods
.base
{
width
:
50%
;
}
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
border
:
1px
solid
#eee
;
}
.goods-detail
{
position
:
relative
;
min-height
:
80px
;
}
.goods-title
{
display
:
block
;
max-height
:
36px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.goods-title
:hover
{
text-decoration
:
underline
;
}
.goods-base
{
float
:
left
;
top
:
0
;
margin-left
:
85px
;
}
.goods-attr
{
margin-top
:
5px
;
}
.goods-attr
li
{
color
:
#888
;
line-height
:
16px
;
}
.original-price
,
.line-price
{
font-family
:
Verdana
,
Tahoma
,
arial
;
}
.original-price
{
color
:
#9c9c9c
;
text-decoration
:
line-through
;
}
.line-price
{
color
:
#3c3c3c
;
}
.line-price
,
strong
.total-price-content
{
font-weight
:
700
;
}
strong
.total-price-content
{
color
:
#d2364c
;
font-size
:
16px
;
}
.am-table
{
margin-bottom
:
10px
;
}
.am-table
>
tbody
>
tr
>
td
{
border-top
:
1px
solid
#F5F5F5
;
}
.am-table
>
thead
>
tr
>
th
{
border-bottom
:
1px
solid
#f7f7f7
;
}
@media
only
screen
and
(
min-width
:
640px
)
{
.cart-content
table
tr
.base
{
width
:
40%
;
}
.cart-content
table
tr
.price
{
width
:
20%
;
}
.cart-content
table
tr
.number
{
width
:
20%
;
}
.cart-content
table
tr
.total-price
{
width
:
20%
;
}
.cart-content
{
margin-top
:
20px
;
}
}
@media
only
screen
and
(
max-width
:
640px
)
{
.goods-detail
img
{
width
:
60px
;
height
:
60px
;
}
.goods-base
{
margin-left
:
65px
;
}
.goods-detail
{
min-height
:
60px
;
}
}
/**
* 列表
*/
.user-content-body
table
.am-table
.operations
{
width
:
100px
;
}
/**
* 弹窗
*/
.user-content-body
.aftersale-type
{
padding
:
5px
;
}
.user-content-body
.aftersale-type
.am-vertical-align
{
width
:
49%
;
border
:
1px
solid
#eee
;
padding
:
10px
;
cursor
:
pointer
;
-webkit-transition
:
border-color
.2s
ease-in
;
-moz-transition
:
border-color
.2s
ease-in
;
-ms-transition
:
border-color
.2s
ease-in
;
-o-transition
:
border-color
.2s
ease-in
;
transition
:
border-color
.2s
ease-in
;
}
.user-content-body
.aftersale-type
.am-vertical-align.selected
,
.user-content-body
.aftersale-type
.am-vertical-align
:hover
{
border
:
1px
solid
#d2364c
;
box-shadow
:
0px
0
0px
1px
#d2364c
;
}
.user-content-body
.aftersale-type
.am-vertical-align
.icon
{
height
:
75px
;
margin-right
:
10px
;
}
.user-content-body
.aftersale-type
.am-vertical-align
.icon
i
{
font-size
:
46px
;
color
:
#d2354c
;
}
.user-content-body
.aftersale-type
.am-vertical-align
.name
{
font-size
:
16px
;
font-weight
:
500
;
}
.user-content-body
.aftersale-type
.am-vertical-align
.desc
{
color
:
#888
;
margin-top
:
5px
;
}
/**
* 步骤
*/
.aftersale-step
li
{
float
:
left
;
}
.aftersale-step
li
.number
{
background
:
#fff
;
color
:
#ccc
;
}
.aftersale-step
li
.text
{
color
:
#fff
;
}
\ No newline at end of file
public/static/index/default/css/order.comments.css
浏览文件 @
5ec4d9bd
/**
* 评分
*/
.user-content-body
ul
.rating
{
overflow
:
hidden
;
margin-bottom
:
2px
;
...
...
@@ -35,8 +38,7 @@
* 商品列表
*/
.order-goods
.base
{
width
:
50%
;
}
.order-goods
{
margin-top
:
20px
;
}
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
}
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
border
:
1px
solid
#eee
;
}
.goods-detail
{
position
:
relative
;
min-height
:
80px
;
}
.goods-title
{
display
:
block
;
max-height
:
36px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.goods-title
:hover
{
text-decoration
:
underline
;
}
...
...
public/static/index/default/css/order.css
浏览文件 @
5ec4d9bd
...
...
@@ -57,7 +57,7 @@ table.data-ongoing .base-operate { border-top: 1px dashed #fff1f5; }
* 商品列表
*/
.goods-detail
{
position
:
relative
;
min-height
:
80px
;
}
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
left
:
0
;
}
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
left
:
0
;
border
:
1px
solid
#eee
;
}
.goods-title
{
display
:
block
;
max-height
:
36px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.goods-title
:hover
{
text-decoration
:
underline
;
}
.goods-base
{
float
:
left
;
top
:
0
;
margin-left
:
85px
;
}
...
...
public/static/index/default/js/order.aftersale.js
0 → 100644
浏览文件 @
5ec4d9bd
$
(
function
()
{
var
$popup
=
$
(
'
#aftersale-popup
'
);
// 弹窗事件
$
(
'
.user-content-body table.am-table .operations button
'
).
on
(
'
click
'
,
function
()
{
var
order_id
=
$
(
this
).
data
(
'
order-id
'
)
||
0
;
var
goods_id
=
$
(
this
).
data
(
'
goods-id
'
)
||
0
;
var
number
=
$
(
this
).
data
(
'
number
'
)
||
0
;
var
price
=
$
(
this
).
data
(
'
price
'
)
||
0
;
if
(
order_id
==
0
||
goods_id
==
0
||
number
==
0
)
{
Prompt
(
'
参数配置有误
'
);
return
false
;
}
$popup
.
find
(
'
.am-form-group
'
).
addClass
(
'
none
'
);
$popup
.
find
(
'
input[name="order_id"]
'
).
val
(
order_id
);
$popup
.
find
(
'
input[name="goods_id"]
'
).
val
(
goods_id
);
$popup
.
find
(
'
input[name="number"]
'
).
val
(
number
);
$popup
.
find
(
'
input[name="number"]
'
).
attr
(
'
max
'
,
number
);
$popup
.
find
(
'
input[name="price"]
'
).
val
(
price
);
$
(
'
.aftersale-type .am-vertical-align
'
).
removeClass
(
'
selected
'
);
$popup
.
modal
(
'
open
'
);
});
// 类型切换
$
(
'
.aftersale-type .am-vertical-align
'
).
on
(
'
click
'
,
function
()
{
$
(
'
.aftersale-type .am-vertical-align
'
).
removeClass
(
'
selected
'
);
$
(
this
).
addClass
(
'
selected
'
);
// 表单处理
var
type
=
$
(
this
).
data
(
'
type
'
);
if
(
type
!=
undefined
)
{
$popup
.
find
(
'
.am-form-group
'
).
removeClass
(
'
none
'
);
$popup
.
find
(
'
input[name="type"]
'
).
val
(
type
);
}
switch
(
type
)
{
// 仅退款
case
0
:
$popup
.
find
(
'
.form-only-money
'
).
removeClass
(
'
none
'
);
$popup
.
find
(
'
.form-money-goods
'
).
addClass
(
'
none
'
);
break
;
// 退款退货
case
1
:
$popup
.
find
(
'
.form-only-money
'
).
addClass
(
'
none
'
);
$popup
.
find
(
'
.form-money-goods
'
).
removeClass
(
'
none
'
);
break
;
}
});
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录