Commit 1b62517f authored by spc's avatar spc

授权

parent dfa080e4
...@@ -106,19 +106,10 @@ ...@@ -106,19 +106,10 @@
</swiper> </swiper>
<!-- Full screen mask for new users --> <!-- Full screen mask for new users -->
<view class="full-mask" v-if="showMask"> <view class="mask-background" v-if="showMask">
<!-- 蒙层 --> <button class="auth-button" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber">
<view class="mask-background" @click="handleMaskClick"></view>
</button>
<!-- 授权内容 -->
<view class="auth-content">
<view class="auth-title">授权手机号</view>
<view class="auth-desc">为了更好的服务体验,需要获取您的手机号</view>
<button class="auth-button" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber">
授权手机号
</button>
<button class="close-button" @click="handleMaskClick">取消</button>
</view>
</view> </view>
<!-- 抽奖成功弹窗 --> <!-- 抽奖成功弹窗 -->
...@@ -329,7 +320,7 @@ const fetchAct915HomeData = async () => { ...@@ -329,7 +320,7 @@ const fetchAct915HomeData = async () => {
receivedPrizes.value = data.receivedPrizes || [] receivedPrizes.value = data.receivedPrizes || []
// 判断是否登录(根据notLogin字段或邀请码) // 判断是否登录(根据notLogin字段或邀请码)
isLogin.value = !data.notLogin && !!data.invitationCode isLogin.value = !data.notLogin
console.log('邀请数据更新:', { console.log('邀请数据更新:', {
invitationCode: invitationCode.value, invitationCode: invitationCode.value,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background-color: #f5f5f5; background-color: #f5f5f5;
text { text {
font-size: 32rpx; font-size: 32rpx;
color: #666; color: #666;
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
height: 286rpx; // 固定高度,确保商品项有足够空间 height: 286rpx; // 固定高度,确保商品项有足够空间
position: relative; position: relative;
pointer-events: auto; // 恢复点击事件 pointer-events: auto; // 恢复点击事件
transition: all 0.3s ease; transition: all 0.3s ease;
min-width: 200rpx; // 最小宽度确保可点击性 min-width: 200rpx; // 最小宽度确保可点击性
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
.act915pagegoodslist2product { .act915pagegoodslist2product {
position: relative; position: relative;
pointer-events: auto; // 恢复点击事件 pointer-events: auto; // 恢复点击事件
transition: all 0.3s ease; transition: all 0.3s ease;
width: 204rpx; width: 204rpx;
height: 295rpx; height: 295rpx;
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
.act915pagegoodslist1product { .act915pagegoodslist1product {
position: relative; position: relative;
pointer-events: auto; // 恢复点击事件 pointer-events: auto; // 恢复点击事件
transition: all 0.3s ease; transition: all 0.3s ease;
width: 204rpx; width: 204rpx;
height: 295rpx; height: 295rpx;
...@@ -275,20 +275,19 @@ ...@@ -275,20 +275,19 @@
background-size: contain; background-size: contain;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
// 重置button默认样式 // 重置button默认样式
border: none; border: none;
outline: none; outline: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
background-color: transparent; background-color: transparent;
// 移除button的默认样式 // 移除button的默认样式
&::after { &::after {
border: none; border: none;
} }
// 移除button的默认边框 // 移除button的默认边框
&::before { &::before {
border: none; border: none;
...@@ -399,6 +398,28 @@ ...@@ -399,6 +398,28 @@
background-position: center; background-position: center;
} }
.mask-background {
width: 750rpx;
height: 459rpx;
left: 0rpx;
top: 2045rpx;
position: absolute;
.auth-button{
width: 750rpx;
height: 459rpx;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
border: none !important;
outline: none !important;
padding: 0;
margin: 0;
background-color: transparent !important;
}
}
.act915pagebanner { .act915pagebanner {
width: 750rpx; width: 750rpx;
height: 1332rpx; height: 1332rpx;
......
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