切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
9c337fca33a3b4cbde10debdd12ae32ae0c00b35
1 个父辈
1e1be9a0
master
...
liuzhen
wangxiaogang
1 个管道 的构建
通过
耗费 0 秒
5
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
23 行增加
和
1 行删除
app/portal/controller/ShopcartController.php
public/themes/simpleboot3/portal/shopcart/shop_cart.html
app/portal/controller/ShopcartController.php
查看文件 @
9c337fc
...
...
@@ -108,6 +108,26 @@ class ShopcartController extends WeChatBaseController{
}
/**
* 去支付判断
*/
public
function
shop_cart_pay
(){
$cart_id
=
explode
(
','
,
$_POST
[
'id'
]);
foreach
(
$cart_id
as
$key
=>
$val
){
$goods_id
[]
=
Db
::
name
(
'shopping_cart'
)
->
where
(
'id'
,
$val
)
->
find
();
}
foreach
(
$goods_id
as
$key
=>
$val
){
$data
[]
=
Db
::
name
(
'goods'
)
->
where
(
'id'
,
$val
[
'goods_id'
])
->
find
();
}
foreach
(
$data
as
$key
=>
$val
){
if
(
$data
[
0
][
'type'
]
==
$data
[
$key
][
'type'
]){
}
else
{
return
false
;
}
}
}
...
...
public/themes/simpleboot3/portal/shopcart/shop_cart.html
查看文件 @
9c337fc
...
...
@@ -141,6 +141,9 @@
alert
(
'不能为空'
);
}
else
{
goods_id
=
goods_id
.
join
(
','
);
$
.
post
(
"{:url('Shopcart/shop_cart_pay')}"
,{
id
:
id
},
function
(
data
){
});
window
.
location
.
href
=
"{:url('Orderpage/order_page')}"
;
}
...
...
@@ -151,7 +154,6 @@
*/
function
jia
(
id
){
$
.
post
(
"{:url('Shopcart/shop_cart_numadd')}"
,{
id
:
id
},
function
(
data
){
console
.
log
(
'11111111'
);
});
}
...
...
请
注册
或
登录
后发表评论