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
3ec168ff
Commit
3ec168ff
authored
Jun 06, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存1
parent
cd3d8c10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
edit.html
application/index/view/houses/edit.html
+4
-2
shop_edit.js
public/resource/js/shop_edit.js
+9
-2
No files found.
application/index/view/houses/edit.html
View file @
3ec168ff
...
@@ -440,8 +440,9 @@
...
@@ -440,8 +440,9 @@
</div>
</div>
<script
id=
"my_tpl_landlord_phone1"
type=
"text/template"
>
<script
id=
"my_tpl_landlord_phone1"
type=
"text/template"
>
<
div
class
=
"form-group phone-list-container
landlord-form-group
"
>
<
div
class
=
"form-group phone-list-container"
>
<
input
type
=
"text"
class
=
"form-control"
placeholder
=
"请输入房东称呼"
/>
<
input
type
=
"text"
class
=
"form-control"
placeholder
=
"请输入房东称呼"
/>
<
input
type
=
"tel"
class
=
"form-control phone_jia"
placeholder
=
"请输入房东手机号"
data
-
alert
=
"请填写房东手机号!"
><
img
src
=
"/resource/image/search_gb.png"
class
=
"input-cancel-pic"
>
<
input
type
=
"tel"
class
=
"form-control phone_jia"
placeholder
=
"请输入房东手机号"
name
=
"landlordPhone"
data
-
alert
=
"请填写房东手机号!"
>
<
img
src
=
"/resource/image/search_gb.png"
class
=
"input-cancel-pic"
><
/div
>
<
/div
>
<
/div
>
</script>
</script>
\ No newline at end of file
public/resource/js/shop_edit.js
View file @
3ec168ff
...
@@ -13,6 +13,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -13,6 +13,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
_source
=
getUrlParam
(
'source'
),
_source
=
getUrlParam
(
'source'
),
_sublet_id
=
getUrlParam
(
'sublet_id'
),
_sublet_id
=
getUrlParam
(
'sublet_id'
),
_doc
=
$
(
document
),
_doc
=
$
(
document
),
_tpl_landlord_phone1
=
$
(
'#my_tpl_landlord_phone1'
).
html
(),
_urlCut
=
location
.
origin
+
'/resource/lib/Attachments/images/'
,
//要截取的部分url
_urlCut
=
location
.
origin
+
'/resource/lib/Attachments/images/'
,
//要截取的部分url
_loadMainItem
=
$
(
'#main_loading_pic'
),
//整个页面的加载图标
_loadMainItem
=
$
(
'#main_loading_pic'
),
//整个页面的加载图标
_shangpuTypeObj
=
$
(
'#shangpuType'
),
//商铺类型
_shangpuTypeObj
=
$
(
'#shangpuType'
),
//商铺类型
...
@@ -654,9 +655,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -654,9 +655,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_maxLen
=
3
;
var
_maxLen
=
3
;
if
(
_this
.
prev
().
find
(
'.phone_jia'
).
length
<
_maxLen
)
{
_this
.
prev
().
append
(
_tpl_landlord_phone1
);
}
else
{
alert
(
'最多添加'
+
_maxLen
+
'个'
);
return
false
;
}
});
});
//号码搜索(含房东手机号部分),点击关闭,删除父节点
_doc
.
on
(
'click'
,
'.input-cancel-pic'
,
function
()
{
_doc
.
on
(
'click'
,
'.input-cancel-pic'
,
function
()
{
$
(
this
).
parent
().
remove
();
$
(
this
).
parent
().
remove
();
});
});
...
...
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