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
fd00fe14
Commit
fd00fe14
authored
Mar 15, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑列表 优化
parent
2ff677a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
redEnvelopeList.js
public/resource/js/redEnvelopeList.js
+7
-2
No files found.
public/resource/js/redEnvelopeList.js
View file @
fd00fe14
...
@@ -135,30 +135,35 @@ define (['doT', 'text!temp/red_envelope_list_template_tpl.html', 'css!style/home
...
@@ -135,30 +135,35 @@ define (['doT', 'text!temp/red_envelope_list_template_tpl.html', 'css!style/home
$
(
"input[name='return_action'][value='"
+
data
.
data
.
list
[
0
].
return_action
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name='return_action'][value='"
+
data
.
data
.
list
[
0
].
return_action
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
'#activity_start_date'
).
val
(
data
.
data
.
list
[
0
].
activity_start_time
);
$
(
'#activity_start_date'
).
val
(
data
.
data
.
list
[
0
].
activity_start_time
);
$
(
'#activity_end_date'
).
val
(
data
.
data
.
list
[
0
].
activity_end_time
);
$
(
'#activity_end_date'
).
val
(
data
.
data
.
list
[
0
].
activity_end_time
);
$
(
'#activity-day'
).
val
(
data
.
data
.
list
[
0
].
use_period
);
$
(
'#activity-title'
).
val
(
data
.
data
.
list
[
0
].
title
);
$
(
'#activity-title'
).
val
(
data
.
data
.
list
[
0
].
title
);
$
(
'#activity-bag-num'
).
val
(
data
.
data
.
list
[
0
].
available
);
$
(
'#activity-rule'
).
val
(
data
.
data
.
list
[
0
].
activity_rule
);
$
(
'#activity-rule'
).
val
(
data
.
data
.
list
[
0
].
activity_rule
);
//奖励的有效期
//奖励的有效期
if
(
data
.
data
.
list
[
0
].
use_period
*
1
==
-
1
){
if
(
data
.
data
.
list
[
0
].
use_period
*
1
==
-
1
){
$
(
"input[name='award-period'][value='"
+
-
1
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name='award-period'][value='"
+
-
1
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
'#activity-day'
).
val
(
0
);
}
else
{
}
else
{
$
(
"input[name='award-period'][value='"
+
0
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name='award-period'][value='"
+
0
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
'#activity-day'
).
val
(
data
.
data
.
list
[
0
].
use_period
);
}
}
//活动发放总次数
//活动发放总次数
if
(
data
.
data
.
list
[
0
].
total
*
1
==
-
1
){
if
(
data
.
data
.
list
[
0
].
total
*
1
==
-
1
){
$
(
"input[name='activity-total'][value='"
+
-
1
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name='activity-total'][value='"
+
-
1
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
'#activity-total-num'
).
val
(
0
);
}
else
{
}
else
{
$
(
"input[name='activity-total'][value='"
+
0
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name='activity-total'][value='"
+
0
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
'#activity-total-num'
).
val
(
data
.
data
.
list
[
0
].
total
);
}
}
//用户可得红包数
//用户可得红包数
if
(
data
.
data
.
list
[
0
].
available
*
1
==
-
1
){
if
(
data
.
data
.
list
[
0
].
available
*
1
==
-
1
){
$
(
"input[name='activity-total-bag'][value='"
+
-
1
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name='activity-total-bag'][value='"
+
-
1
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
'#activity-bag-num'
).
val
(
0
);
}
else
{
}
else
{
$
(
"input[name='activity-total-bag'][value='"
+
0
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
"input[name='activity-total-bag'][value='"
+
0
+
"']"
).
prop
(
"checked"
,
"checked"
);
$
(
'#activity-bag-num'
).
val
(
data
.
data
.
list
[
0
].
available
);
}
}
}
}
...
...
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