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
247ef923
Commit
247ef923
authored
Sep 05, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
盘方修改
parent
17221d3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
shop_edit.js
public/resource/js/shop_edit.js
+5
-3
No files found.
public/resource/js/shop_edit.js
View file @
247ef923
...
@@ -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
);
$
(
'#panfang_data'
).
val
(
_pcUserInfo
.
id
+
'-'
+
_pcUserInfo
.
name
+
'-'
+
_pcUserInfo
.
phone
).
attr
(
'data-id'
,
_pcUserInfo
.
id
);
//
$('#panfang_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
);
//获取商铺标签之后在进行其他操作
//获取商铺标签之后在进行其他操作
...
@@ -224,10 +224,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -224,10 +224,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
if
(
_panfangNum
==
0
)
{
if
(
_panfangNum
==
0
)
{
$
(
'#pf_tel_jia'
).
prev
().
find
(
'input'
).
val
(
_data
[
'dish_name'
][
i
]).
attr
(
'data-id'
,
_data
[
'dish_name'
][
i
].
split
(
'-'
)[
0
]);
$
(
'#pf_tel_jia'
).
prev
().
find
(
'input'
).
val
(
_data
[
'dish_name'
][
i
]).
attr
(
'data-id'
,
_data
[
'dish_name'
][
i
].
split
(
'-'
)[
0
]);
}
else
{
}
else
{
$
(
'#pf_tel_jia'
).
before
(
'<div class="form-group phone-list-container"><input type="tel" class="form-control phone_jia" placeholder="请输入" value="{0}" data-id="{1}"><ul></ul><img src="/resource/image/search_gb.png" class="input-cancel-pic panfang-del-id"></div>'
.
stringFormatObj
({
/*
$('#pf_tel_jia').before('<div class="form-group phone-list-container"><input type="tel" class="form-control phone_jia" placeholder="请输入" value="{0}" data-id="{1}"><ul></ul><img src="/resource/image/search_gb.png" class="input-cancel-pic panfang-del-id"></div>'.stringFormatObj({
'0': _data['dish_name'][i],
'0': _data['dish_name'][i],
'1': _data['dish_name'][i].split('-')[0]
'1': _data['dish_name'][i].split('-')[0]
}));
}));*/
$
(
'#panfang_data'
).
val
(
_data
[
'dish_name'
][
i
]).
attr
(
'data-id'
,
_data
[
'dish_name'
][
i
].
split
(
'-'
)[
0
]);
};
};
_panfangNum
++
;
_panfangNum
++
;
};
};
...
...
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