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
6cc8e134
Commit
6cc8e134
authored
Sep 27, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan
parents
f72a8f5d
b32a8b99
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
586 additions
and
42 deletions
+586
-42
tmallCat.getMyPrizeList.json
.../src/canvas/game/mock/miniTb/tmallCat.getMyPrizeList.json
+499
-0
app.js
taobao_mini/client/app.js
+1
-1
comtask.js
taobao_mini/client/components/comtask/comtask.js
+2
-1
prizeModal.acss
taobao_mini/client/components/prizeModal/prizeModal.acss
+6
-6
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+71
-31
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+4
-0
pageshop.js
taobao_mini/client/pages/pageshop/pageshop.js
+2
-2
tb.js
taobao_mini/client/tbcc-sdk/lib/tb.js
+1
-1
No files found.
project/src/canvas/game/mock/miniTb/tmallCat.getMyPrizeList.json
0 → 100644
View file @
6cc8e134
{
"code"
:
"000000"
,
"data"
:
{
"list"
:
[
{
"_id"
:
"5f6d89ea52bbded304a960ac"
,
"activityId"
:
"5f6b09b3c3ad342fed5a0b21"
,
"createDay"
:
"2020/09/25"
,
"createTime"
:
1601014250919
,
"drawStatus"
:
1
,
"ename"
:
""
,
"expiredTime"
:
1601628302000
,
"id"
:
"5f6d89ea52bbded304a960ac"
,
"image"
:
"https://img.alicdn.com/imgextra/i2/2208492139886/O1CN01XlNdWj2Mtq8E9OEw1_!!2208492139886-2-miniprogram.png"
,
"name"
:
"兑换奖励235"
,
"openId"
:
"AAHVNvjuAMaJc3uyPjeHlCEF"
,
"prizeDataType"
:
2
,
"prizeId"
:
"5f6b09b39897b412b595a32b"
,
"remark"
:
""
,
"type"
:
3
,
"updateTime"
:
1601014250919
,
"userNick"
:
"honingwon"
},
{
"_id"
:
"5f6d89e70cb733e8927b749f"
,
"activityId"
:
"5f6b09b3c3ad342fed5a0b21"
,
"asac"
:
"1A202010JWPLV3428VWIEP"
,
"can_win"
:
true
,
"code"
:
"7254115b0fcc4c77bdbb35ed658c1db2"
,
"createDay"
:
"2020/09/25"
,
"createTime"
:
1601014247528
,
"drawStatus"
:
1
,
"effective_interval"
:
31
,
"effective_time_mode"
:
"RELATIVE"
,
"ename"
:
""
,
"end_date"
:
"2020-12-23 23:59:59"
,
"expiredTime"
:
1601628302000
,
"feature"
:
{
"couponTag"
:
"49534003"
,
"description"
:
"酒店信用住立减券"
,
"sellerId"
:
"4064563648"
,
"spreadId"
:
"3465672059"
,
"subActId"
:
"34922"
,
"templateCode"
:
"3545184060"
,
"title"
:
"酒店信用住优惠券"
,
"uuid"
:
"6ff76ab7cf3c4002be6f64902e659322"
},
"has_inventory"
:
true
,
"id"
:
"5f6d89e70cb733e8927b749f"
,
"image"
:
""
,
"interval_time_unit"
:
"DAYS"
,
"material"
:
{
"benefitBigPic"
:
"https://gw.alicdn.com/tfs/TB1aF67RFP7gK0jSZFjXXc5aXXa-895-703.png"
,
"benefitSmallPic"
:
"https://gw.alicdn.com/tfs/TB1aF67RFP7gK0jSZFjXXc5aXXa-895-703.png"
,
"benefitUrl"
:
"https://h5.m.taobao.com/trip/hotel/search/index.html?ttid=12zfb000000416"
},
"name"
:
""
,
"openId"
:
"AAHVNvjuAMaJc3uyPjeHlCEF"
,
"prizeDataType"
:
2
,
"prizeId"
:
"5f6c3e7d114fbbc8c98bffae"
,
"remark"
:
""
,
"send_life_cycle_state"
:
"running"
,
"show_rules"
:
{
"show_rule_dto"
:
[
{
"passed"
:
true
,
"type"
:
"WIN_LIMIT"
}
]
},
"start_date"
:
"2020-07-15 15:45:12"
,
"strategyCode"
:
"08c6f4e89c7b412792a2395fa3d0fd4a"
,
"test"
:
false
,
"title"
:
"酒店最高减50元券"
,
"type"
:
1
,
"type_desc"
:
"飞猪资格券"
,
"updateTime"
:
1601014247528
,
"userNick"
:
"honingwon"
},
{
"_id"
:
"5f6d89e4e5c0d71b268d571f"
,
"activityId"
:
"5f6b09b3c3ad342fed5a0b21"
,
"amount"
:
10000
,
"amount_unit"
:
"分"
,
"asac"
:
"1A202010JWPLV3428VWIEP"
,
"can_win"
:
true
,
"code"
:
"f8564ef50a86418b9226ce1d9bb6ace6"
,
"createDay"
:
"2020/09/25"
,
"createTime"
:
1601014244212
,
"display_amount"
:
"100"
,
"display_amount_unit"
:
"元"
,
"display_start_fee"
:
"200"
,
"drawStatus"
:
1
,
"effective_end"
:
"2020-09-30 00:00:00"
,
"effective_start"
:
"2020-08-28 00:00:00"
,
"effective_time_mode"
:
"ABSOLUTE"
,
"ename"
:
""
,
"end_date"
:
"2020-09-26 23:59:59"
,
"expiredTime"
:
1601628302000
,
"feature"
:
{
"bcType"
:
"B"
,
"couponTag"
:
"1002"
,
"itemIds"
:
"611439436633"
,
"sellerId"
:
"2838892713"
,
"shopId"
:
"150920153"
,
"shopLogo"
:
"/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg"
,
"shopName"
:
"华为官方旗舰店"
,
"shopSiteCategory"
:
"3"
,
"shopUrl"
:
"//store.taobao.com/shop/view_shop.htm?shop_id=150920153"
,
"spreadId"
:
"4328244590"
,
"templateCode"
:
"15417747656"
,
"title"
:
"freebuds 3"
,
"uuid"
:
"ea9a79c0459640f8aeb94c24530e4141"
},
"has_inventory"
:
true
,
"id"
:
"5f6d89e4e5c0d71b268d571f"
,
"image"
:
""
,
"material"
:
{
"brandLogo"
:
"T1bOKxFoFcXXb1upjX.jpg"
},
"name"
:
""
,
"openId"
:
"AAHVNvjuAMaJc3uyPjeHlCEF"
,
"prizeDataType"
:
2
,
"prizeId"
:
"5f6c3e7d114fbbc8c98bffae"
,
"remark"
:
""
,
"send_life_cycle_state"
:
"running"
,
"show_rules"
:
{
"show_rule_dto"
:
[
{
"passed"
:
true
,
"type"
:
"WIN_LIMIT"
}
]
},
"start_date"
:
"2020-08-28 11:04:24"
,
"start_fee"
:
20000
,
"strategyCode"
:
"08c6f4e89c7b412792a2395fa3d0fd4a"
,
"test"
:
false
,
"title"
:
"freebuds 3"
,
"type"
:
1
,
"type_desc"
:
"商品优惠券"
,
"updateTime"
:
1601014244212
,
"userNick"
:
"honingwon"
},
{
"_id"
:
"5f6d89709da6714846638db1"
,
"activityId"
:
"5f6b09b3c3ad342fed5a0b21"
,
"amount"
:
20000
,
"amount_unit"
:
"分"
,
"asac"
:
"1A202010JWPLV3428VWIEP"
,
"can_win"
:
true
,
"code"
:
"a66621ec7c434842bfe4d01082128f1d"
,
"createDay"
:
"2020/09/25"
,
"createTime"
:
1601014128038
,
"display_amount"
:
"200"
,
"display_amount_unit"
:
"元"
,
"display_start_fee"
:
"2000"
,
"drawStatus"
:
1
,
"effective_end"
:
"2020-10-11 00:00:00"
,
"effective_start"
:
"2020-08-24 00:00:00"
,
"effective_time_mode"
:
"ABSOLUTE"
,
"ename"
:
""
,
"end_date"
:
"2020-09-25 23:59:59"
,
"expiredTime"
:
1601628302000
,
"feature"
:
{
"bcType"
:
"B"
,
"couponTag"
:
"1002"
,
"itemIds"
:
"611952670190"
,
"sellerId"
:
"2838892713"
,
"shopId"
:
"150920153"
,
"shopLogo"
:
"/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg"
,
"shopName"
:
"华为官方旗舰店"
,
"shopSiteCategory"
:
"3"
,
"shopUrl"
:
"//store.taobao.com/shop/view_shop.htm?shop_id=150920153"
,
"spreadId"
:
"4327893208"
,
"templateCode"
:
"15398721100"
,
"title"
:
"MatePro"
,
"uuid"
:
"1094cefe51a348698e6647f5e6ba4181"
},
"has_inventory"
:
true
,
"id"
:
"5f6d89709da6714846638db1"
,
"image"
:
""
,
"material"
:
{
"SHORT_NAME"
:
"华为MatePad Pro"
,
"brandLogo"
:
"T1bOKxFoFcXXb1upjX.jpg"
,
"itemIDTianHe"
:
"611952670190"
,
"itemMainPicture"
:
"O1CN01HHEnRU1KZ6mud3VjW_!!6000000001177-2-yinhe.png"
,
"mamaCouponValue"
:
"学生专享200元"
,
"mamaShopItemurl"
:
"https://detail.tmall.com/item.htm?spm=a1z10.1-b-s.w20163031-21766675787.18.10577597DWdOA0&id=611952670190&scene=taobao_shop&sku_properties=5919063:6536025"
},
"name"
:
""
,
"openId"
:
"AAHVNvjuAMaJc3uyPjeHlCEF"
,
"prizeDataType"
:
2
,
"prizeId"
:
"5f6c3e7d114fbbc8c98bffae"
,
"remark"
:
""
,
"send_life_cycle_state"
:
"running"
,
"show_rules"
:
{
"show_rule_dto"
:
[
{
"passed"
:
true
,
"type"
:
"WIN_LIMIT"
}
]
},
"start_date"
:
"2020-08-27 16:21:56"
,
"start_fee"
:
200000
,
"strategyCode"
:
"08c6f4e89c7b412792a2395fa3d0fd4a"
,
"test"
:
false
,
"title"
:
"MatePro"
,
"type"
:
1
,
"type_desc"
:
"商品优惠券"
,
"updateTime"
:
1601014128038
,
"userNick"
:
"honingwon"
},
{
"_id"
:
"5f6d89709da6714846638db1"
,
"activityId"
:
"5f6b09b3c3ad342fed5a0b21"
,
"amount"
:
20000
,
"amount_unit"
:
"分"
,
"asac"
:
"1A202010JWPLV3428VWIEP"
,
"can_win"
:
true
,
"code"
:
"a66621ec7c434842bfe4d01082128f1d"
,
"createDay"
:
"2020/09/25"
,
"createTime"
:
1601014128038
,
"display_amount"
:
"200"
,
"display_amount_unit"
:
"元"
,
"display_start_fee"
:
"2000"
,
"drawStatus"
:
1
,
"effective_end"
:
"2020-10-11 00:00:00"
,
"effective_start"
:
"2020-08-24 00:00:00"
,
"effective_time_mode"
:
"ABSOLUTE"
,
"ename"
:
""
,
"end_date"
:
"2020-09-25 23:59:59"
,
"expiredTime"
:
1601628302000
,
"feature"
:
{
"bcType"
:
"B"
,
"couponTag"
:
"1002"
,
"itemIds"
:
"611952670190"
,
"sellerId"
:
"2838892713"
,
"shopId"
:
"150920153"
,
"shopLogo"
:
"/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg"
,
"shopName"
:
"华为官方旗舰店"
,
"shopSiteCategory"
:
"3"
,
"shopUrl"
:
"//store.taobao.com/shop/view_shop.htm?shop_id=150920153"
,
"spreadId"
:
"4327893208"
,
"templateCode"
:
"15398721100"
,
"title"
:
"MatePro"
,
"uuid"
:
"1094cefe51a348698e6647f5e6ba4181"
},
"has_inventory"
:
true
,
"id"
:
"5f6d89709da6714846638db1"
,
"image"
:
""
,
"material"
:
{
"SHORT_NAME"
:
"华为MatePad Pro"
,
"brandLogo"
:
"T1bOKxFoFcXXb1upjX.jpg"
,
"itemIDTianHe"
:
"611952670190"
,
"itemMainPicture"
:
"O1CN01HHEnRU1KZ6mud3VjW_!!6000000001177-2-yinhe.png"
,
"mamaCouponValue"
:
"学生专享200元"
,
"mamaShopItemurl"
:
"https://detail.tmall.com/item.htm?spm=a1z10.1-b-s.w20163031-21766675787.18.10577597DWdOA0&id=611952670190&scene=taobao_shop&sku_properties=5919063:6536025"
},
"name"
:
""
,
"openId"
:
"AAHVNvjuAMaJc3uyPjeHlCEF"
,
"prizeDataType"
:
2
,
"prizeId"
:
"5f6c3e7d114fbbc8c98bffae"
,
"remark"
:
""
,
"send_life_cycle_state"
:
"running"
,
"show_rules"
:
{
"show_rule_dto"
:
[
{
"passed"
:
true
,
"type"
:
"WIN_LIMIT"
}
]
},
"start_date"
:
"2020-08-27 16:21:56"
,
"start_fee"
:
200000
,
"strategyCode"
:
"08c6f4e89c7b412792a2395fa3d0fd4a"
,
"test"
:
false
,
"title"
:
"MatePro"
,
"type"
:
1
,
"type_desc"
:
"商品优惠券"
,
"updateTime"
:
1601014128038
,
"userNick"
:
"honingwon"
},
{
"_id"
:
"5f6d89709da6714846638db1"
,
"activityId"
:
"5f6b09b3c3ad342fed5a0b21"
,
"amount"
:
20000
,
"amount_unit"
:
"分"
,
"asac"
:
"1A202010JWPLV3428VWIEP"
,
"can_win"
:
true
,
"code"
:
"a66621ec7c434842bfe4d01082128f1d"
,
"createDay"
:
"2020/09/25"
,
"createTime"
:
1601014128038
,
"display_amount"
:
"200"
,
"display_amount_unit"
:
"元"
,
"display_start_fee"
:
"2000"
,
"drawStatus"
:
1
,
"effective_end"
:
"2020-10-11 00:00:00"
,
"effective_start"
:
"2020-08-24 00:00:00"
,
"effective_time_mode"
:
"ABSOLUTE"
,
"ename"
:
""
,
"end_date"
:
"2020-09-25 23:59:59"
,
"expiredTime"
:
1601628302000
,
"feature"
:
{
"bcType"
:
"B"
,
"couponTag"
:
"1002"
,
"itemIds"
:
"611952670190"
,
"sellerId"
:
"2838892713"
,
"shopId"
:
"150920153"
,
"shopLogo"
:
"/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg"
,
"shopName"
:
"华为官方旗舰店"
,
"shopSiteCategory"
:
"3"
,
"shopUrl"
:
"//store.taobao.com/shop/view_shop.htm?shop_id=150920153"
,
"spreadId"
:
"4327893208"
,
"templateCode"
:
"15398721100"
,
"title"
:
"MatePro"
,
"uuid"
:
"1094cefe51a348698e6647f5e6ba4181"
},
"has_inventory"
:
true
,
"id"
:
"5f6d89709da6714846638db1"
,
"image"
:
""
,
"material"
:
{
"SHORT_NAME"
:
"华为MatePad Pro"
,
"brandLogo"
:
"T1bOKxFoFcXXb1upjX.jpg"
,
"itemIDTianHe"
:
"611952670190"
,
"itemMainPicture"
:
"O1CN01HHEnRU1KZ6mud3VjW_!!6000000001177-2-yinhe.png"
,
"mamaCouponValue"
:
"学生专享200元"
,
"mamaShopItemurl"
:
"https://detail.tmall.com/item.htm?spm=a1z10.1-b-s.w20163031-21766675787.18.10577597DWdOA0&id=611952670190&scene=taobao_shop&sku_properties=5919063:6536025"
},
"name"
:
""
,
"openId"
:
"AAHVNvjuAMaJc3uyPjeHlCEF"
,
"prizeDataType"
:
2
,
"prizeId"
:
"5f6c3e7d114fbbc8c98bffae"
,
"remark"
:
""
,
"send_life_cycle_state"
:
"running"
,
"show_rules"
:
{
"show_rule_dto"
:
[
{
"passed"
:
true
,
"type"
:
"WIN_LIMIT"
}
]
},
"start_date"
:
"2020-08-27 16:21:56"
,
"start_fee"
:
200000
,
"strategyCode"
:
"08c6f4e89c7b412792a2395fa3d0fd4a"
,
"test"
:
false
,
"title"
:
"MatePro"
,
"type"
:
1
,
"type_desc"
:
"商品优惠券"
,
"updateTime"
:
1601014128038
,
"userNick"
:
"honingwon"
},
{
"_id"
:
"5f6d89709da6714846638db1"
,
"activityId"
:
"5f6b09b3c3ad342fed5a0b21"
,
"amount"
:
20000
,
"amount_unit"
:
"分"
,
"asac"
:
"1A202010JWPLV3428VWIEP"
,
"can_win"
:
true
,
"code"
:
"a66621ec7c434842bfe4d01082128f1d"
,
"createDay"
:
"2020/09/25"
,
"createTime"
:
1601014128038
,
"display_amount"
:
"200"
,
"display_amount_unit"
:
"元"
,
"display_start_fee"
:
"2000"
,
"drawStatus"
:
1
,
"effective_end"
:
"2020-10-11 00:00:00"
,
"effective_start"
:
"2020-08-24 00:00:00"
,
"effective_time_mode"
:
"ABSOLUTE"
,
"ename"
:
""
,
"end_date"
:
"2020-09-25 23:59:59"
,
"expiredTime"
:
1601628302000
,
"feature"
:
{
"bcType"
:
"B"
,
"couponTag"
:
"1002"
,
"itemIds"
:
"611952670190"
,
"sellerId"
:
"2838892713"
,
"shopId"
:
"150920153"
,
"shopLogo"
:
"/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg"
,
"shopName"
:
"华为官方旗舰店"
,
"shopSiteCategory"
:
"3"
,
"shopUrl"
:
"//store.taobao.com/shop/view_shop.htm?shop_id=150920153"
,
"spreadId"
:
"4327893208"
,
"templateCode"
:
"15398721100"
,
"title"
:
"MatePro"
,
"uuid"
:
"1094cefe51a348698e6647f5e6ba4181"
},
"has_inventory"
:
true
,
"id"
:
"5f6d89709da6714846638db1"
,
"image"
:
""
,
"material"
:
{
"SHORT_NAME"
:
"华为MatePad Pro"
,
"brandLogo"
:
"T1bOKxFoFcXXb1upjX.jpg"
,
"itemIDTianHe"
:
"611952670190"
,
"itemMainPicture"
:
"O1CN01HHEnRU1KZ6mud3VjW_!!6000000001177-2-yinhe.png"
,
"mamaCouponValue"
:
"学生专享200元"
,
"mamaShopItemurl"
:
"https://detail.tmall.com/item.htm?spm=a1z10.1-b-s.w20163031-21766675787.18.10577597DWdOA0&id=611952670190&scene=taobao_shop&sku_properties=5919063:6536025"
},
"name"
:
""
,
"openId"
:
"AAHVNvjuAMaJc3uyPjeHlCEF"
,
"prizeDataType"
:
2
,
"prizeId"
:
"5f6c3e7d114fbbc8c98bffae"
,
"remark"
:
""
,
"send_life_cycle_state"
:
"running"
,
"show_rules"
:
{
"show_rule_dto"
:
[
{
"passed"
:
true
,
"type"
:
"WIN_LIMIT"
}
]
},
"start_date"
:
"2020-08-27 16:21:56"
,
"start_fee"
:
200000
,
"strategyCode"
:
"08c6f4e89c7b412792a2395fa3d0fd4a"
,
"test"
:
false
,
"title"
:
"MatePro"
,
"type"
:
1
,
"type_desc"
:
"商品优惠券"
,
"updateTime"
:
1601014128038
,
"userNick"
:
"honingwon"
},
{
"_id"
:
"5f6d89709da6714846638db1"
,
"activityId"
:
"5f6b09b3c3ad342fed5a0b21"
,
"amount"
:
20000
,
"amount_unit"
:
"分"
,
"asac"
:
"1A202010JWPLV3428VWIEP"
,
"can_win"
:
true
,
"code"
:
"a66621ec7c434842bfe4d01082128f1d"
,
"createDay"
:
"2020/09/25"
,
"createTime"
:
1601014128038
,
"display_amount"
:
"200"
,
"display_amount_unit"
:
"元"
,
"display_start_fee"
:
"2000"
,
"drawStatus"
:
1
,
"effective_end"
:
"2020-10-11 00:00:00"
,
"effective_start"
:
"2020-08-24 00:00:00"
,
"effective_time_mode"
:
"ABSOLUTE"
,
"ename"
:
""
,
"end_date"
:
"2020-09-25 23:59:59"
,
"expiredTime"
:
1601628302000
,
"feature"
:
{
"bcType"
:
"B"
,
"couponTag"
:
"1002"
,
"itemIds"
:
"611952670190"
,
"sellerId"
:
"2838892713"
,
"shopId"
:
"150920153"
,
"shopLogo"
:
"/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg"
,
"shopName"
:
"华为官方旗舰店"
,
"shopSiteCategory"
:
"3"
,
"shopUrl"
:
"//store.taobao.com/shop/view_shop.htm?shop_id=150920153"
,
"spreadId"
:
"4327893208"
,
"templateCode"
:
"15398721100"
,
"title"
:
"MatePro"
,
"uuid"
:
"1094cefe51a348698e6647f5e6ba4181"
},
"has_inventory"
:
true
,
"id"
:
"5f6d89709da6714846638db1"
,
"image"
:
""
,
"material"
:
{
"SHORT_NAME"
:
"华为MatePad Pro"
,
"brandLogo"
:
"T1bOKxFoFcXXb1upjX.jpg"
,
"itemIDTianHe"
:
"611952670190"
,
"itemMainPicture"
:
"O1CN01HHEnRU1KZ6mud3VjW_!!6000000001177-2-yinhe.png"
,
"mamaCouponValue"
:
"学生专享200元"
,
"mamaShopItemurl"
:
"https://detail.tmall.com/item.htm?spm=a1z10.1-b-s.w20163031-21766675787.18.10577597DWdOA0&id=611952670190&scene=taobao_shop&sku_properties=5919063:6536025"
},
"name"
:
""
,
"openId"
:
"AAHVNvjuAMaJc3uyPjeHlCEF"
,
"prizeDataType"
:
2
,
"prizeId"
:
"5f6c3e7d114fbbc8c98bffae"
,
"remark"
:
""
,
"send_life_cycle_state"
:
"running"
,
"show_rules"
:
{
"show_rule_dto"
:
[
{
"passed"
:
true
,
"type"
:
"WIN_LIMIT"
}
]
},
"start_date"
:
"2020-08-27 16:21:56"
,
"start_fee"
:
200000
,
"strategyCode"
:
"08c6f4e89c7b412792a2395fa3d0fd4a"
,
"test"
:
false
,
"title"
:
"MatePro"
,
"type"
:
1
,
"type_desc"
:
"商品优惠券"
,
"updateTime"
:
1601014128038
,
"userNick"
:
"honingwon"
}
]
},
"message"
:
"成功"
,
"success"
:
true
}
\ No newline at end of file
taobao_mini/client/app.js
View file @
6cc8e134
...
...
@@ -9,7 +9,7 @@ cloud.init({
App
({
env
,
requestType
:
'cloud'
,
// yapi,cloud: 云函数
//
requestType: 'local', // yapi,cloud: 云函数
requestType
:
'local'
,
// yapi,cloud: 云函数
cloudName
:
'tmallCat'
,
// 主云函数项目名 tmallCat
// cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat
cloud
,
...
...
taobao_mini/client/components/comtask/comtask.js
View file @
6cc8e134
...
...
@@ -51,13 +51,14 @@ Component({
},
async
handleTapReceiveBtn
(
e
)
{
if
(
flag
)
return
;
my
.
showLoading
();
//
my.showLoading();
flag
=
1
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
taskType
,
sellerId
}
=
item
;
const
{
success
,
data
,
message
}
=
await
API
.
receiveTaskRewards
({
taskType
,
sellerId
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
// my.hideLoading();
if
(
success
&&
data
)
{
commonToast
(
'领取成功~'
);
}
...
...
taobao_mini/client/components/prizeModal/prizeModal.acss
View file @
6cc8e134
...
...
@@ -17,10 +17,10 @@
}
.my-prize-page .my-prize-label {
width:
286
rpx;
height:
49
rpx;
margin:
140rpx auto 40rpx
;
background: url('//yun.duiba.com.cn/aurora/assets/
a15fe07a819f3f6deb271725b37468030523dc05
.png') no-repeat;
width:
171
rpx;
height:
50
rpx;
margin:
40rpx auto
;
background: url('//yun.duiba.com.cn/aurora/assets/
2f075d102e58cd42fa938d6e23cb6ffd4a2a9486
.png') no-repeat;
background-size: 100% 100%;
}
...
...
@@ -46,8 +46,8 @@
width: 700rpx;
height: 161rpx;
background-color: #ffffff;
border-color:
rgb(255, 63, 38)
;
border-width:
1
rpx;
border-color:
#7f674e
;
border-width:
5
rpx;
border-style: solid;
/* box-shadow: 2rpx 3rpx 18rpx 0 rgb(255, 63, 38); */
border-radius: 10rpx;
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
6cc8e134
...
...
@@ -16,16 +16,16 @@ Page({
endTime
:
null
,
//到期时间
task
:
{
image
:
{
bg
:
'//yun.duiba.com.cn/aurora/assets/
7283d715cc5c7d13a5f498d15f5f5b9f4d9c29e5
.jpg'
,
//背景图
copyIcon
:
'//yun.dui
88.com/duiba-components-c-myprizemyprize_copy_code
.png'
,
//复制
addressBth
:
'//yun.duiba.com.cn/aurora/assets/
82cc3c6d8861334ebaf128c98e3341b687bdc007
.png'
,
//填写地址(实物奖品)
getBth
:
'//yun.dui
88.com/duiba-components-c-myprizeget_now
.png'
,
//立即领取(除实物奖品外)
bg
:
'//yun.duiba.com.cn/aurora/assets/
8fa7cea57cc7071bcc1cbada32f5bfaeb2203981
.jpg'
,
//背景图
copyIcon
:
'//yun.dui
ba.com.cn/aurora/assets/721e5319d26a4edbb0282558fb87d9bda1de4887
.png'
,
//复制
addressBth
:
'//yun.duiba.com.cn/aurora/assets/
7ff6342492c2ce1a94ccfce39c88983b296b35fb
.png'
,
//填写地址(实物奖品)
getBth
:
'//yun.dui
ba.com.cn/aurora/assets/0725f0f5569ad12d37853ad5c40d163fbe247abf
.png'
,
//立即领取(除实物奖品外)
logisticsBth
:
'//yun.duiba.com.cn/aurora/assets/661f86ff3392cb3b56922b048acf74bebc07bb23.png'
,
//查看物流
useBtn
:
'//yun.duiba.com.cn/aurora/assets/0829f92f771c5e9fdb05a258a46b2d038d3a9997.png'
,
//去使用(除实物奖品外)
gotBtn
:
'//yun.duiba.com.cn/aurora/assets/
1120dd6b6ce4abe2666e877e3ae33eb99a778009
.png'
,
//已领取(优惠券)
getAgainBtn
:
'//yun.duiba.com.cn/aurora/assets/
716f0a388144945b169554a30ff4a16f7bcb95ab
.png'
,
//重新领取
invalidBtn
:
'//yun.duiba.com.cn/
spark/assets/914ba8643c8abb8d710a3126ec312aecf6c4daf0
.png'
,
//已失效
failBth
:
'//yun.duiba.com.cn/
spark/assets/8267375232058a6d0140270b1594427fb08d6ae3
.png'
,
//领取失败
gotBtn
:
'//yun.duiba.com.cn/aurora/assets/
30fa200ba1dcd345247f957c16a03a9706895112
.png'
,
//已领取(优惠券)
getAgainBtn
:
'//yun.duiba.com.cn/aurora/assets/
f2bc6220c3b210a4b315ab1bfcc4ebeffcf854ba
.png'
,
//重新领取
invalidBtn
:
'//yun.duiba.com.cn/
aurora/assets/2790bbc504bd94bd7914771e5ba1202e9f011a1a
.png'
,
//已失效
failBth
:
'//yun.duiba.com.cn/
aurora/assets/7bdd43b0b86094c3cf121abb204824985a13035b
.png'
,
//领取失败
},
logisticsImage
:
{
shipped
:
'//yun.duiba.com.cn/aurora/assets/3a7b68ec171ee339ce619d19f6ae3f9c1e6d801a.png'
,
// 已发货物理弹窗
...
...
@@ -33,8 +33,8 @@ Page({
copyIcon
:
'//yun.dui88.com/duiba-components-c-myprizemyprize_copy_code.png'
,
//复制
},
btnStyle
:
{
// 按钮自定义样式
width
:
'15
0
rpx'
,
height
:
'4
1
rpx'
,
width
:
'15
4
rpx'
,
height
:
'4
9
rpx'
,
}
}
},
...
...
@@ -79,11 +79,11 @@ Page({
myPrizeList
:
[]
})
})
||
{};
if
(
success
&&
data
)
{
if
(
success
&&
data
&&
data
.
list
)
{
this
.
setData
({
myPrizeList
:
data
myPrizeList
:
data
.
list
})
this
.
getEndTime
(
data
)
this
.
getEndTime
(
data
.
list
)
}
if
(
type
!=
'noLoading'
)
{
my
.
hideLoading
();
...
...
@@ -100,23 +100,63 @@ Page({
// 领取积分
if
(
item
.
type
===
PRIZE_TYPE_MAP
.
INTEGRATION
)
return
this
.
handleGetIntergation
(
e
)
},
/**
* 发奖
*/
async
cloudTBIssue
(
params
)
{
const
{
cloud
}
=
app
;
return
new
Promise
((
resolve
,
reject
)
=>
{
my
.
authorize
({
scopes
:
"scope.latourBenefit"
,
success
:
async
()
=>
{
const
result
=
await
cloud
.
topApi
.
invoke
({
api
:
"alibaba.latour.strategy.issue"
,
data
:
{
channel
:
params
.
channel
||
""
,
strategy_code
:
params
.
strategyCode
||
""
,
selected_benefit_code
:
params
.
code
||
""
,
},
})
.
catch
((
err
)
=>
{
console
.
log
(
"alibaba.latour.strategy.issue------catch"
,
err
);
});
console
.
log
(
result
,
"result"
);
resolve
(
result
);
},
fail
:
(
err
)
=>
{
console
.
log
(
"scope.latourBenefit----fail"
,
err
);
reject
(
err
);
},
});
})
},
// 优惠券
async
handleGetEquity
(
e
)
{
if
(
flag
)
{
return
}
flag
=
true
;
const
{
activityId
}
=
app
;
const
{
item
}
=
e
.
target
.
dataset
;
console
.
log
(
item
,
'领取权益'
)
const
{
success
,
data
,
message
}
=
await
API
.
receiveEnamePrize
({
activityId
,
_id
:
item
.
_id
}).
catch
(
res
=>
{
this
.
getMyPrize
(
'noLoading'
)
commonToast
(
res
&&
res
.
message
)
})
||
{};
if
(
success
&&
data
)
{
commonToast
(
'领取成功'
)
this
.
getMyPrize
()
}
const
{
item
:{
strategyCode
,
code
}
}
=
e
.
target
.
dataset
;
this
.
cloudTBIssue
({
strategyCode
,
code
})
// const { activityId } = app;
// console.log(item, '领取权益')
// const { success, data, message } = await API.receiveEnamePrize({ activityId, _id: item._id }).catch(res => {
// this.getMyPrize('noLoading')
// commonToast(res && res.message)
// }) || {};
// if (success && data) {
// commonToast('领取成功')
// this.getMyPrize()
// }
setTimeout
(()
=>
{
flag
=
false
},
500
)
...
...
@@ -130,9 +170,9 @@ Page({
flag
=
true
;
const
{
activityId
}
=
app
;
const
{
item
}
=
e
.
target
.
dataset
;
const
userAddress
=
await
getUserAddress
({
joinTag
:
" "
}).
catch
((
data
)
=>
{
const
userAddress
=
await
getUserAddress
({
joinTag
:
" "
}).
catch
((
data
)
=>
{
flag
=
false
console
.
log
(
'getUserAddress出错了,错误信息是'
,
data
);
console
.
log
(
'getUserAddress出错了,错误信息是'
,
data
);
})
// my.hideLoading();
if
(
!
userAddress
)
return
...
...
@@ -140,15 +180,15 @@ Page({
const
{
name
,
telNumber
,
provinceName
,
cityName
,
cityCode
,
countyName
,
detailInfo
,
streetName
}
=
userAddress
||
{};
const
params
=
{
activityId
,
area
:
countyName
,
addressdetail
:
detailInfo
,
area
:
countyName
,
addressdetail
:
detailInfo
,
name
,
phone
:
telNumber
,
detailInfo
,
cityCode
,
cityName
,
city
:
cityName
,
province
:
provinceName
,
city
:
cityName
,
province
:
provinceName
,
provinceName
,
countyName
,
streetName
,
...
...
@@ -186,7 +226,7 @@ Page({
commonToast
(
message
)
}
this
.
getMyPrize
()
},
(
rej
)
=>
{
},
(
rej
)
=>
{
commonToast
(
rej
.
message
)
});
},
...
...
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
6cc8e134
...
...
@@ -103,6 +103,10 @@ Page({
console
.
log
(
"通知canvas刷新用户信息"
)
this
.
main
&&
this
.
main
.
dispatchGlobalEvent
(
"UPDATE_USERINFO"
)
}
setTimeout
(()
=>
{
my
.
__pageTo__
(
'myprize'
)
},
100
);
},
initCanvas
()
{
...
...
taobao_mini/client/pages/pageshop/pageshop.js
View file @
6cc8e134
...
...
@@ -28,7 +28,7 @@ Page({
async
handleClick
(
e
)
{
if
(
flag
)
return
;
my
.
showLoading
();
//
my.showLoading();
flag
=
1
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
_id
,
code
,
type
}
=
item
;
...
...
@@ -38,7 +38,7 @@ Page({
commonToast
(
res
&&
res
.
message
);
})
||
{};
my
.
__updateUserInfo__
();
my
.
hideLoading
();
//
my.hideLoading();
if
(
success
&&
data
)
{
this
.
setData
({
exchangedModalVisible
:
1
,
exchangedModalData
:
item
})
...
...
taobao_mini/client/tbcc-sdk/lib/tb.js
View file @
6cc8e134
...
...
@@ -4,7 +4,7 @@
* @param {number} duration 显示时长
* @param {function} successCb 成功回调
*/
export
const
commonToast
=
(
content
,
duration
=
30
00
,
successCb
)
=>
{
export
const
commonToast
=
(
content
,
duration
=
15
00
,
successCb
)
=>
{
my
.
showToast
({
content
:
content
||
'换个姿势再试一次~'
,
duration
,
...
...
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