Commit 1f56edc1 authored by 王炽's avatar 王炽

666666

parent de6bdec6
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</template> </template>
<script setup> <script setup>
import { defineProps, defineEmits, ref, watch } from 'vue'; import { defineProps, defineEmits, ref, watch, onMounted } from 'vue';
// Props 定义 // Props 定义
const props = defineProps({ const props = defineProps({
...@@ -29,6 +29,15 @@ const props = defineProps({ ...@@ -29,6 +29,15 @@ const props = defineProps({
} }
}); });
onMounted(() => {
isAnimating.value = true;
// 动画播放完毕后(1.5秒)关闭弹窗
setTimeout(() => {
isAnimating.value = false;
emit('close');
}, 1500);
});
// Emits 定义 // Emits 定义
const emit = defineEmits(['close']); const emit = defineEmits(['close']);
...@@ -38,16 +47,16 @@ const isAnimating = ref(false); ...@@ -38,16 +47,16 @@ const isAnimating = ref(false);
// 关闭弹窗 - 点击时播放动画,动画结束后关闭 // 关闭弹窗 - 点击时播放动画,动画结束后关闭
const handleClose = () => { const handleClose = () => {
// 如果正在播放动画,则不重复触发 // 如果正在播放动画,则不重复触发
if (isAnimating.value) return; // if (isAnimating.value) return;
// 开始播放动画 // // 开始播放动画
isAnimating.value = true; // isAnimating.value = true;
// 动画播放完毕后(1.5秒)关闭弹窗 // // 动画播放完毕后(1.5秒)关闭弹窗
setTimeout(() => { // setTimeout(() => {
isAnimating.value = false; // isAnimating.value = false;
emit('close'); // emit('close');
}, 1500); // }, 1500);
}; };
</script> </script>
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
} }
.task_complete_icon_animating { .task_complete_icon_animating {
animation: taskCompleteIconFly 1.5s linear 1; animation: taskCompleteIconFly 1s linear 1;
z-index: 5; z-index: 5;
} }
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.7);
.close_icon { .close_icon {
margin-top: -7rpx; margin-top: -7rpx;
......
...@@ -29,18 +29,18 @@ ...@@ -29,18 +29,18 @@
/> />
<!-- 分享登录弹窗 --> <!-- 分享登录弹窗 -->
<!-- <sharepoplogin <sharepoplogin
:visible="showSharePopLogin" :visible="showSharePopLogin"
@close="handleCloseSharePopLogin" @close="handleCloseSharePopLogin"
@viewBenefits="handleViewBenefits" @viewBenefits="handleViewBenefits"
/> --> />
<!-- 分享未登录弹窗 --> <!-- 分享未登录弹窗 -->
<!-- <sharenpopnologin <sharenpopnologin
:visible="showShareNPopNoLogin" :visible="showShareNPopNoLogin"
@close="handleCloseShareNPopNoLogin" @close="handleCloseShareNPopNoLogin"
@viewBenefits="handleViewBenefits" @viewBenefits="handleViewBenefits"
/> --> />
</view> </view>
</template> </template>
...@@ -269,25 +269,26 @@ onShow(() => { ...@@ -269,25 +269,26 @@ onShow(() => {
} }
}); });
// // 关闭分享登录弹窗 // 关闭分享登录弹窗
// const handleCloseSharePopLogin = () => { const handleCloseSharePopLogin = () => {
// showSharePopLogin.value = false; showSharePopLogin.value = false;
// }; };
// // 关闭分享未登录弹窗 // 关闭分享未登录弹窗
// const handleCloseShareNPopNoLogin = () => { const handleCloseShareNPopNoLogin = () => {
// showShareNPopNoLogin.value = false; showShareNPopNoLogin.value = false;
// }; };
// // 查看权益按钮点击 // 查看权益按钮点击
// const handleViewBenefits = () => { const handleViewBenefits = () => {
// console.log('查看我的权益'); console.log('查看我的权益');
// // 这里可以添加跳转到权益页面的逻辑 // 这里可以添加跳转到权益页面的逻辑
// uni.showToast({ // uni.showToast({
// title: '跳转到权益页面', // title: '跳转到权益页面',
// icon: 'none' // icon: 'none'
// }); // });
// }; gotoIntegral();
};
// 一键领取按钮点击事件 // 一键领取按钮点击事件
const handleClaim = () => { const handleClaim = () => {
...@@ -299,11 +300,12 @@ const handleClaim = () => { ...@@ -299,11 +300,12 @@ const handleClaim = () => {
// 设置邀请用户类型 // 设置邀请用户类型
if(integralStore.assistInviteData?.data?.newUser) { if(integralStore.assistInviteData?.data?.newUser) {
globalStore.invateUseType = 'new'; globalStore.invateUseType = 'new';
gotoIntegral();
} else { } else {
globalStore.invateUseType = 'old'; showSharePopLogin.value = true;
// globalStore.invateUseType = 'old';
} }
gotoIntegral();
}; };
const gotoIntegral = () => { const gotoIntegral = () => {
......
...@@ -843,6 +843,12 @@ ...@@ -843,6 +843,12 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
// 当只有两个标签时,居中显示并设置间距
&.tabs-two {
justify-content: center;
gap: 106rpx;
}
.tab-item { .tab-item {
width: 245rpx; width: 245rpx;
height: 112rpx; height: 112rpx;
......
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
<view class="goods-container" v-if="goodsDataArr?.length > 0"> <view class="goods-container" v-if="goodsDataArr?.length > 0">
<!-- <view class="goods-container"> --> <!-- <view class="goods-container"> -->
<!-- 页签栏 --> <!-- 页签栏 -->
<view class="custom-tabs"> <view class="custom-tabs" :class="{ 'tabs-two': goodsDataArr?.length === 2 }" v-if="goodsDataArr?.length > 1">
<!-- <view v-for="(tab, index) in tabInfo.tabTexts" :key="index" class="tab-item" :class="{ --> <!-- <view v-for="(tab, index) in tabInfo.tabTexts" :key="index" class="tab-item" :class="{ -->
<view v-for="(tab, index) in goodsDataArr" :key="index" class="tab-item" :class="{ <view v-for="(tab, index) in goodsDataArr" :key="index" class="tab-item" :class="{
active: activeIndex === index && itemIndex !== 4, active: activeIndex === index && itemIndex !== 4,
...@@ -1825,6 +1825,7 @@ onShow(async () => { ...@@ -1825,6 +1825,7 @@ onShow(async () => {
}) })
onMounted(async () => { onMounted(async () => {
// showSignedTips.value = true;
showLoading(); showLoading();
// maxVal.value = getHuangjinMaxVal(); // maxVal.value = getHuangjinMaxVal();
...@@ -1917,9 +1918,13 @@ onMounted(async () => { ...@@ -1917,9 +1918,13 @@ onMounted(async () => {
} }
// 根据邀请用户类型显示对应的分享弹窗 // 根据邀请用户类型显示对应的分享弹窗
// if (globalStore.invateUseType === 'new') {
// showShareNPopNoLogin.value = true;
// } else if (globalStore.invateUseType === 'old') {
// showSharePopLogin.value = true;
// }
if (globalStore.invateUseType === 'new') { if (globalStore.invateUseType === 'new') {
showShareNPopNoLogin.value = true;
} else if (globalStore.invateUseType === 'old') {
showSharePopLogin.value = true; showSharePopLogin.value = true;
} }
...@@ -2922,7 +2927,7 @@ const handleRecordClick = () => { ...@@ -2922,7 +2927,7 @@ const handleRecordClick = () => {
// 分享配置 // 分享配置
onShareAppMessage(() => { onShareAppMessage(() => {
return { return {
title: '积分分享', title: integralStore.originInviteHome?.data?.invitationText,
path: '/pages/invate/sharepage' + '?inviteCode=' + integralStore.originInviteHome?.data?.invitationCode, path: '/pages/invate/sharepage' + '?inviteCode=' + integralStore.originInviteHome?.data?.invitationCode,
imageUrl: integralStore.originInviteHome?.data?.invitationImageUrl || 'https://course.feihe.com/momclub-picture/integral/1023/invate_star_character1023.png' imageUrl: integralStore.originInviteHome?.data?.invitationImageUrl || 'https://course.feihe.com/momclub-picture/integral/1023/invate_star_character1023.png'
}; };
......
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