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
959a2c3b
Commit
959a2c3b
authored
Sep 05, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c1348117
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
shop_edit.js
public/resource/js/shop_edit.js
+6
-2
No files found.
public/resource/js/shop_edit.js
View file @
959a2c3b
...
@@ -279,7 +279,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -279,7 +279,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
tag
=
""
;
var
tag
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
target
){
$
.
each
(
data
.
data
,
function
(
i
,
target
){
tag
+=
'<option value="'
+
target
.
id
+
'">'
+
target
.
name
+
'</option>'
if
(
target
.
id
==
_data
[
'business_district_id'
]){
tag
+=
'<option value="'
+
target
.
id
+
'" selected>'
+
target
.
name
+
'</option>'
}
else
{
tag
+=
'<option value="'
+
target
.
id
+
'">'
+
target
.
name
+
'</option>'
}
});
});
$
(
'#business_rong'
).
append
(
tag
);
$
(
'#business_rong'
).
append
(
tag
);
user
.
initShopRong
=
false
;
user
.
initShopRong
=
false
;
...
@@ -350,7 +355,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -350,7 +355,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
//大讲堂调用共用方法赋值与取值
//大讲堂调用共用方法赋值与取值
setCKeditorValue
(
'da_jiang_tang'
,
_data
[
'auditorium'
]);
//大讲堂
setCKeditorValue
(
'da_jiang_tang'
,
_data
[
'auditorium'
]);
//大讲堂
$
(
'#business_rong'
).
val
(
_data
[
'business_district_id'
]);
//列表页封面图
//列表页封面图
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
({
...
...
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