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
cdb797a6
Commit
cdb797a6
authored
Jul 17, 2020
by
秦海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt
parent
f59315f7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
task-dialog.js
client/components/dialog/task-dialog/task-dialog.js
+1
-1
add.js
client/pages/activity/add/add.js
+2
-5
mini.project.json
mini.project.json
+6
-0
No files found.
client/components/dialog/task-dialog/task-dialog.js
View file @
cdb797a6
...
@@ -103,7 +103,7 @@ Component({
...
@@ -103,7 +103,7 @@ Component({
return
;
return
;
}
}
if
(
this
.
props
.
hasItems
&&
itemIds
)
{
if
(
this
.
props
.
hasItems
&&
!
itemIds
)
{
my
.
showToast
({
my
.
showToast
({
type
:
'fail'
,
type
:
'fail'
,
content
:
'请输入选择商品'
content
:
'请输入选择商品'
...
...
client/pages/activity/add/add.js
View file @
cdb797a6
...
@@ -92,7 +92,6 @@ Component({
...
@@ -92,7 +92,6 @@ Component({
},
},
beMembership
:
{
beMembership
:
{
value
:
''
,
value
:
''
,
checked
:
false
},
},
sign
:
{
sign
:
{
value
:
''
value
:
''
...
@@ -106,7 +105,6 @@ Component({
...
@@ -106,7 +105,6 @@ Component({
taskRateType
:
1
,
// 任务频率类型
taskRateType
:
1
,
// 任务频率类型
times
:
3
,
// 任务为每日限次次数值
times
:
3
,
// 任务为每日限次次数值
value
:
''
,
// 任务奖励
value
:
''
,
// 任务奖励
checked
:
false
},
},
browseGoods
:
{
browseGoods
:
{
title
:
"寻宝屋商品"
,
title
:
"寻宝屋商品"
,
...
@@ -115,7 +113,6 @@ Component({
...
@@ -115,7 +113,6 @@ Component({
value
:
''
,
value
:
''
,
link
:
''
,
link
:
''
,
itemIds
:
''
,
itemIds
:
''
,
checked
:
true
},
},
collectGoods
:
{
collectGoods
:
{
title
:
""
,
title
:
""
,
...
@@ -130,7 +127,6 @@ Component({
...
@@ -130,7 +127,6 @@ Component({
link
:
""
,
//跳转链接
link
:
""
,
//跳转链接
times
:
3
,
times
:
3
,
value
:
''
,
value
:
''
,
checked
:
false
},
},
},
},
image
:
''
,
image
:
''
,
...
@@ -320,6 +316,8 @@ Component({
...
@@ -320,6 +316,8 @@ Component({
// 提交信息
// 提交信息
async
onSubmit
()
{
async
onSubmit
()
{
console
.
log
(
this
.
data
)
const
isValidForm
=
await
this
.
validateForm
(
this
.
data
);
const
isValidForm
=
await
this
.
validateForm
(
this
.
data
);
// console.log(this.formatActivityParams(this.data))
// console.log(this.formatActivityParams(this.data))
...
@@ -380,7 +378,6 @@ Component({
...
@@ -380,7 +378,6 @@ Component({
formatTaskMapToList
(
taskMap
)
{
formatTaskMapToList
(
taskMap
)
{
let
list
=
[];
let
list
=
[];
Object
.
keys
(
taskMap
).
forEach
(
type
=>
{
Object
.
keys
(
taskMap
).
forEach
(
type
=>
{
if
(
!
taskMap
[
type
].
checked
)
return
;
let
task
=
{
let
task
=
{
...
taskMap
[
type
],
...
taskMap
[
type
],
type
type
...
...
mini.project.json
0 → 100644
View file @
cdb797a6
{
"cloud"
:
{
"type"
:
"CLOUDAPP"
},
"miniprogramRoot"
:
"client"
}
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