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
1d0d2497
Commit
1d0d2497
authored
Jun 07, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存2
parent
3ec168ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
edit.html
application/index/view/houses/edit.html
+5
-4
shop_edit.js
public/resource/js/shop_edit.js
+16
-9
No files found.
application/index/view/houses/edit.html
View file @
1d0d2497
...
@@ -148,8 +148,8 @@
...
@@ -148,8 +148,8 @@
<label>
房东手机号
</label>
<label>
房东手机号
</label>
<div
class=
"landlord-form-group"
>
<div
class=
"landlord-form-group"
>
<div
class=
"form-group phone-list-container"
>
<div
class=
"form-group phone-list-container"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入房东称呼"
/>
<input
type=
"text"
class=
"form-control
landlord-name-input
"
placeholder=
"请输入房东称呼"
/>
<input
type=
"tel"
class=
"form-control
phone_jia
"
placeholder=
"请输入房东手机号"
name=
"landlordPhone"
id=
"landlordPhone"
data-alert=
"请填写房东手机号!"
>
<input
type=
"tel"
class=
"form-control
landlord-phone-input
"
placeholder=
"请输入房东手机号"
name=
"landlordPhone"
id=
"landlordPhone"
data-alert=
"请填写房东手机号!"
>
</div>
</div>
</div>
</div>
...
@@ -441,8 +441,8 @@
...
@@ -441,8 +441,8 @@
<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"
>
<
div
class
=
"form-group phone-list-container"
>
<
input
type
=
"text"
class
=
"form-control"
placeholder
=
"请输入房东称呼"
/>
<
input
type
=
"text"
class
=
"form-control
landlord-name-input
"
placeholder
=
"请输入房东称呼"
/>
<
input
type
=
"tel"
class
=
"form-control
phone_jia
"
placeholder
=
"请输入房东手机号"
name
=
"landlordPhone"
data
-
alert
=
"请填写房东手机号!"
>
<
input
type
=
"tel"
class
=
"form-control
landlord-phone-input
"
placeholder
=
"请输入房东手机号"
name
=
"landlordPhone"
data
-
alert
=
"请填写房东手机号!"
>
<
img
src
=
"/resource/image/search_gb.png"
class
=
"input-cancel-pic"
><
/div
>
<
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 @
1d0d2497
...
@@ -655,7 +655,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -655,7 +655,7 @@ 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
)
{
if
(
_this
.
prev
().
find
(
'.
landlord-phone-input
'
).
length
<
_maxLen
)
{
_this
.
prev
().
append
(
_tpl_landlord_phone1
);
_this
.
prev
().
append
(
_tpl_landlord_phone1
);
}
else
{
}
else
{
alert
(
'最多添加'
+
_maxLen
+
'个'
);
alert
(
'最多添加'
+
_maxLen
+
'个'
);
...
@@ -867,18 +867,22 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -867,18 +867,22 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
};
};
var
_landlordPhoneArr
=
[];
var
_landlordPhoneArr
=
[];
$
.
each
(
$
(
'#li_landlord_phone_input input'
),
function
(
i
,
item
)
{
$
.
each
(
$
(
'#li_landlord_phone_input>div>div'
),
function
(
i
,
item
)
{
var
_valTemp
=
$
.
trim
(
$
(
item
).
val
());
var
_valTemp1
=
$
.
trim
(
$
(
item
).
find
(
'.landlord-name-input'
).
val
());
if
(
_valTemp
!==
''
)
{
var
_valTemp2
=
$
.
trim
(
$
(
item
).
find
(
'.landlord-phone-input'
).
val
());
if
(
is_mobile
(
_valTemp
))
{
if
((
_valTemp1
!==
''
)
&&
(
_valTemp2
!==
''
))
{
_landlordPhoneArr
.
push
(
_valTemp
);
if
(
is_mobile
(
_valTemp2
))
{
_landlordPhoneArr
.
push
({
'name'
:
_valTemp1
,
'phone'
:
_valTemp2
});
}
else
{
}
else
{
alert
(
'填写的第'
+
(
i
+
1
)
+
'个房东
手机号格式
有误'
);
alert
(
'填写的第'
+
(
i
+
1
)
+
'个房东
信息缺少或填写
有误'
);
}
}
};
};
});
});
if
(
_landlordPhoneArr
.
length
<
1
)
{
if
(
_landlordPhoneArr
.
length
<
1
)
{
alert
(
'房东
手机号至少需要选择
一个!'
);
alert
(
'房东
信息至少需要填写
一个!'
);
return
false
;
return
false
;
};
};
...
@@ -997,7 +1001,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -997,7 +1001,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
'agent_dish'
:
_pfPhoneArr
.
join
(
','
),
'agent_dish'
:
_pfPhoneArr
.
join
(
','
),
'agent_data'
:
_acqxPhoneArr
.
join
(
','
),
'agent_data'
:
_acqxPhoneArr
.
join
(
','
),
'internal_title'
:
$
.
trim
(
_internalNameObj
.
val
()),
'internal_title'
:
$
.
trim
(
_internalNameObj
.
val
()),
'landlord_phone'
:
_landlordPhoneArr
.
join
(
','
),
'rent_type'
:
_zujinTypeObj
.
val
(),
'rent_type'
:
_zujinTypeObj
.
val
(),
'rent_price'
:
_moonPriceObj
.
val
(),
'rent_price'
:
_moonPriceObj
.
val
(),
'management_fee'
:
_wuyePriceObj
.
val
(),
'management_fee'
:
_wuyePriceObj
.
val
(),
...
@@ -1051,6 +1054,10 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -1051,6 +1054,10 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
// $.each(_acrPhoneArr, function(i, item) {
// $.each(_acrPhoneArr, function(i, item) {
// _data['phone['+i+']'] = item;
// _data['phone['+i+']'] = item;
// });
// });
$
.
each
(
_landlordPhoneArr
,
function
(
i
,
item
)
{
_data
[
'landlord_phone['
+
i
+
'][name]'
]
=
item
.
name
;
_data
[
'landlord_phone['
+
i
+
'][phone]'
]
=
item
.
phone
;
});
$
.
each
(
_liebiaoPicObj
,
function
(
i
,
item
)
{
$
.
each
(
_liebiaoPicObj
,
function
(
i
,
item
)
{
_data
[
'cover['
+
i
+
']'
]
=
item
.
src
.
replace
(
_urlCut
,
''
);
_data
[
'cover['
+
i
+
']'
]
=
item
.
src
.
replace
(
_urlCut
,
''
);
});
});
...
...
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