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
5f59df14
Commit
5f59df14
authored
Dec 08, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
2c5aefbd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
70 deletions
+32
-70
base.acss
taobao_mini/client/base_acss/base.acss
+7
-0
comgetcardpanel.axml
...ni/client/components/comgetcardpanel/comgetcardpanel.axml
+3
-5
comgetcardpanel.js
...mini/client/components/comgetcardpanel/comgetcardpanel.js
+1
-61
cominvitesuccesspanel.axml
...mponents/cominvitesuccesspanel/cominvitesuccesspanel.axml
+2
-2
your.acss
...ao_mini/client/components/cominvitesuccesspanel/your.acss
+17
-0
comprizetipspanel.axml
...lient/components/comprizetipspanel/comprizetipspanel.axml
+2
-2
No files found.
taobao_mini/client/base_acss/base.acss
View file @
5f59df14
...
@@ -37,4 +37,11 @@
...
@@ -37,4 +37,11 @@
height:100%;
height:100%;
z-index:999;
z-index:999;
background:rgba(0,0,0,0.01)
background:rgba(0,0,0,0.01)
}
.comWinTitle
{
-webkit-text-stroke: 1rpx #af4e00 !important;
font-weight: bold !important;
text-shadow: 3rpx 3rpx 2rpx #d82c2c !important;
}
}
\ No newline at end of file
taobao_mini/client/components/comgetcardpanel/comgetcardpanel.axml
View file @
5f59df14
...
@@ -5,15 +5,13 @@
...
@@ -5,15 +5,13 @@
<image class="dim51 " src={{resList['8c31274b-1016-4b8c-b413-9fc98174e118'].url}} />
<image class="dim51 " src={{resList['8c31274b-1016-4b8c-b413-9fc98174e118'].url}} />
<image class="xi_you_qia_dim50 " src={{resList['a47a9645-1d0d-482b-af10-154def15e9f9'].url}} />
<image class="xi_you_qia_dim50 " src={{resList['a47a9645-1d0d-482b-af10-154def15e9f9'].url}} />
<image class="getcardimg " src={{doJoinData.image}} />
<image class="getcardimg " src={{doJoinData.image}} />
<text class="getcardtitle " a:if={{doJoinData.isNewCard&&doJoinData.drawLotteryStatus==1}}> 运气爆棚!\n解锁一张新卡牌</text>
<text class="getcardtitle
comWinTitle
" a:if={{doJoinData.isNewCard&&doJoinData.drawLotteryStatus==1}}> 运气爆棚!\n解锁一张新卡牌</text>
<text class="getcardtitle " a:if={{doJoinData.isNewCard&&doJoinData.drawLotteryStatus==2}}> 恭喜你解锁{{doJoinData.cardTypeCollectedCount}}张卡牌</text>
<text class="getcardtitle
comWinTitle
" a:if={{doJoinData.isNewCard&&doJoinData.drawLotteryStatus==2}}> 恭喜你解锁{{doJoinData.cardTypeCollectedCount}}张卡牌</text>
<text class="getcardtitle " a:if={{!doJoinData.isNewCard}}> 恭喜你获得以下卡牌</text>
<text class="getcardtitle
comWinTitle
" a:if={{!doJoinData.isNewCard}}> 恭喜你获得以下卡牌</text>
<image class="getcardclosebtn "onTap="hiddenPanelEvent" data-value="{{'getcardpanel'}}" src={{resList['878b3751-e6b3-4ae6-9811-77e938801873'].url}} />
<image class="getcardclosebtn "onTap="hiddenPanelEvent" data-value="{{'getcardpanel'}}" src={{resList['878b3751-e6b3-4ae6-9811-77e938801873'].url}} />
<view class="fu_biao_ti45 ">
<view class="fu_biao_ti45 ">
<image class="yuan_jiao_ju368847 " src={{resList['d7329665-f4f6-42bc-ab46-0af63a0837eb'].url}} />
<image class="yuan_jiao_ju368847 " src={{resList['d7329665-f4f6-42bc-ab46-0af63a0837eb'].url}} />
<text class="getcardcontenttext ">再抽取{{doJoinData.restCardTypeCount}}张不同卡牌即可领取奖励</text>
<text class="getcardcontenttext ">再抽取{{doJoinData.restCardTypeCount}}张不同卡牌即可领取奖励</text>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
taobao_mini/client/components/comgetcardpanel/comgetcardpanel.js
View file @
5f59df14
...
@@ -2,37 +2,6 @@
...
@@ -2,37 +2,6 @@
import
{
DataCenter
}
from
'../../DataCenter'
;
import
{
DataCenter
}
from
'../../DataCenter'
;
import
resList
from
'../../resconfig/resList'
;
import
resList
from
'../../resconfig/resList'
;
import
lottie
from
'@tbminiapp/lottie-miniapp'
async
function
loadCloud
(
url
,
onLoad
,
onError
)
{
if
(
url
.
indexOf
(
"cloud://"
)
==
0
)
{
//@ts-ignore
const
{
cloud
}
=
getApp
();
//获取临时地址
var
urls
=
await
cloud
.
file
.
getTempFileURL
({
fileId
:
[
url
]
})
url
=
urls
[
0
].
url
.
replace
(
'-internal'
,
''
);
}
my
.
downloadFile
({
url
:
url
,
success
(
res
)
{
var
i
=
res
.
apFilePath
;
//临时地址是否有必要缓存下,如果读不到再考虑下载。
my
.
getFileSystemManager
().
readFile
({
filePath
:
i
,
encoding
:
"utf8"
,
success
:
function
(
r
)
{
onLoad
(
JSON
.
parse
(
r
.
data
)
)
},
fail
:
function
(
res
)
{
onError
&&
onError
(
res
)
}
})
},
fail
(
res
)
{
onError
&&
onError
(
res
)
},
});
}
Component
({
Component
({
props
:
{},
props
:
{},
data
:
{
data
:
{
...
@@ -42,29 +11,6 @@ Component({
...
@@ -42,29 +11,6 @@ Component({
hiddenPanelEvent
(
e
){
hiddenPanelEvent
(
e
){
this
.
props
.
onTapHiddenPanelEvent
(
e
);
this
.
props
.
onTapHiddenPanelEvent
(
e
);
},
},
// onCanvasReady() {
// my.createCanvas({
// id: 'canvas',
// success: (canvas) => {
// my.alert({
// title:"",
// content:"22"
// });
// lottie.setup(canvas);
// let context = canvas.getContext('2d')
// let ani = lottie.loadAnimation({
// loop: false, autoplay: true,
// animationData: DataCenter.lottieData,
// rendererSettings: {context: context},
// })
// ani.onComplete=()=>{
// this.setData({
// show:true
// })
// }
// },
// });
// },
},
},
didMount
(
props
)
{
didMount
(
props
)
{
console
.
log
(
DataCenter
.
doJoinData
)
console
.
log
(
DataCenter
.
doJoinData
)
...
@@ -73,17 +19,11 @@ Component({
...
@@ -73,17 +19,11 @@ Component({
showCardBody
:
false
,
showCardBody
:
false
,
doJoinData
:
DataCenter
.
doJoinData
?
DataCenter
.
doJoinData
.
data
:{}
doJoinData
:
DataCenter
.
doJoinData
?
DataCenter
.
doJoinData
.
data
:{}
});
});
//等待执行完动画再展示出来
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
setData
({
this
.
setData
({
showCardBody
:
true
showCardBody
:
true
})
})
},
1500
)
},
1500
)
// setTimeout(()=>{
// this.onCanvasReady()
// },2000)
}
}
});
});
\ No newline at end of file
taobao_mini/client/components/cominvitesuccesspanel/cominvitesuccesspanel.axml
View file @
5f59df14
<view class="invitesuccesspanel ">
<view class="invitesuccesspanel ">
<image class="dim81 " src={{resList['111c9125-e420-4da8-8a2a-ece402a8407d'].url}} />
<image class="dim81 " src={{resList['111c9125-e420-4da8-8a2a-ece402a8407d'].url}} />
<view class="invitesuccesstitle ">
<view class="invitesuccesstitle ">
<text class="cheng_gong_yao_qingx_ming_hao_you ">成功邀请
X
名好友</text>
<text class="cheng_gong_yao_qingx_ming_hao_you ">成功邀请
{{ShareInfo.rewards}}
名好友</text>
</view>
</view>
<image class="invitecontinueplaybtn " onTap="hiddenPanelEvent" data-value="invitesuccesspanel" src={{resList['464252af-98b7-4451-8331-b3d5f9be3a5d'].url}} />
<image class="invitecontinueplaybtn " onTap="hiddenPanelEvent" data-value="invitesuccesspanel" src={{resList['464252af-98b7-4451-8331-b3d5f9be3a5d'].url}} />
<text class="chi_da_jiang_jin_yi_bu_zhi_yao78 ">离大奖仅一步之遥</text>
<text class="chi_da_jiang_jin_yi_bu_zhi_yao78 ">离大奖仅一步之遥</text>
<view class="xiao_biao_ti77 ">
<view class="xiao_biao_ti77 ">
<text class="fan_pai_ci_shu ">翻牌次数</text>
<text class="fan_pai_ci_shu ">翻牌次数</text>
<text class="invitesuccesscount ">+
{{ShareInfo.rewards}}</text>
<text class="invitesuccesscount ">+{{ShareInfo.rewards}}</text>
</view>
</view>
<image class="invitesuccessclosebtn " onTap="hiddenPanelEvent" data-value="invitesuccesspanel" src={{resList['878b3751-e6b3-4ae6-9811-77e938801873'].url}} />
<image class="invitesuccessclosebtn " onTap="hiddenPanelEvent" data-value="invitesuccesspanel" src={{resList['878b3751-e6b3-4ae6-9811-77e938801873'].url}} />
</view>
</view>
\ No newline at end of file
taobao_mini/client/components/cominvitesuccesspanel/your.acss
View file @
5f59df14
.invitesuccesspanel{
.invitesuccesspanel{
height:1146rpx !important;
height:1146rpx !important;
}
.invitesuccesspanel .invitesuccesstitle .cheng_gong_yao_qingx_ming_hao_you {
font-size: 47rpx !important;
top: 0rpx !important;
-webkit-text-stroke: 1rpx #af4e00 !important;
font-weight: bold !important;
text-shadow: 3rpx 3rpx 2rpx #d82c2c !important;
}
.invitesuccesspanel .xiao_biao_ti77 .invitesuccesscount {
position: relative !important;
font-size: 60rpx !important;
top: 7rpx !important;
left: 0 !important;
font-weight: bold !important;
}
.invitesuccesspanel .xiao_biao_ti77 {
top: 500rpx !important;
}
}
\ No newline at end of file
taobao_mini/client/components/comprizetipspanel/comprizetipspanel.axml
View file @
5f59df14
<view class="prizetipspanel " >
<view class="prizetipspanel " >
<text class="zheng_zai_jin_xing_zhong ">正在进行中...</text>
<text class="zheng_zai_jin_xing_zhong
comWinTitle
">正在进行中...</text>
<text class="prizetipsnumberremainingtext ">(剩余{{CollectCardInfo.cardTypeCount-CollectCardInfo.cardTypeCollectedCount}}张解锁奖励)</text>
<text class="prizetipsnumberremainingtext
comWinTitle
">(剩余{{CollectCardInfo.cardTypeCount-CollectCardInfo.cardTypeCollectedCount}}张解锁奖励)</text>
<text class="prizetipsprize1text ">{{prizeList[0].name}}</text>
<text class="prizetipsprize1text ">{{prizeList[0].name}}</text>
<text class="prizetipsprize2text ">{{prizeList[1].name}}</text>
<text class="prizetipsprize2text ">{{prizeList[1].name}}</text>
<image class="prizetipsclosebtn " onTap="hiddenPanelEvent" data-value="prizetipspanel" src={{resList['878b3751-e6b3-4ae6-9811-77e938801873'].url}} />
<image class="prizetipsclosebtn " onTap="hiddenPanelEvent" data-value="prizetipspanel" src={{resList['878b3751-e6b3-4ae6-9811-77e938801873'].url}} />
...
...
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