更新
This commit is contained in:
parent
66fa09c4c2
commit
4035a339e3
@ -424,7 +424,7 @@ const activityBtn = (item) => {
|
|||||||
|
|
||||||
if (item.id == 1) {
|
if (item.id == 1) {
|
||||||
|
|
||||||
if(store.state.userAccount.isAddCustomerBefore == 1 || isGetedServiceLucky.value){
|
if(store.state.userAccount.isAddCustomerBefore == 1 ){
|
||||||
// Toast("您已添加过专属服务人员,请参与下方其他活动吧")
|
// Toast("您已添加过专属服务人员,请参与下方其他活动吧")
|
||||||
ishasServicePop()
|
ishasServicePop()
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<img :src="store.state.userAccount.eqcodeImg" alt="" />
|
<img :src="store.state.userAccount.eqcodeImg" alt="" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="update" v-if="isadd == 0" @click="updateStaus"></div>
|
<div class="update" v-if="!isgot" @click="updateStaus"></div>
|
||||||
|
|
||||||
<!-- 已经添加过:并且领取了红包 -->
|
<!-- 已经添加过:并且领取了红包 -->
|
||||||
<div class="is_got_box" v-if="isadd == 1 && isgot"></div>
|
<div class="is_got_box" v-if="isadd == 1 && isgot"></div>
|
||||||
@ -67,20 +67,17 @@ const isBingo = ref(false); //是否中过奖
|
|||||||
|
|
||||||
const noPrize = ref(false); //未中奖
|
const noPrize = ref(false); //未中奖
|
||||||
|
|
||||||
|
const noFirstAdd = ref(false)
|
||||||
|
|
||||||
// 刷新添加状态
|
// 刷新添加状态
|
||||||
const updateStaus = () => {
|
const updateStaus = () => {
|
||||||
|
|
||||||
getIsAddService();
|
getIsAddService();
|
||||||
};
|
};
|
||||||
|
|
||||||
// 页面挂载前
|
// 页面挂载前
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
if (store.state.userAccount.isAddCustomer == 1) {
|
|
||||||
isadd.value = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (store.state.userAccount.isAddCustomer == 0) {
|
|
||||||
isadd.value = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
let arr = store.state.userAccount.prizeList;
|
let arr = store.state.userAccount.prizeList;
|
||||||
|
|
||||||
@ -89,12 +86,23 @@ onBeforeMount(() => {
|
|||||||
console.log("已经抽过》》》》》");
|
console.log("已经抽过》》》》》");
|
||||||
isgot.value = true;
|
isgot.value = true;
|
||||||
isDraw.value = true;
|
isDraw.value = true;
|
||||||
|
noFirstAdd.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(element.amount != 0){
|
// if(element.amount != 0){
|
||||||
// isBingo.value = true
|
// isBingo.value = true
|
||||||
// }
|
// }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (store.state.userAccount.isAddCustomer == 1) {
|
||||||
|
isadd.value = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (store.state.userAccount.isAddCustomer == 0 && !noFirstAdd.value) {
|
||||||
|
isadd.value = 0;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 页面挂载后
|
// 页面挂载后
|
||||||
|
|||||||
@ -243,7 +243,8 @@ const getCode = () => {
|
|||||||
let code = res.data.data;
|
let code = res.data.data;
|
||||||
console.log("get code结果3", res);
|
console.log("get code结果3", res);
|
||||||
authCode.value = res.data.data;
|
authCode.value = res.data.data;
|
||||||
window.location.href = res.data.data;
|
// window.location.href = res.data.data;
|
||||||
|
window.open(res.data.data)
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user