Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
06ac0595
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,发现更多精彩内容 >>
提交
06ac0595
编写于
5月 28, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
22d18e62
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
98 addition
and
80 deletion
+98
-80
application/admin/controller/Goodscomments.php
application/admin/controller/Goodscomments.php
+4
-4
application/admin/view/default/goodscomments/index.html
application/admin/view/default/goodscomments/index.html
+4
-4
application/admin/view/default/goodscomments/save_info.html
application/admin/view/default/goodscomments/save_info.html
+4
-4
application/admin/view/default/orderaftersale/index.html
application/admin/view/default/orderaftersale/index.html
+26
-6
application/admin/view/default/public/footer.html
application/admin/view/default/public/footer.html
+2
-2
application/index/view/default/order/detail.html
application/index/view/default/order/detail.html
+2
-2
application/index/view/default/order/index.html
application/index/view/default/order/index.html
+1
-1
application/index/view/default/orderaftersale/index.html
application/index/view/default/orderaftersale/index.html
+2
-2
application/index/view/default/user/index.html
application/index/view/default/user/index.html
+4
-4
application/index/view/default/userfavor/goods.html
application/index/view/default/userfavor/goods.html
+1
-1
application/index/view/default/usergoodsbrowse/index.html
application/index/view/default/usergoodsbrowse/index.html
+1
-1
application/lang/zh-cn.php
application/lang/zh-cn.php
+15
-0
application/service/GoodsCommentsService.php
application/service/GoodsCommentsService.php
+6
-19
public/static/admin/default/css/orderaftersale.css
public/static/admin/default/css/orderaftersale.css
+1
-1
public/static/admin/default/js/orderaftersale.js
public/static/admin/default/js/orderaftersale.js
+22
-26
public/static/index/default/css/order.css
public/static/index/default/css/order.css
+1
-1
public/static/index/default/css/orderaftersale.index.css
public/static/index/default/css/orderaftersale.index.css
+1
-1
route/route.config
route/route.config
+1
-1
未找到文件。
application/admin/controller/Goodscomments.php
浏览文件 @
06ac0595
...
...
@@ -85,8 +85,8 @@ class Goodscomments extends Common
// 静态数据
$this
->
assign
(
'common_is_show_list'
,
lang
(
'common_is_show_list'
));
$this
->
assign
(
'common_is_text_list'
,
lang
(
'common_is_text_list'
));
$this
->
assign
(
'
rating_list'
,
GoodsCommentsService
::
$rating_list
);
$this
->
assign
(
'
business_type_list'
,
GoodsCommentsService
::
$business_type_list
);
$this
->
assign
(
'
common_goods_comments_rating_list'
,
lang
(
'common_goods_comments_rating_list'
)
);
$this
->
assign
(
'
common_goods_rating_business_type_list'
,
lang
(
'common_goods_rating_business_type_list'
)
);
// 参数
$this
->
assign
(
'params'
,
$params
);
...
...
@@ -124,8 +124,8 @@ class Goodscomments extends Common
// 静态数据
$this
->
assign
(
'common_is_show_list'
,
lang
(
'common_is_show_list'
));
$this
->
assign
(
'common_is_text_list'
,
lang
(
'common_is_text_list'
));
$this
->
assign
(
'
rating_list'
,
GoodsCommentsService
::
$rating_list
);
$this
->
assign
(
'
business_type_list'
,
GoodsCommentsService
::
$business_type_list
);
$this
->
assign
(
'
common_goods_comments_rating_list'
,
lang
(
'common_goods_comments_rating_list'
)
);
$this
->
assign
(
'
common_goods_rating_business_type_list'
,
lang
(
'common_goods_rating_business_type_list'
)
);
// 参数
unset
(
$params
[
'id'
]);
...
...
application/admin/view/default/goodscomments/index.html
浏览文件 @
06ac0595
...
...
@@ -61,8 +61,8 @@
<span>
类型:
</span>
<select
name=
"business_type"
class=
"chosen-select"
data-placeholder=
"业务类型..."
>
<option
value=
""
>
业务类型...
</option>
{{if !empty($business_type_list)}}
{{foreach $business_type_list as $k=>$v}}
{{if !empty($
common_goods_rating_
business_type_list)}}
{{foreach $
common_goods_rating_
business_type_list as $k=>$v}}
<option
value=
"{{$k}}"
{{
if
isset
($
params
['
business_type
'])
and
$
params
['
business_type
']
eq
$
k
}}
selected
{{/
if
}}
>
{{$v}}
</option>
{{/foreach}}
{{/if}}
...
...
@@ -143,7 +143,7 @@
</div>
</td>
<td
class=
"am-hide-sm-only"
>
<span
class=
"am-badge am-radius {{$rating_list[$v['rating']]['badge']}}"
>
{{$v.rating_text}}
</span>
<span
class=
"am-badge am-radius {{$
common_goods_comments_
rating_list[$v['rating']]['badge']}}"
>
{{$v.rating_text}}
</span>
</td>
<td
class=
"am-hide-sm-only"
>
<a
href=
"javascript:;"
class=
"am-icon-btn am-icon-check submit-state {{if $v['is_reply'] eq 1}}am-success{{else /}}am-default{{/if}}"
data-url=
"{{:MyUrl('admin/goodscomments/statusupdate')}}"
data-id=
"{{$v.id}}"
data-state=
"{{$v['is_reply']}}"
data-field=
"is_reply"
></a>
...
...
@@ -203,7 +203,7 @@
<dt>
评分
</dt>
<dd>
<span
class=
"am-badge am-radius {{$rating_list[$v['rating']]['badge']}}"
>
{{$v.rating_text}}
</span>
<span
class=
"am-badge am-radius {{$
common_goods_comments_
rating_list[$v['rating']]['badge']}}"
>
{{$v.rating_text}}
</span>
</dd>
<dt>
是否匿名
</dt>
...
...
application/admin/view/default/goodscomments/save_info.html
浏览文件 @
06ac0595
...
...
@@ -42,8 +42,8 @@
<div
class=
"am-form-group"
>
<label>
业务类型
<span
class=
"am-form-group-label-tips-must"
>
必选
</span></label>
<select
name=
"business_type"
class=
"chosen-select"
data-placeholder=
"业务类型..."
data-validation-message=
"请选择业务类型"
required
>
{{if !empty($business_type_list)}}
{{foreach $business_type_list as $k=>$v}}
{{if !empty($
common_goods_rating_
business_type_list)}}
{{foreach $
common_goods_rating_
business_type_list as $k=>$v}}
<option
value=
"{{$k}}"
{{
if
isset
($
data
['
business_type
'])
and
$
data
['
business_type
']
eq
$
k
}}
selected
{{/
if
}}
>
{{$v}}
</option>
{{/foreach}}
{{/if}}
...
...
@@ -68,8 +68,8 @@
<div
class=
"am-form-group"
>
<label>
评分
<span
class=
"am-form-group-label-tips-must"
>
必选
</span></label>
<select
name=
"rating"
class=
"chosen-select"
data-placeholder=
"评分..."
data-validation-message=
"请选择评分"
required
>
{{if !empty($
business_type
_list)}}
{{foreach $rating_list as $k=>$v}}
{{if !empty($
common_goods_comments_rating
_list)}}
{{foreach $
common_goods_comments_
rating_list as $k=>$v}}
<option
value=
"{{$k}}"
{{
if
isset
($
data
['
rating
'])
and
$
data
['
rating
']
eq
$
k
}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
{{/if}}
...
...
application/admin/view/default/orderaftersale/index.html
浏览文件 @
06ac0595
...
...
@@ -105,7 +105,7 @@
<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}}"
>
<img
src=
"{{$v.order_data.items.images}}"
class=
"am-img-thumbnail am-radius"
/
>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$v.order_data.items.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$v.order_data.items.title}}
</a>
...
...
@@ -127,7 +127,7 @@
类型:{{$v.type_text}}
<br
/>
原因:{{$v.reason}}
<br
/>
数量:{{$v.number}}
<br
/>
金额:
{{$v.price}}
<br
/>
金额:
<span
class=
"am-text-warning"
>
¥{{$v.price}}
</span>
<br
/>
说明:{{$v.msg}}
<br
/>
时间:{{$v.apply_time_time}}
</td>
...
...
@@ -190,7 +190,7 @@
<dd>
<div
class=
"goods-detail"
>
<a
href=
"{{$v.order_data.items.goods_url}}"
target=
"_blank"
>
<img
src=
"{{$v.order_data.items.images}}"
>
<img
src=
"{{$v.order_data.items.images}}"
class=
"am-img-thumbnail am-radius"
/
>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$v.order_data.items.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$v.order_data.items.title}}
</a>
...
...
@@ -214,7 +214,7 @@
类型:{{$v.type_text}}
<br
/>
原因:{{$v.reason}}
<br
/>
数量:{{$v.number}}
<br
/>
金额:
{{$v.price}}
<br
/>
金额:
<span
class=
"am-text-warning"
>
¥{{$v.price}}
</span>
<br
/>
说明:{{$v.msg}}
<br
/>
时间:{{$v.apply_time_time}}
</dd>
...
...
@@ -321,15 +321,25 @@
<li
class=
"email"
>
邮箱:
<span>
...
</span></li>
</ul>
</dd>
<dt>
申请信息
</dt>
<dd
class=
"apply-info"
>
<ul>
<li
class=
"type"
>
类型:
<span>
...
</span></li>
<li
class=
"reason"
>
原因:
<span>
...
</span></li>
<li
class=
"number"
>
数量:
<span>
...
</span></li>
<li
class=
"price"
>
金额:
<span
class=
"am-text-warning"
>
...
</span></li>
<li
class=
"msg"
>
说明:
<span>
...
</span></li>
</ul>
</dd>
</dl>
<form
class=
"am-form form-validation-audit"
action=
"{{:MyUrl('admin/orderaftersale/audit')}}"
method=
"POST"
request-type=
"ajax-reload"
enctype=
"multipart/form-data"
>
<div
class=
"am-form-group"
>
<label
class=
"am-block"
>
退款方式
</label>
{{if !empty($common_order_aftersale_refundment_list)}}
{{foreach $common_order_aftersale_refundment_list as $
k=>$
v}}
{{foreach $common_order_aftersale_refundment_list as $v}}
<label
class=
"am-radio-inline am-success"
>
<input
type=
"radio"
name=
"refundment"
value=
"{{$v.value}}"
data-am-ucheck
{{
if
$
k
eq
0}}
data-validation-message=
"请选择退狂方式"
required
{{/
if
}}
/>
{{$v.name}}
<input
type=
"radio"
name=
"refundment"
value=
"{{$v.value}}"
data-am-ucheck
data-validation-message=
"请选择退款方式"
required
/>
{{$v.name}}
</label>
{{/foreach}}
{{/if}}
...
...
@@ -363,6 +373,16 @@
<li
class=
"email"
>
邮箱:
<span>
...
</span></li>
</ul>
</dd>
<dt>
申请信息
</dt>
<dd
class=
"apply-info"
>
<ul>
<li
class=
"type"
>
类型:
<span>
...
</span></li>
<li
class=
"reason"
>
原因:
<span>
...
</span></li>
<li
class=
"number"
>
数量:
<span>
...
</span></li>
<li
class=
"price"
>
金额:
<span
class=
"am-text-warning"
>
...
</span></li>
<li
class=
"msg"
>
说明:
<span>
...
</span></li>
</ul>
</dd>
</dl>
<form
class=
"am-form form-validation-refuse"
action=
"{{:MyUrl('admin/orderaftersale/refuse')}}"
method=
"POST"
request-type=
"ajax-reload"
enctype=
"multipart/form-data"
>
...
...
application/admin/view/default/public/footer.html
浏览文件 @
06ac0595
...
...
@@ -64,12 +64,12 @@
<!-- 应用插件公共js -->
{{if !empty($plugins_js)}}
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/{{$plugins_js}}
?v={{:MyC('home_static_cache_version')}}
"
></script>
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/{{$plugins_js}}"
></script>
{{/if}}
<!-- 当前控制器js -->
{{if !empty($module_js)}}
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/{{$module_js}}
?v={{:MyC('home_static_cache_version')}}
"
></script>
<script
type=
'text/javascript'
src=
"{{$Think.__MY_ROOT_PUBLIC__}}static/{{$module_js}}"
></script>
{{/if}}
<!-- js钩子 -->
...
...
application/index/view/default/order/detail.html
浏览文件 @
06ac0595
...
...
@@ -60,7 +60,7 @@
{{/if}}
</div>
</li>
<li
class=
"{{if $data['status'] GT 3}}steps-success{{/if}} {{if $data['status'] EQ 4}} current{{/if}}"
>
<li
class=
"{{if $data['status'] GT 3}}steps-success{{/if}} {{if $data['status'] EQ 4
and $data['user_is_comments'] EQ 0
}} current{{/if}}"
>
<i
class=
"step"
></i>
<p
class=
"digital"
>
{{if $data['status'] GT 3}}
<i
class=
"am-icon-check"
></i>
{{else /}}4{{/if}}
...
...
@@ -257,7 +257,7 @@
<td
class=
"base"
>
<div
class=
"goods-detail"
>
<a
href=
"{{$goods.goods_url}}"
target=
"_blank"
>
<img
src=
"{{$goods.images}}"
/>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-img-thumbnail am-radius"
/>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$goods.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$goods.title}}
</a>
...
...
application/index/view/default/order/index.html
浏览文件 @
06ac0595
...
...
@@ -155,7 +155,7 @@
<td
class=
"base row-content"
>
<div
class=
"goods-detail"
>
<a
href=
"{{$goods.goods_url}}"
target=
"_blank"
class=
"goods-images"
>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
/>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-img-thumbnail am-radius"
/>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$goods.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$goods.title}}
</a>
...
...
application/index/view/default/orderaftersale/index.html
浏览文件 @
06ac0595
...
...
@@ -110,7 +110,7 @@
<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}}"
>
<img
src=
"{{$v.order_data.items.images}}"
alt=
"{{$v.order_data.items.title}}"
class=
"am-img-thumbnail am-radius"
/
>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$v.order_data.items.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$v.order_data.items.title}}
</a>
...
...
@@ -132,7 +132,7 @@
类型:{{$v.type_text}}
<br
/>
原因:{{$v.reason}}
<br
/>
数量:{{$v.number}}
<br
/>
金额:
{{$v.price}}
<br
/>
金额:
<span
class=
"am-text-warning"
>
¥{{$v.price}}
</span>
<br
/>
说明:{{$v.msg}}
<br
/>
时间:{{$v.apply_time_time}}
</td>
...
...
application/index/view/default/user/index.html
浏览文件 @
06ac0595
...
...
@@ -150,7 +150,7 @@
{{if $key eq 0}}
<div
class=
"goods-detail"
>
<a
href=
"{{:MyUrl('index/order/detail', ['id'=>$order['id']])}}"
target=
"_blank"
>
<img
src=
"{{$goods.images}}"
/>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-img-thumbnail am-radius"
/>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{:MyUrl('index/order/detail', ['id'=>$order['id']])}}"
target=
"_blank"
class=
"goods-title am-text-truncate"
>
{{$goods.title}}
</a>
...
...
@@ -209,7 +209,7 @@
{{if $key lt 3}}
<div
class=
"goods-detail"
>
<a
href=
"{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}"
target=
"_blank"
>
<img
src=
"{{$goods.images}}"
/>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-img-thumbnail am-radius"
/>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}"
target=
"_blank"
class=
"goods-title am-text-truncate"
>
{{$goods.title}}
</a>
...
...
@@ -253,7 +253,7 @@
<li>
<div
class=
"am-gallery-item"
>
<a
href=
"{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}"
target=
"_blank"
>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
/>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-img-thumbnail am-radius"
/>
<h3
class=
"am-gallery-title"
>
{{$goods.title}}
</h3>
<div
class=
"am-gallery-desc line-price"
>
¥{{$goods.price}}
</div>
</a>
...
...
@@ -291,7 +291,7 @@
<li>
<div
class=
"am-gallery-item"
>
<a
href=
"{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}"
target=
"_blank"
>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-circle"
/>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-
img-thumbnail am-
circle"
/>
<h3
class=
"am-gallery-title"
>
{{$goods.title}}
</h3>
</a>
<div
class=
"am-gallery-desc line-price"
>
¥{{$goods.price}}
</div>
...
...
application/index/view/default/userfavor/goods.html
浏览文件 @
06ac0595
...
...
@@ -50,7 +50,7 @@
<td>
<div
class=
"goods-detail"
>
<a
href=
"{{$v.goods_url}}"
target=
"_blank"
>
<img
src=
"{{$v.images}}"
>
<img
src=
"{{$v.images}}"
alt=
"{{$v.title}}"
class=
"am-img-thumbnail am-radius"
/
>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$v.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$v.title}}
</a>
...
...
application/index/view/default/usergoodsbrowse/index.html
浏览文件 @
06ac0595
...
...
@@ -50,7 +50,7 @@
<td>
<div
class=
"goods-detail"
>
<a
href=
"{{$v.goods_url}}"
target=
"_blank"
>
<img
src=
"{{$v.images}}"
>
<img
src=
"{{$v.images}}"
alt=
"{{$v.title}}"
class=
"am-img-thumbnail am-radius"
/
>
</a>
<div
class=
"goods-base"
>
<a
href=
"{{$v.goods_url}}"
target=
"_blank"
class=
"goods-title"
>
{{$v.title}}
</a>
...
...
application/lang/zh-cn.php
浏览文件 @
06ac0595
...
...
@@ -317,6 +317,21 @@ return array(
2
=>
array
(
'value'
=>
2
,
'name'
=>
'手动处理'
),
),
// 商品评分
'common_goods_comments_rating_list'
=>
array
(
0
=>
array
(
'name'
=>
'未评分'
,
'badge'
=>
''
),
1
=>
array
(
'name'
=>
'1分'
,
'badge'
=>
'am-badge-danger'
),
2
=>
array
(
'name'
=>
'2分'
,
'badge'
=>
'am-badge-warning'
),
3
=>
array
(
'name'
=>
'3分'
,
'badge'
=>
'am-badge-secondary'
),
4
=>
array
(
'name'
=>
'4分'
,
'badge'
=>
'am-badge-primary'
),
5
=>
array
(
'name'
=>
'5分'
,
'badge'
=>
'am-badge-success'
),
),
// 商品评分业务类型
'common_goods_rating_business_type_list'
=>
array
(
'order'
=>
'订单'
,
),
// 色彩值
'common_color_list'
=>
array
(
...
...
application/service/GoodsCommentsService.php
浏览文件 @
06ac0595
...
...
@@ -23,21 +23,6 @@ use app\service\GoodsService;
*/
class
GoodsCommentsService
{
// 业务类型
public
static
$business_type_list
=
[
'order'
=>
'订单'
,
];
// 评分
public
static
$rating_list
=
[
0
=>
[
'name'
=>
'未评分'
,
'badge'
=>
''
],
1
=>
[
'name'
=>
'1分'
,
'badge'
=>
'am-badge-danger'
],
2
=>
[
'name'
=>
'2分'
,
'badge'
=>
'am-badge-warning'
],
3
=>
[
'name'
=>
'3分'
,
'badge'
=>
'am-badge-secondary'
],
4
=>
[
'name'
=>
'4分'
,
'badge'
=>
'am-badge-primary'
],
5
=>
[
'name'
=>
'5分'
,
'badge'
=>
'am-badge-success'
],
];
/**
* 订单评论
* @author Devil
...
...
@@ -175,6 +160,8 @@ class GoodsCommentsService
if
(
!
empty
(
$data
))
{
$common_is_text_list
=
lang
(
'common_is_text_list'
);
$common_goods_comments_rating_list
=
lang
(
'common_goods_comments_rating_list'
);
$common_goods_rating_business_type_list
=
lang
(
'common_goods_rating_business_type_list'
);
foreach
(
$data
as
&
$v
)
{
// 用户信息
...
...
@@ -201,7 +188,7 @@ class GoodsCommentsService
$v
[
'goods'
]
=
isset
(
$ret
[
'data'
][
0
])
?
$ret
[
'data'
][
0
]
:
[];
// 业务类型
$v
[
'business_type_text'
]
=
array_key_exists
(
$v
[
'business_type'
],
self
::
$business_type_list
)
?
self
::
$
business_type_list
[
$v
[
'business_type'
]]
:
null
;
$v
[
'business_type_text'
]
=
array_key_exists
(
$v
[
'business_type'
],
$common_goods_rating_business_type_list
)
?
$common_goods_rating_
business_type_list
[
$v
[
'business_type'
]]
:
null
;
$msg
=
null
;
switch
(
$v
[
'business_type'
])
{
...
...
@@ -212,7 +199,7 @@ class GoodsCommentsService
$v
[
'msg'
]
=
empty
(
$msg
)
?
null
:
$msg
;
// 评分
$v
[
'rating_text'
]
=
self
::
$
rating_list
[
$v
[
'rating'
]][
'name'
];
$v
[
'rating_text'
]
=
$common_goods_comments_
rating_list
[
$v
[
'rating'
]][
'name'
];
// 是否
$v
[
'is_reply_text'
]
=
isset
(
$common_is_text_list
[
$v
[
'is_reply'
]])
?
$common_is_text_list
[
$v
[
'is_reply'
]][
'name'
]
:
''
;
...
...
@@ -381,7 +368,7 @@ class GoodsCommentsService
[
'checked_type'
=>
'in'
,
'key_name'
=>
'business_type'
,
'checked_data'
=>
array_keys
(
self
::
$business_type_list
),
'checked_data'
=>
array_keys
(
lang
(
'common_order_aftersale_refundment_list'
)
),
'error_msg'
=>
'请选择业务类型'
,
],
[
...
...
@@ -399,7 +386,7 @@ class GoodsCommentsService
[
'checked_type'
=>
'in'
,
'key_name'
=>
'rating'
,
'checked_data'
=>
array_keys
(
self
::
$rating_list
),
'checked_data'
=>
array_keys
(
lang
(
'common_goods_comments_rating_list'
)
),
'error_msg'
=>
'请选择评分'
,
],
];
...
...
public/static/admin/default/css/orderaftersale.css
浏览文件 @
06ac0595
/**
* 商品列表
*/
.content-right
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
border
:
1px
solid
#eee
;
}
.content-right
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
}
.content-right
.goods-detail
{
position
:
relative
;
min-height
:
80px
;
}
.content-right
.goods-title
{
display
:
block
;
max-height
:
36px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.content-right
.goods-title
:hover
{
text-decoration
:
underline
;
}
...
...
public/static/admin/default/js/orderaftersale.js
浏览文件 @
06ac0595
...
...
@@ -4,39 +4,35 @@ FromInit('form.form-validation-refuse');
$
(
function
()
{
//
审核
$
(
'
table.am-table .submit-audit
'
).
on
(
'
click
'
,
function
(
)
//
弹窗数据初始化
function
PopupInit
(
$popup
,
data
)
{
var
$audit_popup
=
$
(
'
#order-audit-popup
'
);
var
json
=
$
(
this
).
data
(
'
json
'
);
console
.
log
(
json
);
// 用户信息
$
audit_popup
.
find
(
'
input[name="id"]
'
).
val
(
json
.
id
);
$
audit_popup
.
find
(
'
.user-info img
'
).
attr
(
'
src
'
,
json
.
user
.
avatar
||
$audit_
popup
.
find
(
'
.user-info img
'
).
attr
(
'
src
'
));
$
audit_popup
.
find
(
'
.user-info .user-base .username span
'
).
html
(
json
.
user
.
username
||
'
<span class="cr-ddd">未填写</span>
'
);
$
audit_popup
.
find
(
'
.user-info .user-base .nickname span
'
).
html
(
json
.
user
.
nickname
||
'
<span class="cr-ddd">未填写</span>
'
);
$
audit_popup
.
find
(
'
.user-info .user-base .mobile span
'
).
html
(
json
.
user
.
mobile
||
'
<span class="cr-ddd">未填写</span>
'
);
$
audit_popup
.
find
(
'
.user-info .user-base .email span
'
).
html
(
json
.
user
.
email
||
'
<span class="cr-ddd">未填写</span>
'
);
$
popup
.
find
(
'
input[name="id"]
'
).
val
(
data
.
id
);
$
popup
.
find
(
'
.user-info img
'
).
attr
(
'
src
'
,
data
.
user
.
avatar
||
$
popup
.
find
(
'
.user-info img
'
).
attr
(
'
src
'
));
$
popup
.
find
(
'
.user-info .user-base .username span
'
).
html
(
data
.
user
.
username
||
'
<span class="cr-ddd">未填写</span>
'
);
$
popup
.
find
(
'
.user-info .user-base .nickname span
'
).
html
(
data
.
user
.
nickname
||
'
<span class="cr-ddd">未填写</span>
'
);
$
popup
.
find
(
'
.user-info .user-base .mobile span
'
).
html
(
data
.
user
.
mobile
||
'
<span class="cr-ddd">未填写</span>
'
);
$
popup
.
find
(
'
.user-info .user-base .email span
'
).
html
(
data
.
user
.
email
||
'
<span class="cr-ddd">未填写</span>
'
);
$audit_popup
.
modal
();
// 申请信息
$popup
.
find
(
'
.apply-info .type span
'
).
html
(
data
.
type_text
||
'
<span class="cr-ddd">未填写</span>
'
);
$popup
.
find
(
'
.apply-info .reason span
'
).
html
(
data
.
reason
||
'
<span class="cr-ddd">未填写</span>
'
);
$popup
.
find
(
'
.apply-info .number span
'
).
html
(
data
.
number
||
'
<span class="cr-ddd">未填写</span>
'
);
$popup
.
find
(
'
.apply-info .price span
'
).
html
(
'
¥
'
+
data
.
price
||
'
<span class="cr-ddd">未填写</span>
'
);
$popup
.
find
(
'
.apply-info .msg span
'
).
html
(
data
.
price
||
'
<span class="cr-ddd">未填写</span>
'
);
$popup
.
modal
();
}
// 审核
$
(
'
table.am-table .submit-audit
'
).
on
(
'
click
'
,
function
()
{
PopupInit
(
$
(
'
#order-audit-popup
'
),
$
(
this
).
data
(
'
json
'
));
});
// 拒绝
$
(
'
table.am-table .submit-refuse
'
).
on
(
'
click
'
,
function
()
{
var
$refuse_popup
=
$
(
'
#order-refuse-popup
'
);
var
json
=
$
(
this
).
data
(
'
json
'
);
console
.
log
(
json
);
// 用户信息
$refuse_popup
.
find
(
'
input[name="id"]
'
).
val
(
json
.
id
);
$refuse_popup
.
find
(
'
.user-info img
'
).
attr
(
'
src
'
,
json
.
user
.
avatar
||
$refuse_popup
.
find
(
'
.user-info img
'
).
attr
(
'
src
'
));
$refuse_popup
.
find
(
'
.user-info .user-base .username span
'
).
html
(
json
.
user
.
username
||
'
<span class="cr-ddd">未填写</span>
'
);
$refuse_popup
.
find
(
'
.user-info .user-base .nickname span
'
).
html
(
json
.
user
.
nickname
||
'
<span class="cr-ddd">未填写</span>
'
);
$refuse_popup
.
find
(
'
.user-info .user-base .mobile span
'
).
html
(
json
.
user
.
mobile
||
'
<span class="cr-ddd">未填写</span>
'
);
$refuse_popup
.
find
(
'
.user-info .user-base .email span
'
).
html
(
json
.
user
.
email
||
'
<span class="cr-ddd">未填写</span>
'
);
$refuse_popup
.
modal
();
PopupInit
(
$
(
'
#order-refuse-popup
'
),
$
(
this
).
data
(
'
json
'
));
});
});
\ No newline at end of file
public/static/index/default/css/order.css
浏览文件 @
06ac0595
...
...
@@ -59,7 +59,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
;
border
:
1px
solid
#eee
;
}
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
left
:
0
;
}
.goods-title
{
display
:
-webkit-box
;
max-height
:
36px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
.goods-title
:hover
{
text-decoration
:
underline
;
}
.goods-base
{
float
:
left
;
top
:
0
;
margin-left
:
85px
;
}
...
...
public/static/index/default/css/orderaftersale.index.css
浏览文件 @
06ac0595
/**
* 商品列表
*/
.user-content-body
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
border
:
1px
solid
#eee
;
}
.user-content-body
.goods-detail
img
{
width
:
80px
;
height
:
80px
;
position
:
absolute
;
}
.user-content-body
.goods-detail
{
position
:
relative
;
min-height
:
80px
;
}
.user-content-body
.goods-title
{
display
:
block
;
max-height
:
36px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.user-content-body
.goods-title
:hover
{
text-decoration
:
underline
;
}
...
...
route/route.config
浏览文件 @
06ac0595
...
...
@@ -24,7 +24,7 @@ Route::get('goods'.$ds.':id', 'index/goods/index');
// 搜索
Route
::
get
(
'search'
.$
ds
.
'c'
.$
ds
.
':category_id'
,
'index/search/index'
);
Route
::
get
(
'search'
.$
ds
.
'k'
.$
ds
.
':
keywords
'
,
'index/search/index'
);
Route
::
get
(
'search'
.$
ds
.
'k'
.$
ds
.
':
wd
'
,
'index/search/index'
);
Route
::
rule
(
'search'
,
'index/search/index'
,
'GET|POST'
);
// 分类
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录