Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
2c7aca0a
Commit
2c7aca0a
authored
Jul 23, 2020
by
秦海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cb09d474
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
items-dialog.js
client/components/dialog/items-dialog/items-dialog.js
+1
-0
task-dialog.js
client/components/dialog/task-dialog/task-dialog.js
+3
-2
tb-rule.js
client/components/form/tb-rule/tb-rule.js
+1
-1
No files found.
client/components/dialog/items-dialog/items-dialog.js
View file @
2c7aca0a
...
@@ -118,6 +118,7 @@ Component({
...
@@ -118,6 +118,7 @@ Component({
type
:
"fail"
,
type
:
"fail"
,
content
:
"最多选择20个宝贝"
,
content
:
"最多选择20个宝贝"
,
});
});
return
;
}
}
const
{
item
}
=
e
.
target
.
dataset
;
const
{
item
}
=
e
.
target
.
dataset
;
...
...
client/components/dialog/task-dialog/task-dialog.js
View file @
2c7aca0a
const
{
passUrlList
}
=
require
(
'../../../cmpUtils/const'
);
const
{
passUrlList
}
=
require
(
'../../../cmpUtils/const'
);
import
{
validateRangeNumber
}
from
"../../../utils/validate"
;
Component
({
Component
({
mixins
:
[],
mixins
:
[],
...
@@ -87,7 +88,7 @@ Component({
...
@@ -87,7 +88,7 @@ Component({
},
},
onSaveTask
()
{
onSaveTask
()
{
const
{
title
,
link
,
value
,
taskRateType
,
times
,
itemIds
}
=
this
.
data
;
const
{
title
,
link
,
value
,
taskRateType
,
times
,
itemIds
}
=
this
.
data
;
if
(
!
title
)
{
if
(
!
title
.
trim
()
)
{
my
.
showToast
({
my
.
showToast
({
type
:
'fail'
,
type
:
'fail'
,
content
:
'请输入任务标题'
content
:
'请输入任务标题'
...
@@ -111,7 +112,7 @@ Component({
...
@@ -111,7 +112,7 @@ Component({
return
;
return
;
}
}
if
(
!
value
||
!
Number
.
isInteger
(
+
value
))
{
if
(
!
value
||
!
validateRangeNumber
(
value
,
[
1
,
999
]
))
{
my
.
showToast
({
my
.
showToast
({
type
:
'fail'
,
type
:
'fail'
,
content
:
'请输入正确的任务奖励'
content
:
'请输入正确的任务奖励'
...
...
client/components/form/tb-rule/tb-rule.js
View file @
2c7aca0a
...
@@ -12,7 +12,7 @@ Component({
...
@@ -12,7 +12,7 @@ Component({
didUpdate
()
{},
didUpdate
()
{},
methods
:
{
methods
:
{
onChange
(
e
)
{
onChange
(
e
)
{
this
.
props
.
onChange
&&
this
.
props
.
onChange
(
e
.
detail
.
value
,
e
.
target
.
dataset
.
name
);
this
.
props
.
onChange
&&
this
.
props
.
onChange
(
e
);
},
},
async
handleTapGeneralRule
()
{
async
handleTapGeneralRule
()
{
console
.
log
(
this
.
props
.
generateRuleInfo
,
'this.props.generateRuleInfo'
)
console
.
log
(
this
.
props
.
generateRuleInfo
,
'this.props.generateRuleInfo'
)
...
...
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