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
Hide 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({
return
;
}
if
(
this
.
props
.
hasItems
&&
itemIds
)
{
if
(
this
.
props
.
hasItems
&&
!
itemIds
)
{
my
.
showToast
({
type
:
'fail'
,
content
:
'请输入选择商品'
...
...
client/pages/activity/add/add.js
View file @
cdb797a6
...
...
@@ -92,7 +92,6 @@ Component({
},
beMembership
:
{
value
:
''
,
checked
:
false
},
sign
:
{
value
:
''
...
...
@@ -106,7 +105,6 @@ Component({
taskRateType
:
1
,
// 任务频率类型
times
:
3
,
// 任务为每日限次次数值
value
:
''
,
// 任务奖励
checked
:
false
},
browseGoods
:
{
title
:
"寻宝屋商品"
,
...
...
@@ -115,7 +113,6 @@ Component({
value
:
''
,
link
:
''
,
itemIds
:
''
,
checked
:
true
},
collectGoods
:
{
title
:
""
,
...
...
@@ -130,7 +127,6 @@ Component({
link
:
""
,
//跳转链接
times
:
3
,
value
:
''
,
checked
:
false
},
},
image
:
''
,
...
...
@@ -320,6 +316,8 @@ Component({
// 提交信息
async
onSubmit
()
{
console
.
log
(
this
.
data
)
const
isValidForm
=
await
this
.
validateForm
(
this
.
data
);
// console.log(this.formatActivityParams(this.data))
...
...
@@ -380,7 +378,6 @@ Component({
formatTaskMapToList
(
taskMap
)
{
let
list
=
[];
Object
.
keys
(
taskMap
).
forEach
(
type
=>
{
if
(
!
taskMap
[
type
].
checked
)
return
;
let
task
=
{
...
taskMap
[
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