Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
6da3d993
ShopXO
项目概览
jamesyang1999
/
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,发现更多精彩内容 >>
提交
6da3d993
编写于
5月 24, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品展示
上级
3b052c83
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
57 addition
and
11 deletion
+57
-11
application/index/view/default/orderaftersale/index.html
application/index/view/default/orderaftersale/index.html
+25
-5
application/service/OrderAftersaleService.php
application/service/OrderAftersaleService.php
+4
-0
public/static/index/default/css/orderaftersale.aftersale.css
public/static/index/default/css/orderaftersale.aftersale.css
+0
-2
public/static/index/default/css/orderaftersale.index.css
public/static/index/default/css/orderaftersale.index.css
+28
-4
未找到文件。
application/index/view/default/orderaftersale/index.html
浏览文件 @
6da3d993
...
...
@@ -95,19 +95,39 @@
<table
class=
"am-table am-table-striped"
>
<thead>
<tr>
<th>
商品信息
</th>
<th>
申请信息
</th>
<th
class=
"row-goods am-hide-sm-only"
>
商品信息
</th>
<th
class=
"row-apply"
>
申请信息
</th>
<th
class=
"am-hide-sm-only"
>
凭证
</th>
<th>
状态
</th>
<th
class=
"am-hide-sm-only"
>
快递信息
</th>
<th>
操作
</th>
<th
class=
"row-operation"
>
操作
</th>
</tr>
</thead>
<tbody>
{{if !empty($data_list)}}
{{foreach $data_list as $v}}
<tr>
<td>
商品信息
</td>
<td
class=
"am-hide-sm-only"
>
<div
class=
"goods-detail"
>
<a
href=
"{{$v.order_data.items.goods_url}}"
target=
"_blank"
>
<img
src=
"{{$v.order_data.items.images}}"
>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$v.order_data.items.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$v.order_data.items.title}}
</a>
{{if !empty($v.order_data.items.spec)}}
<ul
class=
"goods-attr"
>
{{foreach $v.order_data.items.spec as $spec}}
<li>
{{$spec.type}}:{{$spec.value}}
</li>
{{/foreach}}
</ul>
{{/if}}
</div>
</div>
{{if $v.order_data.items.original_price gt 0}}
<p
class=
"original-price"
>
¥{{$v.order_data.items.original_price}}
</p>
{{/if}}
<p
class=
"line-price"
>
¥{{$v.order_data.items.price}} x {{$v.order_data.items.buy_number}}
</p>
</td>
<td>
类型:{{$v.type_text}}
<br
/>
原因:{{$v.reason}}
<br
/>
...
...
@@ -145,7 +165,7 @@
时间:{{$v.delivery_time_time}}
{{/if}}
</td>
<td
class=
"operation"
>
<td>
{{if in_array($v['status'], [0,3])}}
<button
type=
"button"
class=
"am-btn am-btn-danger am-btn-xs am-radius am-icon-paint-brush am-btn-block submit-ajax submit-cancel"
data-url=
"{{:MyUrl('index/orderaftersale/cancel')}}"
data-id=
"{{$v.id}}"
data-view=
"reload"
>
取消
</button>
{{/if}}
...
...
application/service/OrderAftersaleService.php
浏览文件 @
6da3d993
...
...
@@ -327,6 +327,10 @@ class OrderAftersaleService
$common_order_aftersale_refundment_list
=
lang
(
'common_order_aftersale_refundment_list'
);
foreach
(
$data
as
&
$v
)
{
// 订单商品
$order
=
self
::
OrdferGoodsRow
(
$v
[
'order_id'
],
$v
[
'goods_id'
],
$v
[
'user_id'
]);
$v
[
'order_data'
]
=
$order
[
'data'
];
// 用户信息
$user
=
UserService
::
GetUserViewInfo
(
$v
[
'user_id'
]);
if
(
isset
(
$params
[
'is_public'
])
&&
$params
[
'is_public'
]
==
0
)
...
...
public/static/index/default/css/orderaftersale.aftersale.css
浏览文件 @
6da3d993
/**
* 商品列表
*/
.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
;
}
...
...
@@ -15,7 +14,6 @@
.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
)
{
.user-content-body
table
tr
.row-base
{
width
:
60%
;
}
.user-content-body
table
tr
.row-price
{
width
:
40%
;
}
...
...
public/static/index/default/css/orderaftersale.index.css
浏览文件 @
6da3d993
/**
* 商品列表
*/
.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
;
font-weight
:
700
;
}
/**
* 列表
*/
@media
only
screen
and
(
min-width
:
640px
)
{
.user-content-body
table
tr
.row-goods
{
width
:
25%
;
}
.user-content-body
table
tr
.row-apply
{
width
:
25%
;
}
.user-content-body
table
tr
.row-operation
{
width
:
85px
;
}
}
@media
only
screen
and
(
max-width
:
640px
)
{
.user-content-body
table
tr
.row-apply
{
width
:
50%
;
}
.user-content-body
table
tr
.row-operation
{
width
:
75px
;
}
}
.data-list
.am-slider
{
width
:
1
3
0px
;
width
:
1
0
0px
;
max-height
:
108px
;
overflow
:
hidden
;
}
.data-list
.operation
{
width
:
100px
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录