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
045fd975
Commit
045fd975
authored
Jan 30, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加上传pdf权限
parent
64d0004b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
20 deletions
+89
-20
edit.html
application/index/view/houses/edit.html
+44
-1
edit.js
public/resource/js/edit.js
+44
-18
config.php
public/resource/lib/Ckfinder/config.php
+1
-1
No files found.
application/index/view/houses/edit.html
View file @
045fd975
...
...
@@ -305,6 +305,7 @@
<div
class=
"form-group"
>
<label
class=
""
for=
"price"
>
月租均价
</label>
<div
class=
"input-group"
>
<div
class=
"input-group-addon"
style=
"display: none;"
>
营业额扣点
</div>
<input
type=
"number"
class=
"form-control input-100-width"
name=
"moonPrice"
id=
"moonPrice"
placeholder=
"请输入"
data-alert=
"请填写月租均价!"
>
<div
class=
"input-group-addon"
>
元/月
</div>
</div>
...
...
@@ -358,7 +359,7 @@
<select
class=
"form-control"
id=
"city_internal"
name=
"city_internal"
></select>
<select
class=
"form-control"
id=
"disc_internal"
name=
"disc_internal"
></select>
<input
type=
"text"
class=
"form-control"
id=
"address_internal"
placeholder=
"请输入详细地址"
data-alert=
"请填写对内详细地址!"
>
<button
type=
"button"
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
id=
"position_btn"
>
定位
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
id=
"position_btn"
>
选择地址
定位
</button>
</div>
<div
class=
"form-group"
>
...
...
@@ -524,6 +525,48 @@
<button
class=
"btn btn-default"
id=
"liebiao_pic_btn"
type=
"button"
>
选择图片
</button>
<span
class=
"tip"
></span>
</div>
<style
type=
"text/css"
>
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
/*width: 100%;*/
}
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
padding-top
:
10px
;
}
.img-pre-ul
>
li
>
img
{
float
:
left
;
width
:
210px
;
height
:
140px
;
}
.img-pre-ul
>
li
>
a
{
float
:
left
;
width
:
210px
;
height
:
30px
;
line-height
:
30px
;
text-align
:
center
;
}
</style>
<ul
class=
"img-pre-ul"
>
<li>
<img
src=
"http://app.tl_estate.com/resource/lib/Attachments/images/banner/Koala.jpg"
/>
<a
href=
"javascript:;"
>
删除
</a>
</li>
<li>
<img
src=
"http://app.tl_estate.com/resource/lib/Attachments/images/banner/Koala.jpg"
/>
<a
href=
"javascript:;"
>
删除
</a>
</li>
<li>
<img
src=
"http://app.tl_estate.com/resource/lib/Attachments/images/banner/Koala.jpg"
/>
<a
href=
"javascript:;"
>
删除
</a>
</li>
</ul>
</li>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
...
...
public/resource/js/edit.js
View file @
045fd975
...
...
@@ -7,12 +7,12 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
event
:
function
()
{
//
$("#liebiao_pic_btn").click(function(){
//
BrowseServer ('liebiao_pic_pre', function(url){
//
console.log(url);
//
//$("#sss").attr("src",url);
//
});
//
});
$
(
"#liebiao_pic_btn"
).
click
(
function
(){
BrowseServer
(
'liebiao_pic_pre'
,
function
(
url
){
console
.
log
(
url
);
//$("#sss").attr("src",url);
});
});
var
_id
=
getUrlParam
(
'id'
);
...
...
@@ -364,7 +364,6 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
_doc
.
on
(
'input'
,
'.phone_jia'
,
function
(){
var
_this
=
$
(
this
);
var
_thisVal
=
$
.
trim
(
_this
.
val
());
console
.
log
(
_thisVal
);
if
(
_thisVal
!=
''
){
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
_ajaxObjTel
=
$
.
ajax
({
...
...
@@ -415,6 +414,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
/***************************************************电话号码输入相关交互处理***************************************************/
/*********************************************是否独家************************************************************/
//是否独家选择变化事件
_exclusiveTypeObj
.
change
(
function
(){
if
(
$
(
this
).
val
()
==
'1'
){
$
(
'#li_dujia_area'
).
slideDown
().
css
(
'display'
,
'block'
);
...
...
@@ -423,6 +423,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
}
});
//商铺类型选择变化事件
_shangpuTypeObj
.
change
(
function
(){
if
(
$
(
this
).
val
()
==
'1'
){
_jinchangPriceObj
.
parent
().
prev
().
html
(
'转让费'
);
...
...
@@ -433,6 +434,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
};
});
//是否显示给C端用户看变化事件
_showCdObj
.
change
(
function
(){
if
(
$
(
this
).
val
()
==
'1'
){
//不显示给C端
...
...
@@ -443,12 +445,30 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
};
});
//月租均价文件变化事件
_zujinTypeObj
.
change
(
function
(){
var
_this
=
$
(
this
);
if
(
_this
.
val
()
==
'1'
){
_moonPriceObj
.
prev
().
hide
();
_moonPriceObj
.
next
().
html
(
'元/月'
);
}
else
if
(
_this
.
val
()
==
'2'
){
_moonPriceObj
.
prev
().
show
();
_moonPriceObj
.
next
().
html
(
'%'
);
}
else
if
(
_this
.
val
()
==
'3'
){
_moonPriceObj
.
prev
().
hide
();
_moonPriceObj
.
next
().
html
(
'元/天/㎡'
);
}
else
{
console
.
log
(
'other value租金模式'
);
};
});
$
(
'#saveBtn'
).
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
//多个input输入框验证
//多个input输入框验证
标记
var
_isBreakFlag
=
false
;
//是否给商户公开,是否独家验证是否选择
$
.
each
([
_showCdObj
,
//显示给C端用户看
_exclusiveTypeObj
,
//是否独家
...
...
@@ -463,7 +483,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
return
false
;
};
//
独家里的选项验证
//
如果选择了独家,验证独家代理有效期,独家方是否填写
if
(
_exclusiveTypeObj
.
val
()
==
'1'
){
if
(
_exclusiveDate1Obj
.
val
()
==
''
||
_exclusiveDate2Obj
.
val
()
==
''
){
alert
(
'请填写独家代理有效期!'
);
...
...
@@ -475,7 +495,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
};
};
//
案场联系人
//
验证案场联系人是否填写
var
_acrPhoneArr
=
[];
$
.
each
(
$
(
'#li_acr_phone input'
),
function
(
i
,
item
)
{
var
_id
=
item
.
getAttribute
(
'data-id'
);
...
...
@@ -489,7 +509,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
return
false
;
};
//
盘方
//
验证盘方是否填写
var
_pfPhoneArr
=
[];
$
.
each
(
$
(
'#li_pf_phone input'
),
function
(
i
,
item
)
{
var
_id
=
item
.
getAttribute
(
'data-id'
);
...
...
@@ -502,7 +522,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
return
false
;
};
//
案场权限人
//
验证案场权限人是否填写
var
_acqxPhoneArr
=
[];
$
.
each
(
$
(
'#li_acqx_phone input'
),
function
(
i
,
item
)
{
var
_id
=
item
.
getAttribute
(
'data-id'
);
...
...
@@ -515,6 +535,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
return
false
;
};
//多个input输入框验证
$
.
each
([
_internalNameObj
,
//对内商铺名称
_foreignNameObj
,
//对外商铺名称
...
...
@@ -542,11 +563,15 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
_qianyueRuleObj
,
//签约规则
_weilouLinkObj
//微楼书
],
function
(
i
,
item
)
{
if
((
item
===
_foreignNameObj
||
item
===
_addressExternalObj
||
item
===
_foreignYoushiObj
)
&&
(
_showCdObj
.
val
()
==
'1'
)){
console
.
log
(
'vvff'
);
}
else
{
if
(
$
.
trim
(
item
.
val
())
==
''
){
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
return
false
;
};
}
});
if
(
_isBreakFlag
){
return
false
;
...
...
@@ -583,11 +608,9 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
'shop_type'
:
_shangpuTypeObj
.
val
(),
'is_show'
:
_showCdObj
.
val
(),
'is_exclusive_type'
:
_exclusiveTypeObj
.
val
(),
//'phone': _acrPhoneArr,
'agent_dish'
:
_pfPhoneArr
.
join
(
','
),
'agent_data'
:
_acqxPhoneArr
.
join
(
','
),
'internal_title'
:
$
.
trim
(
_internalNameObj
.
val
()),
'external_title'
:
$
.
trim
(
_foreignNameObj
.
val
()),
'landlord_phone'
:
$
.
trim
(
_landlordPhoneObj
.
val
()),
'rent_type'
:
_zujinTypeObj
.
val
(),
'rent_price'
:
_moonPriceObj
.
val
(),
...
...
@@ -601,10 +624,9 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
'province_code'
:
_provinceInternalObj
.
val
(),
'city_code'
:
_cityInternalObj
.
val
(),
'disc_code'
:
_discInternalObj
.
val
(),
'
ex
ternal_address'
:
$
.
trim
(
_addressInternalObj
.
val
()),
'
in
ternal_address'
:
$
.
trim
(
_addressInternalObj
.
val
()),
'longitude'
:
_longitudeObj
.
val
(),
'latitude'
:
_latitudeObj
.
val
(),
'external_address'
:
$
.
trim
(
_addressExternalObj
.
val
()),
'traffic'
:
$
.
trim
(
_trafficObj
.
val
()),
'enter_num'
:
$
.
trim
(
_hasMovedObj
.
val
()),
'do_business_date'
:
$
.
trim
(
_yingyeTimeObj
.
val
()),
...
...
@@ -613,13 +635,17 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
'is_has_gas'
:
_hasGasObj
.
val
(),
'fee_rule'
:
$
.
trim
(
_yongjinRuleObj
.
val
()),
'internal_item_advantage'
:
$
.
trim
(
_internalYoushiObj
.
val
()),
'external_item_advantage'
:
$
.
trim
(
_foreignYoushiObj
.
val
()),
'singn_rule'
:
$
.
trim
(
_qianyueRuleObj
.
val
()),
'tiny_brochure_url'
:
$
.
trim
(
_weilouLinkObj
.
val
()),
'auditorium'
:
_dajiangtangVal
,
'industry_type'
:
'餐饮美食,百货零售'
,
'shop_sign'
:
'临近地铁,临街旺铺,无进场费'
};
if
(
_showCdObj
.
val
()
==
'0'
){
_data
[
'external_title'
]
=
$
.
trim
(
_foreignNameObj
.
val
());
_data
[
'external_address'
]
=
$
.
trim
(
_addressExternalObj
.
val
());
_data
[
'external_item_advantage'
]
=
$
.
trim
(
_foreignYoushiObj
.
val
());
};
if
(
_exclusiveTypeObj
.
val
()
==
'1'
){
_data
[
'agent_start_time'
]
=
_exclusiveDate1Obj
.
val
();
_data
[
'agent_end_time'
]
=
_exclusiveDate2Obj
.
val
();
...
...
@@ -639,7 +665,7 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
alert
(
'添加成功!'
);
}
else
{
alert
(
data
[
'msg'
]);
};
...
...
public/resource/lib/Ckfinder/config.php
View file @
045fd975
...
...
@@ -243,7 +243,7 @@ $config['ResourceType'][] = Array(
'url'
=>
$baseUrl
.
'images'
,
'directory'
=>
$baseDir
.
'images'
,
'maxSize'
=>
0
,
'allowedExtensions'
=>
'bmp,gif,jpeg,jpg,png,txt,apk'
,
'allowedExtensions'
=>
'bmp,gif,jpeg,jpg,png,txt,apk
,pdf
'
,
'deniedExtensions'
=>
''
);
/*$config['ResourceType'][] = Array(
...
...
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