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
fd7c06f2
Commit
fd7c06f2
authored
Apr 29, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开盘广场关联商铺
parent
335f79ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
1 deletion
+113
-1
opensquareLogList.html
application/index/view/opensquare/opensquareLogList.html
+64
-0
opensquareList.js
public/resource/js/opensquareList.js
+48
-1
opensquareList_template_tpl.html
public/resource/template/opensquareList_template_tpl.html
+1
-0
No files found.
application/index/view/opensquare/opensquareLogList.html
View file @
fd7c06f2
{layout name="global/frame_baidu_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"opensquareList"
/>
<style>
/*关联商铺*/
.left-phone
{
margin-left
:
10px
;
width
:
326px
;
position
:
relative
;
}
.user-ul-agent
{
width
:
320px
;
height
:
auto
;
float
:
left
;
position
:
absolute
;
background
:
#fff
;
border
:
.5px
solid
#ccc
;
border-top
:
none
;
left
:
11px
;
z-index
:
999
;
}
.user-ul-agent
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-28px
;
}
/*关联商铺*/
.modal-body
{
padding
:
0px
!important
;
}
...
...
@@ -328,6 +351,47 @@
</div>
<!-- /#wrapper -->
<!-- /#关联商铺 -->
<div
class=
"modal fade"
id=
"modal-associatedShops"
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"
>
<div
class=
"modal-body"
>
<div
class=
"left-phone"
>
<input
class=
"form-control ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"dish_name"
placeholder=
"请输入商铺名称、商铺编号关键词"
type=
"text"
value=
""
>
<ul
class=
"user-ul-agent"
></ul>
</div>
</div>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /#删除模态框 -->
<div
class=
"modal fade"
id=
"modal-delete"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
...
...
public/resource/js/opensquareList.js
View file @
fd7c06f2
...
...
@@ -20,7 +20,8 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
is_add
:
1
,
//是否新增
switchUrl
:
''
,
liu_iframe
:
''
,
agent_id_choose_p
:
''
,
agent_id_choose
:
''
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
...
...
@@ -30,6 +31,19 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//关联商铺
_doc
.
on
(
"input"
,
"#dish_name"
,
function
()
{
//关联商铺 显示下拉列表
if
(
$
(
"#dish_name"
).
val
()
==
''
)
{
user
.
agent_id_choose
=
''
;
user
.
agent_id_choose_p
=
''
;
$
(
".user-ul-agent"
).
html
(
''
);
}
else
{
user
.
search_phone_agent
();
}
});
_doc
.
delegate
(
".addphone-agent"
,
"click"
,
function
()
{
//关联商铺 下拉列表 消失
user
.
addphoneAgent
(
this
);
});
var
_imgMaskObj
=
$
(
'#img_mask_area'
);
//预览大图的mask
var
_imgUploadLunbo
=
$
(
'#xiangqing_pic_ul'
);
//详情页轮播图ul
...
...
@@ -324,6 +338,39 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
}
});
},
search_phone_agent
:
function
()
{
//关联商铺
$
.
ajax
({
url
:
'/index/getAgentsTohouses'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"type"
:
2
,
"agent_name"
:
$
(
'#dish_name'
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone-agent" data-id="'
+
item
.
name
+
'"'
+
'data-ids="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul-agent"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
addphoneAgent
:
function
(
obj
)
{
//客户列表 客方姓名 搜索 input赋值
var
user_ht
=
$
(
obj
).
html
();
$
(
"#dish_name"
).
val
(
user_ht
);
$
(
".user-ul-agent"
).
html
(
''
);
user
.
agent_id_choose
=
$
(
obj
).
attr
(
"data-id"
);
user
.
agent_id_choose_p
=
$
(
obj
).
attr
(
"data-ids"
);
},
add_news
:
function
(
con
)
{
//新增开盘 编辑开盘
if
(
$
(
'.titleImg'
))
{
var
pic
=
$
(
'.titleImg'
).
attr
(
"data-name"
);
...
...
public/resource/template/opensquareList_template_tpl.html
View file @
fd7c06f2
...
...
@@ -19,6 +19,7 @@
<
a
class
=
"btn1 btn-success show_modal_btn"
href
=
"#show_modal"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['id'] %]"
>
查看
<
/a>
<
a
class
=
"btn1 btn-success edit_modal_btn"
href
=
"#add_modal"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['id'] %]"
>
编辑
<
/a>
<
a
class
=
"btn1 btn-danger announcement-del"
href
=
"#modal-delete"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
删除
<
/a
>
<
a
class
=
"btn1 btn-success associated-shops"
href
=
"#modal-associatedShops"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
关联商铺
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
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