修复活动前添加企微逻辑判断
This commit is contained in:
parent
4872bfb7be
commit
66fa09c4c2
BIN
src/assets/img/pop/ishas_service.png
Normal file
BIN
src/assets/img/pop/ishas_service.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@ -104,6 +104,12 @@
|
||||
<div class="cls_btn" @click="hideServiceLuckyPop"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ishas_service_pop">
|
||||
<div class="ishas_service_box"></div>
|
||||
<div class="ishas_service_box_cls" @click="ishasServicePopHide"></div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@ -172,6 +178,15 @@ const hideServiceLuckyPop = () => {
|
||||
gsap.to(".serviceLuckyPop", { duration: 0.5, autoAlpha: 0 });
|
||||
};
|
||||
|
||||
// 已经添加企微逻辑
|
||||
const ishasServicePop = ()=>{
|
||||
gsap.to('.ishas_service_pop',{duration:0.5,autoAlpha:1})
|
||||
}
|
||||
const ishasServicePopHide = ()=>{
|
||||
gsap.to('.ishas_service_pop',{duration:0.5,autoAlpha:0})
|
||||
}
|
||||
|
||||
|
||||
// 点击领取企微红包
|
||||
const getServiceLucky = () => {
|
||||
if (
|
||||
@ -409,12 +424,15 @@ const activityBtn = (item) => {
|
||||
|
||||
if (item.id == 1) {
|
||||
|
||||
if(store.state.userAccount.isAddCustomerBefore == 1 || !isGetedServiceLucky.value){
|
||||
Toast("您已添加过专属服务人员,请参与下方其他活动吧")
|
||||
if(store.state.userAccount.isAddCustomerBefore == 1 || isGetedServiceLucky.value){
|
||||
// Toast("您已添加过专属服务人员,请参与下方其他活动吧")
|
||||
ishasServicePop()
|
||||
}else{
|
||||
showServicePop.value = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (item.id == 2) {
|
||||
@ -1077,4 +1095,32 @@ const deleteData = (type) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.ishas_service_pop{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
visibility: hidden;
|
||||
|
||||
.ishas_service_box{
|
||||
@include box(573px, 362px);
|
||||
@include bg_pos("../assets/img/pop/ishas_service.png");
|
||||
}
|
||||
|
||||
.ishas_service_box_cls{
|
||||
@include box(72px, 72px);
|
||||
@include bg_pos("../assets/img/pop/cls_btn.png");
|
||||
margin-top: 50px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -75,4 +75,5 @@ export default [
|
||||
require('../assets/img/pop/service_pop_2.png'),
|
||||
require('../assets/img/pop/to_index_btn.png'),
|
||||
require('../assets/img/pop/view_btn.png'),
|
||||
require('../assets/img/pop/ishas_service.png'),
|
||||
];
|
||||
Loading…
Reference in New Issue
Block a user