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
b46e643a
Commit
b46e643a
authored
Jul 22, 2020
by
秦海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
19d8f20e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
12 deletions
+5
-12
add.js
client/pages/activity/add/add.js
+5
-12
list.acss
client/pages/activity/listBackup/list.acss
+0
-0
list.axml
client/pages/activity/listBackup/list.axml
+0
-0
list.js
client/pages/activity/listBackup/list.js
+0
-0
list.json
client/pages/activity/listBackup/list.json
+0
-0
No files found.
client/pages/activity/add/add.js
View file @
b46e643a
import
moment
from
'moment'
import
schema
from
'async-validator'
;
import
schema
from
'async-validator'
import
{
methods
}
from
'./mixins'
import
{
descriptor
,
formatValidator
}
from
'./validate'
;
}
from
'./validate'
import
{
getActivityDetail
,
saveActivityInfo
,
generateRule
}
from
'/api'
import
{
addFloat
}
from
'/utils/helper'
const
THANKS_TYPE
=
5
var
validator
=
new
schema
(
descriptor
);
var
validator
=
new
schema
(
descriptor
)
// {
// type: "beMembership",//会员
...
...
@@ -214,18 +214,11 @@ Component({
console
.
log
(
this
.
data
,
'this.data'
)
const
isValidForm
=
await
this
.
validateForm
(
this
.
data
);
if
(
!
isValidForm
)
return
;
console
.
log
(
'成功'
)
const
params
=
this
.
formatActivityParams
(
this
.
data
)
console
.
log
(
params
,
'params'
)
const
{
success
,
message
}
=
await
saveActivityInfo
(
params
)
if
(
success
)
{
...
...
client/pages/activity/listBack/list.acss
→
client/pages/activity/listBack
up
/list.acss
View file @
b46e643a
File moved
client/pages/activity/listBack/list.axml
→
client/pages/activity/listBack
up
/list.axml
View file @
b46e643a
File moved
client/pages/activity/listBack/list.js
→
client/pages/activity/listBack
up
/list.js
View file @
b46e643a
File moved
client/pages/activity/listBack/list.json
→
client/pages/activity/listBack
up
/list.json
View file @
b46e643a
File moved
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