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
7fe1729e
Commit
7fe1729e
authored
Apr 10, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
cad437b2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
edit.html
application/index/view/houses/edit.html
+2
-1
opensquareList.js
public/resource/js/opensquareList.js
+1
-0
shop_edit.js
public/resource/js/shop_edit.js
+11
-3
config.json
public/resource/lib/ueditor/php/config.json
+1
-1
No files found.
application/index/view/houses/edit.html
View file @
7fe1729e
...
@@ -698,7 +698,7 @@
...
@@ -698,7 +698,7 @@
<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 landlord-name-input"
value
=
"{name}"
placeholder
=
"请输入房东称呼"
/>
<
input
type
=
"text"
class
=
"form-control landlord-name-input"
value
=
"{name}"
placeholder
=
"请输入房东称呼"
/>
<
input
type
=
"tel"
class
=
"form-control landlord-phone-input"
value
=
"{phone}"
placeholder
=
"请输入房东手机号"
name
=
"landlordPhone"
data
-
alert
=
"请填写房东手机号!"
>
<
input
type
=
"tel"
class
=
"form-control landlord-phone-input"
value
=
"{phone}"
placeholder
=
"请输入房东手机号"
data
-
id
=
"{id}"
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/opensquareList.js
View file @
7fe1729e
...
@@ -190,6 +190,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
...
@@ -190,6 +190,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
_doc
.
on
(
'click'
,
'.edit_modal_btn'
,
function
(
e
){
//点击编辑
_doc
.
on
(
'click'
,
'.edit_modal_btn'
,
function
(
e
){
//点击编辑
user
.
announcementdel_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
announcementdel_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
is_add
=
0
;
user
.
is_add
=
0
;
// $('#ifram-kaipan').attr('src',ServerHostImageLiu + '/index/test');
$
(
'#ifram-kaipan'
).
attr
(
'src'
,
ServerHostImageLiu
+
'/index/test'
);
$
(
'#ifram-kaipan'
).
attr
(
'src'
,
ServerHostImageLiu
+
'/index/test'
);
user
.
text_details
();
user
.
text_details
();
...
...
public/resource/js/shop_edit.js
View file @
7fe1729e
...
@@ -266,10 +266,13 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -266,10 +266,13 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_data
[
'landlord_phone_array'
]
&&
$
.
each
(
_data
[
'landlord_phone_array'
],
function
(
i
,
item
)
{
_data
[
'landlord_phone_array'
]
&&
$
.
each
(
_data
[
'landlord_phone_array'
],
function
(
i
,
item
)
{
if
(
i
===
0
)
{
if
(
i
===
0
)
{
$
(
'#landlordPhone'
).
val
(
item
.
phone
).
prev
().
val
(
item
.
name
);
$
(
'#landlordPhone'
).
val
(
item
.
phone
).
prev
().
val
(
item
.
name
);
$
(
'#landlordPhone'
).
attr
(
'data-id'
,
item
.
id
);
//加属性 id
}
else
{
}
else
{
$
(
'#landlord_tel_jia'
).
prev
().
append
(
_tpl_landlord_phone1
.
stringFormatObj
({
$
(
'#landlord_tel_jia'
).
prev
().
append
(
_tpl_landlord_phone1
.
stringFormatObj
({
'name'
:
item
.
name
,
'name'
:
item
.
name
,
'phone'
:
item
.
phone
'phone'
:
item
.
phone
,
'id'
:
item
.
id
}));
}));
};
};
});
});
...
@@ -814,7 +817,8 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -814,7 +817,8 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
if
(
_this
.
prev
().
find
(
'.landlord-phone-input'
).
length
<
_maxLen
)
{
if
(
_this
.
prev
().
find
(
'.landlord-phone-input'
).
length
<
_maxLen
)
{
_this
.
prev
().
append
(
_tpl_landlord_phone1
.
stringFormatObj
({
_this
.
prev
().
append
(
_tpl_landlord_phone1
.
stringFormatObj
({
'name'
:
''
,
'name'
:
''
,
'phone'
:
''
'phone'
:
''
,
'id'
:
''
}));
}));
}
else
{
}
else
{
alert
(
'最多添加'
+
_maxLen
+
'个'
);
alert
(
'最多添加'
+
_maxLen
+
'个'
);
...
@@ -1076,11 +1080,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1076,11 +1080,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
$
.
each
(
$
(
'#li_landlord_phone_input>div>div'
),
function
(
i
,
item
)
{
$
.
each
(
$
(
'#li_landlord_phone_input>div>div'
),
function
(
i
,
item
)
{
var
_valTemp1
=
$
.
trim
(
$
(
item
).
find
(
'.landlord-name-input'
).
val
());
var
_valTemp1
=
$
.
trim
(
$
(
item
).
find
(
'.landlord-name-input'
).
val
());
var
_valTemp2
=
$
.
trim
(
$
(
item
).
find
(
'.landlord-phone-input'
).
val
());
var
_valTemp2
=
$
.
trim
(
$
(
item
).
find
(
'.landlord-phone-input'
).
val
());
var
_valTemp3
=
$
.
trim
(
$
(
item
).
find
(
'.landlord-phone-input'
).
attr
(
'data-id'
));
if
((
_valTemp1
!==
''
)
&&
(
_valTemp2
!==
''
))
{
if
((
_valTemp1
!==
''
)
&&
(
_valTemp2
!==
''
))
{
if
(
is_mobile
(
_valTemp2
))
{
if
(
is_mobile
(
_valTemp2
))
{
_landlordPhoneArr
.
push
({
_landlordPhoneArr
.
push
({
'name'
:
_valTemp1
,
'name'
:
_valTemp1
,
'phone'
:
_valTemp2
'phone'
:
_valTemp2
,
'id'
:
_valTemp3
});
});
}
else
{
}
else
{
alert
(
'填写的第'
+
(
i
+
1
)
+
'个房东信息缺少或填写有误'
);
alert
(
'填写的第'
+
(
i
+
1
)
+
'个房东信息缺少或填写有误'
);
...
...
public/resource/lib/ueditor/php/config.json
View file @
7fe1729e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
"imageCompressEnable"
:
true
,
/*
是否压缩图片
,
默认是
true
*/
"imageCompressEnable"
:
true
,
/*
是否压缩图片
,
默认是
true
*/
"imageCompressBorder"
:
1600
,
/*
图片压缩最长边限制
*/
"imageCompressBorder"
:
1600
,
/*
图片压缩最长边限制
*/
"imageInsertAlign"
:
"none"
,
/*
插入的图片浮动方式
*/
"imageInsertAlign"
:
"none"
,
/*
插入的图片浮动方式
*/
"imageUrlPrefix"
:
""
,
/*
图片访问路径前缀
*/
"imageUrlPrefix"
:
"
https://pre2.tonglianjituan.com
"
,
/*
图片访问路径前缀
*/
"imagePathFormat"
:
"/resource/lib/Attachments/images/{yyyy}{mm}{dd}/{time}{rand:6}"
,
/*
上传保存路径
,
可以自定义保存路径和文件名格式
*/
"imagePathFormat"
:
"/resource/lib/Attachments/images/{yyyy}{mm}{dd}/{time}{rand:6}"
,
/*
上传保存路径
,
可以自定义保存路径和文件名格式
*/
/*
{
filename
}
会替换成原文件名
,
配置这项需要注意中文乱码问题
*/
/*
{
filename
}
会替换成原文件名
,
配置这项需要注意中文乱码问题
*/
/*
{
rand
:
6
}
会替换成随机数
,
后面的数字是随机数的位数
*/
/*
{
rand
:
6
}
会替换成随机数
,
后面的数字是随机数的位数
*/
...
...
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