Commit 106e728b authored by Edwise's avatar Edwise 🍷

1

parent d3dfabf6
......@@ -2,9 +2,9 @@
<image class="ranknoprizebg " src={{resList['ae93d0a2-7c8b-48a5-96a2-49b819e5b2bf'].url}} />
<!-- <label class="ranknoprizeindex ">500+</label> -->
<image class="ranknoprize500 " a:if="{{myRank>500}}" src={{resList['14fbf7c8-43e2-4bb9-81c8-d1392455cf39'].url}} />
<image class="rankNoPirzeHundred " a:if="{{myRank<=500}}" src={{resList['55fd44df-0153-4a6b-aa5c-b1aea201cdb8-'+(myRankHundred)].url}} />
<image class="rankNoPirzeTen " a:if="{{myRank<=500}}" src={{resList['55fd44df-0153-4a6b-aa5c-b1aea201cdb8-'+(myRankTen)].url}} />
<image class="rankNoPirzeOne " a:if="{{myRank<=500}}" style="{{{'left':oneLeft}}}" src={{resList['55fd44df-0153-4a6b-aa5c-b1aea201cdb8-'+(myRankOne)].url}} />
<image class="rankNoPirzeHundred " a:if="{{myRank<=500&&myRankHundred>0}}" src={{resList['55fd44df-0153-4a6b-aa5c-b1aea201cdb8-'+(myRankHundred)].url}} />
<image class="rankNoPirzeTen " a:if="{{myRank<=500&&myRankTen>0}}" style="{{{'left':tenLeft+'rpx'}}}" src={{resList['55fd44df-0153-4a6b-aa5c-b1aea201cdb8-'+(myRankTen)].url}} />
<image class="rankNoPirzeOne " a:if="{{myRank<=500&&myRankOne>0}}" style="{{{'left':oneLeft+'rpx'}}}" src={{resList['55fd44df-0153-4a6b-aa5c-b1aea201cdb8-'+(myRankOne)].url}} />
<image class="ranknoprizebtn btn" onTap="onCloseModal" src={{resList['d0c616aa-c606-40dd-b6f1-e9d370f3d053'].url}} />
<image class="ranknoprizeclose btn" onTap="onCloseModal" src={{resList['843f7959-252d-403d-8287-e212b46b1fc1'].url}} />
</view>
\ No newline at end of file
......@@ -3,7 +3,7 @@
import resList from '../../resconfig/resList';
Component({
props: {
gameInfo:{rank:156}
gameInfo:{rank:6}
},
data: {
resList: resList,
......@@ -31,7 +31,12 @@ Component({
console.log("排名",hundred,ten,one)
if(ten<=0){
this.setData({
oneLeft:'222rpx'
oneLeft:222
})
}else if(hundred<=0&&ten>0){
this.setData({
oneLeft:260,
tenLeft:164
})
}
this.setData({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment