切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
lihan
6 years ago
提交
d9a1f637ad3d2e86cf86ad22b3ae9cb1390d2fd3
1 个父辈
b4883cb5
1 个管道 的构建
通过
耗费 0 秒
退货&退款
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
32 行增加
和
12 行删除
app/user/controller/CenterController.php
public/themes/simpleboot3/user/center/refund_pay.html
app/user/controller/CenterController.php
查看文件 @
d9a1f63
...
...
@@ -282,7 +282,7 @@ class CenterController extends HomeBaseController
}
}
//
退款
//
填写退款申请
public
function
refundPay
()
{
$request
=
request
();
...
...
@@ -290,7 +290,6 @@ class CenterController extends HomeBaseController
if
(
$request
->
isAjax
())
{
$data
=
[
'id'
=>
$request
->
param
(
'oid'
),
'cause'
=>
$request
->
param
(
'cause'
),
'company'
=>
$request
->
param
(
'company'
),
'com_order'
=>
$request
->
param
(
'com_order'
),
'step'
=>
8
...
...
public/themes/simpleboot3/user/center/refund_pay.html
查看文件 @
d9a1f63
...
...
@@ -64,13 +64,7 @@
<div
class=
"reason"
>
<p
class=
"reason_title"
>
退款原因
</p>
<div
class=
"goodreason"
>
物品损坏无法食用
物品损坏无法食用
物品损坏无法食用
物品损坏无法食用
物品损坏无法食用
{$cause}
</div>
</div>
<!--客服电话-->
...
...
@@ -79,15 +73,42 @@
</p>
<div
class=
"express"
>
<span>
快递方:
</span>
<input
type=
"text"
placeholder=
"申通快递
"
style=
"width:5rem;border:none;outline:none;background: #F7F8FA"
>
<input
type=
"text"
id=
"company"
placeholder=
"请填写快递公司名称
"
style=
"width:5rem;border:none;outline:none;background: #F7F8FA"
>
</div>
<div
class=
"express_num"
>
<span>
快递单号:
</span>
<input
type=
"text"
placeholder=
"208093215648216
"
style=
"width:4.5rem;border:none;outline:none;background: #F7F8FA"
>
<input
type=
"text"
id=
"com_order"
placeholder=
"请填写快递单号
"
style=
"width:4.5rem;border:none;outline:none;background: #F7F8FA"
>
</div>
<div
class=
"sub"
>
提交
</div>
<div
class=
"sub"
data-id=
"{$oid}"
>
提交
</div>
</div>
<script
type=
"text/javascript"
src=
"__INDEX__/js/jquery.min.js"
></script>
<script>
$
(
".sub"
).
click
(
function
()
{
var
oid
=
$
(
this
).
attr
(
'data-id'
);
if
(
!
window
.
confirm
(
'是否提交退款申请?'
))
{
return
false
;
}
else
{
$
.
ajax
({
url
:
"{:url('user/Center/refundPay')}"
,
data
:{
oid
:
oid
,
company
:
$
(
"#company"
).
val
(),
com_order
:
$
(
"#com_order"
).
val
()
},
type
:
"POST"
,
dataType
:
"JSON"
,
success
:
function
(
data
)
{
if
(
data
.
data
===
true
)
{
alert
(
data
.
msg
);
window
.
location
.
href
=
data
.
url
;
}
else
{
alert
(
data
.
msg
);
}
}
})
}
})
</script>
</body>
</html>
...
...
请
注册
或
登录
后发表评论