Compare commits

...

1 Commits
main ... new

Author SHA1 Message Date
xiaogang 22f1812edb 与账户有个约会活动 2025-10-31 17:11:29 +08:00
5 changed files with 51 additions and 97 deletions

View File

@ -14,4 +14,7 @@
<style> <style>
/*每个页面公共css */ /*每个页面公共css */
body{
font-family: PingFangSC-Medium;
}
</style> </style>

View File

@ -1,24 +1,18 @@
<template> <template>
<scroll-view class="content" scroll-y> <scroll-view class="content" scroll-y>
<image src="../../static/image/bg.png" mode="widthFix" style="width: 100%;display: block;"></image> <image src="../../static/image/bg_new.png" mode="widthFix" style="width: 100%;display: block;"></image>
<uni-popup ref="popupRef" type="center" :is-mask-click="false" :mask-click="false"> <uni-popup ref="popupRef" type="center" :is-mask-click="false" :mask-click="false">
<view class="popup-content" style="background-image:url('../../static/image/popup_bg.png');height:360rpx"> <view class="popup-content" style="background-image:url('../../static/image/popup_new.png');height:560rpx">
<view class="number">红包已领取<text style="color:#F71E00">{{num}}</text></view> <view class="tips">恭喜您提现成功</view>
<view class="tips">请留意微信支付入账信息</view> <view class="number">{{ num }}<text></text></view>
<view class="btn" @click="closePopup"> <view class="btn" @click="closePopup">
<image src="../../static/image/popup_btn.png"></image> <image src="../../static/image/know_btn.png"></image>
</view> </view>
<!-- <view class="close">
<image src="../../static/image/ic_close.png" @click="closePopup"></image>
</view> -->
</view> </view>
</uni-popup> </uni-popup>
<uni-popup ref="popupNullRef" type="center" :is-mask-click="false" :mask-click="false"> <uni-popup ref="popupNullRef" type="center" :is-mask-click="false" :mask-click="false">
<view class="popup-content" style="background-image:url('../../static/image/null.png');height:260rpx"> <view class="popup-null" style="background-image:url('../../static/image/null.png');height:260rpx">
<view class="tips_null">暂无可领取的红包</view> <view class="tips_null">暂无可领取的红包</view>
<!-- <view class="close">
<image src="../../static/image/ic_close.png" @click="closePopup"></image>
</view> -->
</view> </view>
</uni-popup> </uni-popup>
</scroll-view> </scroll-view>
@ -47,6 +41,9 @@
}; };
uni.setStorageSync('orderInfo',JSON.stringify(orderInfo)); uni.setStorageSync('orderInfo',JSON.stringify(orderInfo));
checkEvent() checkEvent()
//
// num.value = 94 / 100
// popupRef.value.open()
}else{ }else{
sendEvent() sendEvent()
} }
@ -59,33 +56,9 @@
recieveEvent() recieveEvent()
}else{ }else{
popupNullRef.value.open() popupNullRef.value.open()
// uni.showModal({
// title: '',
// content: '',
// showCancel:false,
// success: function (res) {
// if (res.confirm) {
// console.log('');
// } else if (res.cancel) {
// console.log('');
// }
// }
// });
} }
}).catch(() => { }).catch(() => {
popupNullRef.value.open() popupNullRef.value.open()
// uni.showModal({
// title: '',
// content: '',
// showCancel:false,
// success: function (res) {
// if (res.confirm) {
// console.log('');
// } else if (res.cancel) {
// console.log('');
// }
// }
// });
}) })
} }
// //
@ -126,38 +99,10 @@
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
overflow-y: auto; overflow-y: auto;
.tips-text{ background-color: #d6adff;
color:#310000;
font-size:40rpx;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
}
.btn-area{
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
image{
width:300rpx;
height:100rpx;
border-radius:100rpx;
}
}
.tips-area{
width:700rpx;
margin-top:40rpx;
.tips-img{
display: block;
width:100%;
}
}
} }
.popup-content{ .popup-null{
width:610rpx; width:610rpx;
/* height:360rpx; */
/* background: url("../../static/image/popup_bg.png") no-repeat; */
background-repeat:no-repeat; background-repeat:no-repeat;
background-size:cover; background-size:cover;
display: flex; display: flex;
@ -165,26 +110,6 @@
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
.number{
color:#834525;
font-size:40rpx;
margin-top:70rpx;
margin-bottom:15rpx;
> text{
font-size:40rpx;
margin:0 12rpx;
display: inline-block;
}
}
.tips{
color:#d9c3b5;
font-size:30rpx;
margin-bottom:25rpx;
margin-top:50rpx;
opacity: 0.6;
font-size:28rpx;
font-weight:400;
}
.tips_null{ .tips_null{
color:#666; color:#666;
font-size:30rpx; font-size:30rpx;
@ -196,17 +121,43 @@
left:50%; left:50%;
transform: translate(-50%,-50%); transform: translate(-50%,-50%);
} }
.btn > image{ }
width:350rpx; .popup-content{
height:76rpx; width:518rpx;
} //width:610rpx;
.close { background-repeat:no-repeat;
position: absolute; background-size:cover;
bottom:-100rpx; display: flex;
> image { flex-direction: column;
width:60rpx; align-items: center;
height:60rpx; box-sizing: border-box;
position: relative;
.number{
color:#A000FF;
font-size:82rpx;
margin-bottom:10rpx;
font-weight:600;
> text{
font-size:36rpx;
margin-left:2rpx;
display: inline-block;
font-weight:400;
} }
} }
.tips{
color:#602BAA;
font-size:32rpx;
margin-bottom:10rpx;
margin-top:120rpx;
font-weight:500;
}
.btn{
position: absolute;
bottom:32rpx;
}
.btn > image{
width:320rpx;
height:88rpx;
}
} }
</style> </style>

BIN
static/image/bg_new.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

BIN
static/image/know_btn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
static/image/popup_new.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB