|
@@ -66,25 +66,34 @@
|
|
</view>
|
|
</view>
|
|
</uni-popup>
|
|
</uni-popup>
|
|
<!-- 抽赏结果 -->
|
|
<!-- 抽赏结果 -->
|
|
- <uni-popup class="popup" ref="popup2" type="center">
|
|
|
|
- <!-- <image class="bk" :src="$fileUrl() + /winningLottery/bk.png" mode="widthFix"></image> -->
|
|
|
|
|
|
+ <uni-popup class="popup2" ref="popup2" type="center">
|
|
|
|
+ <image class="bk" :src="$fileUrl() + '/winningLottery/bk.png'" mode="widthFix"></image>
|
|
<view class="lotteryResults">
|
|
<view class="lotteryResults">
|
|
<view class="title">
|
|
<view class="title">
|
|
中奖详情
|
|
中奖详情
|
|
- <uni-icons class="close" @click="close2()" type="closeempty" size="20"></uni-icons>
|
|
|
|
|
|
+ <!-- <uni-icons class="close" @click="close2()" type="closeempty" size="20"></uni-icons> -->
|
|
</view>
|
|
</view>
|
|
- <view class="prizes" v-if="prizes.length > 0">
|
|
|
|
|
|
+ <view class="prizes" >
|
|
<view class="item" v-for="(item, index) in prizes">
|
|
<view class="item" v-for="(item, index) in prizes">
|
|
- <view class="type">
|
|
|
|
- {{ $selectDictLabel(rewardType, item.prizeType) }}
|
|
|
|
- </view>
|
|
|
|
- <image class="img" :src="item.prizeIcon" mode="widthFix"></image>
|
|
|
|
- <view class="name">
|
|
|
|
- {{ item.prizeName }} × {{item.prizeNum}}
|
|
|
|
|
|
+ <image class="img" :src="item.prizeIcon" mode="aspectFill"></image>
|
|
|
|
+ <view class="info">
|
|
|
|
+ <view class="row name">
|
|
|
|
+ <span style="margin-right: 10px;">{{ item.prizeName }}</span>
|
|
|
|
+ <span v-if="item.prizeType == 4">随机</span>
|
|
|
|
+ <span>{{item.prizeNum}}张</span>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row type">
|
|
|
|
+ {{ $selectDictLabel(rewardType, item.prizeType) }}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <Mloading class="loading" text="抽奖中..." v-if="prizes.length == 0" />
|
|
|
|
+ </view>
|
|
|
|
+ <image class="Rectangle" :src="$fileUrl() + '/winningLottery/Rectangle.png'" mode="widthFix"></image>
|
|
|
|
+ <view class="text">
|
|
|
|
+ 已放入背包,可前往背包查看~
|
|
</view>
|
|
</view>
|
|
- <Mloading text="抽奖中..." v-else />
|
|
|
|
|
|
+ <image class="close" @click="close2" :src="$fileUrl() + '/winningLottery/icon.png'" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
</uni-popup>
|
|
</uni-popup>
|
|
<!-- 选则优惠券 -->
|
|
<!-- 选则优惠券 -->
|
|
@@ -158,6 +167,26 @@
|
|
},
|
|
},
|
|
orderId: null,
|
|
orderId: null,
|
|
prizes: [],
|
|
prizes: [],
|
|
|
|
+ // prizes: [
|
|
|
|
+ // {
|
|
|
|
+ // prizeType: 1,
|
|
|
|
+ // prizeIcon: 'https://mall.rongtongh.cn/storage/raffle1.jpg',
|
|
|
|
+ // prizeName: 'S赏',
|
|
|
|
+ // prizeNum: 12
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // prizeType: 4,
|
|
|
|
+ // prizeIcon: 'https://mall.rongtongh.cn/storage/raffle1.jpg',
|
|
|
|
+ // prizeName: 'S赏',
|
|
|
|
+ // prizeNum: 12
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // prizeType: 1,
|
|
|
|
+ // prizeIcon: 'https://mall.rongtongh.cn/storage/raffle1.jpg',
|
|
|
|
+ // prizeName: 'S赏',
|
|
|
|
+ // prizeNum: 12
|
|
|
|
+ // }
|
|
|
|
+ // ],
|
|
getApiNum: 0,
|
|
getApiNum: 0,
|
|
info: {},
|
|
info: {},
|
|
// 优惠券
|
|
// 优惠券
|
|
@@ -377,10 +406,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
.tip {
|
|
.tip {
|
|
margin: 10px 20px 0 20px;
|
|
margin: 10px 20px 0 20px;
|
|
color: #000000;
|
|
color: #000000;
|
|
@@ -397,26 +422,29 @@
|
|
margin: 10px auto;
|
|
margin: 10px auto;
|
|
width: 210px;
|
|
width: 210px;
|
|
}
|
|
}
|
|
- .popup {
|
|
|
|
|
|
+ .popup2 {
|
|
.bk {
|
|
.bk {
|
|
|
|
+ position: relative;
|
|
|
|
+ top: -10vh;
|
|
width: 100vw;
|
|
width: 100vw;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.lotteryResults {
|
|
.lotteryResults {
|
|
- width: 90vw;
|
|
|
|
- // padding-top: 65px;
|
|
|
|
- background: #fff;
|
|
|
|
|
|
+ width: 76vw;
|
|
|
|
+ padding-top: 62px;
|
|
|
|
+ // background: #fff;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
- // position: absolute;
|
|
|
|
- // top: 0;
|
|
|
|
- // left: 50%;
|
|
|
|
- // transform: translateX(-50%);
|
|
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: -10vh;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
|
> .title {
|
|
> .title {
|
|
text-align: center;
|
|
text-align: center;
|
|
- padding: 15px;
|
|
|
|
|
|
+ padding: 16px;
|
|
|
|
+ height: 20px;
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
- // color: #fff;
|
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
|
.close {
|
|
.close {
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -424,21 +452,80 @@
|
|
top: 15px;
|
|
top: 15px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .Rectangle {
|
|
|
|
+ width: calc(100% - 1px);
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 45px;
|
|
|
|
+ left: 3px;
|
|
|
|
+ }
|
|
|
|
+ .text {
|
|
|
|
+ width: calc(100% - 1px);
|
|
|
|
+ height: 50px;
|
|
|
|
+ line-height: 50px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 45px;
|
|
|
|
+ left: 3px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: #fff;
|
|
|
|
+ text-shadow: 0px 1px 0px rgba(0,0,0,0.5);
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ }
|
|
|
|
+ .close {
|
|
|
|
+ width: 30px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ margin-top: 50px;
|
|
|
|
+ position: relative;
|
|
|
|
+ z-index: 4;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
+ }
|
|
.prizes {
|
|
.prizes {
|
|
- padding: 10px;
|
|
|
|
-
|
|
|
|
|
|
+ margin: 30px 15px 10px 19px;
|
|
|
|
+ position: relative;
|
|
|
|
+ height: calc(85vw - 30px);
|
|
|
|
+ background: linear-gradient(180deg, #F77D4D 0%, #FEAE81 100%);
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ padding: 10px 15px;
|
|
|
|
+ overflow: auto;
|
|
|
|
+
|
|
|
|
+ .loading {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translateY(-50%) translateX(-50%);
|
|
|
|
+ }
|
|
|
|
+
|
|
.item {
|
|
.item {
|
|
- display: inline-flex;
|
|
|
|
- flex-direction: column;
|
|
|
|
|
|
+ display: flex;
|
|
|
|
+ // flex-direction: column;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
text-align: center;
|
|
- margin-right: 5px;
|
|
|
|
-
|
|
|
|
|
|
+ // margin-right: 5px;
|
|
|
|
+ background: #fff;
|
|
|
|
+ padding: 13px 15px;
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+
|
|
.img {
|
|
.img {
|
|
width: 70px;
|
|
width: 70px;
|
|
|
|
+ height: 70px;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
}
|
|
|
|
+ .info {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ // align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ flex: 1;
|
|
|
|
+
|
|
|
|
+ .row {
|
|
|
|
+ // width: 100%;
|
|
|
|
+ }
|
|
|
|
+ .name {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -474,6 +561,7 @@
|
|
|
|
|
|
.right {
|
|
.right {
|
|
padding: 10px;
|
|
padding: 10px;
|
|
|
|
+ color: #8E4A21;
|
|
|
|
|
|
.row {
|
|
.row {
|
|
margin-bottom: 4px;
|
|
margin-bottom: 4px;
|
|
@@ -498,5 +586,7 @@
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<style scoped>
|
|
<style scoped>
|
|
-
|
|
|
|
|
|
+ .popup2 >>> .uni-popup__wrapper {
|
|
|
|
+ top: -8vh;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|