切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
5e4fee4e2bee99af027fd43f482757206b176b9c
1 个父辈
a731bfb5
1 个管道 的构建
通过
耗费 0 秒
54
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
11 行增加
和
2 行删除
app/admin/controller/SalesmanorderController.php
app/portal/controller/GoodsdetailsController.php
public/themes/simpleboot3/portal/goodsdetails/goods_details.html
app/admin/controller/SalesmanorderController.php
查看文件 @
5e4fee4
...
...
@@ -54,7 +54,9 @@ class SalesmanorderController extends AdminBaseController{
}
$data_school
=
Db
::
name
(
'indent'
)
->
group
(
'school'
)
->
where
(
'indent_type'
,
2
)
->
select
()
->
toArray
();
foreach
(
$data_school
as
$key
=>
$val
){
$school
[
$key
]
=
$val
[
'school'
];
if
(
!
empty
(
$val
[
'school'
])){
$school
[
$key
]
=
$val
[
'school'
];
}
}
$uid
=
Db
::
name
(
'my_user'
)
->
alias
(
'a'
)
->
join
(
'user b'
,
'a.uid = b.id'
,
'LEFT'
)
->
where
(
'a.status = 2'
)
->
select
();
/* foreach($uid as $key => $val){
...
...
app/portal/controller/GoodsdetailsController.php
查看文件 @
5e4fee4
...
...
@@ -91,6 +91,11 @@ class GoodsdetailsController extends WeChatBaseController{
public
function
goodsdetails_go_pay
(){
$uid
=
cmf_get_current_user_id
();
$my_user
=
Db
::
name
(
'my_user'
)
->
where
(
'uid'
,
$uid
)
->
find
();
if
(
$my_user
[
'status'
]
==
2
){
$ret
[
'type'
]
=
20
;
return
json_encode
(
$ret
);
}
$goods_id
=
$_POST
[
'id'
];
$data
[]
=
Db
::
name
(
'goods'
)
->
where
(
'id'
,
$goods_id
)
->
find
();
$data
[
0
][
'book_num'
]
=
1
;
...
...
public/themes/simpleboot3/portal/goodsdetails/goods_details.html
查看文件 @
5e4fee4
...
...
@@ -169,7 +169,9 @@
price
=
{
$price
};
$
.
post
(
"{:url('Goodsdetails/goodsdetails_go_pay')}"
,{
id
:
id
,
myprice
:
price
},
function
(
data
){
obj
=
JSON
.
parse
(
data
);
if
(
obj
.
type
==
3
){
if
(
obj
.
type
==
20
){
alert
(
'业务员不能购买'
);
}
if
(
obj
.
type
==
3
){
alert
(
'业务员商品和平台商品不能同时购买!'
);
}
else
if
(
obj
.
type
==
1
){
window
.
location
.
href
=
"{:url('Orderpage/order_page')}?indet_id="
+
obj
.
indet_id
;
...
...
请
注册
或
登录
后发表评论