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
86cc7f62
Commit
86cc7f62
authored
Jun 05, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺编辑暂存
parent
074a65b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
116 additions
and
69 deletions
+116
-69
share_detail.html
application/app/view/index/share_detail.html
+0
-0
edit.html
application/index/view/houses/edit.html
+23
-9
details_tl.css
public/app/css/details_tl.css
+3
-0
detaila_tl.js
public/app/js/detaila_tl.js
+8
-3
shop_edit.css
public/resource/css/shop_edit.css
+19
-0
shop_edit.js
public/resource/js/shop_edit.js
+63
-57
No files found.
application/app/view/index/share_detail.html
View file @
86cc7f62
This diff is collapsed.
Click to expand it.
application/index/view/houses/edit.html
View file @
86cc7f62
...
@@ -143,13 +143,20 @@
...
@@ -143,13 +143,20 @@
</label>-->
</label>-->
</li>
</li>
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
id=
"li_landlord_phone_input"
>
<div
class=
"form-group"
id=
"li_landlord_phone_input"
>
<label
for=
"internalName"
>
房东手机号
</label>
<label>
房东手机号
</label>
<div
class=
"form-group phone-list-container landlord-form-group"
>
<div>
<input
type=
"tel"
class=
"form-control phone_jia"
placeholder=
"请输入"
name=
"landlordPhone"
id=
"landlordPhone"
data-alert=
"请填写房东手机号!"
data-addtype=
"landlord"
>
<div
class=
"form-group phone-list-container landlord-form-group"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入房东称呼"
/>
<input
type=
"tel"
class=
"form-control phone_jia"
placeholder=
"请输入房东手机号"
name=
"landlordPhone"
id=
"landlordPhone"
data-alert=
"请填写房东手机号!"
>
</div>
</div>
</div>
<img
src=
"/resource/image/jia2@2x.png"
class=
"input-add-tel input-add-tel-landlord"
data-addtype=
"landlord"
id=
"landlord_tel_jia"
/>
<img
src=
"/resource/image/jia2@2x.png"
class=
"input-add-tel input-add-tel-landlord"
id=
"landlord_tel_jia"
/>
</div><br>
</div>
</li>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"internalName"
>
对内商铺名称
</label>
<label
for=
"internalName"
>
对内商铺名称
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入"
name=
"internalName"
id=
"internalName"
data-alert=
"请填写对内商铺名称!"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入"
name=
"internalName"
id=
"internalName"
data-alert=
"请填写对内商铺名称!"
>
...
@@ -263,11 +270,11 @@
...
@@ -263,11 +270,11 @@
<label
for=
""
>
营业时间
</label>
<label
for=
""
>
营业时间
</label>
<input
type=
"text"
class=
"form-control"
id=
"yingyeTime"
data-alert=
"请填写营业时间!"
>
<input
type=
"text"
class=
"form-control"
id=
"yingyeTime"
data-alert=
"请填写营业时间!"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group
shangchang-show-part
"
>
<label
for=
""
>
招商时间
</label>
<label
for=
""
>
招商时间
</label>
<input
type=
"date"
class=
"form-control"
id=
"kaipanTime"
data-alert=
"请填写招商时间!"
>
<input
type=
"date"
class=
"form-control"
id=
"kaipanTime"
data-alert=
"请填写招商时间!"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group
shangchang-show-part
"
>
<label
for=
""
>
开业时间
</label>
<label
for=
""
>
开业时间
</label>
<input
type=
"date"
class=
"form-control"
id=
"kaiyeTime"
data-alert=
"请填写开业时间!"
>
<input
type=
"date"
class=
"form-control"
id=
"kaiyeTime"
data-alert=
"请填写开业时间!"
>
</div>
</div>
...
@@ -430,4 +437,11 @@
...
@@ -430,4 +437,11 @@
<div
id=
"main_loading_pic"
>
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
/>
<img
src=
"/resource/image/jz2.gif"
/>
</div>
</div>
</div>
</div>
\ No newline at end of file
<script
id=
"my_tpl_landlord_phone1"
type=
"text/template"
>
<
div
class
=
"form-group phone-list-container landlord-form-group"
>
<
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"
>
<
/div
>
</script>
\ No newline at end of file
public/app/css/details_tl.css
View file @
86cc7f62
...
@@ -178,6 +178,9 @@
...
@@ -178,6 +178,9 @@
float
:
left
;
float
:
left
;
margin-top
:
0.3rem
;
margin-top
:
0.3rem
;
}
}
.zhaoshang-time-p
,
.kaiye-time-p
{
display
:
none
;
}
.b4_font3
{
.b4_font3
{
width
:
15%
;
width
:
15%
;
font-size
:
0.28rem
;
font-size
:
0.28rem
;
...
...
public/app/js/detaila_tl.js
View file @
86cc7f62
...
@@ -75,8 +75,8 @@
...
@@ -75,8 +75,8 @@
$
(
".b5_font_p1"
).
html
(
response
.
data
.
sign_rule
);
$
(
".b5_font_p1"
).
html
(
response
.
data
.
sign_rule
);
b4_font
=
'<p class="b4_font_p">详细信息</p>'
+
b4_font
=
'<p class="b4_font_p">详细信息</p>'
+
'<p class="b4_font2">营业时间:<span class="b4_span1 gw">'
+
response
.
data
.
do_business_date
+
'</span></p>'
+
'<p class="b4_font2">营业时间:<span class="b4_span1 gw">'
+
response
.
data
.
do_business_date
+
'</span></p>'
+
'<p class="b4_font2">招商时间:<span class="b4_span1 gw">'
+
response
.
data
.
opening_date
+
'</span></p>'
+
'<p class="b4_font2
zhaoshang-time-p
">招商时间:<span class="b4_span1 gw">'
+
response
.
data
.
opening_date
+
'</span></p>'
+
'<p class="b4_font2">开业时间:<span class="b4_span1 gw">'
+
response
.
data
.
start_business_date
+
'</span></p>'
+
'<p class="b4_font2
kaiye-time-p
">开业时间:<span class="b4_span1 gw">'
+
response
.
data
.
start_business_date
+
'</span></p>'
+
'<p class="b4_font2">是否有煤气:<span class="b4_span1 gw">'
+
has_gas
+
'</span></p>'
+
'<p class="b4_font2">是否有煤气:<span class="b4_span1 gw">'
+
has_gas
+
'</span></p>'
+
'<p class="b4_font2"><span class="b3_font3 lp">地址:</span><span class="b3_span3 gw">'
+
response
.
data
.
city
+
response
.
data
.
disc
+
response
.
data
.
address
+
'</span></p>'
+
'<p class="b4_font2"><span class="b3_font3 lp">地址:</span><span class="b3_span3 gw">'
+
response
.
data
.
city
+
response
.
data
.
disc
+
response
.
data
.
address
+
'</span></p>'
+
'<p class="b4_font2"><span class="b3_font3 lp" >交通:</span><span class="b3_span3 gw">'
+
response
.
data
.
traffic
+
'</span></p>'
;
'<p class="b4_font2"><span class="b3_font3 lp" >交通:</span><span class="b3_span3 gw">'
+
response
.
data
.
traffic
+
'</span></p>'
;
...
@@ -131,7 +131,12 @@
...
@@ -131,7 +131,12 @@
width
:
liWidth
?
liWidth
:
52.5
width
:
liWidth
?
liWidth
:
52.5
});
});
if
(
shang
==
"0"
)
{
//商场
$
(
'.zhaoshang-time-p, .kaiye-time-p'
).
show
();
}
else
if
(
shang
==
"1"
)
{
//街铺
}
}
else
{
}
else
{
...
...
public/resource/css/shop_edit.css
View file @
86cc7f62
...
@@ -296,4 +296,22 @@ img.cancel-pic {
...
@@ -296,4 +296,22 @@ img.cancel-pic {
}
}
.input-add-tel-landlord
{
.input-add-tel-landlord
{
margin-top
:
8px
!important
;
margin-top
:
8px
!important
;
}
/*房东手机号添加相关样式*/
#li_landlord_phone_input
{
overflow
:
hidden
;
}
#li_landlord_phone_input
>*
{
float
:
left
;
}
#li_landlord_phone_input
>
div
>
div
{
display
:
block
;
margin-bottom
:
10px
;
}
#li_landlord_phone_input
>
div
>
div
>
input
:nth-last-of-type
(
1
)
{
float
:
right
;
}
.landlord-form-group
{
width
:
400px
;
}
}
\ No newline at end of file
public/resource/js/shop_edit.js
View file @
86cc7f62
...
@@ -46,7 +46,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -46,7 +46,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
_trafficObj
=
$
(
'#traffic'
),
//交通
_trafficObj
=
$
(
'#traffic'
),
//交通
_hasMovedObj
=
$
(
'#hasMoved'
),
//已入住
_hasMovedObj
=
$
(
'#hasMoved'
),
//已入住
_yingyeTimeObj
=
$
(
'#yingyeTime'
),
//营业时间
_yingyeTimeObj
=
$
(
'#yingyeTime'
),
//营业时间
_kaipanTimeObj
=
$
(
'#kaipanTime'
),
//开盘时间
_kaipanTimeObj
=
$
(
'#kaipanTime'
),
//开盘时间
,即招商时间
_kaiyeTimeObj
=
$
(
'#kaiyeTime'
),
//开业时间
_kaiyeTimeObj
=
$
(
'#kaiyeTime'
),
//开业时间
_hasGasObj
=
$
(
'#hasGas'
),
//是否有燃气
_hasGasObj
=
$
(
'#hasGas'
),
//是否有燃气
_yongjinRuleObj
=
$
(
'#yongjinRule'
),
//佣金规则
_yongjinRuleObj
=
$
(
'#yongjinRule'
),
//佣金规则
...
@@ -149,6 +149,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -149,6 +149,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
_objThis
.
upload_id
=
_data
[
'upload_id'
];
_objThis
.
upload_id
=
_data
[
'upload_id'
];
if
(
_data
[
'shop_type'
]
!==
undefined
)
{
if
(
_data
[
'shop_type'
]
!==
undefined
)
{
//.change()之后,自动执行相关显示隐藏操作
_shangpuTypeObj
.
val
(
_data
[
'shop_type'
]).
change
().
attr
({
_shangpuTypeObj
.
val
(
_data
[
'shop_type'
]).
change
().
attr
({
'disabled'
:
'disabled'
,
'disabled'
:
'disabled'
,
'title'
:
'商铺类型暂不支持修改'
'title'
:
'商铺类型暂不支持修改'
...
@@ -239,7 +240,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -239,7 +240,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
if
(
_landlordNum
===
0
)
{
if
(
_landlordNum
===
0
)
{
$
(
'#landlord_tel_jia'
).
prev
().
find
(
'input'
).
val
(
item
);
$
(
'#landlord_tel_jia'
).
prev
().
find
(
'input'
).
val
(
item
);
}
else
{
}
else
{
$
(
'#landlord_tel_jia'
).
before
(
'<div class="form-group phone-list-container landlord-form-group"><input type="tel" class="form-control phone_jia" placeholder="请输入" value="{0}"
data-addtype="landlord"
><img src="/resource/image/search_gb.png" class="input-cancel-pic"></div>'
.
stringFormatObj
({
$
(
'#landlord_tel_jia'
).
before
(
'<div class="form-group phone-list-container landlord-form-group"><input type="tel" class="form-control phone_jia" placeholder="请输入" value="{0}"><img src="/resource/image/search_gb.png" class="input-cancel-pic"></div>'
.
stringFormatObj
({
'0'
:
item
'0'
:
item
}));
}));
};
};
...
@@ -635,14 +636,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -635,14 +636,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
//
//
//
//
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_addType
=
_this
.
attr
(
'data-addtype'
);
var
_maxLen
=
5
;
var
_maxLen
=
_addType
===
'landlord'
?
3
:
5
;
var
_htmlStrTemp
=
_addType
===
'landlord'
?
''
:
'<ul></ul>'
;
if
(
_this
.
parent
().
find
(
'.phone_jia'
).
length
<
_maxLen
)
{
if
(
_this
.
parent
().
find
(
'.phone_jia'
).
length
<
_maxLen
)
{
_this
.
before
(
'<div class="form-group phone-list-container{0}"><input type="tel" class="form-control phone_jia" placeholder="请输入" {2}>{1}<img src="/resource/image/search_gb.png" class="input-cancel-pic" /></div>'
.
stringFormatObj
({
_this
.
before
(
'<div class="form-group phone-list-container{0}"><input type="tel" class="form-control phone_jia" placeholder="请输入" {2}>{1}<img src="/resource/image/search_gb.png" class="input-cancel-pic" /></div>'
.
stringFormatObj
({
'0'
:
_addType
===
'landlord'
?
' landlord-form-group'
:
''
,
'0'
:
''
,
'1'
:
_addType
===
'landlord'
?
''
:
'<ul></ul>'
,
'1'
:
'<ul></ul>'
,
'2'
:
_addType
===
'landlord'
?
'data-addtype="landlord"'
:
''
'2'
:
''
}));
}));
}
else
{
}
else
{
alert
(
'最多添加'
+
_maxLen
+
'个'
);
alert
(
'最多添加'
+
_maxLen
+
'个'
);
...
@@ -663,58 +662,55 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -663,58 +662,55 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
var
_ajaxObjTel
=
null
;
var
_ajaxObjTel
=
null
;
_doc
.
on
(
'input'
,
'.phone_jia'
,
function
()
{
_doc
.
on
(
'input'
,
'.phone_jia'
,
function
()
{
var
_this
=
$
(
this
),
var
_this
=
$
(
this
),
_thisVal
=
$
.
trim
(
_this
.
val
()),
_thisVal
=
$
.
trim
(
_this
.
val
());
_addType
=
_this
.
attr
(
'data-addtype'
);
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
if
(
_addType
!==
'landlord'
)
{
if
(
_thisVal
!=
''
)
{
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
if
(
_thisVal
!=
''
)
{
_ajaxObjTel
=
$
.
ajax
({
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
type
:
'GET'
,
_ajaxObjTel
=
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
data
:
{
url
:
'/index/getBroker_new'
,
'phone'
:
$
.
trim
(
_this
.
val
())
data
:
{
},
'phone'
:
$
.
trim
(
_this
.
val
())
timeout
:
30000
,
},
dataType
:
'json'
,
timeout
:
30000
,
beforeSend
:
function
()
{},
dataType
:
'json'
,
success
:
function
(
data
)
{
beforeSend
:
function
()
{},
if
(
typeof
data
===
'object'
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
[
'data'
].
length
>
0
)
{
if
(
data
.
code
==
200
)
{
var
_htmlTemp
=
''
;
if
(
data
[
'data'
].
length
>
0
)
{
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
var
_htmlTemp
=
''
;
_htmlTemp
+=
'<li data-id="{3}">{2}{0}-{1}<li>'
.
stringFormatObj
({
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
'0'
:
item
[
'name'
],
_htmlTemp
+=
'<li data-id="{3}">{2}{0}-{1}<li>'
.
stringFormatObj
({
'1'
:
item
[
'phone'
],
'0'
:
item
[
'name'
],
'2'
:
_this
.
parent
().
nextAll
(
'.input-add-tel'
).
data
(
'hideid'
)
?
''
:
(
item
[
'id'
]
+
'-'
),
'1'
:
item
[
'phone'
],
'3'
:
item
[
'id'
]
'2'
:
_this
.
parent
().
nextAll
(
'.input-add-tel'
).
data
(
'hideid'
)
?
''
:
(
item
[
'id'
]
+
'-'
),
'3'
:
item
[
'id'
]
});
});
});
_this
.
next
().
show
().
html
(
_htmlTemp
);
});
}
else
{
_this
.
next
().
show
().
html
(
_htmlTemp
);
_this
.
next
().
html
(
''
);
};
}
else
{
}
else
{
alert
(
data
[
'msg'
]
);
_this
.
next
().
html
(
''
);
};
};
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
data
[
'msg'
]);
};
},
error
:
function
()
{
//alert('error');
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
};
}
}
else
{
});
alert
(
'数据错误'
);
}
else
{
};
_this
.
next
().
hide
();
},
}
error
:
function
()
{
};
//alert('error');
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
}
else
{
_this
.
next
().
hide
();
}
});
});
...
@@ -890,7 +886,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -890,7 +886,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
_trafficObj
,
//交通
_trafficObj
,
//交通
_hasMovedObj
,
//已入住
_hasMovedObj
,
//已入住
_yingyeTimeObj
,
//营业时间
_yingyeTimeObj
,
//营业时间
_kaipanTimeObj
,
//开盘时间
_kaipanTimeObj
,
//开盘时间
,招商时间
_kaiyeTimeObj
,
//开业时间
_kaiyeTimeObj
,
//开业时间
_yongjinRuleObj
,
//佣金规则
_yongjinRuleObj
,
//佣金规则
_internalYoushiObj
,
//对内项目优势
_internalYoushiObj
,
//对内项目优势
...
@@ -902,6 +898,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -902,6 +898,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
console
.
log
(
'不显示给商户C端看的时候,对外名称,对外地址,对外项目优势 不需要填写'
);
console
.
log
(
'不显示给商户C端看的时候,对外名称,对外地址,对外项目优势 不需要填写'
);
}
else
if
(
item
===
_roomArea2Obj
)
{
}
else
if
(
item
===
_roomArea2Obj
)
{
if
(
_shangpuTypeObj
.
val
()
==
'0'
)
{
if
(
_shangpuTypeObj
.
val
()
==
'0'
)
{
//0为商场
if
(
_roomArea2Obj
.
val
()
==
''
)
{
if
(
_roomArea2Obj
.
val
()
==
''
)
{
alert
(
item
.
data
(
'alert'
));
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
_isBreakFlag
=
true
;
...
@@ -911,9 +908,18 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
...
@@ -911,9 +908,18 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
_isBreakFlag
=
true
;
_isBreakFlag
=
true
;
return
false
;
return
false
;
};
};
}
else
{
}
else
{
console
.
log
(
'所选为街铺时,商铺面积上限值不需要验证'
);
console
.
log
(
'所选为街铺时,商铺面积上限值不需要验证'
);
}
}
}
else
if
((
item
===
_kaipanTimeObj
)
||
(
item
===
_kaiyeTimeObj
)){
if
(
_shangpuTypeObj
.
val
()
==
'0'
)
{
//0为商场
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
return
false
;
};
}
}
else
{
}
else
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
alert
(
item
.
data
(
'alert'
));
alert
(
item
.
data
(
'alert'
));
...
...
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