This commit is contained in:
tcubic 2022-08-06 00:18:32 +08:00
parent 66fa09c4c2
commit 4035a339e3
3 changed files with 19 additions and 10 deletions

View File

@ -424,7 +424,7 @@ const activityBtn = (item) => {
if (item.id == 1) {
if(store.state.userAccount.isAddCustomerBefore == 1 || isGetedServiceLucky.value){
if(store.state.userAccount.isAddCustomerBefore == 1 ){
// Toast("")
ishasServicePop()
}else{

View File

@ -7,7 +7,7 @@
<img :src="store.state.userAccount.eqcodeImg" alt="" />
</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>
@ -67,20 +67,17 @@ const isBingo = ref(false); //是否中过奖
const noPrize = ref(false); //
const noFirstAdd = ref(false)
//
const updateStaus = () => {
getIsAddService();
};
//
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;
@ -89,12 +86,23 @@ onBeforeMount(() => {
console.log("已经抽过》》》》》");
isgot.value = true;
isDraw.value = true;
noFirstAdd.value = true
}
// if(element.amount != 0){
// isBingo.value = true
// }
});
if (store.state.userAccount.isAddCustomer == 1) {
isadd.value = 1;
}
if (store.state.userAccount.isAddCustomer == 0 && !noFirstAdd.value) {
isadd.value = 0;
}
});
//

View File

@ -243,7 +243,8 @@ const getCode = () => {
let code = res.data.data;
console.log("get code结果3", res);
authCode.value = res.data.data;
window.location.href = res.data.data;
// window.location.href = res.data.data;
window.open(res.data.data)
});
};