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
a1ebeded
Commit
a1ebeded
authored
Sep 05, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wait
parent
c59867f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
edit.html
application/index/view/houses/edit.html
+3
-3
shop_edit.js
public/resource/js/shop_edit.js
+7
-6
No files found.
application/index/view/houses/edit.html
View file @
a1ebeded
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
</div>
</div>
<div
class=
"form-group phone-list-container panfang"
>
<div
class=
"form-group phone-list-container panfang"
>
<input
type=
"tel"
class=
"form-control phone_jia"
placeholder=
"请输入"
>
<input
type=
"tel"
class=
"form-control phone_jia"
placeholder=
"请输入"
id=
"panfang_data"
>
<ul></ul>
<ul></ul>
</div>
</div>
...
@@ -470,7 +470,7 @@
...
@@ -470,7 +470,7 @@
</div>-->
</div>-->
<!--</li>-->
<!--</li>-->
<li
class=
"list-group-item"
>
<
!--<
li class="list-group-item">
<div class="form-group full-width-100 full-pic-area">
<div class="form-group full-width-100 full-pic-area">
<label for="">列表页封面图(1张)</label>
<label for="">列表页封面图(1张)</label>
<input readonly="readonly" type="text" name="liebiao_pic_input" class="form-control" style="width: 150px !important;display:none" id="liebiao_pic_input" placeholder="请选择图片">
<input readonly="readonly" type="text" name="liebiao_pic_input" class="form-control" style="width: 150px !important;display:none" id="liebiao_pic_input" placeholder="请选择图片">
...
@@ -478,7 +478,7 @@
...
@@ -478,7 +478,7 @@
<span class="tip"></span>
<span class="tip"></span>
</div>
</div>
<ul class="img-pre-ul" id="liebiao_pic_ul"></ul>
<ul class="img-pre-ul" id="liebiao_pic_ul"></ul>
</li>
</li>
-->
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<label
for=
""
>
详情页轮播图(至少2张)
</label>
<label
for=
""
>
详情页轮播图(至少2张)
</label>
...
...
public/resource/js/shop_edit.js
View file @
a1ebeded
...
@@ -70,7 +70,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -70,7 +70,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_internalYoushiObj
=
$
(
'#internalYoushi'
),
//对内项目优势
_internalYoushiObj
=
$
(
'#internalYoushi'
),
//对内项目优势
_foreignYoushiObj
=
$
(
'#foreignYoushi'
),
//对外项目优势
_foreignYoushiObj
=
$
(
'#foreignYoushi'
),
//对外项目优势
_qianyueRuleObj
=
$
(
'#qianyueRule'
),
//签约规则
_qianyueRuleObj
=
$
(
'#qianyueRule'
),
//签约规则
_imgUploadLiebiao
=
$
(
'#liebiao_pic_ul'
),
//列表页封面图ul
//
_imgUploadLiebiao = $('#liebiao_pic_ul'), //列表页封面图ul
_imgUploadLunbo
=
$
(
'#xiangqing_pic_ul'
),
//详情页轮播图ul
_imgUploadLunbo
=
$
(
'#xiangqing_pic_ul'
),
//详情页轮播图ul
_imgUploadLouceng
=
$
(
'#louceng_pic_ul'
),
//楼层平面图ul
_imgUploadLouceng
=
$
(
'#louceng_pic_ul'
),
//楼层平面图ul
_pdfUploadFujian
=
$
(
'#fujian_ul'
),
//附件ul
_pdfUploadFujian
=
$
(
'#fujian_ul'
),
//附件ul
...
@@ -141,7 +141,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -141,7 +141,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var
_pcUserInfo
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
var
_pcUserInfo
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
console
.
log
(
_pcUserInfo
);
console
.
log
(
_pcUserInfo
);
$
(
'#p
f_tel_jia'
).
prev
().
find
(
'input
'
).
val
(
_pcUserInfo
.
id
+
'-'
+
_pcUserInfo
.
name
+
'-'
+
_pcUserInfo
.
phone
).
attr
(
'data-id'
,
_pcUserInfo
.
id
);
$
(
'#p
anfang_data
'
).
val
(
_pcUserInfo
.
id
+
'-'
+
_pcUserInfo
.
name
+
'-'
+
_pcUserInfo
.
phone
).
attr
(
'data-id'
,
_pcUserInfo
.
id
);
$
(
'#acqx_tel_jia'
).
prev
().
find
(
'input'
).
val
(
_pcUserInfo
.
id
+
'-'
+
_pcUserInfo
.
name
+
'-'
+
_pcUserInfo
.
phone
).
attr
(
'data-id'
,
_pcUserInfo
.
id
);
$
(
'#acqx_tel_jia'
).
prev
().
find
(
'input'
).
val
(
_pcUserInfo
.
id
+
'-'
+
_pcUserInfo
.
name
+
'-'
+
_pcUserInfo
.
phone
).
attr
(
'data-id'
,
_pcUserInfo
.
id
);
//获取商铺标签之后在进行其他操作
//获取商铺标签之后在进行其他操作
...
@@ -254,6 +254,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -254,6 +254,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
});
});
//房东手机号
//房东手机号
console
.
log
()
_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
);
...
@@ -356,11 +357,11 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -356,11 +357,11 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
//大讲堂调用共用方法赋值与取值
//大讲堂调用共用方法赋值与取值
setCKeditorValue
(
'da_jiang_tang'
,
_data
[
'auditorium'
]);
//大讲堂
setCKeditorValue
(
'da_jiang_tang'
,
_data
[
'auditorium'
]);
//大讲堂
//列表页封面图
//列表页封面图
if
(
_data
[
'cover'
]){
/*
if(_data['cover']){
_imgUploadLiebiao.html('<li><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
_imgUploadLiebiao.html('<li><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
'0': _urlCut + _data['cover']
'0': _urlCut + _data['cover']
}));
}));
};
};
*/
//详情页轮播图
//详情页轮播图
...
@@ -1190,11 +1191,11 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1190,11 +1191,11 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
}
}
//列表页封面图验证是否上传
//列表页封面图验证是否上传
var
_liebiaoPicObj
=
_imgUploadLiebiao
.
find
(
'li>img'
);
/*
var _liebiaoPicObj = _imgUploadLiebiao.find('li>img');
if(_liebiaoPicObj.length < 1) {
if(_liebiaoPicObj.length < 1) {
alert('列表页封面图需要上传');
alert('列表页封面图需要上传');
return false;
return false;
};
};
*/
//详情页轮播图验证是否上传
//详情页轮播图验证是否上传
var
_xiangqingPicObj
=
_imgUploadLunbo
.
find
(
'li>img'
);
var
_xiangqingPicObj
=
_imgUploadLunbo
.
find
(
'li>img'
);
if
(
_xiangqingPicObj
.
length
<
2
)
{
if
(
_xiangqingPicObj
.
length
<
2
)
{
...
...
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