广告点击添加

This commit is contained in:
谢宇宁
2026-09-15 22:40:55 +07:00
parent fa02dcbadf
commit 2e8689cae0
53 changed files with 98 additions and 702 deletions
+1 -105
View File
@@ -62,46 +62,23 @@
<Loading />
</div>
</div>
<van-popup v-model:show="showDialog" teleport="body">
<div class="warp">
<div class="content_warp">
<div class="contents">
<p class="title">温馨提示</p>
<div class="line"></div>
<div class="desc">
实物奖品请联系在线客服领取
<br />
填写收货地址等
</div>
<div class="btn themes_btn_bg flex-center-center" @click="handleContact">联系客服</div>
</div>
<div class="close" @click="close">
<SvgIcon name="new_close" class="closeIcon" />
</div>
</div>
</div>
</van-popup>
</template>
<script lang="ts" setup>
import { reactive, ref } from 'vue';
import { reactive } from 'vue';
import { useUserStore } from '@/stores/user';
import { showToast } from 'vant';
import MineApi from '@/service/mine';
import UserApi from '@/service/user';
import HomeApi from '@/service/home';
import moment from 'moment';
import { useRouter } from 'vue-router';
const userStore = useUserStore();
const router = useRouter();
const showDialog = ref(false);
const state = reactive({
integralListVip: <Array<Types.Recharge.IntegralList>>[], // 积分列表
integralList: <Array<Types.Recharge.IntegralList>>[], // 积分列表
loading: true,
userWallet: <Types.User.WalletInfo>{},
integralRecordList: <any>[],
nowData: <any>{},
});
// 查询会员卡列表
const getVipList = async () => {
@@ -130,10 +107,6 @@ const exchange = async (item: Types.Recharge.IntegralList) => {
state.userWallet.integral -= item.price;
getIntegralRecordList();
showToast('兑换成功');
if (item.type == 5) {
showDialog.value = true;
state.nowData = item;
}
} catch (e) {
console.log(e);
}
@@ -144,13 +117,6 @@ const init = () => {
getIntegralRecordList();
};
init();
const close = () => {
showDialog.value = false;
};
const handleContact = () => {
showDialog.value = false;
router.push('/customerService');
};
</script>
<style lang="scss" scoped>
.memberExchange {
@@ -421,74 +387,4 @@ const handleContact = () => {
}
}
}
.warp {
.content_warp {
width: 311px;
border-radius: 10px;
background: #0f0f0f;
.contents {
font-size: 12px;
padding: 20px 22px 30px 22px;
box-sizing: border-box;
.title {
font-size: 20px;
text-align: center;
// padding: 20px 0;
box-sizing: border-box;
font-weight: 550;
// color: rgba(229, 6, 0, 1);
color: rgba(255, 255, 255, 1);
}
.line {
width: 100%;
height: 1px;
background: #ffffff1a;
margin: 20px 0;
position: relative;
}
.desc {
font-size: 16px;
color: rgba(255, 255, 255, 0.45);
margin-bottom: 20px;
line-height: 44px;
text-align: center;
}
.titleText {
margin: 0 0 20px 0;
background-color: rgba(51, 51, 51, 1);
border-radius: 5px;
color: #999;
padding: 8px 12px;
:deep(.van-field__control) {
color: #fff;
overflow: hidden;
}
::placeholder {
color: rgba(153, 153, 153, 1);
}
}
:deep(.van-cell::after) {
border-bottom: solid 1px transparent !important;
}
.btn {
width: 263px;
height: 44px;
border-radius: 4px;
font-size: 16px;
margin: 24px auto 0;
background: #f68804;
color: #fff;
}
}
.close {
position: absolute;
right: 15px;
top: 15px;
svg {
width: 20px;
height: 20px;
}
}
}
}
</style>