切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
lihan
6 years ago
提交
a14ce1671f641dadcdbaef9b61a385e3e639e281
1 个父辈
2f771459
1 个管道 的构建
通过
耗费 0 秒
退货&退款
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
21 行增加
和
3 行删除
app/user/controller/CenterController.php
public/themes/simpleboot3/user/center/refund.html
app/user/controller/CenterController.php
查看文件 @
a14ce16
...
...
@@ -247,13 +247,22 @@ class CenterController extends HomeBaseController
}
}
//
退款
申请
//
填写退货
申请
public
function
refund
()
{
$request
=
request
();
$oid
=
$request
->
param
(
'oid'
);
if
(
$request
->
isAjax
())
{
$data
=
[
'id'
=>
$request
->
param
(
'oid'
),
'cause'
=>
$request
->
param
(
'cause'
),
'step'
=>
6
];
if
(
Db
::
name
(
'zj_order'
)
->
update
(
$data
))
{
$this
->
success
(
'请等待审核'
,
''
,
true
);
}
else
{
$this
->
success
(
'提交失败'
,
''
,
false
);
}
}
else
{
$order_sn
=
Db
::
name
(
'zj_order'
)
->
where
([
'id'
=>
$oid
])
->
value
(
'order_num'
);
$list
=
Db
::
name
(
'zj_order_goods'
)
->
alias
(
'o'
)
...
...
public/themes/simpleboot3/user/center/refund.html
查看文件 @
a14ce16
...
...
@@ -80,9 +80,18 @@
<p
class=
"phone"
>
退款客服电话:400-46821594
</p>
<p
class=
"application"
>
<p
class=
"application"
data-id=
"{$oid}"
>
确认申请
</p>
<script>
$
(
".application"
).
click
(
function
()
{
var
oid
=
$
(
this
).
attr
(
'data-id'
);
alert
(
oid
);
$
.
ajax
({
})
})
</script>
</div>
</body>
</html>
...
...
请
注册
或
登录
后发表评论