feat: 添加无双相关
This commit is contained in:
+63
-3
@@ -1,10 +1,18 @@
|
||||
<template>
|
||||
<s-pages title="钱包" :pink_bg="true">
|
||||
<!-- 头部 -->
|
||||
<view class="header" :style="{ backgroundImage: 'url(' + $url + 'home/wallet2.png' + ')' }">
|
||||
<view class="header" :style="{ backgroundImage: 'url(' + $url + 'home/wallet2.png' + ')' }" @click.stop>
|
||||
<view class="header-content">
|
||||
<view class="title" @click="jumpPage('充值', '/pages/home/recharge')">
|
||||
钱包余额 <uni-icons type="right" color="#fff" size="28rpx" />
|
||||
<view class="header-top">
|
||||
<view class="title" @click="jumpPage('充值', '/pages/home/recharge')">
|
||||
钱包余额 <uni-icons type="right" color="#fff" size="28rpx" />
|
||||
</view>
|
||||
<view class="more-trigger" @click.stop="toggleLiquidationMenu">
|
||||
<uni-icons type="more-filled" color="#fff" size="34rpx" />
|
||||
</view>
|
||||
<view v-if="showLiquidationMenu" class="more-menu">
|
||||
<view class="more-menu-item" @click.stop="goWushuangLiquidation">无双变现</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="num size68 m-y-8" @click="jumpPage('充值', '/pages/home/recharge')">
|
||||
{{ $fen2yuan(money_obj?.balance || 0) }}
|
||||
@@ -43,6 +51,7 @@
|
||||
|
||||
const money_obj = ref();
|
||||
const tagList = ref([]);
|
||||
const showLiquidationMenu = ref(false);
|
||||
|
||||
//获取钱包
|
||||
function getData() {
|
||||
@@ -65,6 +74,7 @@
|
||||
});
|
||||
//充值提现弹框提示去跳转
|
||||
function jumpPage(typeTxt, url) {
|
||||
showLiquidationMenu.value = false;
|
||||
uni.showModal({
|
||||
// title: '',
|
||||
content: '是否去' + typeTxt,
|
||||
@@ -79,6 +89,15 @@
|
||||
},
|
||||
});
|
||||
}
|
||||
function toggleLiquidationMenu() {
|
||||
showLiquidationMenu.value = !showLiquidationMenu.value;
|
||||
}
|
||||
function goWushuangLiquidation() {
|
||||
showLiquidationMenu.value = false;
|
||||
uni.navigateTo({
|
||||
url: '/pages/home/liquidation?type=2&title=无双变现',
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@@ -93,6 +112,13 @@
|
||||
.header-content {
|
||||
padding: 80rpx 32rpx 24rpx;
|
||||
|
||||
.header-top {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
||||
font-weight: 400;
|
||||
@@ -101,6 +127,40 @@
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.more-trigger {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
border-radius: 26rpx;
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.more-menu {
|
||||
position: absolute;
|
||||
top: 62rpx;
|
||||
right: 0;
|
||||
min-width: 176rpx;
|
||||
padding: 10rpx;
|
||||
border-radius: 18rpx;
|
||||
background: rgba(26, 45, 88, 0.96);
|
||||
box-shadow: 0 12rpx 30rpx rgba(0, 0, 0, 0.18);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.more-menu-item {
|
||||
height: 68rpx;
|
||||
padding: 0 24rpx;
|
||||
border-radius: 14rpx;
|
||||
color: #ffffff;
|
||||
font-size: 26rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.num {
|
||||
font-family: Avenir, Avenir;
|
||||
font-weight: 900;
|
||||
|
||||
Reference in New Issue
Block a user