切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
d21e458f15d80a7bbd856d9f9effdf339c74960b
2 个父辈
f5bf4c04
f0998ec2
1 个管道 的构建
通过
耗费 0 秒
合并分支 'wangxiaogang' 到 'master'
Wangxiaogang 查看合并请求
!95
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
33 行增加
和
2 行删除
app/portal/controller/OrderpageController.php
public/themes/simpleboot3/portal/orderpage/order_salesman_ty.html
app/portal/controller/OrderpageController.php
查看文件 @
d21e458
...
...
@@ -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
查看文件 @
d21e458
...
...
@@ -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"
);
...
...
请
注册
或
登录
后发表评论