切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
636b8c0d97832e902156e633b792d4c21c1c06d3
1 个父辈
481b7a21
1 个管道 的构建
通过
耗费 0 秒
业务员订单筛选问题
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
35 行增加
和
4 行删除
app/portal/controller/OrderpageController.php
public/themes/simpleboot3/portal/orderpage/order_salesman_ty.html
simplewind/cmf/controller/WeChatBaseController.php
app/portal/controller/OrderpageController.php
查看文件 @
636b8c0
...
...
@@ -282,6 +282,16 @@ class OrderpageController extends WeChatBaseController{
}
public
function
get_school
(){
$area
=
$this
->
request
->
param
(
'area'
,
0
);
if
(
empty
(
$area
)){
$this
->
error
(
'缺少必要参数'
);
}
$where
[
'region'
]
=
[
'like'
,
"%
$area
%"
];
$data
=
Db
::
name
(
'school'
)
->
where
(
$where
)
->
select
();
$this
->
success
(
'SUCCESS'
,
''
,
$data
);
}
...
...
public/themes/simpleboot3/portal/orderpage/order_salesman_ty.html
查看文件 @
636b8c0
...
...
@@ -284,6 +284,27 @@
$
(
"#city_text"
).
text
((
items
[
0
]
||
{}).
text
+
","
+
(
items
[
1
]
||
{}).
text
+
","
+
(
items
[
2
]
||
{}).
text
);
//该ID为接收城市ID字段
$
(
'#city_text'
).
css
(
'color'
,
'#333333'
);
$
(
"#city_text"
).
html
((
items
[
0
]
||
{}).
text
+
" "
+
(
items
[
1
]
||
{}).
text
+
" "
+
(
items
[
2
]
||
{}).
text
);
var
area
=
items
[
0
].
text
+
" "
+
items
[
1
].
text
+
" "
+
items
[
2
].
text
;
$
.
ajax
({
url
:
"{:url('get_school')}"
,
type
:
"GET"
,
data
:{
'area'
:
area
},
success
:
function
(
res
){
if
(
res
.
code
==
1
){
var
data
=
res
.
data
;
var
html
=
""
;
$
(
data
).
each
(
function
(
key
,
vo
){
html
+=
"<div class=\"three_model_school_name\" onclick=\"click_school("
+
vo
.
id
+
")\">"
+
vo
.
school
+
"</div>"
;
})
$
(
'.there_university'
).
html
(
html
);
}
else
{
alert
(
res
.
msg
)
}
},
error
:
function
(
res
){
alert
(
'与服务器断开连接'
)
}
})
});
},
200
);
});
...
...
@@ -303,7 +324,7 @@
// tab 大学
var
$xuexiao
$
(
"
.there_university div"
).
click
(
function
()
{
$
(
"
body"
).
on
(
'click'
,
".there_university div"
,
function
()
{
var
index
=
$
(
this
).
index
();
$
(
this
).
addClass
(
"there_unActive"
).
siblings
().
removeClass
(
"there_unActive"
);
if
(
$
(
this
).
hasClass
(
"there_unActive"
))
{
...
...
@@ -315,7 +336,7 @@
$
(
'.three_model_school_left'
).
eq
(
1
).
addClass
(
'word_color'
).
addClass
(
'three_model_school_hover'
);
}
});
$
(
'.there_class div'
).
click
(
function
()
{
$
(
"body"
).
on
(
"click"
,
'.there_class div'
,
function
()
{
console
.
log
(
$xuexiao
)
var
index2
=
$
(
this
).
index
();
$
(
this
).
addClass
(
"there_unActive"
).
siblings
().
removeClass
(
"there_unActive"
);
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
636b8c0
...
...
@@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
// $user = Db::name('user')->where('id',5)->find();
// cmf_update_current_user($user);
$user
=
Db
::
name
(
'user'
)
->
where
(
'id'
,
4
)
->
find
();
cmf_update_current_user
(
$user
);
$userId
=
cmf_get_current_user_id
();
if
(
empty
(
$userId
))
{
$config
=
[
...
...
请
注册
或
登录
后发表评论