Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
wildfirecode13
new_taobao
Commits
68ca898c
Commit
68ca898c
authored
Sep 29, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan
parents
4444d73f
52000307
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
134 additions
and
364 deletions
+134
-364
tmallCat.getMyPrizeList.json
.../src/canvas/game/mock/miniTb/tmallCat.getMyPrizeList.json
+74
-354
tmallCat.getTaskList.json
...ect/src/canvas/game/mock/miniTb/tmallCat.getTaskList.json
+4
-4
comtask.js
taobao_mini/client/components/comtask/comtask.js
+9
-1
comtasklist.axml
taobao_mini/client/components/comtasklist/comtasklist.axml
+4
-3
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+6
-2
pageshop.js
taobao_mini/client/pages/pageshop/pageshop.js
+1
-0
resList.js
taobao_mini/client/resconfig/resList.js
+36
-0
No files found.
project/src/canvas/game/mock/miniTb/tmallCat.getMyPrizeList.json
View file @
68ca898c
This diff is collapsed.
Click to expand it.
project/src/canvas/game/mock/miniTb/tmallCat.getTaskList.json
View file @
68ca898c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"completeTimes"
:
0
,
"completeTimes"
:
0
,
"rewards"
:
10
,
"rewards"
:
10
,
"sellerId"
:
"oooo"
,
"sellerId"
:
"oooo"
,
"status"
:
1
,
"status"
:
1
,
"taskRateType"
:
1
,
"taskRateType"
:
1
,
"taskType"
:
"follow"
,
"taskType"
:
"follow"
,
"title"
:
"关注店铺1"
"title"
:
"关注店铺1"
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
"completeTimes"
:
0
,
"completeTimes"
:
0
,
"rewards"
:
10
,
"rewards"
:
10
,
"sellerId"
:
"wwwww"
,
"sellerId"
:
"wwwww"
,
"status"
:
1
,
"status"
:
1
,
"taskRateType"
:
1
,
"taskRateType"
:
1
,
"taskType"
:
"follow"
,
"taskType"
:
"follow"
,
"title"
:
"关注店铺2"
"title"
:
"关注店铺2"
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
"completeTimes"
:
0
,
"completeTimes"
:
0
,
"itemIds"
:
""
,
"itemIds"
:
""
,
"rewards"
:
"2"
,
"rewards"
:
"2"
,
"status"
:
2
,
"status"
:
1
,
"taskRateType"
:
2
,
"taskRateType"
:
2
,
"taskType"
:
"browseGoods"
,
"taskType"
:
"browseGoods"
,
"times"
:
1
,
"times"
:
1
,
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
{
{
"completeTimes"
:
0
,
"completeTimes"
:
0
,
"rewards"
:
"1"
,
"rewards"
:
"1"
,
"status"
:
2
,
"status"
:
1
,
"taskRateType"
:
1
,
"taskRateType"
:
1
,
"taskType"
:
"invites"
,
"taskType"
:
"invites"
,
"times"
:
3
,
"times"
:
3
,
...
...
taobao_mini/client/components/comtask/comtask.js
View file @
68ca898c
...
@@ -27,7 +27,6 @@ Component({
...
@@ -27,7 +27,6 @@ Component({
async
didMount
()
{
async
didMount
()
{
my
.
showLoading
();
my
.
showLoading
();
await
API
.
doSignTask
().
catch
(()
=>
{
});
await
this
.
getTaskList
();
await
this
.
getTaskList
();
my
.
hideLoading
();
my
.
hideLoading
();
},
},
...
@@ -103,12 +102,21 @@ Component({
...
@@ -103,12 +102,21 @@ Component({
case
'invites'
:
case
'invites'
:
my
.
showSharePanel
();
my
.
showSharePanel
();
break
;
break
;
case
'sign'
:
await
this
.
handleGoSign
();
await
this
.
getTaskList
();
break
;
default
:
default
:
console
.
log
(
'handleTapGoBtn'
,
taskType
);
console
.
log
(
'handleTapGoBtn'
,
taskType
);
break
;
break
;
}
}
flag
=
0
;
flag
=
0
;
},
},
async
handleGoSign
()
{
await
API
.
doSignTask
(
).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
},
async
handleGoBrowseGoods
(
itemId
)
{
async
handleGoBrowseGoods
(
itemId
)
{
await
API
.
doBrowseGoodsTask
({
itemId
}).
catch
(
res
=>
{
await
API
.
doBrowseGoodsTask
({
itemId
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
commonToast
(
res
&&
res
.
message
);
...
...
taobao_mini/client/components/comtasklist/comtasklist.axml
View file @
68ca898c
...
@@ -5,9 +5,10 @@
...
@@ -5,9 +5,10 @@
<view class="task_list">
<view class="task_list">
<view class="task_item " a:for="{{list}}">
<view class="task_item " a:for="{{list}}">
<image class="task_itembg " src={{resList['b44bac8c-652f-496d-9bc1-165e30d71b02'].url}} />
<image class="task_itembg " src={{resList['b44bac8c-652f-496d-9bc1-165e30d71b02'].url}} />
<image class="task_receivebtn " data-item="{{item}}" onTap="handleTapReceiveBtn" a:if="{{item.status==2}}" src={{resList['b9f1cc3f-4620-44d8-85ae-187be0745ace'].url}} />
<image class="task_receivebtn " data-item="{{item}}" onTap="handleTapReceiveBtn" a:if="{{item.status==2}}" src={{resList['b9f1cc3f-4620-44d8-85ae-187be0745ace'+(item.taskType=='sign' ? '':'')].url}} />
<image class="task_gobtn " data-item="{{item}}" onTap="handleTapGoBtn" a:if="{{item.status==1}}" src={{resList['9ee176ed-5204-4524-97f9-bf17ee698aa8'].url}} />
<image class="task_gobtn " data-item="{{item}}" onTap="handleTapGoBtn" a:if="{{item.status==1}}" src={{resList['9ee176ed-5204-4524-97f9-bf17ee698aa8-'+item.taskType].url}} />
<image class="task_disabedbtn " a:if="{{item.status==3}}" src={{resList['0e0684af-21c7-48e2-9114-8599c1de33f1'].url}} />
<image class="task_disabedbtn " a:if="{{item.status==3}}" src={{resList['0e0684af-21c7-48e2-9114-8599c1de33f1'+ (item.taskType=='follow' ? '-follow':'') ].url}} />
<image class="task_sginicon " a:if="{{item.taskType=='sign'}}" src={{resList['ca4c78b3-caf5-435b-ba32-f187f24d1795'].url}} />
<image class="task_sginicon " a:if="{{item.taskType=='sign'}}" src={{resList['ca4c78b3-caf5-435b-ba32-f187f24d1795'].url}} />
<image class="task_inviteicon " a:if="{{item.taskType=='invites'}}" src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<image class="task_inviteicon " a:if="{{item.taskType=='invites'}}" src={{resList['61cf4c2c-54e4-4cde-aa16-78ee5d17ab06'].url}} />
<image class="task_focusicon " a:if="{{item.taskType=='follow'}}" src={{resList['7f6ab236c2c0d17c38f1bfb5260d258ebf1cb630'].url}} />
<image class="task_focusicon " a:if="{{item.taskType=='follow'}}" src={{resList['7f6ab236c2c0d17c38f1bfb5260d258ebf1cb630'].url}} />
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
68ca898c
...
@@ -79,6 +79,10 @@ Page({
...
@@ -79,6 +79,10 @@ Page({
myPrizeList
:
[]
myPrizeList
:
[]
})
})
})
||
{};
})
||
{};
data
.
list
.
forEach
(
i
=>
{
console
.
log
(
'data list item'
,
i
);
i
.
image
=
i
.
image
||
'//yun.duiba.com.cn/aurora/assets/50886651a4b369800cad1e9b958b9edc86150533.png'
;
});
if
(
success
&&
data
&&
data
.
list
)
{
if
(
success
&&
data
&&
data
.
list
)
{
this
.
setData
({
this
.
setData
({
myPrizeList
:
data
.
list
myPrizeList
:
data
.
list
...
@@ -140,8 +144,8 @@ Page({
...
@@ -140,8 +144,8 @@ Page({
}
}
flag
=
true
;
flag
=
true
;
const
{
item
:
{
strategyCode
,
code
,
channel
}
}
=
e
.
target
.
dataset
;
const
{
item
:
{
strategyCode
,
code
,
channel
}
}
=
e
.
target
.
dataset
;
this
.
cloudTBIssue
({
strategyCode
,
code
,
channel
})
this
.
cloudTBIssue
({
strategyCode
,
code
,
channel
})
// const { activityId } = app;
// const { activityId } = app;
// console.log(item, '领取权益')
// console.log(item, '领取权益')
// const { success, data, message } = await API.receiveEnamePrize({ activityId, _id: item._id }).catch(res => {
// const { success, data, message } = await API.receiveEnamePrize({ activityId, _id: item._id }).catch(res => {
...
...
taobao_mini/client/pages/pageshop/pageshop.js
View file @
68ca898c
...
@@ -51,6 +51,7 @@ Page({
...
@@ -51,6 +51,7 @@ Page({
const
{
data
:
{
list
,
happyCoin
}
}
=
await
API
.
exchangeGoodList
();
const
{
data
:
{
list
,
happyCoin
}
}
=
await
API
.
exchangeGoodList
();
list
.
forEach
(
item
=>
{
list
.
forEach
(
item
=>
{
item
.
exchanged
=
item
.
status
==
EXCHANGE_STATUS
.
DONE
;
item
.
exchanged
=
item
.
status
==
EXCHANGE_STATUS
.
DONE
;
item
.
image
=
item
.
image
||
'//yun.duiba.com.cn/aurora/assets/50886651a4b369800cad1e9b958b9edc86150533.png'
;
});
});
this
.
setData
({
list
,
happyCoin
});
this
.
setData
({
list
,
happyCoin
});
},
},
...
...
taobao_mini/client/resconfig/resList.js
View file @
68ca898c
...
@@ -23,18 +23,54 @@ const resList = {
...
@@ -23,18 +23,54 @@ const resList = {
uuid
:
'b9f1cc3f-4620-44d8-85ae-187be0745ace'
,
uuid
:
'b9f1cc3f-4620-44d8-85ae-187be0745ace'
,
url
:
'//yun.duiba.com.cn/spark/assets/58527ff02cd996f196deade9cf46ed252e2791f6.png'
url
:
'//yun.duiba.com.cn/spark/assets/58527ff02cd996f196deade9cf46ed252e2791f6.png'
},
},
'b9f1cc3f-4620-44d8-85ae-187be0745ace-sign'
:
{
name
:
'task_receivebtn'
,
ext
:
'.png'
,
uuid
:
'b9f1cc3f-4620-44d8-85ae-187be0745ace-sign'
,
url
:
'//yun.duiba.com.cn/aurora/assets/83ee636c40fe4437e632b8ce1197afbb47123edf.png'
},
'9ee176ed-5204-4524-97f9-bf17ee698aa8'
:
{
'9ee176ed-5204-4524-97f9-bf17ee698aa8'
:
{
name
:
'task_gobtn'
,
name
:
'task_gobtn'
,
ext
:
'.png'
,
ext
:
'.png'
,
uuid
:
'9ee176ed-5204-4524-97f9-bf17ee698aa8'
,
uuid
:
'9ee176ed-5204-4524-97f9-bf17ee698aa8'
,
url
:
'//yun.duiba.com.cn/spark/assets/f33d667af53b09f154259c209fc0c41454dfca8a.png'
url
:
'//yun.duiba.com.cn/spark/assets/f33d667af53b09f154259c209fc0c41454dfca8a.png'
},
},
'9ee176ed-5204-4524-97f9-bf17ee698aa8-sign'
:
{
name
:
'task_gobtn'
,
ext
:
'.png'
,
uuid
:
'9ee176ed-5204-4524-97f9-bf17ee698aa8-sign'
,
url
:
'//yun.duiba.com.cn/aurora/assets/83ee636c40fe4437e632b8ce1197afbb47123edf.png'
},
'9ee176ed-5204-4524-97f9-bf17ee698aa8-follow'
:
{
name
:
'task_gobtn'
,
ext
:
'.png'
,
uuid
:
'9ee176ed-5204-4524-97f9-bf17ee698aa8-follow'
,
url
:
'//yun.duiba.com.cn/aurora/assets/b30cdc10518b7cbd68875e1a5ec8b5db4d6458cc.png'
},
'9ee176ed-5204-4524-97f9-bf17ee698aa8-browseGoods'
:
{
name
:
'task_gobtn'
,
ext
:
'.png'
,
uuid
:
'9ee176ed-5204-4524-97f9-bf17ee698aa8-browseGoods'
,
url
:
'//yun.duiba.com.cn/aurora/assets/50886651a4b369800cad1e9b958b9edc86150533.png'
},
'9ee176ed-5204-4524-97f9-bf17ee698aa8-invites'
:
{
name
:
'task_gobtn'
,
ext
:
'.png'
,
uuid
:
'9ee176ed-5204-4524-97f9-bf17ee698aa8-invites'
,
url
:
'//yun.duiba.com.cn/aurora/assets/76116db5fc5039831f3e266f9b9d1d8e5c0ece7b.png'
},
'0e0684af-21c7-48e2-9114-8599c1de33f1'
:
{
'0e0684af-21c7-48e2-9114-8599c1de33f1'
:
{
name
:
'task_disabedbtn'
,
name
:
'task_disabedbtn'
,
ext
:
'.png'
,
ext
:
'.png'
,
uuid
:
'0e0684af-21c7-48e2-9114-8599c1de33f1'
,
uuid
:
'0e0684af-21c7-48e2-9114-8599c1de33f1'
,
url
:
'//yun.duiba.com.cn/spark/assets/2ef2430ab9ec9d0bde4bc1e12f396456578cf3f7.png'
url
:
'//yun.duiba.com.cn/spark/assets/2ef2430ab9ec9d0bde4bc1e12f396456578cf3f7.png'
},
},
'0e0684af-21c7-48e2-9114-8599c1de33f1-follow'
:
{
name
:
'task_disabedbtn_follow'
,
ext
:
'.png'
,
uuid
:
'0e0684af-21c7-48e2-9114-8599c1de33f1-follow'
,
url
:
'//yun.duiba.com.cn/aurora/assets/70da64eedbc8b631e546185950cca481f775edea.png'
},
'ca4c78b3-caf5-435b-ba32-f187f24d1795'
:
{
'ca4c78b3-caf5-435b-ba32-f187f24d1795'
:
{
name
:
'task_sginicon'
,
name
:
'task_sginicon'
,
ext
:
'.png'
,
ext
:
'.png'
,
...
...
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