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
c99efa29
Commit
c99efa29
authored
Feb 08, 2018
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试
parent
5b1c9579
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
89 additions
and
9 deletions
+89
-9
index.html
application/index/view/district/index.html
+1
-4
navigation.html
application/index/view/global/navigation.html
+4
-1
index.html
application/index/view/store/index.html
+0
-0
home.css
public/resource/css/home.css
+4
-1
district.js
public/resource/js/district.js
+14
-3
storeList.js
public/resource/js/storeList.js
+0
-0
store_template_tpl.html
public/resource/template/store_template_tpl.html
+66
-0
No files found.
application/index/view/district/index.html
View file @
c99efa29
...
...
@@ -92,10 +92,7 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
></label>
<ul
class=
"mend_list"
>
<li
form-control
btn6
>
<span
class=
"phone_name"
>
11
</span>
<span
class=
"phone_span"
>
123
</span>
</li>
</ul>
</div>
</form>
...
...
application/index/view/global/navigation.html
View file @
c99efa29
...
...
@@ -44,7 +44,10 @@
<a
href=
"/admin.php/index/agent.html"
>
经纪人列表
</a>
</li>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/districtList.html"
>
总监列表
</a>
<a
href=
"/admin.php/index/storeList.html"
>
门店列表
</a>
</li>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/districtList.html"
>
部门列表
</a>
</li>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/authRuleIndex.html"
>
权限管理
</a>
...
...
application/index/view/store/index.html
View file @
c99efa29
This diff is collapsed.
Click to expand it.
public/resource/css/home.css
View file @
c99efa29
...
...
@@ -216,7 +216,9 @@ body{
width
:
56%
;
margin-left
:
-42px
;
}
.mend_list
li
{
.mend_list
li
{
border-bottom
:
1px
solid
#cccccc
;
width
:
100%
;
height
:
40px
;
line-height
:
40px
;
}
\ No newline at end of file
public/resource/js/district.js
View file @
c99efa29
...
...
@@ -29,17 +29,27 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
ldHtml
=
$
(
".mend_list"
);
valueCurrent
=
_this
.
val
();
if
(
valueCurrent
!=
''
){
district
.
loadMain
(
valueCurrent
);
console
.
log
(
_this
.
next
()
);
_this
.
parent
().
next
().
show
(
);
}
else
{
district
.
ldHtml
.
html
(
''
);
return
false
;
}
});
$
(
document
).
delegate
(
".mend_list li"
,
"click"
,
function
()
{
//点击列表
var
phone_name
=
$
(
this
).
find
(
".phone_name"
).
html
();
var
phone_phone
=
$
(
this
).
find
(
".phone-phone"
).
html
();
var
phone_span
=
$
(
this
).
find
(
".phone_span"
).
html
();
$
(
".phone_mend"
).
val
(
phone_name
+
phone_span
+
phone_phone
);
$
(
this
).
parent
().
hide
();
district
.
ldHtml
.
html
(
''
);
return
false
;
});
},
Edit
:
function
(){
//获取
...
...
@@ -115,9 +125,9 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa
if
(
data
.
code
===
200
){
var
_html
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
data
)
{
_html
+=
'<li
class="addphone"
><span class="phone_name">'
+
data
[
'name'
]
+
'</span><span class="phone_span">-</span><span class="phone-phone">'
+
data
[
'phone'
]
+
'</span> </li>'
;
_html
+=
'<li><span class="phone_name">'
+
data
[
'name'
]
+
'</span><span class="phone_span">-</span><span class="phone-phone">'
+
data
[
'phone'
]
+
'</span> </li>'
;
});
obj
.
html
(
_html
);
$
(
".mend_list"
)
.
html
(
_html
);
}
},
error
:
function
()
{
...
...
@@ -131,6 +141,7 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa
}
});
},
getList
:
function
(
pageNo
)
{
district
.
pageNo
=
pageNo
;
var
params
=
{};
...
...
public/resource/js/storeList.js
0 → 100644
View file @
c99efa29
This diff is collapsed.
Click to expand it.
public/resource/template/store_template_tpl.html
0 → 100644
View file @
c99efa29
<script
id=
"store_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
商场
[
%
}
else
{
%
]
街铺
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"rent_price"
]
==
0
)
{
%
]
30000
以上
[
%
}
else
if
(
it
[
item
][
"rent_price"
]
==
1
)
{
%
]
10000
-
30000
[
%
}
else
{
%
]
10000
以下
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
是
[
%
}
else
{
%
]
否
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"leased"
]
==
0
)
{
%
]
已租
[
%
}
else
{
%
]
待租
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"dish_name"
]
==
""
)
{
%
]
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-anch"
class
=
"btn1 btn-danger add_applies"
>
修改
<
/a
>
[
%
}
else
{
%
]
[
%=
it
[
item
][
'dish_name'
]
%
]
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-anch"
class
=
"btn1 btn-danger add_applies"
>
修改
<
/a
>
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success "
href
=
"/admin.php/index/houseEdit?id=[%= it[item]['id']%]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success is_show"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
推荐至首页
<
/a
>
<
a
class
=
"btn1 btn-success anch"
data
-
target
=
"#modal-anch"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
设置案场权限人
<
/a
>
<
a
class
=
"btn1 btn-success dujia"
href
=
"#modal-dujia"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
是否独家
<
/a
>
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
操作记录
<
/a
>
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-delete"
class
=
"btn1 btn-danger add_applies del_modal"
>
删除
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
\ No newline at end of file
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