Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
3656bccb
Commit
3656bccb
authored
Feb 11, 2018
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店列表
parent
b0ff2742
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
131 additions
and
44 deletions
+131
-44
index.html
application/index/view/store/index.html
+37
-43
storeList.js
public/resource/js/storeList.js
+93
-0
store_template_tpl.html
public/resource/template/store_template_tpl.html
+1
-1
No files found.
application/index/view/store/index.html
View file @
3656bccb
...
@@ -215,39 +215,6 @@
...
@@ -215,39 +215,6 @@
</div>
</div>
</div>
</div>
<!--设置案场权限人,修改盘方-->
<div
class=
"modal fade"
id=
"modal-anch"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
设置案场权限人
</h4>
</div>
<div
class=
"modal-body"
>
<form
id=
"submit_agent"
>
<div
class=
"jian_class"
>
<input
name=
"ues_id"
placeholder=
"请输入"
type=
"tel"
value=
""
class=
"phone_jia"
>
<!--号码匹配名字-->
<ul
class=
"phone_list"
></ul>
</div>
<img
src=
"/resource/image/jia2@2x.png"
class=
"jia"
>
<input
type=
"hidden"
name=
"ues_id"
class=
"houseinfos_id"
>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_follow"
data-dismiss=
"modal"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--编辑-->
<!--编辑-->
<div
class=
"modal fade"
id=
"modal-edit"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-edit"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-dialog"
>
...
@@ -294,20 +261,16 @@
...
@@ -294,20 +261,16 @@
<input
type=
"text"
value=
""
name=
"address"
id=
"address"
class=
"form-control btn6"
placeholder=
"请输入详细地址"
>
<input
type=
"text"
value=
""
name=
"address"
id=
"address"
class=
"form-control btn6"
placeholder=
"请输入详细地址"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
公司名:
</label>
<label
class=
"col-sm-3 control-label"
>
门店名:
</label>
<input
type=
"text"
value=
""
name=
"name"
class=
"form-control btn6"
placeholder=
"请输入公司名"
>
<input
type=
"text"
value=
""
name=
"name"
class=
"form-control btn6"
placeholder=
"请输入门店名"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
分店名:
</label>
<input
type=
"text"
value=
""
name=
"fd-name"
class=
"form-control btn6"
placeholder=
"请输入分店名"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
规模:
</label>
<label
class=
"col-sm-3 control-label"
>
规模:
</label>
<select
class=
"form-control btn6"
name=
"pid"
id=
"pid"
>
<select
class=
"form-control btn6"
name=
"pid"
id=
"pid
-select
"
>
<option
class=
"successModel"
value=
""
>
请选择
</option>
<option
class=
"successModel"
value=
""
>
请选择
</option>
<option
value=
"
0
"
>
1-10人
</option>
<option
value=
"
1-10人
"
>
1-10人
</option>
<option
value=
"1
"
>
11
-20人
</option>
<option
value=
"1
0-20人"
>
10
-20人
</option>
<option
value=
"2"
>
20人以上
</option>
<option
value=
"2
0人以上
"
>
20人以上
</option>
</select>
</select>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
@@ -331,6 +294,37 @@
...
@@ -331,6 +294,37 @@
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /.modal -->
</div>
</div>
<!--点击业务员查看列表-->
<div
class=
"modal fade"
id=
"modal-record"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
门店列表
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
注册时间
</th>
<th
class=
"text-center"
>
用户ID
</th>
<th
class=
"text-center"
>
姓名
</th>
<th
class=
"text-center"
>
手机号
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"mend_table"
>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--百度定位的弹出框更改-->
<!--百度定位的弹出框更改-->
<div
class=
"modal fade bs-example-modal-lg"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myLargeModalLabel"
>
<div
class=
"modal fade bs-example-modal-lg"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myLargeModalLabel"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
>
...
...
public/resource/js/storeList.js
View file @
3656bccb
...
@@ -35,6 +35,21 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -35,6 +35,21 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
store
.
id
=
$
(
this
).
attr
(
"data-id"
);
store
.
id
=
$
(
this
).
attr
(
"data-id"
);
});
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
store
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
store
.
Edit
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交编辑
store
.
Submit_edit
();
store
.
getList
();
});
$
(
document
).
delegate
(
".mend"
,
"click"
,
function
()
{
//点击业务员列表
store
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
store
.
Mend
();
});
/************************************************百度地址定位相关*************************************************************/
/************************************************百度地址定位相关*************************************************************/
var
_doc
=
$
(
document
),
var
_doc
=
$
(
document
),
...
@@ -154,6 +169,7 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -154,6 +169,7 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
/************************************************百度地址定位相关****结束*************************************************************/
/************************************************百度地址定位相关****结束*************************************************************/
},
},
getRegionsDisc
:
function
(
name
)
{
getRegionsDisc
:
function
(
name
)
{
var
params
=
{};
var
params
=
{};
params
.
parent_code
=
310100
;
params
.
parent_code
=
310100
;
...
@@ -176,6 +192,83 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -176,6 +192,83 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
}
}
});
});
},
},
Edit
:
function
(){
//获取编辑的数据
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/getStoreById'
,
//获取编辑数据
data
:
{
"id"
:
store
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
data
)
{
$
(
"input[name = address]"
).
val
(
data
.
data
.
address
);
//公司的详细地址
$
(
"input[name = name]"
).
val
(
data
.
data
.
store_name
);
//门店名
$
(
"#pid-select"
).
val
(
data
.
data
.
scale
)
//规模
$
(
"input[name=store-name]"
).
val
(
data
.
data
.
agents_name
);
//店长
$
(
"input[name=ss-store]"
).
val
(
data
.
data
.
district_name
);
//所属部门
$
(
"#province_internal"
).
val
(
data
.
data
.
province
)
//地址1
$
(
"#city_internal"
).
val
(
data
.
data
.
city
)
//地址1
$
(
"#disc_internal"
).
val
(
data
.
data
.
district
)
//地址1
$
(
"#longitude"
).
val
(
data
.
data
.
longitude
)
//经纬度
$
(
"#latitude"
).
val
(
data
.
data
.
latitude
)
//经纬度
store
.
agents_id
=
data
.
data
.
agents_id
;
//经纪人id
store
.
district_id
=
data
.
data
.
district_id
;
//部门id
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Submit_edit
:
function
(){
//提交编辑的信息
var
par
=
{};
par
.
id
=
store
.
house_id
;
//门店id
par
.
agents_id
=
store
.
agents_id
;
//经纪人id
par
.
province
=
$
(
"#province_internal"
).
val
();
//省
par
.
city
=
$
(
"#city_internal"
).
val
();
//城市
par
.
district
=
$
(
"#disc_internal"
).
val
();
//区
par
.
address
=
$
(
"input[name =address]"
).
val
();
//详细地址
par
.
longitude
=
$
(
"input[name =longitude]"
).
val
();
//经度
par
.
latitude
=
$
(
"input[name =latitude]"
).
val
();
//纬度
par
.
store_name
=
$
(
"input[name =name]"
).
val
();
//门店名
par
.
scale
=
$
(
"#pid-select option:selected"
).
val
();
//规模
par
.
district_id
=
store
.
district_id
;
//部门id
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/addStore'
,
data
:
par
,
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
}
else
{
alert
(
data
.
msg
);
}
}
});
},
Mend
:
function
(){
//获取门店的信息
var
mend_table
=
""
;
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/getDistrictStoreList'
,
//门店
data
:
{
"id"
:
district
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
$
.
each
(
data
.
data
,
function
(
i
,
item
){
mend_table
+=
'<tr><td>'
+
item
.
create_time
+
'</td> <td>'
+
item
.
id
+
'</td> <td>'
+
item
.
store_name
+
'</td><td>'
+
item
.
agents_name
+
'</td> <td>'
+
item
.
agents_total
+
'</td></tr>'
})
$
(
"#mend_table"
).
html
(
mend_table
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
)
{
store
.
pageNo
=
pageNo
;
store
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
...
...
public/resource/template/store_template_tpl.html
View file @
3656bccb
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agents_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agents_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agents_total'
]
%
]
<
/td
>
<
td
>
<
a
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
class
=
"mend"
>
[
%=
it
[
item
][
'agents_total'
]
%
]
<
/a>
</
td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
拜访记录
<
/a
>
<
a
class
=
"btn1 btn-info"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
拜访记录
<
/a
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment