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
e97c5787
Commit
e97c5787
authored
May 28, 2021
by
杨梦雅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config
parent
080e4ac8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
items-config.axml
client/components/task/items-config/items-config.axml
+2
-2
add.js
client/pages/activity/add/add.js
+13
-1
No files found.
client/components/task/items-config/items-config.axml
View file @
e97c5787
<view class="items-config">
<view class="items-config">
<text
style="font-size: 12px">{{itemIds ? `已选择${(itemIds + '').split(',').length}个商品` : ''
}} </text>
<text
a:if="{{itemIds}}" style="font-size: 12px; margin-right: 10px">{{`已选择${(itemIds + '').split(',').length}个商品`
}} </text>
<button type="primary" text size="small" onTap="onOpenDialog">{{itemIds ? '更换商品' : '选择商品'}}</button>
<button type="primary"
style="height:auto;"
text size="small" onTap="onOpenDialog">{{itemIds ? '更换商品' : '选择商品'}}</button>
<items-dialog
<items-dialog
onUpdateBabyChoose="onUpdateBabyChoose"
onUpdateBabyChoose="onUpdateBabyChoose"
browseItemIds="{{itemIds + ''}}"
browseItemIds="{{itemIds + ''}}"
...
...
client/pages/activity/add/add.js
View file @
e97c5787
...
@@ -24,7 +24,7 @@ const tasks = {
...
@@ -24,7 +24,7 @@ const tasks = {
value:
${
configList
[
i
].
value
||
'""'
}
,
value:
${
configList
[
i
].
value
||
'""'
}
,
taskRateType:
${
configList
[
i
].
taskRateType
?
`TASK_RATE_TYPE["
${
configList
[
i
].
taskRateType
}
"]`
:
'""'
}
,
taskRateType:
${
configList
[
i
].
taskRateType
?
`TASK_RATE_TYPE["
${
configList
[
i
].
taskRateType
}
"]`
:
'""'
}
,
times:
${
configList
[
i
].
times
||
'""'
}
,
times:
${
configList
[
i
].
times
||
'""'
}
,
title:
${
configList
[
i
].
titl
e
||
'""'
}
,
title:
${
configList
[
i
].
nam
e
||
'""'
}
,
link:"",
link:"",
itemIds:""
itemIds:""
},`
:
''
%><%
}
%>
},`
:
''
%><%
}
%>
...
@@ -221,6 +221,18 @@ Component({
...
@@ -221,6 +221,18 @@ Component({
}
}
return
prizeInfoListCopy
return
prizeInfoListCopy
},
},
// 任务配置选择商品回调
onItemIdsChange
(
ids
,
dataName
)
{
this
.
setData
({
tasks
:
{
...
this
.
data
.
tasks
,
[
dataName
]:
{
...
this
.
data
.
tasks
[
dataName
],
itemIds
:
ids
}
},
});
},
backList
()
{
backList
()
{
this
.
$page
.
$router
.
go
(
-
1
)
this
.
$page
.
$router
.
go
(
-
1
)
}
}
...
...
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