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
5982e164
Commit
5982e164
authored
Nov 20, 2020
by
zhaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
ef344f4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
task-dialog.axml
client/components/dialog/task-dialog/task-dialog.axml
+1
-1
task-dialog.js
client/components/dialog/task-dialog/task-dialog.js
+14
-14
add.js
client/pages/activity/add/add.js
+2
-2
No files found.
client/components/dialog/task-dialog/task-dialog.axml
View file @
5982e164
...
...
@@ -16,7 +16,7 @@
<radio size="small" value="{{2}}">每天限次</radio>
<radio size="small" value="{{3}}">不限次</radio>
</radio-group> -->
{{frequency}}
<view class="item-txt">{{frequency}}</view>
</form-item>
<form-item label="任务奖励">
<!--<input onChange="onChange" data-name="value" defaultValue="{{value}}" name="value" addonTextAfter="{{unit}}" placeholder="1-999" maxLength="{{3}}"/> -->
...
...
client/components/dialog/task-dialog/task-dialog.js
View file @
5982e164
...
...
@@ -89,13 +89,13 @@ Component({
},
onSaveTask
()
{
const
{
title
,
link
,
value
,
taskRateType
,
times
,
itemIds
}
=
this
.
data
;
if
(
!
title
.
trim
())
{
my
.
showToast
({
type
:
'fail'
,
content
:
'请输入任务标题'
})
return
;
}
//
if(!title.trim()) {
//
my.showToast({
//
type: 'fail',
//
content: '请输入任务标题'
//
})
//
return;
//
}
if
(
this
.
props
.
hasLink
&&
!
this
.
validateLink
(
link
))
{
my
.
showToast
({
...
...
@@ -113,13 +113,13 @@ Component({
return
;
}
if
(
!
value
||
!
validateRangeNumber
(
value
,
[
1
,
999
]))
{
my
.
showToast
({
type
:
'fail'
,
content
:
'请输入正确的任务奖励'
})
return
;
}
//
if(!value || !validateRangeNumber(value, [1, 999])) {
//
my.showToast({
//
type: 'fail',
//
content: '请输入正确的任务奖励'
//
})
//
return;
//
}
let
taskData
=
{
...
this
.
props
.
taskData
,
title
,
link
,
value
,
taskRateType
,
times
,
itemIds
,
type
:
this
.
props
.
type
};
...
...
client/pages/activity/add/add.js
View file @
5982e164
...
...
@@ -181,10 +181,10 @@ Component({
const
isValidForm
=
await
this
.
validateForm
(
this
.
data
);
if
(
!
isValidForm
)
return
;
console
.
log
(
'
成功
'
)
console
.
log
(
'
表演校验通过
'
)
const
params
=
this
.
formatActivityParams
(
this
.
data
)
console
.
log
(
params
,
'params'
)
console
.
log
(
'最后提交的数据'
,
params
)
if
(
this
.
data
.
isPostParams
)
{
this
.
setData
({
isPostParams
:
false
...
...
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