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
90b653df
Commit
90b653df
authored
Nov 25, 2020
by
shenyangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified: client/app.js
parent
081be87a
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
759 additions
and
112 deletions
+759
-112
app.js
taobao_mini/client/app.js
+1
-1
comfan_pai_suo_you_qia.acss
...onents/comfan_pai_suo_you_qia/comfan_pai_suo_you_qia.acss
+18
-12
comfan_pai_suo_you_qia.axml
...onents/comfan_pai_suo_you_qia/comfan_pai_suo_you_qia.axml
+16
-18
comfan_pai_suo_you_qia.js
...mponents/comfan_pai_suo_you_qia/comfan_pai_suo_you_qia.js
+7
-3
comren_wu_zhong_xin.acss
...t/components/comren_wu_zhong_xin/comren_wu_zhong_xin.acss
+27
-0
comren_wu_zhong_xin.axml
...t/components/comren_wu_zhong_xin/comren_wu_zhong_xin.axml
+18
-17
comren_wu_zhong_xin.js
...ent/components/comren_wu_zhong_xin/comren_wu_zhong_xin.js
+9
-6
package-lock.json
taobao_mini/client/package-lock.json
+5
-0
package.json
taobao_mini/client/package.json
+1
-0
lighting.js
taobao_mini/client/pages/pageshou_ye/lighting.js
+163
-0
pageshou_ye.acss
taobao_mini/client/pages/pageshou_ye/pageshou_ye.acss
+321
-32
pageshou_ye.axml
taobao_mini/client/pages/pageshou_ye/pageshou_ye.axml
+33
-11
pageshou_ye.js
taobao_mini/client/pages/pageshou_ye/pageshou_ye.js
+101
-11
pageshou_ye.json
taobao_mini/client/pages/pageshou_ye/pageshou_ye.json
+3
-1
resList.js
taobao_mini/client/resconfig/resList.js
+36
-0
No files found.
taobao_mini/client/app.js
View file @
90b653df
import
cloud
from
'@tbmp/mp-cloud-sdk'
;
import
tbcc
from
'./tbcc-sdk'
;
const
env
=
'
online
'
// 云函数环境 test 测试环境 online 线上环境
const
env
=
'
test
'
// 云函数环境 test 测试环境 online 线上环境
cloud
.
init
({
env
:
env
});
...
...
taobao_mini/client/components/comfan_pai_suo_you_qia/comfan_pai_suo_you_qia.acss
View file @
90b653df
...
...
@@ -56,17 +56,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.fan_pai_suo_you_qia .fan_pai_suo_you_qia_kuang .gong_xi_ni_jie_suo_xzhang_qia_pai_huo_de_1ci_ling_jiang_ji_hui {
width: 526rpx;
height: 134rpx;
opacity: 1;
left: 108rpx;
top: 10rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 52.84626rpx;
color: #ffffff;
}
.fan_pai_suo_you_qia .fan_pai_suo_you_qia_kuang .guan_bi_m15 {
width: 49rpx;
height: 48rpx;
...
...
@@ -78,14 +68,29 @@
.fan_pai_suo_you_qia .fan_pai_suo_you_qia_kuang .gong_xi_ni_jie_suo_xzhang_qia_pai {
width: 526rpx;
height: 59rpx;
text-align: center;
opacity: 1;
left: 108rpx;
font-weight: bolder;
top: 77rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 52.84626rpx;
color: #ffffff;
}
.fan_pai_suo_you_qia .fan_pai_suo_you_qia_kuang .gong_xi_ni_jie_suo_xzhang_qia_pai2 {
width: 526rpx;
height: 59rpx;
text-align: center;
opacity: 1;
left: 111rpx;
font-weight: bolder;
top: 80rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 52.84626rpx;
color: #ff971c;
}
.fan_pai_suo_you_qia .fan_pai_suo_you_qia_kuang .fu_biao_ti_kao_bei {
width: 398rpx;
height: 42rpx;
...
...
@@ -107,8 +112,9 @@
height: 24rpx;
opacity: 1;
left: 109rpx;
top:
9
rpx;
top:
7
rpx;
position: absolute;
text-align: center;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 20.58945rpx;
color: #ffd801;
...
...
taobao_mini/client/components/comfan_pai_suo_you_qia/comfan_pai_suo_you_qia.axml
View file @
90b653df
<view class="fan_pai_suo_you_qia ">
<view class="fan_pai_suo_you_qia_kuang ">
<image class="an_niu_m38 " src={{resList['65d0f064-2527-4aef-8563-858eaf7ccf1e'].url}} />
<image class="di_m21 " src={{resList['468745a5-60dd-4f8f-bb12-12eb0e7264ef'].url}} />
<image class="xi_you_qia_di_m18 " src={{resList['6c708f3c-4716-4789-93d4-8f677a595446'].url}} />
<view class="qia_pai_16 ">
<image class="dai_shu_qia_xue_xi " src={{resList['7cd30461-36df-4a39-9e14-7e1c70999452'].url}} />
</view>
<span class="gong_xi_ni_jie_suo_xzhang_qia_pai_huo_de_1ci_ling_jiang_ji_hui ">
恭喜你解锁X张卡牌 获得1次领奖机会
</span>
<image class="guan_bi_m15 " src={{resList['50aaeef4-ecb8-4a3f-9782-46ca780a52c2'].url}} />
<span class="gong_xi_ni_jie_suo_xzhang_qia_pai ">恭喜你解锁X张卡牌</span>
<view class="fu_biao_ti_kao_bei ">
<image class="yuan_jiao_ju_368814 " src={{resList['fe6fd8bc-732b-4bfe-89f4-5318f5cb090a'].url}} />
<span class="huo_de_1ci_ling_jiang_ji_hui ">获得1次领奖机会</span>
</view>
</view>
</view>
\ No newline at end of file
<view class="fan_pai_suo_you_qia_kuang ">
<image class="an_niu_m38 " src={{resList['65d0f064-2527-4aef-8563-858eaf7ccf1e'].url}} />
<image class="di_m21 " src={{resList['468745a5-60dd-4f8f-bb12-12eb0e7264ef'].url}} />
<image class="xi_you_qia_di_m18 " src={{resList['6c708f3c-4716-4789-93d4-8f677a595446'].url}} />
<view class="qia_pai_16 ">
<image class="dai_shu_qia_xue_xi " src={{resList['7cd30461-36df-4a39-9e14-7e1c70999452'].url}} />
</view>
<image class="guan_bi_m15 " onTap="onPopUp" src={{resList['50aaeef4-ecb8-4a3f-9782-46ca780a52c2'].url}} />
<label class="gong_xi_ni_jie_suo_xzhang_qia_pai2 ">恭喜你解锁X张卡牌</label>
<label class="gong_xi_ni_jie_suo_xzhang_qia_pai ">恭喜你解锁X张卡牌</label>
<view class="fu_biao_ti_kao_bei ">
<image class="yuan_jiao_ju_368814 " src={{resList['fe6fd8bc-732b-4bfe-89f4-5318f5cb090a'].url}} />
<label class="huo_de_1ci_ling_jiang_ji_hui ">获得1次领奖机会</label>
</view>
</view>
</view>
\ No newline at end of file
taobao_mini/client/components/comfan_pai_suo_you_qia/comfan_pai_suo_you_qia.js
View file @
90b653df
...
...
@@ -3,12 +3,16 @@
import
resList
from
'../../resconfig/resList'
;
Component
({
props
:
{},
data
:
{},
methods
:
{},
data
:
{
resList
:
resList
},
methods
:
{
onPopUp
()
{
this
.
props
.
onPopUp
()
}
},
onInit
(
props
)
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/components/comren_wu_zhong_xin/comren_wu_zhong_xin.acss
View file @
90b653df
...
...
@@ -6,6 +6,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .di_m9 {
width: 716rpx;
height: 939rpx;
...
...
@@ -13,15 +14,19 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 {
width: 594rpx;
height: 117rpx;
opacity: 1;
left: 103rpx;
top: 153rpx;
display: block;
margin-bottom: 5rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .di_m8 {
width: 594rpx;
height: 117rpx;
...
...
@@ -29,6 +34,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .tu_biao_m {
width: 86rpx;
height: 86rpx;
...
...
@@ -38,6 +44,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .qu_gou_mai_m {
width: 134rpx;
height: 53rpx;
...
...
@@ -47,6 +54,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .qu_wan_cheng_m {
width: 134rpx;
height: 53rpx;
...
...
@@ -56,6 +64,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .yi_wan_cheng_m {
width: 134rpx;
height: 53rpx;
...
...
@@ -65,6 +74,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .dai_ling_qu_m {
width: 134rpx;
height: 53rpx;
...
...
@@ -74,6 +84,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .qu_guan_zhu_m {
width: 134rpx;
height: 53rpx;
...
...
@@ -83,6 +94,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .qu_liu_lan_m {
width: 134rpx;
height: 53rpx;
...
...
@@ -92,6 +104,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .ming_ri_zai_lai_m {
width: 134rpx;
height: 53rpx;
...
...
@@ -101,6 +114,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .wen_an_7 {
width: 154rpx;
height: 65rpx;
...
...
@@ -110,6 +124,7 @@
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
.ren_wu_zhong_xin .ren_wu_1 .wen_an_7 .guan_zhu_dian_pu {
width: 120rpx;
height: 27rpx;
...
...
@@ -120,6 +135,7 @@
font-size: 28rpx;
color: #4b2a0a;
}
.ren_wu_zhong_xin .ren_wu_1 .wen_an_7 .fan_pai_ci_shu_10 {
width: 154rpx;
height: 23rpx;
...
...
@@ -130,3 +146,14 @@
font-size: 24rpx;
color: #9d8a7b;
}
.ren_wu_zhong_xin .ren_wu_zhong_xin_guan_bi_an_niu {
width: 49rpx;
height: 49rpx;
opacity: 1;
display: block;
left: 688rpx;
top: -14rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
}
\ No newline at end of file
taobao_mini/client/components/comren_wu_zhong_xin/comren_wu_zhong_xin.axml
View file @
90b653df
<view class="ren_wu_zhong_xin ">
<image class="di_m9 " src={{resList['c6f83af8-a064-426a-bb3c-60d7e9dd1c0b'].url}} />
<view class="ren_wu_1 ">
<image class="di_m8 " src={{resList['e670f6a8-3dee-493b-a55f-c61229c85cb5'].url}} />
<image class="tu_biao_m " src={{resList['6ec4da36-beba-4eea-ba56-e5d59c1e77dd'].url}} />
<image class="qu_gou_mai_m " src={{resList['befa9414-7e21-4e4a-a4d6-d42324525cd2'].url}} />
<image class="qu_wan_cheng_m " src={{resList['f4a40fdc-4ac7-4917-bdca-704ac6e293d6'].url}} />
<image class="yi_wan_cheng_m " src={{resList['60e755c5-16de-469e-b54b-d1254d4fdd13'].url}} />
<image class="dai_ling_qu_m " src={{resList['00c28c88-7e7c-4c9b-a708-f0254dab619a'].url}} />
<image class="qu_guan_zhu_m " src={{resList['ba2793d6-94cd-4fe1-ae3d-11278e0a66f8'].url}} />
<image class="qu_liu_lan_m " src={{resList['8473ab9f-df8e-4c4e-b249-8d1cad9f04ae'].url}} />
<image class="ming_ri_zai_lai_m " src={{resList['a3b76ef9-f877-4aa1-b07a-b1c971fd8c6d'].url}} />
<view class="wen_an_7 ">
<label class="guan_zhu_dian_pu ">关注店铺</label>
<label class="fan_pai_ci_shu_10 ">翻牌次数 +10</label>
</view>
</view>
</view>
\ No newline at end of file
<image class="di_m9 " src={{resList['c6f83af8-a064-426a-bb3c-60d7e9dd1c0b'].url}} />
<view class="ren_wu_1 " a:for="{{list}}">
<image class="di_m8 " src={{resList['e670f6a8-3dee-493b-a55f-c61229c85cb5'].url}} />
<image class="tu_biao_m " src={{resList['6ec4da36-beba-4eea-ba56-e5d59c1e77dd'].url}} />
<image class="qu_gou_mai_m " src={{resList['befa9414-7e21-4e4a-a4d6-d42324525cd2'].url}} />
<image class="qu_wan_cheng_m " src={{resList['f4a40fdc-4ac7-4917-bdca-704ac6e293d6'].url}} />
<image class="yi_wan_cheng_m " src={{resList['60e755c5-16de-469e-b54b-d1254d4fdd13'].url}} />
<image class="dai_ling_qu_m " src={{resList['00c28c88-7e7c-4c9b-a708-f0254dab619a'].url}} />
<image class="qu_guan_zhu_m " src={{resList['ba2793d6-94cd-4fe1-ae3d-11278e0a66f8'].url}} />
<image class="qu_liu_lan_m " src={{resList['8473ab9f-df8e-4c4e-b249-8d1cad9f04ae'].url}} />
<image class="ming_ri_zai_lai_m " src={{resList['a3b76ef9-f877-4aa1-b07a-b1c971fd8c6d'].url}} />
<view class="wen_an_7 ">
<label class="guan_zhu_dian_pu ">关注店铺</label>
<label class="fan_pai_ci_shu_10 ">翻牌次数 +10</label>
</view>
</view>
<image className="ren_wu_zhong_xin_guan_bi_an_niu " onTap="onPopUp" src={{resList['17952009-08e1-4439-b51f-3e4e1e66333f'].url}} />
</view>
\ No newline at end of file
taobao_mini/client/components/comren_wu_zhong_xin/comren_wu_zhong_xin.js
View file @
90b653df
...
...
@@ -3,14 +3,17 @@
import
resList
from
'../../resconfig/resList'
;
Component
({
props
:
{},
data
:
{
resList
:
resList
},
methods
:
{},
data
:
{
resList
:
resList
,
list
:[
1
,
2
,
3
,
4
,
5
]
},
methods
:
{
onPopUp
()
{
this
.
props
.
onPopUp
()
}
},
didMount
()
{
this
.
setData
({
});
this
.
methods
.
close
()
}
});
\ No newline at end of file
taobao_mini/client/package-lock.json
View file @
90b653df
...
...
@@ -3,6 +3,11 @@
"lockfileVersion"
:
1
,
"requires"
:
true
,
"dependencies"
:
{
"@tbminiapp/lottie-miniapp"
:
{
"version"
:
"0.0.4"
,
"resolved"
:
"http://npm.dui88.com:80/@tbminiapp%2flottie-miniapp/-/lottie-miniapp-0.0.4.tgz"
,
"integrity"
:
"sha1-YBN9pxTZa2mxzmDQQ6a5wf6FA5E="
},
"@tbmp/mp-cloud-sdk"
:
{
"version"
:
"1.4.2"
,
"resolved"
:
"https://registry.npm.taobao.org/@tbmp/mp-cloud-sdk/download/@tbmp/mp-cloud-sdk-1.4.2.tgz"
,
...
...
taobao_mini/client/package.json
View file @
90b653df
...
...
@@ -4,6 +4,7 @@
"main"
:
""
,
"license"
:
"MIT"
,
"dependencies"
:
{
"@tbminiapp/lottie-miniapp"
:
"0.0.4"
,
"@tbmp/mp-cloud-sdk"
:
"*"
,
"fyge-tbmini"
:
"^1.3.7"
,
"svga-parser"
:
"^1.1.0"
,
...
...
taobao_mini/client/pages/pageshou_ye/lighting.js
0 → 100644
View file @
90b653df
This diff is collapsed.
Click to expand it.
taobao_mini/client/pages/pageshou_ye/pageshou_ye.acss
View file @
90b653df
This diff is collapsed.
Click to expand it.
taobao_mini/client/pages/pageshou_ye/pageshou_ye.axml
View file @
90b653df
...
...
@@ -2,16 +2,18 @@
<view class="shou_ye_kuang ">
<view class="shou_ye_kuang_di_kuang ">
<image class="shou_ye_kuang_di_kuang_bei_jing " src={{resList['9a441973-a87c-4723-a797-1d18622ba791'].url}} />
<image class="shou_ye_kuang_di_kuang_zhuan_pan " src={{resList['1f29c5f6-3252-464f-814d-507f6e65536e'].url}} />
<image class="shou_ye_kuang_di_kuang_zhuan_pan
turn
" src={{resList['1f29c5f6-3252-464f-814d-507f6e65536e'].url}} />
<image class="shou_ye_kuang_di_kuang_bei_jing_shang " src={{resList['d28cb7a9-c1e9-4024-b2c5-24a302e5d139'].url}} />
<image class="shou_ye_kuang_di_kuang_bei_jing_xia " src={{resList['467f8042-27bd-4579-aa4a-5b7e5c4b4323'].url}} />
</view>
<view class="shou_ye_kuang_qia_pai_kuang ">
<image class="shou_ye_kuang_qia_pai_kuang_pai_5m " src={{resList['4b6a73a1-9e03-4ed6-9f37-4353f4eb715d'].url}} />
<image class="shou_ye_kuang_qia_pai_kuang_pai_4m " src={{resList['aefe5049-0ec7-4978-9f99-61520c6aa546'].url}} />
<image class="shou_ye_kuang_qia_pai_kuang_pai_3m " src={{resList['582957e3-5fb8-4079-a2a3-78e40bb8950b'].url}} />
<image class="shou_ye_kuang_qia_pai_kuang_pai_2m " src={{resList['beb35066-2901-44e7-a8ec-9c4a46a2d972'].url}} />
<image class="shou_ye_kuang_qia_pai_kuang_pai_m " src={{resList['a00a69b3-130e-438c-bfb4-e283b553c499'].url}} />
<view onAnimationEnd="animationend">
<image class="shou_ye_kuang_qia_pai_kuang_pai_3m {{cardAni.card5[cardStatus]}}" src={{resList['582957e3-5fb8-4079-a2a3-78e40bb8950b'].url}} />
</view>
<image class="shou_ye_kuang_qia_pai_kuang_pai_3m {{cardAni.card4[cardStatus]}}" src={{resList['582957e3-5fb8-4079-a2a3-78e40bb8950b'].url}} />
<image class="shou_ye_kuang_qia_pai_kuang_pai_3m {{cardAni.card3[cardStatus]}}" src={{resList['582957e3-5fb8-4079-a2a3-78e40bb8950b'].url}} />
<image class="shou_ye_kuang_qia_pai_kuang_pai_3m {{cardAni.card2[cardStatus]}}" src={{resList['582957e3-5fb8-4079-a2a3-78e40bb8950b'].url}} />
<image class="shou_ye_kuang_qia_pai_kuang_pai_3m {{cardAni.card1[cardStatus]}}" src={{resList['582957e3-5fb8-4079-a2a3-78e40bb8950b'].url}} />
</view>
<view class="shou_ye_jie_suo_fu_li_kuang ">
<image class="shou_ye_jie_suo_fu_li_kuang_qian_dao " src={{resList['26336845-54c5-4a6f-a97e-f3f13d3fef27'].url}} />
...
...
@@ -45,13 +47,13 @@
<image class="shou_ye_li_he_dian_liang_m " src={{resList['5d8bf336-cef9-4f9f-8824-6d40e64c673e'].url}} />
<image class="shou_ye_li_he_zhi_hui_m " src={{resList['9dbbe0b5-a157-40f0-8d13-9f8165e57246'].url}} />
</view>
<view class="shou_ye_wo_de_qia_pai ">
<view class="shou_ye_wo_de_qia_pai
btn-animate-pulse
">
<image class="shou_ye_di_m5 " src={{resList['0f9fe800-6f3a-4a3d-a76c-93378a58e261'].url}} />
<label class="shou_ye_wo_de_qia_pai_612 ">6/12</label>
</view>
<image class="shou_ye_xin_shou_li_m " src={{resList['ddece383-122a-4ed6-b035-dc695987650d'].url}} />
<image class="shou_ye_xin_shou_li_m "
onTap="rotate"
src={{resList['ddece383-122a-4ed6-b035-dc695987650d'].url}} />
<view class="shou_ye_chou_pai_an_niu ">
<image class="shou_ye_an_niu_m " src={{resList['1f2538c3-c2fb-4792-9c6d-7cd756ed64ba'].url}} />
<image class="shou_ye_an_niu_m " src={{resList['1f2538c3-c2fb-4792-9c6d-7cd756ed64ba'].url}}
onTap="lottery"
/>
<view class="shou_ye_ci_shu ">
<image class="shou_ye_di_m4 " src={{resList['c7838e10-23c7-4127-b5c6-c137c88aa26e'].url}} />
<label class="shou_ye_chou_jiang_ci_shu_11 ">{{lottery_count}}</label>
...
...
@@ -74,6 +76,26 @@
<image class="shou_ye_huo_dong_gui_ze_m " src={{resList['abc5f112-fa04-42fa-bfec-f633567807c8'].url}} />
<image class="shou_ye_jiang_pin_m " src={{resList['5a6679e0-89f7-4582-a89b-116a35e9750a'].url}} />
</view>
<view class="popcontainer" a:if="{{isShow}}">
<task_com close={{close}}/></view>
<!-- 任务弹窗 -->
<view class="popcontainer" a:if="{{task_com_status}}">
<task_com onPopUp="popupTaskCom"/>
</view>
<!-- 抽奖弹窗 -->
<view class="popcontainer" a:if="{{lottery_ani_com_status}}">
<view class="shou_ye_kuang ">
<view class="shou_ye_kuang_qia_pai_kuang cardJump" onAnimationEnd="jumpAnimationend">
<view>
<view onAnimationEnd="unfoldCardsAnimationend">
<image class="shou_ye_kuang_qia_pai_kuang_pai_m {{unflodCardAni.cardRight[unfoldCardStatus]}}" src={{resList['78f877e2-abb0-48ff-9fc9-80b346b14c19'].url}} />
</view>
<image class="shou_ye_kuang_qia_pai_kuang_pai_m {{unflodCardAni.cardLeft[unfoldCardStatus]}}" src={{resList['78f877e2-abb0-48ff-9fc9-80b346b14c19'].url}} />
<image class="shou_ye_kuang_qia_pai_kuang_pai_m {{unflodCardAni.cardCenter[unfoldCardStatus]}}" src={{resList['78f877e2-abb0-48ff-9fc9-80b346b14c19'].url}} />
</view>
</view>
</view>
</view>
<!-- 所有卡09弹窗 -->
<view class="popcontainer" a:if="{{lottery_allCards_com_status}}">
<all_cards_com onPopUp="popupAllCardsCom"></all_cards_com></view>
<canvas id="canvas" type="2d" onReady="onCanvasReady" class="lightcanvas"></canvas>
</view>
\ No newline at end of file
taobao_mini/client/pages/pageshou_ye/pageshou_ye.js
View file @
90b653df
'use strict'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
lottie
from
'@tbminiapp/lottie-miniapp'
Page
({
data
:
{},
...
...
@@ -10,23 +9,114 @@ Page({
this
.
setData
({
resList
:
resList
,
lottery_count
:
100
,
isShow
:
true
task_com_status
:
false
,
cardAni
:
{
card1
:
[
""
,
"turn1"
,
"return1"
],
card2
:
[
""
,
"turn2"
,
"return2"
],
card3
:
[
""
,
"turn3"
,
"return3"
],
card4
:
[
""
,
"turn4"
,
"return4"
],
card5
:
[
""
,
"turn5"
,
"return5"
]
},
cardStatus
:
1
,
unflodCardAni
:
{
cardLeft
:
[
""
,
"unfoldLeft"
],
cardCenter
:
[
""
,
""
],
cardRight
:
[
""
,
"unfoldRight"
]
},
unfoldCardStatus
:
0
,
lotteryStatus
:
0
,
isCanLottery
:
false
,
lottery_ani_com_status
:
false
,
lottery_allCards_com_status
:
false
});
var
systemInfo
=
my
.
getSystemInfoSync
();
console
.
log
(
systemInfo
)
},
onReady
()
{
console
.
log
(
1111
);
this
.
isStart
();
},
isStart
()
{
console
.
log
(
112
);
lottery
()
{
if
(
this
.
data
.
isCanLottery
)
{
this
.
setData
({
cardStatus
:
2
,
lotteryStatus
:
1
})
}
},
close
()
{
popupAllCardsCom
()
{
this
.
setData
({
isShow
:
false
lottery_allCards_com_status
:
false
})
}
},
popTaskCom
()
{
this
.
setData
({
task_com_status
:
true
})
},
popupTaskCom
()
{
this
.
setData
({
task_com_status
:
false
})
},
animationend
()
{
this
.
setData
({
isCanLottery
:
!
this
.
data
.
isCanLottery
})
if
(
this
.
data
.
cardStatus
==
2
)
{
this
.
setData
({
lottery_ani_com_status
:
true
})
}
},
});
\ No newline at end of file
jumpAnimationend
()
{
this
.
setData
({
unfoldCardStatus
:
1
,
})
},
unfoldCardsAnimationend
()
{
try
{
this
.
ani
.
goToAndPlay
(
0
)
}
catch
(
err
)
{
console
.
log
(
err
)
}
setTimeout
(()
=>
{
this
.
setData
({
cardStatus
:
1
,
unfoldCardStatus
:
0
,
lottery_ani_com_status
:
false
,
lottery_allCards_com_status
:
true
})
},
300
)
},
onCanvasReady
()
{
this
.
canvas
=
my
.
createCanvas
({
id
:
'canvas'
,
success
:
(
canvas
)
=>
{
var
systemInfo
=
my
.
getSystemInfoSync
();
canvas
.
width
=
systemInfo
.
windowWidth
*
systemInfo
.
pixelRatio
canvas
.
height
=
systemInfo
.
windowHeight
*
systemInfo
.
pixelRatio
lottie
.
setup
(
canvas
);
const
context
=
canvas
.
getContext
(
'2d'
)
this
.
ani
=
lottie
.
loadAnimation
({
autoplay
:
false
,
animationData
:
require
(
'./lighting.js'
),
rendererSettings
:
{
context
:
context
,
},
})
}
})
}
})
\ No newline at end of file
taobao_mini/client/pages/pageshou_ye/pageshou_ye.json
View file @
90b653df
{
"usingComponents"
:
{
"task_com"
:
"/components/comren_wu_zhong_xin/comren_wu_zhong_xin"
"task_com"
:
"/components/comren_wu_zhong_xin/comren_wu_zhong_xin"
,
"all_cards_com"
:
"/components/comfan_pai_suo_you_qia/comfan_pai_suo_you_qia"
}
}
\ No newline at end of file
taobao_mini/client/resconfig/resList.js
View file @
90b653df
...
...
@@ -611,5 +611,41 @@ const resList = {
uuid
:
'2959f04c-59e5-4a8f-89af-62cd884f0788'
,
url
:
'//yun.duiba.com.cn/spark/assets/72a96420c22c07468602525c524a0cb4c374eb91.png'
,
},
'5fc00059-9774-4a12-86b9-5cd7daf6d098'
:
{
name
:
'进度条1'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/ca6da2c1d0f093eda2ded691d719516e75efbaaa.png'
,
uuid
:
'5fc00059-9774-4a12-86b9-5cd7daf6d098'
},
'51891e4c-7ae8-4d69-993d-0905ac829b50'
:
{
name
:
'进度条3'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/98b11d5a771c14429a7260747e227f122ea401a0.png'
,
uuid
:
'51891e4c-7ae8-4d69-993d-0905ac829b50'
},
'8ce2eb8e-19ec-42ca-9965-8477a4bc77ef'
:
{
name
:
'进度条2'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/31970de1d9961241c08ea42f2ce1127b6c18e413.png'
,
uuid
:
'8ce2eb8e-19ec-42ca-9965-8477a4bc77ef'
},
'78f877e2-abb0-48ff-9fc9-80b346b14c19'
:
{
name
:
'卡片外发光'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/0a5f35048bbe1fd2f3282b084686284c039dd761.png'
,
uuid
:
'78f877e2-abb0-48ff-9fc9-80b346b14c19'
},
'b39ab8d5-cda5-4abf-80d1-79e11928fc39'
:
{
name
:
'底__m'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/879456b92c73ea12da02ae809939dd9f4cb19104.png'
,
uuid
:
'b39ab8d5-cda5-4abf-80d1-79e11928fc39'
},
'd7fa48bc-3fea-4f81-bb90-1ede45f70769'
:
{
name
:
'光'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark/assets/4f2a7a574d0e27012d66add3abcfceb2312ea73d.png'
,
uuid
:
'd7fa48bc-3fea-4f81-bb90-1ede45f70769'
}
};
export
default
resList
;
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