切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
lihan
6 years ago
提交
bf461ae73921d451ff73c44c6752adac5431cfd0
1 个父辈
70c13799
1 个管道 的构建
通过
耗费 2 秒
退货&退款
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
23 行增加
和
4 行删除
app/pay/controller/PayController.php
public/themes/simpleboot3/user/center/order_list.html
app/pay/controller/PayController.php
查看文件 @
bf461ae
...
...
@@ -188,9 +188,14 @@ class PayController extends HomeBaseController
private
function
wxPay
(
$info
)
{
require_once
EXTEND_PATH
.
'/Payment.php'
;
$pay
=
new
\Payment
(
$info
[
'attach'
],
$info
[
'openid'
],
$info
[
'body'
],
$info
[
'total_fee'
]
*
100
);
$this
->
success
(
'ok'
,
url
(
'user/center/orderlist'
),
$pay
->
pay
());
//只有未支付的订单才能唤起微信支付
if
(
Db
::
name
(
'zj_order'
)
->
where
([
'id'
=>
$info
[
'attach'
]])
->
value
(
'step'
)
==
1
)
{
require_once
EXTEND_PATH
.
'/Payment.php'
;
$pay
=
new
\Payment
(
$info
[
'attach'
],
$info
[
'openid'
],
$info
[
'body'
],
$info
[
'total_fee'
]
*
100
);
$this
->
success
(
'ok'
,
url
(
'user/center/orderlist'
),
$pay
->
pay
());
}
else
{
$this
->
success
(
'该订单禁止支付'
,
''
,
false
);
}
}
public
function
notify
()
...
...
public/themes/simpleboot3/user/center/order_list.html
查看文件 @
bf461ae
...
...
@@ -114,7 +114,21 @@
<in
name=
"vo.step"
value=
"5,6,7,8,9"
>
<div
class=
"unpay"
>
<p
class=
"pay eval"
data-url=
"{:url('user/Center/evaluate',['oid'=>$vo['id']])}"
>
评价
</p>
<p
class=
"cancelorder refund"
data-url=
"{:url('user/Center/refund',['oid'=>$vo['id']])}"
>
申请退款
</p>
<if
condition=
"$vo['step'] eq '5'"
>
<p
class=
"cancelorder refund"
data-url=
"{:url('user/Center/refund',['oid'=>$vo['id']])}"
>
申请退货
</p>
</if>
<if
condition=
"$vo['step'] eq '6'"
>
<p
class=
"cancelorder refund_detail"
data-url=
"{:url('user/Center/refundDetail',['oid'=>$vo['id']])}"
>
退货详情
</p>
</if>
<if
condition=
"$vo['step'] eq '7'"
>
<p
class=
"cancelorder refund_detail"
data-url=
"{:url('user/Center/refundPay',['oid'=>$vo['id']])}"
>
申请退款
</p>
</if>
<if
condition=
"$vo['step'] eq '8'"
>
<p
class=
"cancelorder refund_detail"
data-url=
"{:url('user/Center/refundPayDetail',['oid'=>$vo['id']])}"
>
退款详情
</p>
</if>
<if
condition=
"$vo['step'] eq '9'"
>
<p
class=
"cancelorder"
>
已退款
</p>
</if>
</div>
</in>
...
...
请
注册
或
登录
后发表评论