24 Commits

Author SHA1 Message Date
anonymous 6474bfcfba feat: 初始化项目 2025-01-28 10:55:29 +08:00
anonymous 1e1011b317 chore: 更换链接 2025-01-18 16:16:56 +08:00
anonymous d460f35007 update REMADE.md 2025-01-17 09:14:46 +08:00
zzzzzak 79b6ce1136 refactor: 余额明细修复 2025-01-16 23:34:50 +08:00
anonymous 23d94407c2 fix: bug 2025-01-16 14:58:24 +08:00
anonymous 05a8cb58d7 fix: bug 2025-01-16 14:09:35 +08:00
anonymous 778d318c7e fix: 修复低端android显示异常 2025-01-16 14:05:29 +08:00
anonymous 8b6922cfbe fix: 修改身份证规则 2025-01-15 09:59:06 +08:00
anonymous ff3640b062 refactor: 修改样式 2025-01-15 08:25:02 +08:00
anonymous e5508fe898 feat: 下载地址 2025-01-15 08:18:22 +08:00
zzzzzak 9354840543 refactor: 修改样式 2025-01-14 23:28:49 +08:00
anonymous 19a8d3c20a chore: 更新app地址 2025-01-14 14:33:37 +08:00
zzzzzak 51e34e4a42 fix: 修改域名 2025-01-13 21:44:22 +08:00
zzzzzak dabaa18dfd fix: 更新公告 2025-01-13 21:32:51 +08:00
zzzzzak 6e330c698e feat: 官方联系方式修改 2025-01-13 21:16:20 +08:00
anonymous 6114c6442c refactor: 修改下载地址 2025-01-13 16:58:00 +08:00
anonymous 3e5fc69c35 refactor: 修改样式 2025-01-13 08:21:31 +08:00
zzzzzak 5c864a8c63 更新 index.vue 2025-01-12 17:12:49 +08:00
anonymous 659dc92c90 feat: 修改文本 2025-01-12 17:04:48 +08:00
zzzzzak cf1900c5ed 更新 index.vue 2025-01-12 16:54:57 +08:00
zzzzzak cf54b39ad1 更新 index.vue 2025-01-12 16:48:14 +08:00
zzzzzak 7159a3148f 更新 index.vue 2025-01-12 16:27:05 +08:00
zzzzzak 0024d0f4e1 更新 index.vue 2025-01-12 12:02:01 +08:00
zzzzzak bfeb64196d 更新 index.vue 2025-01-12 11:32:43 +08:00
96 changed files with 1309 additions and 945 deletions
+1 -3
View File
@@ -1,3 +1 @@
<h1 align="center">
<a href="https://xpnwoprv6j.apifox.cn/255366682e0" target="_blank"> 接口文档,密码:888888</a>
</h1>
<a href="https://hugo-x6.yhdmit.com/docs/api#/operations/index.invite" target="_blank">x-6 docs</a>
Vendored
+1 -4
View File
@@ -1,5 +1,5 @@
VITE_APP_TITLE = 'unibest'
VITE_APP_PORT = 9000
VITE_APP_PORT = 9001
VITE_UNI_APPID = 'H57F2ACE4'
VITE_WX_APPID = 'wxa2abb91f64032a2b'
@@ -7,9 +7,6 @@ VITE_WX_APPID = 'wxa2abb91f64032a2b'
# h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base
VITE_APP_PUBLIC_BASE=/
VITE_SERVER_BASEURL = 'https://yapi.foxmail555.cc'
VITE_UPLOAD_BASEURL = 'https://yapi.foxmail555.cc/api/common/upload'
# h5是否需要配置代理
VITE_APP_PROXY=false
VITE_APP_PROXY_PREFIX = '/api'
+3
View File
@@ -4,3 +4,6 @@ NODE_ENV = 'development'
VITE_DELETE_CONSOLE = false
# 是否开启sourcemap
VITE_SHOW_SOURCEMAP = true
VITE_SERVER_BASEURL = 'https://hugo-x6.yhdmit.com'
VITE_UPLOAD_BASEURL = 'https://hugo-x6.yhdmit.com/api/common/upload'
+3
View File
@@ -4,3 +4,6 @@ NODE_ENV = 'development'
VITE_DELETE_CONSOLE = true
# 是否开启sourcemap
VITE_SHOW_SOURCEMAP = false
VITE_SERVER_BASEURL = 'https://api.qmbz.cc'
VITE_UPLOAD_BASEURL = 'https://api.qmbz.cc/api/common/upload'
+11 -18
View File
@@ -18,7 +18,7 @@ export default defineUniPages({
},
tabBar: {
color: '#999999',
selectedColor: '#D3B389',
selectedColor: '#BE805A',
backgroundColor: '#ffffff',
borderStyle: '#E7E7E7',
height: '56px',
@@ -26,30 +26,23 @@ export default defineUniPages({
iconWidth: '20px',
spacing: '3px',
list: [
// {
// iconPath: 'static/tabbar/home.png',
// selectedIconPath: 'static/tabbar/homeHL.png',
// pagePath: 'pages/index/index',
// text: '首页',
// },
{
iconPath: 'static/tabbar/bank.png',
selectedIconPath: 'static/tabbar/bankHL.png',
pagePath: 'pages/bank/index',
iconPath: 'static/tabbar/home.png',
selectedIconPath: 'static/tabbar/homeHL.png',
pagePath: 'pages/index/index',
text: '首页',
},
{
iconPath: 'static/tabbar/invite.png',
selectedIconPath: 'static/tabbar/inviteHL.png',
pagePath: 'pages/invite/index',
text: '邀请福利',
},
{
iconPath: 'static/tabbar/house.png',
selectedIconPath: 'static/tabbar/houseHL.png',
pagePath: 'pages/invite/index',
text: '邀请好友',
},
{
iconPath: 'static/tabbar/invest.png',
selectedIconPath: 'static/tabbar/investHL.png',
pagePath: 'pages/invest/index',
text: '资产平移',
text: '房产集团',
},
{
iconPath: 'static/tabbar/personal.png',
+1 -4
View File
@@ -36,6 +36,7 @@ const userStore = useUserStore()
/* 覆盖 uniapp 自带rpx效果 */
html {
font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
// font-size: 16px !important;
}
/* stylelint-disable-next-line selector-type-no-unknown */
#app {
@@ -133,8 +134,4 @@ uni-modal {
::-webkit-scrollbar {
display: none;
}
@font-face {
font-family: 'FARRINGTON-7B';
src: url('@/static/FARRINGTON-7B.ttf');
}
</style>
+1 -6
View File
@@ -10,12 +10,7 @@ defineProps({
</script>
<template>
<div
rounded-full
p-4
shadow-lg
style="background: linear-gradient(45deg, #ffdd99 0%, #efb85a 100%)"
>
<div rounded-full p-4 shadow-lg btn-gradient>
<image
block
overflow-hidden
+56
View File
@@ -0,0 +1,56 @@
<template>
<wd-popup
v-model="showPopup"
position="bottom"
:safe-area-inset-bottom="true"
custom-style="border-radius: 30px 30px 0 0"
>
<view class="py-15">
<view class="grid grid-cols-3 gap-20 p-15">
<view
class="text-center rounded-full bg-#889BC61A py-10 text-#889BC6 text-15"
v-for="(item, index) of payTypeList"
@click="currPayTypeIndex = index"
:key="item.value"
:class="{
'text-white btn-gradient': currPayTypeIndex === index,
}"
>
{{ item.title }}
</view>
</view>
<view class="p-15">
<view class="text-15 text-#333">个人所得税金额</view>
<view class="text-15 p-15 bg-#F3F5F9 rounded-4 mt-12">400</view>
</view>
<view
class="text-15 btn-gradient mx-15 mt-100 text-white rounded-full py-15 text-center"
@click="onSubmit"
>
立即缴纳
</view>
</view>
</wd-popup>
</template>
<script setup>
const emits = defineEmits(['submit'])
const showPopup = ref(false)
const payTypeList = [
{ title: '支付宝', value: 1 },
{ title: '微信', value: 2 },
{ title: '银联', value: 3 },
{ title: '云闪付', value: 4 },
]
const currPayTypeIndex = ref(0)
const onSubmit = () => {
emits('submit', payTypeList[currPayTypeIndex.value])
}
defineExpose({
onShowPopup() {
showPopup.value = true
},
})
</script>
+10 -9
View File
@@ -1,15 +1,16 @@
const baseUrl = import.meta.env.VITE_SERVER_BASEURL
export const useCaptcha = () => {
const t = ref(Date.now())
import { getCaptchaAPI } from '@/service'
const codeUrl = computed(() => {
return baseUrl + '/api/index/captcha?t=' + t.value
})
const refreshCode = () => {
t.value = Date.now()
export const useCaptcha = () => {
const codeUrl = ref('')
const codeKey = ref('')
const refreshCode = async () => {
const res = await getCaptchaAPI()
codeUrl.value = res.data.img
codeKey.value = res.data.key
}
onMounted(() => {
refreshCode()
})
return { codeUrl, t, refreshCode }
return { codeUrl, codeKey, refreshCode }
}
+1 -1
View File
@@ -52,7 +52,7 @@ const httpInterceptor = {
// 3. 添加 token 请求头标识
const userStore = useUserStore()
if (userStore.token) {
options.header.token = userStore.token
options.header.Authorization = `Bearer ${userStore.token}`
}
},
}
+1
View File
@@ -4,6 +4,7 @@
* 可以设置路由白名单,或者黑名单,看业务需要选哪一个
* 我这里应为大部分都可以随便进入,所以使用黑名单
*/
import { getRealNameAuthAPI, getUserInfoAPI } from '@/service'
import { useUserStore } from '@/store'
import {
getNotNeedLoginPages as _getNotNeedLoginPages,
+84
View File
@@ -0,0 +1,84 @@
<route lang="json5">
{
style: {
navigationBarTitleText: '股权流量提现明细',
navigationBarBackgroundColor: '#fff',
},
}
</route>
<script lang="ts" setup>
import NavBar from '@/components/NavBar.vue'
import { getMyAssetAPI } from '@/service'
import { useUserStore } from '@/store'
const { list: assetList } = useListPageRequest(getMyAssetAPI)
</script>
<template>
<view class="asset-page pt-15 relative">
<!-- <view class="flex justify-around">
<view
v-for="(tabItem, index) in tabList"
@click="tabIndex = index"
:key="tabItem.value"
class="flex items-center bg-#DEEBFF text-#3B81F3 rounded-full justify-center py-4 px-10"
:class="{ 'btn-gradient text-white': tabIndex === index }"
>
<view class="text-14">{{ tabItem.label }}</view>
</view>
</view> -->
<view class="text-white p-15 mt-15">
<view class="text-17">流量提现汇总</view>
<view class="text-30">
100
<text class="text-20">()</text>
</view>
</view>
<view class="relative z-1 mt-10 main-content pt-30 pb-30 rounded-t-15">
<view class="mb-15 px-25">资金明细</view>
<template v-if="assetList.length">
<view
class="flex px-25 py-12 border-b items-center border-#3333331A border-b-solid"
v-for="item in assetList"
:key="item.id"
>
<!-- <image src="/static/images/page-sub/invite-icon.png" class="w-48 h-48" /> -->
<view class="flex flex-col flex-1">
<view class="text-14 text-#333">{{ item.memo }}</view>
<view class="text-12 mt-4 text-#333">{{ item.createtime }}</view>
</view>
<view class="flex flex-col items-end">
<view class="text-17 font-bold text-gradient">{{ item.money }}</view>
</view>
</view>
</template>
<template v-else>
<wd-status-tip image="content" tip="暂无数据" />
</template>
</view>
<!-- <view class="mx-15 text-16 font-bold text-#333">我的资产</view>
<view
class="mt-15 mx-15 rounded-20 text-#476FFF main-content p-15 rounded-10 shadow-[0_5px_30px_rgba(149,195,255,0.4)]"
>
<view class="text-14 text-#6784C7">总投资金</view>
<view class="text-35 mt-10 font-bold">{{ detailInfo.suminvest }}</view>
</view>
<view class="text-16 mx-15 mb-15 font-bold text-#333 mt-30">资产记录</view>
-->
</view>
</template>
<style scoped>
.asset-page {
background-image: url('@/static/images/assets-bg.jpg');
background-repeat: no-repeat;
background-position: top -90px center;
background-size: 100%;
}
.main-content {
background-color: #ffffff;
/* backdrop-filter: blur(60px); */
}
</style>
+12 -18
View File
@@ -37,23 +37,15 @@ const { list: assetList, onReload } = useListPageRequest(
onLoad((options) => {
tabIndex.value = Number(options.tabIndex ?? 0)
onReload({
flagdata: unref(tabList)[tabIndex.value].value,
})
})
watch(
() => tabIndex.value,
(index) => {
onReload({
type: unref(tabList)[index].value,
})
},
{
immediate: true,
},
)
</script>
<template>
<view class="asset-page pt-15 relative">
<NavBar title-color="#333" :title="tabList[tabIndex].label" />
<NavBar :title="tabList[tabIndex].label" />
<!-- <view class="flex justify-around">
<view
v-for="(tabItem, index) in tabList"
@@ -65,18 +57,19 @@ watch(
<view class="text-14">{{ tabItem.label }}</view>
</view>
</view> -->
<view class="py-30 pt-80 px-25">
<view class="mt-30 p-15 text-white">
<view class="text-17">{{ tabList[tabIndex].label }}</view>
<view class="text-30">{{ tabList[tabIndex].money }}</view>
</view>
<view class="relative z-1 main-content pt-40 pb-30 rounded-t-15">
<view class="mb-15 px-15 text-18">{{ tabList[tabIndex].label }}明细</view>
<view class="relative z-1 mt-10 main-content pt-30 pb-30 rounded-t-15">
<view class="mb-15 px-25">{{ tabList[tabIndex].label }}明细</view>
<template v-if="assetList.length">
<view
class="flex px-15 py-12 border-b items-center border-#3333331A border-b-solid"
class="flex px-25 py-12 border-b items-center border-#3333331A border-b-solid"
v-for="item in assetList"
:key="item.id"
>
<image src="/static/images/page-sub/invite-icon.png" class="w-48 h-48" />
<view class="flex flex-col flex-1 ml-15">
<view class="text-14 text-#333">{{ item.memo }}</view>
<view class="text-12 mt-4 text-#333">{{ item.createtime }}</view>
@@ -105,12 +98,13 @@ watch(
<style scoped>
.asset-page {
background-image: url('@/static/images/page-sub/assets-bg.jpg');
background-image: url('@/static/images/assets-bg.jpg');
background-repeat: no-repeat;
background-position: top center;
background-size: 100%;
}
.main-content {
backdrop-filter: blur(60px);
background-color: #ffffff;
/* backdrop-filter: blur(60px); */
}
</style>
+94
View File
@@ -0,0 +1,94 @@
<route lang="json5">
{
style: {
navigationStyle: 'custom',
navigationBarTitleText: '股权提现',
},
}
</route>
<template>
<view class="min-h-screen pb-100">
<NavBar title-color="#333"></NavBar>
<view class="main-container w-345 h-100 mt-15 mx-auto flex p-15 items-center">
<view class="flex-1">
<view class="text-14 text-#ffffff99">可提现碧桂园股权</view>
<view class="text-20 text-white">
3521000
<text class="text-14">()</text>
</view>
</view>
<view class="ml-50 text-right flex-1">
<view class="text-14 text-#ffffff99">价值</view>
<view class="text-20 text-white">3521000</view>
</view>
</view>
<view class="p-15 mt-30 text-18 text-#333">提现信息</view>
<view class="bg-white rounded-10 m-15 px-15" style="box-shadow: 0px 0px 10px 0px #0a44f51a">
<view class="flex items-center text-14 text-#333 py-25">
<view class="">银行卡号</view>
<input class="text-14 text-#889BC6 text-right flex-1" placeholder="请输入银行卡号" />
</view>
<view class="flex items-center text-14 text-#333 py-25">
<view class="">开户银行</view>
<input class="text-14 text-#889BC6 text-right flex-1" placeholder="请输入开户银行" />
</view>
</view>
<view
class="bg-white fixed bottom-0 left-0 right-0 px-15 py-10 shadow-[0_0_10px_rgba(10,68,245,0.1)]"
>
<view class="pb-safe">
<view
class="btn-gradient text-center text-white rounded-full text-14 px-30 py-10"
@click="onSubmit"
>
立即提现
</view>
</view>
</view>
<WithdrawalTaxPopup ref="withdrawalTaxPopupRef" />
</view>
</template>
<script setup lang="ts">
import NavBar from '@/components/NavBar.vue'
import WithdrawalTaxPopup from '@/components/WithdrawalTaxPopup.vue'
import { submitWithdrawalAPI } from '@/service'
import { useUserStore } from '@/store'
import { showModal } from '@/utils'
const userStore = useUserStore()
const form = ref({
money: '',
})
const onWithdrawalDetail = () => {
uni.navigateTo({
url: '/pages-sub/withdrawal-detail/index',
})
}
const withdrawalTaxPopupRef = ref(null)
const onSubmit = async () => {
// if (!form.value.money) {
// return uni.showToast({
// title: '请输入提现金额',
// icon: 'none',
// })
// }
// await showModal('确认提现?')
// await submitWithdrawalAPI(form.value)
// await showModal('提交成功')
// onWithdrawalDetail()
withdrawalTaxPopupRef.value.onShowPopup()
}
</script>
<style scoped>
.main-container {
background-image: url('@/static/images/page-sub/withdrawal/main-bg.jpg');
background-size: 100%;
}
</style>
+3 -7
View File
@@ -2,15 +2,12 @@
{
style: {
navigationBarTitleText: '热点新闻',
navigationStyle: 'custom',
},
}
</route>
<template>
<view class="hot-news-page min-h-screen px-15 pb-100">
<NavBar title-color="#333" />
<view class="bg-#fff rounded-10 px-15 py-15 mt-15" v-if="newsList.length > 0">
<view class="hot-news-page min-h-screen p-15">
<view class="bg-#fff rounded-10 px-15 py-15" v-if="newsList.length > 0">
<view
class="flex mb-15"
v-for="item in newsList"
@@ -29,7 +26,6 @@
</template>
<script setup lang="ts">
import NavBar from '@/components/NavBar.vue'
import { getIntroductionAPI } from '@/service'
import { formatTime } from '@/utils'
@@ -45,6 +41,6 @@ const handleNewsDetail = (id: number) => {
</script>
<style scoped>
.hot-news-page {
background: linear-gradient(180deg, #fff3eb 0%, #ffffff 100%);
background: #f7f7f7;
}
</style>
+3 -1
View File
@@ -15,7 +15,9 @@
:src="introductionDetail.image"
mode="aspectFill"
/>
<view class="text-gray-500 mx-16 text-14 mt-15 break-all" v-html="introductionDetail.content" />
<view class="text-gray-500 mx-16 text-14 mt-15 break-all">
{{ introductionDetail.content }}
</view>
</view>
</template>
+15 -6
View File
@@ -3,27 +3,36 @@
style: {
navigationBarTitleText: '投资记录',
navigationBarBackgroundColor: '#fff',
navigationStyle: 'custom',
},
}
</route>
<script setup lang="ts">
import NavBar from '@/components/NavBar.vue'
import { getInvestmentRecordAPI } from '@/service'
const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI)
function getType(item) {
return Number(item.typedata) === 2 ? '投保' : '投资'
}
</script>
<template>
<view class="min-h-screen pb-100">
<template v-if="investmentRecordList.length">
<view
class="min-h-screen pb-100"
style="background: linear-gradient(180deg, #3a90f2 0%, #f7f7f7 100%)"
>
<NavBar />
<view class="mt-15" v-if="investmentRecordList.length">
<view
class="flex px-15 py-8 border-b border-#E5E5E5 border-b-solid"
class="flex px-15 py-8 mb-1 bg-#ffffff"
v-for="item in investmentRecordList"
:key="item.id"
>
<image src="/static/images/page-sub/money-icon.png" class="w-32 h-32 self-center" />
<view class="flex flex-col flex-1 justify-between ml-15">
<view class="text-14 text-#333">{{ item.name }}</view>
<view class="text-12 text-#999">投资</view>
<view class="text-12 text-#999">{{ getType(item) }}</view>
<view class="text-12 text-#999">{{ item.createtime }}</view>
</view>
@@ -33,11 +42,11 @@ const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI
class="text-14 mt-18 py-4 px-10 bg-#71C78A1A text-#71C78A"
v-if="Number(item.status) === 1"
>
投资成功
{{ getType(item) }}成功
</view>
</view>
</view>
</template>
</view>
<template v-else>
<wd-status-tip image="content" tip="暂无内容" />
</template>
+2 -2
View File
@@ -24,9 +24,9 @@
</view>
<view class="mt-50">
<view class="text-14 text-#333">提现密码</view>
<view class="text-14 text-#333">支付密码</view>
<view class="text-14 mt-15 text-#333 p-16 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<input type="password" placeholder="请输入提现密码" class="text-14 text-#333" />
<input type="password" placeholder="请输入支付密码" class="text-14 text-#333" />
</view>
</view>
</view>
+49 -117
View File
@@ -1,7 +1,7 @@
<route lang="json5">
{
style: {
navigationBarTitleText: '转盘抽奖',
navigationBarTitleText: '抽奖',
navigationBarBackgroundColor: '#fff',
navigationStyle: 'custom',
},
@@ -10,135 +10,67 @@
<script setup lang="ts">
import NavBar from '@/components/NavBar.vue'
import GridLottery from '@/components/GridLottery.vue'
import { showModal } from '@/utils'
import lotteryIcon from '@/static/images/home/nav-2.png'
const list = [
{
id: 1,
sort: 0,
title: '\u6BDB\u5DFE',
icon: lotteryIcon,
},
{
id: 2,
sort: 1,
title: '\u6BDB\u5DFE',
icon: lotteryIcon,
},
{
id: 3,
sort: 2,
title: '\u6BDB\u5DFE',
icon: lotteryIcon,
},
{
id: 4,
sort: 3,
title: '\u6BDB\u5DFE',
icon: lotteryIcon,
},
{
id: 5,
sort: 4,
title: '\u6BDB\u5DFE',
icon: lotteryIcon,
},
{
id: 6,
sort: 5,
title: '\u6BDB\u5DFE',
icon: lotteryIcon,
},
{
id: 7,
sort: 6,
title: '\u6BDB\u5DFE',
icon: lotteryIcon,
},
{
id: 8,
sort: 7,
title: '\u6BDB\u5DFE',
icon: lotteryIcon,
},
]
const gridLotteryRef = ref(null)
const onStart = () => {
// 中奖id,抽奖轮转时间毫秒
gridLotteryRef.value.start(3, 10000)
const onKefu = () => {
uni.navigateTo({
url: '/pages-sub/official-community/index',
})
}
const onEnd = () => {
console.log('onEnd')
const onLottery = () => {
showModal('您有5次机会')
}
</script>
<template>
<view class="min-h-screen lottery-page">
<view class="min-h-screen lottery-page pb-50">
<NavBar />
<view class="mt-240 w-315 h-315 flex items-center justify-center mx-auto lottery-container">
<grid-lottery
:itemHeight="186"
ref="gridLotteryRef"
class="w-280 ml-8 mt-8"
:list="list"
@onStart="onStart"
@onEnd="onEnd"
>
<!-- <view slot="lottery-item" slot-scope="slotProps">{{ slotProps }}</view> -->
<template #lottery-item="{ data, index, currIndex }">
<view
class="overflow-hidden relative lottery-item flex flex-col items-center justify-center rounded-10 bg-[linear-gradient(180deg,#fffdf7,#fff1ca)] w-86 h-86"
:class="{
mask: currIndex !== index,
}"
>
<image :src="data.icon" class="w-30 h-30" />
<view class="text-14 text-#333 mt-8">{{ data.title }}</view>
</view>
</template>
<template #start-button>
<view
class="w-86 flex flex-col items-center justify-center h-86 bg-[linear-gradient(180deg,#FF8282,#D73434)] text-#FBEDC6 text-25 rounded-10"
>
<view>点击</view>
<view>抽奖</view>
</view>
</template>
<template #activity-box>
<view class="w-86 h-86 bg-red-500"></view>
</template>
</grid-lottery>
<view class="text-26 text-center mt-500 text-#990E17 font-bold" @click="onLottery">
您有
<text class="text-36 text-white">5</text>
次机会
</view>
<view class="text-16 mx-auto w-315 mb-15 font-bold text-#fff mt-30">抽奖规则</view>
<view class="text-12 mx-auto w-315 mb-15 text-#fff mt-15">
1. 每轮抽奖消耗10000认购点每轮抽奖次数为3次每轮抽奖结束后消耗的认购点将恢复为0
<view class="text-25 text-center mt-50 text-#fff">中奖奖品</view>
<view class="mt-10 text-#FFE1B1 text-14 underline text-center" @click="onKefu">
中奖奖品请联系客服获取>>
</view>
<view class="mt-10 rounded-15 overflow-hidden mx-auto w-345 text-center">
<view class="flex bg-#FBE6CA text-#990E17 text-15 py-12">
<view class="flex-1">日期</view>
<view class="flex-1">奖品</view>
</view>
<view
class="flex bg-#F8CD96 text-#333333 text-15 py-12 border-t-solid border-t-#990E17 border-t-1"
>
<view class="flex-1">2025.01.058</view>
<view class="flex-1">物业费3年</view>
</view>
<view
class="flex bg-#F8CD96 text-#333333 text-15 py-12 border-t-solid border-t-#990E17 border-t-1"
>
<view class="flex-1">2025.01.058</view>
<view class="flex-1">物业费3年</view>
</view>
<view
class="flex bg-#F8CD96 text-#333333 text-15 py-12 border-t-solid border-t-#990E17 border-t-1"
>
<view class="flex-1">2025.01.058</view>
<view class="flex-1">物业费3年</view>
</view>
<view
class="flex bg-#F8CD96 text-#333333 text-15 py-12 border-t-solid border-t-#990E17 border-t-1"
>
<view class="flex-1">2025.01.058</view>
<view class="flex-1">物业费3年</view>
</view>
</view>
</view>
</template>
<style scoped>
.lottery-item {
&.mask {
&::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
content: '';
background: rgba(0, 0, 0, 0.1);
}
}
}
.lottery-container {
background-image: url('@/static/images/lottery-bar.png');
background-size: 100% 100%;
}
.lottery-page {
background-color: #517aae;
background-image: url('@/static/images/lottery-bg.png');
background-color: #8c201f;
background-image: url('@/static/images/lottery-bg.jpg');
background-repeat: no-repeat;
background-position: top;
background-size: 100%;
@@ -0,0 +1,38 @@
<route lang="json5">
{
style: {
navigationBarTitleText: '我的房产',
},
}
</route>
<template>
<view class="bg-#F7F7F7 min-h-screen pt-15">
<view class="p-15 mb-15 mx-auto w-345 rounded-10 bg-white">
<image
class="w-315 h-189"
src="@/static/images/page-sub/red-real-estate-certificate/example.jpg"
mode="aspectFill"
/>
<view class="flex items-center pt-15">
<view class="flex-1">
<view class="text-17 font-500">碧桂园精装房</view>
<view class="text-14 text-#999999 mt-8">100</view>
</view>
<view class="btn-gradient text-15 text-white py-8 px-20 rounded-full" @click="onTransfer">
房产过户
</view>
</view>
</view>
</view>
</template>
<script setup>
const onTransfer = () => {
uni.navigateTo({
url: '/pages-sub/room-transfer/index',
})
}
</script>
<style lang="scss" scoped></style>
+25 -14
View File
@@ -16,21 +16,32 @@ import VueQrcode from '@chenfengyuan/vue-qrcode'
<template>
<view class="official-community-page">
<NavBar />
<view class="p-15 text-center bg-white rounded-10 m-15 shadow-[0_0_10px_rgba(0,0,0,0.1)]">
<view class="text-16 font-bold text-#333">扫码进入</view>
<wd-icon name="arrow-down" color="#333" size="18px"></wd-icon>
<view class="btn-gradient rounded-full w-fit mx-auto text-16 text-white py-10 px-15">
微聊总群50101011
</view>
<VueQrcode class="!w-270 !h-270 mx-auto" :value="'qrcodeValue'" :options="{ size: 600 }" />
<view
class="relative px-15 text-center bg-white rounded-10 m-15 shadow-[0_0_10px_rgba(0,0,0,0.1)]"
>
<image
class="w-full mx-auto"
src="@/static/images/page-sub/official-community/image-1.jpg"
mode="widthFix"
/>
<a
href="https://doudlj.org/joinchat/Jol7Vt58a2aCrjsXm9D_LA"
class="absolute bottom-15 left-50% -translate-x-1/2"
>
点击进入
</a>
</view>
<view class="p-15 text-center bg-white rounded-10 m-15 shadow-[0_0_10px_rgba(0,0,0,0.1)]">
<view class="text-16 font-bold text-#333">扫码进入</view>
<wd-icon name="arrow-down" color="#333" size="18px"></wd-icon>
<view class="btn-gradient rounded-full w-fit mx-auto text-16 text-white py-10 px-15">
QQ群2群1011101011
</view>
<VueQrcode class="!w-270 !h-270 mx-auto" :value="'qrcodeValue'" :options="{ size: 600 }" />
<view
class="relative px-15 text-center bg-white rounded-10 m-15 shadow-[0_0_10px_rgba(0,0,0,0.1)]"
>
<image
class="w-full mx-auto"
src="@/static/images/page-sub/official-community/image-2.jpg"
mode="widthFix"
/>
<a href="https://doudlj.org/NiPing95" class="absolute bottom-15 left-50% -translate-x-1/2">
点击进入
</a>
</view>
</view>
</template>
-136
View File
@@ -1,136 +0,0 @@
<route lang="json5">
{
style: {
navigationBarTitleText: '设置提现密码',
navigationStyle: 'custom',
},
notNeedLogin: true,
}
</route>
<template>
<view class="login-container relative">
<NavBar title-color="#333" />
<view class="pt-45">
<view class="mx-15 px-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<template v-if="userStore.userInfo.tixianpass">
<view class="flex items-center py-15">
<view class="text-gradient">姓名</view>
<input
v-model="form.realname"
placeholder-class="text-#889BC6"
type="text"
class="text-right flex-1 text-14"
placeholder="请输入姓名"
/>
</view>
<view class="flex items-center py-15">
<view class="text-gradient">身份证号</view>
<input
v-model="form.cardnum"
placeholder-class="text-#889BC6"
type="text"
class="text-right flex-1 text-14"
placeholder="请输入身份证号"
/>
</view>
</template>
<view class="flex items-center py-15">
<view class="text-gradient">提现密码</view>
<input
v-model="form.tixianpass"
placeholder-class="text-#889BC6"
type="password"
class="text-right flex-1 text-14"
placeholder="请输入提现密码"
/>
</view>
<view class="flex items-center py-15">
<view class="text-gradient">确认提现密码</view>
<input
v-model="form.confirmtixianpass"
placeholder-class="text-#889BC6"
type="password"
class="text-right flex-1 text-14"
placeholder="请再次输入提现密码"
/>
</view>
</view>
<view
class="mt-50 text-center py-12 rounded-full mx-15 text-15 text-white btn-gradient"
@click="handleRegister"
>
确认
</view>
</view>
</view>
</template>
<script lang="ts" setup>
import NavBar from '@/components/NavBar.vue'
import { isLogged } from '@/interceptors/route'
import { setWithdrawalPasswordAPI, resetForgetWithdrawalPasswordAPI } from '@/service'
import { useUserStore } from '@/store/user'
import { mergeStep, showModal } from '@/utils'
const userStore = useUserStore()
const form = ref({
tixianpass: '',
confirmtixianpass: '',
realname: '',
cardnum: '',
})
let redirect = '/'
onLoad((options) => {
redirect = options.redirect ?? '/'
})
const handleRegister = mergeStep(async () => {
const isReset = !!userStore.userInfo.tixianpass
if (!form.value.realname && isReset) {
uni.showToast({
title: '请输入姓名',
icon: 'none',
})
return
}
if (!form.value.cardnum && isReset) {
uni.showToast({
title: '请输入身份证号',
icon: 'none',
})
return
}
if (!form.value.tixianpass) {
uni.showToast({
title: '请输入提现密码',
icon: 'none',
})
return
}
if (form.value.tixianpass !== form.value.confirmtixianpass) {
uni.showToast({
title: '两次输入的密码不一致',
icon: 'none',
})
return
}
const request = isReset ? resetForgetWithdrawalPasswordAPI : setWithdrawalPasswordAPI
const res = await request(form.value)
await showModal(res.msg ? res.msg : '设置成功')
uni.navigateBack({})
})
</script>
<style lang="scss" scoped>
.login-container {
box-sizing: border-box;
min-height: 100vh;
padding-bottom: 50px;
background-image: url('@/static/images/login-bg.jpg');
background-repeat: no-repeat;
background-size: cover;
}
</style>
+9 -21
View File
@@ -3,21 +3,19 @@
style: {
navigationBarTitleText: '实名认证',
navigationBarBackgroundColor: '#fff',
navigationStyle: 'custom',
},
}
</route>
<template>
<view class="realname-page min-h-screen">
<NavBar title-color="#333" />
<view class="withdrawal-type-edit-page pb-100 min-h-screen">
<template v-if="!realnameInfo">
<view class="p-15 m-15 bg-white shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<!-- <view class="flex items-center py-15 text-14">
<view class="p-15 m-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<view class="flex items-center py-15 text-14">
<image src="@/static/images/page-sub/realname/realname-type.png" class="w-20 h-20" />
<view class="ml-8">证件类型</view>
<view class="flex-1 text-right text-14">身份证</view>
</view> -->
</view>
<view class="flex items-center py-15 text-14">
<image src="@/static/images/page-sub/realname/realname-name.png" class="w-20 h-20" />
<view class="ml-8">真实姓名</view>
@@ -94,12 +92,11 @@
</button>
</template>
<template v-else-if="Number(realnameInfo.status) === 2">
<!-- <image
<image
src="@/static/images/page-sub/realname/realname-success.png"
class="w-150 h-150 block"
mode="aspectFit"
/> -->
<wd-status-tip image="comment" />
/>
<view class="text-center mt-15 text-14 text-#999">恭喜您实名认证成功</view>
<button class="btn-gradient px-30 text-white rounded-full m-15 text-16" @click="onGoHome">
返回
@@ -124,7 +121,6 @@
</template>
<script setup lang="ts">
import NavBar from '@/components/NavBar.vue'
import { getRealNameAuthAPI, realNameAuthAPI } from '@/service'
import { useUserStore } from '@/store'
import { mergeStep, showModal } from '@/utils'
@@ -155,12 +151,12 @@ const onSubmit = mergeStep(async () => {
// await showModal('请上传身份证照片')
// return
// }
const res = await realNameAuthAPI({
await realNameAuthAPI({
...form.value,
// zcardimage: zcardimage.value,
// fcardimage: fcardimage.value,
})
await showModal(res.msg ? res.msg : '提交成功,请耐心等待审核!')
await showModal('提交成功,请耐心等待审核!')
realnameInfo.value = await getRealNameAuthAPI().then((res) => {
return res.data
})
@@ -183,16 +179,8 @@ onLoad(async () => {
})
</script>
<style lang="scss" scoped>
.realname-page {
.withdrawal-type-edit-page {
--wot-input-placeholder-color: #889bc6;
--wot-cell-wrapper-padding: 0;
box-sizing: border-box;
min-height: 100vh;
padding-bottom: 50px;
// background-repeat: no-repeat;
// background-size: cover;
background:
url('@/static/images/brand-person.png') right 20px bottom / 60% no-repeat,
linear-gradient(180deg, #fff3eb 0%, #ffffff 100%);
}
</style>
+38
View File
@@ -0,0 +1,38 @@
<route lang="json5">
{
style: {
navigationBarTitleText: '红本房产证',
},
}
</route>
<template>
<view class="bg-#F7F7F7 min-h-screen pt-15">
<view class="p-15 mb-15 mx-auto w-345 rounded-10 bg-white">
<image
class="w-315 h-189"
src="@/static/images/page-sub/red-real-estate-certificate/example.jpg"
mode="aspectFill"
/>
<view class="flex items-center pt-15">
<view class="flex-1">
<view class="text-17 font-500">碧桂园精装房</view>
<view class="text-14 text-#999999 mt-8">100~150</view>
</view>
<view class="btn-gradient text-15 text-white py-8 px-20 rounded-full" @click="onSendMail">
房本邮寄
</view>
</view>
</view>
</view>
</template>
<script setup>
const onSendMail = () => {
uni.navigateTo({
url: '/pages-sub/room-mail/index',
})
}
</script>
<style lang="scss" scoped></style>
+45
View File
@@ -0,0 +1,45 @@
<route lang="json5">
{
style: {
navigationBarTitleText: '房本邮寄',
},
}
</route>
<template>
<view class="min-h-screen pt-15">
<view
class="px-15 py-10 mb-15 mx-auto w-345 rounded-10 bg-white"
style="box-shadow: 0px 0px 10px 0px #0a44f51a"
>
<view class="flex items-center py-15">
<view class="text-gradient">手机号</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入手机号"
/>
</view>
<view class="flex items-center py-15">
<view class="text-gradient">邮寄地址</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入邮寄地址"
/>
</view>
</view>
<view
class="mt-50 text-center py-12 rounded-full mx-15 text-15 text-white btn-gradient"
@click="handleRegister"
>
邮寄
</view>
</view>
</template>
<script setup></script>
<style lang="scss" scoped></style>
+114
View File
@@ -0,0 +1,114 @@
<route lang="json5">
{
style: {
navigationBarTitleText: '房产过户',
},
}
</route>
<template>
<view class="min-h-screen pt-15">
<view class="text-18 p-15">申请人信息</view>
<view
class="px-15 py-10 mb-15 mx-auto w-345 rounded-10 bg-white"
style="box-shadow: 0px 0px 10px 0px #0a44f51a"
>
<view class="flex items-center py-15">
<view class="text-14">申请人姓名</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入申请人姓名"
/>
</view>
<view class="flex items-center py-15">
<view class="text-14">身份证号码</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入身份证号码"
/>
</view>
<view class="flex items-center py-15">
<view class="text-14">联系电话</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入联系电话"
/>
</view>
<view class="flex items-center py-15">
<view class="text-14">家庭地址</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入家庭地址"
/>
</view>
</view>
<view class="text-18 p-15">过户人信息</view>
<view
class="px-15 py-10 mb-15 mx-auto w-345 rounded-10 bg-white"
style="box-shadow: 0px 0px 10px 0px #0a44f51a"
>
<view class="flex items-center py-15">
<view class="text-14">过户人姓名</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入过户人姓名"
/>
</view>
<view class="flex items-center py-15">
<view class="text-14">身份证号码</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入身份证号码"
/>
</view>
<view class="flex items-center py-15">
<view class="text-14">联系电话</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入联系电话"
/>
</view>
<view class="flex items-center py-15">
<view class="text-14">家庭地址</view>
<input
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入家庭地址"
/>
</view>
</view>
<view class="flex mt-50 pb-15">
<view
class="flex-1 text-center py-12 rounded-full mx-15 text-15 text-white btn-gradient"
@click="handleRegister"
>
确认信息
</view>
<view
class="flex-1 text-center py-12 rounded-full mx-15 text-15 text-white btn-gradient"
@click="handleRegister"
>
邮寄
</view>
</view>
</view>
</template>
<script setup></script>
<style lang="scss" scoped></style>
+1 -3
View File
@@ -31,9 +31,7 @@
/>
<view class="flex flex-col flex-1 justify-between ml-15">
<view class="text-14 text-#333">
{{ item.kaihuhang }}({{ item.banknum.slice(0, 4) }}****{{ item.banknum.slice(-4) }})
</view>
<view class="text-14 text-#333">{{ item.typedata }}</view>
<view class="text-12 text-#999">提现</view>
<view class="text-12 text-#999">{{ item.createtime }}</view>
</view>
+49 -3
View File
@@ -11,6 +11,18 @@
<view class="withdrawal-type-edit-page pb-100 min-h-screen">
<view class="p-15 m-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<view class="flex items-center py-15 text-14">
<view>收款类型</view>
<wd-select-picker
type="radio"
custom-class="!p-0"
custom-value-class="text-14 text-#889BC6 text-right"
class="flex-1"
placeholder="请选择收款类型"
v-model="form.typedata"
:columns="columns"
></wd-select-picker>
</view>
<view class="flex items-center py-15 text-14" v-if="form.typedata === 3">
<view>开户行</view>
<input
class="flex-1 text-right text-14"
@@ -21,15 +33,25 @@
/>
</view>
<view class="flex items-center py-15 text-14">
<view>银行卡账号</view>
<view>{{ typeName }}账号</view>
<input
class="flex-1 text-right text-14"
placeholder-class=" text-#889BC6 text-right"
type="text"
placeholder="请输入银行卡账号"
:placeholder="`请输入${typeName}账号`"
v-model="form.banknum"
/>
</view>
<view class="flex items-center py-15 text-14">
<view>{{ form.typedata === 3 ? '持卡人' : '' }}姓名</view>
<input
class="flex-1 text-right text-14"
placeholder-class=" text-#889BC6 text-right"
type="text"
:placeholder="`请输入${form.typedata === 3 ? '持卡人' : ''}姓名`"
v-model="form.name"
/>
</view>
<!-- <view class="flex items-center py-15 text-14">
<view>备注</view>
@@ -61,6 +83,24 @@ const form = ref({
name: '',
banknum: '',
})
const columns = [
{
label: '支付宝',
value: 1,
},
{
label: '微信',
value: 2,
},
{
label: '银行卡',
value: 3,
},
]
const typeName = computed(() => {
return ['支付宝', '微信', '银行卡'][Number(form.value.typedata) - 1]
})
const onAddType = mergeStep(async () => {
if (form.value.typedata === 3) {
@@ -73,7 +113,13 @@ const onAddType = mergeStep(async () => {
}
if (!form.value.banknum) {
return uni.showToast({
title: '请输入银行卡账号',
title: '请输入账号',
icon: 'none',
})
}
if (!form.value.name) {
return uni.showToast({
title: '请输入姓名',
icon: 'none',
})
}
+17 -2
View File
@@ -1,7 +1,7 @@
<route lang="json5" type="page">
{
style: {
navigationBarTitleText: '银行卡列表',
navigationBarTitleText: '收款方式',
navigationBarBackgroundColor: '#fff',
},
}
@@ -16,12 +16,27 @@
@click="onSelectType(item)"
>
<image
v-if="Number(item.typedata) === 3"
class="w-45 h-45"
src="@/static/images/invest/unionpay-icon.png"
mode="aspectFit"
/>
<image
v-if="Number(item.typedata) === 1"
class="w-45 h-45"
src="@/static/images/invest/alipay-icon.png"
mode="aspectFit"
/>
<image
v-if="Number(item.typedata) === 2"
class="w-45 h-45"
src="@/static/images/invest/wechat-icon.png"
mode="aspectFit"
/>
<view class="flex-1 ml-15">
<view class="text-16 font-bold">{{ item.kaihuhang }}</view>
<view class="text-16 font-bold">
{{ ['支付宝', '微信', '银行卡'][Number(item.typedata) - 1] }}
</view>
<view class="mt-10 text-14 text-#889BC6">{{ item.banknum }}</view>
</view>
<wd-icon v-if="isSelect" name="arrow-right" size="14px"></wd-icon>
+43 -73
View File
@@ -2,22 +2,29 @@
{
style: {
navigationStyle: 'custom',
navigationBarTitleText: '提现',
navigationBarTitleText: '流量提现',
},
}
</route>
<template>
<view class="min-h-screen pb-100">
<NavBar title-color="#333" />
<NavBar title-color="#333">
<template #right>
<image
@click="onWithdrawalDetail"
src="/static/images/page-sub/recharge.png"
class="w-24 h-24"
/>
</template>
</NavBar>
<view
class="m-15 text-white flex rounded-tl-10 rounded-br-10 justify-between items-center p-15 btn-gradient"
class="m-15 text-white flex rounded-tl-10 rounded-br-10 justify-between items-center p-15 bg-[linear-gradient(90deg,#E4C096,#BE805A)]"
>
<view class="text-14">钱包余额</view>
<view class="text-14">流量余额</view>
<view class="text-17 font-bold">{{ userStore.userInfo?.money }}</view>
</view>
<view class="p-15 bg-white shadow-[0_-2px_3px_rgba(10,68,245,0.1)] rounded-10">
<view class="mt-15">
<view class="text-14 text-#333">提现金额</view>
<view
class="flex items-center text-14 mt-15 text-#333 p-16 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10"
>
@@ -27,41 +34,22 @@
placeholder="请输入提现金额"
class="text-14 text-#333 flex-1"
/>
<view class="text-12 text-#04A9F9" @click="form.money = userStore.userInfo?.money">
<view class="text-12 text-gradient" @click="form.money = userStore.userInfo?.money">
全部
</view>
</view>
<view class="mt-15">
<view class="text-14 text-#333">收款方式</view>
<view
class="flex items-center text-14 mt-15 text-#333 p-16 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10"
@click="onSelectPayType"
>
<view class="flex-1">
{{
currentBank ? `${currentBank.kaihuhang}${currentBank.banknum}` : '请选择收款方式'
}}
</view>
<wd-icon name="arrow-right" size="16px"></wd-icon>
</view>
<view class="mt-15">
<view class="py-15 text-18 text-#333">提现信息</view>
<view class="bg-white rounded-10 px-15" style="box-shadow: 0px 0px 10px 0px #0a44f51a">
<view class="flex items-center text-14 text-#333 py-25">
<view class="">银行卡号</view>
<input class="text-14 text-#889BC6 text-right flex-1" placeholder="请输入银行卡号" />
</view>
<view class="flex items-center text-14 text-#333 py-25">
<view class="">开户银行</view>
<input class="text-14 text-#889BC6 text-right flex-1" placeholder="请输入开户银行" />
</view>
</view>
<view class="mt-15 text-14 text-#333">提现密码</view>
<view
class="flex items-center text-14 mt-15 text-#333 p-16 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10"
>
<input
v-model="form.tixianpass"
type="password"
placeholder="请输入提现密码"
class="text-14 text-#333 flex-1"
/>
</view>
<view class="text-14 text-#889BC6 mt-30">提现说明TIPS</view>
<view class="text-12 text-#889BC6 mt-15">
<view>1如遇到系统结算繁忙结算将会延迟到账</view>
</view>
</view>
</view>
@@ -73,15 +61,17 @@
class="btn-gradient text-center text-white rounded-full text-14 px-30 py-10"
@click="onSubmit"
>
提现
立即提现
</view>
</view>
</view>
<WithdrawalTaxPopup ref="withdrawalTaxPopupRef" @submit="onTaxSubmit" />
</view>
</template>
<script setup lang="ts">
import NavBar from '@/components/NavBar.vue'
import WithdrawalTaxPopup from '@/components/WithdrawalTaxPopup.vue'
import { submitWithdrawalAPI } from '@/service'
import { useUserStore } from '@/store'
import { showModal } from '@/utils'
@@ -90,7 +80,6 @@ const userStore = useUserStore()
const form = ref({
money: '',
tixianpass: '',
})
const onWithdrawalDetail = () => {
@@ -99,43 +88,24 @@ const onWithdrawalDetail = () => {
})
}
const currentBank = ref<any>(null)
const onSelectPayType = () => {
uni.$once('withdrawal-type', (data: any) => {
form.value.bankid = data.id
currentBank.value = data
})
uni.navigateTo({
url: '/pages-sub/withdrawal-type/index?type=select',
})
const withdrawalTaxPopupRef = ref(null)
const onSubmit = async () => {
// if (!form.value.money) {
// return uni.showToast({
// title: '请输入提现金额',
// icon: 'none',
// })
// }
// await showModal('确认提现?')
// await submitWithdrawalAPI(form.value)
// await showModal('提交成功')
// onWithdrawalDetail()
withdrawalTaxPopupRef.value.onShowPopup()
}
const onSubmit = async () => {
if (!form.value.money) {
return uni.showToast({
title: '请输入提现金额',
icon: 'none',
})
}
if (!currentBank.value) {
return uni.showToast({
title: '请选择收款方式',
icon: 'none',
})
}
if (!form.value.tixianpass) {
return uni.showToast({
title: '请输入提现密码',
icon: 'none',
})
}
await showModal('确认提现?')
const res = await submitWithdrawalAPI(form.value)
await showModal(res.msg ? res.msg : '提交成功')
onWithdrawalDetail()
function onTaxSubmit(item) {
console.log(item)
}
</script>
+67 -42
View File
@@ -15,7 +15,7 @@
},
"tabBar": {
"color": "#999999",
"selectedColor": "#D3B389",
"selectedColor": "#BE805A",
"backgroundColor": "#ffffff",
"borderStyle": "#E7E7E7",
"height": "56px",
@@ -24,22 +24,22 @@
"spacing": "3px",
"list": [
{
"iconPath": "static/tabbar/bank.png",
"selectedIconPath": "static/tabbar/bankHL.png",
"pagePath": "pages/bank/index",
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/homeHL.png",
"pagePath": "pages/index/index",
"text": "首页"
},
{
"iconPath": "static/tabbar/invite.png",
"selectedIconPath": "static/tabbar/inviteHL.png",
"pagePath": "pages/invite/index",
"text": "邀请福利"
},
{
"iconPath": "static/tabbar/house.png",
"selectedIconPath": "static/tabbar/houseHL.png",
"pagePath": "pages/invite/index",
"text": "邀请好友"
},
{
"iconPath": "static/tabbar/invest.png",
"selectedIconPath": "static/tabbar/investHL.png",
"pagePath": "pages/invest/index",
"text": "资产平移"
"text": "房产集团"
},
{
"iconPath": "static/tabbar/personal.png",
@@ -51,12 +51,11 @@
},
"pages": [
{
"path": "pages/bank/index",
"path": "pages/index/index",
"type": "home",
"style": {
"navigationBarTitleText": "银行卡",
"navigationBarBackgroundColor": "#fff",
"navigationStyle": "custom"
"navigationStyle": "custom",
"navigationBarTitleText": "云房产"
}
},
{
@@ -68,27 +67,19 @@
},
"notNeedLogin": true
},
{
"path": "pages/index/index",
"type": "page",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "首页"
}
},
{
"path": "pages/invest/index",
"type": "page",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "资产平移"
"navigationBarTitleText": "房产集团"
}
},
{
"path": "pages/invite/index",
"type": "page",
"style": {
"navigationBarTitleText": "社区",
"navigationBarTitleText": "邀请福利",
"navigationBarBackgroundColor": "#fff",
"navigationStyle": "custom"
}
@@ -133,6 +124,14 @@
"navigationStyle": "custom"
}
},
{
"path": "asset-detail/index",
"type": "page",
"style": {
"navigationBarTitleText": "股权流量提现明细",
"navigationBarBackgroundColor": "#fff"
}
},
{
"path": "convert/index",
"type": "page",
@@ -148,12 +147,19 @@
"navigationBarTitleText": "分包页面 标题"
}
},
{
"path": "equity-withdrawal/index",
"type": "page",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "股权提现"
}
},
{
"path": "hot-news/index",
"type": "page",
"style": {
"navigationBarTitleText": "热点新闻",
"navigationStyle": "custom"
"navigationBarTitleText": "热点新闻"
}
},
{
@@ -169,7 +175,8 @@
"type": "page",
"style": {
"navigationBarTitleText": "投资记录",
"navigationBarBackgroundColor": "#fff"
"navigationBarBackgroundColor": "#fff",
"navigationStyle": "custom"
}
},
{
@@ -201,11 +208,18 @@
"path": "lottery/index",
"type": "page",
"style": {
"navigationBarTitleText": "转盘抽奖",
"navigationBarTitleText": "抽奖",
"navigationBarBackgroundColor": "#fff",
"navigationStyle": "custom"
}
},
{
"path": "my-room-certificate/index",
"type": "page",
"style": {
"navigationBarTitleText": "我的房产"
}
},
{
"path": "news/index",
"type": "page",
@@ -231,22 +245,33 @@
"navigationStyle": "custom"
}
},
{
"path": "pay-password/index",
"type": "page",
"style": {
"navigationBarTitleText": "设置提现密码",
"navigationStyle": "custom"
},
"notNeedLogin": true
},
{
"path": "realname/index",
"type": "page",
"style": {
"navigationBarTitleText": "实名认证",
"navigationBarBackgroundColor": "#fff",
"navigationStyle": "custom"
"navigationBarBackgroundColor": "#fff"
}
},
{
"path": "room-certificate/index",
"type": "page",
"style": {
"navigationBarTitleText": "红本房产证"
}
},
{
"path": "room-mail/index",
"type": "page",
"style": {
"navigationBarTitleText": "房本邮寄"
}
},
{
"path": "room-transfer/index",
"type": "page",
"style": {
"navigationBarTitleText": "房产过户"
}
},
{
@@ -263,7 +288,7 @@
"type": "page",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "提现"
"navigationBarTitleText": "流量提现"
}
},
{
@@ -286,7 +311,7 @@
"path": "withdrawal-type/index",
"type": "page",
"style": {
"navigationBarTitleText": "银行卡列表",
"navigationBarTitleText": "收款方式",
"navigationBarBackgroundColor": "#fff"
}
}
-117
View File
@@ -1,117 +0,0 @@
<route lang="json5" type="home">
{
style: {
navigationBarTitleText: '银行卡',
navigationBarBackgroundColor: '#fff',
navigationStyle: 'custom',
},
}
</route>
<template>
<view class="bank-page min-h-screen pb-50">
<NavBar title-color="#333" />
<view class="bank-card mx-auto mt-24 relative w-300 h-182 rounded-15">
<view class="absolute text-18 top-100 left-20 text-white" style="font-family: FARRINGTON-7B">
{{ userStore.userInfo.banknum.replace(/(\d{4})(?=\d)/g, '$1 ') }}
</view>
</view>
<view
class="rounded-15 mx-auto mt-15 w-345 flex items-center justify-center text-12 px-30 py-20 text-#E5A200"
border="1px solid #FFDD99"
style="
background: linear-gradient(
90deg,
rgba(255, 221, 153, 0.2) 0%,
rgba(239, 184, 90, 0.2) 100%
);
"
>
云家银行专属卡是由全球各地银行联合发行的银行
完成卡首批发行仅限五万张云家人的资产将全部到账到此卡一人一卡此专属卡无任何限制可在全球210个国家及地区进行使用
</view>
<view
class="rounded-full mx-auto mt-15 w-345 h-45 flex items-center justify-center text-15"
style="
background: linear-gradient(
90deg,
rgba(255, 221, 153, 0.2) 0%,
rgba(239, 184, 90, 0.2) 100%
);
border: 1px solid #ffdd99;
"
>
卡内余额{{ userStore.userInfo.money }}
</view>
<view
class="btn-gradient rounded-full text-white mx-auto mt-10 w-345 h-40 flex items-center justify-center text-15"
@click="onWithdraw"
>
提现
</view>
<view
class="flex bg-white py-15 rounded-10 mt-150 w-345 mx-auto border-2 border-#FFDD99 border-solid"
>
<view class="flex-1 flex flex-col items-center" @click="handleOfficialCommunity">
<image class="w-30 h-30" src="@/static/images/home/nav-2.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">官方社群</text>
</view>
<view class="flex-1 flex flex-col items-center" @click="handleOfficialCommunity">
<image class="w-30 h-30" src="@/static/images/home/nav-3.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">在线客服</text>
</view>
<view class="flex-1 flex flex-col items-center" @click="handleDownload">
<image class="w-30 h-30" src="@/static/images/home/nav-4.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">下载APP</text>
</view>
</view>
</view>
</template>
<script setup lang="ts">
import NavBar from '@/components/NavBar.vue'
import { downloadAppAPI, getBankCardAPI } from '@/service'
import { useUserStore } from '@/store'
const userStore = useUserStore()
const list = ref([])
const loadData = async () => {
list.value = (await getBankCardAPI({
limit: 1000,
page: 1,
}).then((res) => res.data)) as any
}
onShow(async () => {
loadData()
})
function onWithdraw() {
uni.navigateTo({
url: '/pages-sub/withdrawal/index',
})
}
const handleOfficialCommunity = () => {
uni.navigateTo({
url: '/pages-sub/official-community/index',
})
}
const handleDownload = () => {
downloadAppAPI()
}
</script>
<style lang="scss" scoped>
.bank-page {
background:
url('@/static/images/home/bg.jpg') no-repeat top -40px center / cover,
linear-gradient(180deg, #fff3eb 0%, #ffffff 100%);
}
.bank-card {
background-image: url('@/static/images/bank/card.jpg');
background-size: 100% 100%;
}
</style>
+3 -4
View File
@@ -8,7 +8,7 @@
}
</route>
<template>
<view class="login-container relative">
<view class="login-container pb-50 relative">
<NavBar />
<view class="pt-45">
<view class="mx-15 px-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
@@ -60,7 +60,7 @@
placeholder-class="text-#889BC6"
type="password"
class="text-right flex-1 text-14"
placeholder="请输入提现密码"
placeholder="请输入支付密码"
/>
</view>
<view class="flex items-center py-15">
@@ -69,7 +69,7 @@
placeholder-class="text-#889BC6"
type="password"
class="text-right flex-1 text-14"
placeholder="请再次输入提现密码"
placeholder="请再次输入支付密码"
/>
</view>
</view>
@@ -116,7 +116,6 @@ onLoad(() => {
.login-container {
box-sizing: border-box;
min-height: 100vh;
padding-bottom: 50px;
background-image: url('@/static/images/login-bg.jpg');
background-repeat: no-repeat;
background-size: cover;
+49 -81
View File
@@ -1,102 +1,66 @@
<!-- 使用 type="home" 属性设置首页其他页面不需要设置默认为page推荐使用json5更强大且允许注释 -->
<route lang="json5" type="page">
<route lang="json5" type="home">
{
style: {
navigationStyle: 'custom',
navigationBarTitleText: '首页',
navigationBarTitleText: '云房产',
},
}
</route>
<template>
<view class="home-page">
<view class="home-page pb-50">
<NavBar />
<swiper
indicator-active-color="#EFB85A"
indicator-color="rgba(0,0,0,0.1)"
indicator-dots
autoplay
circular
class="w-345 h-170 mx-auto mt-10"
<view
class="flex bg-white py-15 rounded-10 mx-15 mb-15 mt-280 border-2 border-white border-solid"
style="box-shadow: 0px 4px 10px 0px #cbcbcb4d"
>
<swiper-item v-for="item in bannerList" :key="item.id">
<image
class="block w-345 h-170 rounded-10 overflow-hidden"
:src="getImageUrl(item.image)"
mode="aspectFill"
/>
</swiper-item>
</swiper>
<view class="flex bg-white py-15 rounded-10 m-15 border-2 border-white border-solid">
<view class="flex-1 flex flex-col items-center" @click="handleIntroduction">
<view class="flex-1 flex flex-col items-center" @click="handleInvite">
<image class="w-30 h-30" src="@/static/images/home/nav-1.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">简介</text>
</view>
<!-- <view class="flex-1 flex flex-col items-center" @click="handleInvite">
<image class="w-30 h-30" src="@/static/images/home/nav-2.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">抽奖转盘</text>
</view> -->
<view class="flex-1 flex flex-col items-center" @click="handleOfficialCommunity">
<image class="w-30 h-30" src="@/static/images/home/nav-2.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">官方社群</text>
</view>
<view class="flex-1 flex flex-col items-center" @click="handleOfficialCommunity">
<image class="w-30 h-30" src="@/static/images/home/nav-3.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">在线客服</text>
<text class="mt-8 text-14 text-#333">邀请好友</text>
</view>
<view class="flex-1 flex flex-col items-center" @click="handleDownload">
<image class="w-30 h-30" src="@/static/images/home/nav-4.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">下载APP</text>
</view>
<view class="flex-1 flex flex-col items-center" @click="handleLottery">
<image class="w-30 h-30" src="@/static/images/home/nav-2.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">抽奖福利</text>
</view>
<view class="flex-1 flex flex-col items-center" @click="handleOfficialCommunity">
<image class="w-30 h-30" src="@/static/images/home/nav-3.png" mode="aspectFill" />
<text class="mt-8 text-14 text-#333">在线客服</text>
</view>
</view>
<view class="bg-white pt-15 px-15 rounded-10 m-15">
<view class="flex justify-center items-center">
<view class="text-14 text-#333">最新时讯</view>
<!-- <view class="text-12 text-#999" @click="handleNews">查看全部</view> -->
</view>
<swiper
indicator-active-color="#3B81F3"
indicator-color="rgba(0,0,0,0.1)"
indicator-dots
autoplay
circular
class="h-200 mt-10"
>
<swiper-item v-for="item in newsList" :key="item.id">
<video class="w-full h-160" :src="item.image" mode="aspectFill" />
</swiper-item>
</swiper>
</view>
<view class="text-30 text-gradient my-30 text-center font-bold">云房产集团</view>
<view class="bg-white py-15 px-15 rounded-10 m-15">
<view class="flex justify-between items-center">
<view class="text-14 text-#333">热点新闻</view>
<view class="text-12 text-#999" @click="handleHotNews">查看全部</view>
</view>
<view class="bg-white w-345 mx-auto rounded-10">
<view
class="flex mt-15"
class="mt-15"
v-for="item in hotNewsList"
:key="item.id"
@click="handleNewsDetail(item.id)"
>
<image
class="w-85 h-85 rounded-10 bg-gray-100"
:src="getImageUrl(item.image)"
mode="aspectFill"
/>
<view class="ml-15 flex-1 flex flex-col justify-between">
<view text-14>{{ item.name }}</view>
<view class="text-12 text-#999">{{ item.createtime }}</view>
<image class="w-345 h-207 rounded-10" :src="item.image" mode="aspectFill" />
<view class="mt-10 flex-1 flex flex-col justify-between">
<view class="text-14 text-#666">{{ item.name }}</view>
<!-- <view class="text-12 text-#999">{{ item.source }}</view> -->
</view>
</view>
</view>
<wd-popup :lockScroll="false" v-model="showNotice" custom-style="border-radius:0.2rem;">
<view class="px-30 py-30 w-330 h-457 notice-container rounded-20 flex flex-col">
<view class="text-18 font-bold pb-15 text-center">系统公告</view>
<view class="flex-1 overflow-y-auto">
<view v-for="(item, index) in announcementList" :key="item.id" class="mb-15">
<view class="py-15 flex-1 overflow-y-auto">
<view
v-for="(item, index) in announcementList"
:key="item.id"
class="border-b-1 border-b-gray-300 border-b-solid py-15"
>
<view class="whitespace-nowrap text-14 font-bold text-gradient text-center">
公告{{ ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'][index] }}
</view>
<view class="mt-12 text-14 text-#333 flex-1" v-html="item.content"></view>
</view>
</view>
@@ -116,12 +80,12 @@ import Avatar from '@/components/Avatar.vue'
import NavBar from '@/components/NavBar.vue'
import {
downloadAppAPI,
getBannerAPI,
getIntroductionAPI,
getOpenPersonalAccountAPI,
getRealNameAuthAPI,
} from '@/service'
import { useUserStore } from '@/store'
import { getImageUrl, showModal } from '@/utils'
import { showModal } from '@/utils'
defineOptions({
name: 'Home',
@@ -145,7 +109,7 @@ const handleNewsDetail = (id: number) => {
}
const handleInvite = () => {
uni.navigateTo({
uni.switchTab({
url: '/pages/invite/index',
})
}
@@ -156,6 +120,10 @@ const handleOfficialCommunity = () => {
})
}
const handleLottery = () => {
uni.navigateTo({ url: '/pages-sub/lottery/index' })
}
const handleDownload = () => {
downloadAppAPI()
}
@@ -191,6 +159,12 @@ watch(
},
)
onShow(() => {
if (announcementList.value.length) {
showNotice.value = true
}
})
const userStore = useUserStore()
const handleOpenAccount = async () => {
await getOpenPersonalAccountAPI()
@@ -198,21 +172,15 @@ const handleOpenAccount = async () => {
userStore.loadUserInfo()
// showModal('开通个人养老账户时,需邀请一名用户')
}
// 获取轮播图
const bannerList = ref([])
const getBanner = async () => {
const res = await getBannerAPI()
bannerList.value = res.data
}
onLoad(getBanner)
</script>
<style scoped>
.home-page {
min-height: 100vh;
padding-bottom: 50px;
background: linear-gradient(180deg, #fff3da 0%, #f8f8f8 100%);
background-image: url('@/static/images/home/bg.jpg');
background-repeat: no-repeat;
background-position: top;
background-size: 100%;
}
.notice-container {
background-image: url('@/static/images/home/notice-bg.jpg');
+149 -35
View File
@@ -3,66 +3,180 @@
{
style: {
navigationStyle: 'custom',
navigationBarTitleText: '资产平移',
navigationBarTitleText: '房产集团',
},
}
</route>
<template>
<view class="invest-page min-h-screen">
<NavBar title-color="#333" />
<view class="mt-320 pl-15 text-24 text-white" style="text-shadow: 0 0 2px #ff5153">
银行卡恢复列表
</view>
<view class="mt-15 px-15 pb-15">
<view class="invest-page">
<!-- <NavBar title-color="#46200B" /> -->
<view class="pt-150">
<view
class="flex items-center mt-10 text-#333 p-15 rounded-10 bg-#FFF9F2 border-2 border-#FFDD99 border-solid"
v-for="item in list"
v-for="item in investmentList"
:key="item.id"
class="p-15 bg-white rounded-20 mx-auto w-345 relative mb-15"
>
<view class="flex-1">
<view class="text-15">{{ item.name }}</view>
<view class="text-12 mt-8">邀请1人</view>
<view class="flex">
<image
class="rounded-10 w-100 h-100"
mode="aspectFill"
:src="getImageUrl(item.leftimage)"
/>
<view class="flex-1 ml-15">
<view class="text-15 text-#333 font-bold">{{ item.name }}</view>
<view class="w-200 flex flex-wrap items-center mt-5">
<view
class="px-14 mr-5 mb-5 py-2 whitespace-nowrap text-12 text-#D6A165 rounded-2 bg-#FFEBD4"
v-for="(tag, index) in item.labeltag.split(',')"
:key="tag"
:class="{
'!text-#3B81F3 !bg-#D4E8FF': index % 2 === 1,
}"
>
{{ tag }}
</view>
</view>
<view class="text-12 mt-15 text-#999" v-html="item.content"></view>
</view>
</view>
<view class="flex items-center mt-15">
<view class="flex-1 text-center">
<view class="text-15 text-#FF3B30">100~150²m</view>
</view>
<view class="text-#D9D9D9">|</view>
<view class="flex-1 text-center">
<view class="text-15 text-#FF3B30">仅剩4969套</view>
</view>
</view>
<view
class="btn-gradient text-white text-12 border-1 border-#EFB85A border-solid py-4 px-30 rounded-4 px-10"
v-if="item.ishuifu"
class="mt-15 px-30 text-center text-15 text-white rounded-full py-8 btn-gradient"
@click="onInvest(item)"
>
已恢复
</view>
<view
class="text-12 text-#EFB85A border-1 border-#EFB85A border-solid py-4 px-30 rounded-4 px-10"
@click="handleRecover(item)"
v-else
>
恢复
免费领取
</view>
</view>
</view>
<wd-popup
v-model="showRightConfig.show"
:title="`${showRightConfig.data?.name}权益`"
custom-style="border-radius: 0.2rem"
>
<view>
<image
class="w-345 h-345"
:src="getImageUrl(showRightConfig.data?.rightimage)"
mode="widthFix"
/>
</view>
</wd-popup>
</view>
</template>
<script lang="ts" setup>
import NavBar from '@/components/NavBar.vue'
import { getBankCardRecoverAPI, getBankCardRecoverListAPI } from '@/service'
import { getImageUrl, showModal } from '@/utils'
import { getInvestmentListAPI, submitInvestAPI } from '@/service'
import { useUserStore } from '@/store'
import { getImageUrl, mergeStep, showModal } from '@/utils'
const { list, onReload } = useListPageRequest(getBankCardRecoverListAPI)
defineOptions({
name: 'Home',
})
const handleRecover = async (item: any) => {
const res = await getBankCardRecoverAPI({ id: item.id })
showModal(res.msg ? res.msg : '恢复成功')
onReload()
const tabList = [
{
value: 1,
title: '养老',
},
{
value: 2,
title: '医疗',
},
]
const tabValue = ref(1)
const { list: investmentList, onReload } = useListPageRequest((params) =>
getInvestmentListAPI({
...params,
type: tabValue.value,
}),
)
watch(
() => tabValue.value,
() => {
onReload()
},
)
const userStore = useUserStore()
const onGoInvestDetail = () => {
uni.navigateTo({
url: '/pages-sub/invest-detail/index',
})
}
const showRightConfig = ref({
show: false,
data: null,
})
watch(
() => showRightConfig.value.show,
(val) => {
if (!val) {
showRightConfig.value.data = null
}
},
)
const onShowRights = (item: any) => {
showRightConfig.value = {
show: true,
data: item,
}
}
const onInvest = mergeStep(async (item: any) => {
try {
await submitInvestAPI({
investid: item.id,
type: 3,
})
} catch (error) {
if (error?.data?.msg.includes('邀请')) {
return uni.switchTab({
url: '/pages/invite/index',
})
}
return
}
await userStore.loadUserInfo()
uni.showToast({
title: tabValue.value === 2 ? '投保成功' : '投资成功',
icon: 'none',
})
})
</script>
<style lang="scss" scoped>
<style scoped>
.invest-page {
background-image: url('@/static/images/invest/bg.png'),
linear-gradient(to right, #e4c198, #e3bd93);
min-height: 100vh;
padding-bottom: 100px;
background-color: #3e2417;
background-image: url('@/static/images/invest/bg.jpg');
background-repeat: no-repeat;
background-position:
top -80px center,
top center;
background-position: top;
background-size: 100%;
}
.main-content {
background: linear-gradient(90deg, #71a4f8 0%, #3b81f3 103.83%);
}
.bg-blue-red {
background-image: linear-gradient(90.02deg, #8bb9ff 0.02%, #be4343 100.27%);
}
.text-blue-red {
background-image: linear-gradient(90.02deg, #8bb9ff 0.02%, #be4343 100.27%);
background-clip: text;
-webkit-text-fill-color: transparent;
}
</style>
+67 -73
View File
@@ -1,7 +1,7 @@
<route lang="json5" type="page">
<route lang="json5">
{
style: {
navigationBarTitleText: '社区',
navigationBarTitleText: '邀请福利',
navigationBarBackgroundColor: '#fff',
navigationStyle: 'custom',
},
@@ -23,7 +23,7 @@ import { showModal } from '@/utils'
const userStore = useUserStore()
const qrcodeValue =
location.origin + '/#/pages/register/index?invite=' + userStore.userInfo?.invitecode
location.origin + '/#/pages/register/index?invite_code=' + userStore.userInfo?.invitecode
const onCopy = (code: string) => {
uni.setClipboardData({
@@ -68,40 +68,40 @@ onShow(async () => {
const taskList = computed(() => {
if (!inviteInfo.value) return []
const inviteTask = Object.keys(inviteInfo.value.jianglitiaojian)
const inviteTaskList = inviteTask.map((key) => ({
title: `邀请${key}人(${inviteInfo.value.num}/${key})`,
desc: `赠送${inviteInfo.value.jianglitiaojian[key]}`,
level: key,
status: Number(inviteInfo.value.num) >= Number(key),
open: false,
}))
// 查找最后一个完成的任务,并设置open为true
const lastCompletedTask = inviteTaskList.findLast((item) => item.status)
if (lastCompletedTask) {
lastCompletedTask.open = inviteInfo.value.open
}
// const inviteTask = Object.keys(inviteInfo.value.jianglitiaojian)
// const inviteTaskList = inviteTask.map((key) => ({
// title: `邀请${key}人(${inviteInfo.value.num}/${key})`,
// desc: `每月额外领取${inviteInfo.value.jianglitiaojian[key]}元社保金`,
// level: key,
// status: Number(inviteInfo.value.num) >= Number(key),
// open: false,
// }))
// // 查找最后一个完成的任务,并设置open为true
// const lastCompletedTask = inviteTaskList.findLast((item) => item.status)
// if (lastCompletedTask) {
// lastCompletedTask.open = inviteInfo.value.open
// }
return [
// {
// title: '注册实名',
// desc: `领取${inviteInfo.value.realrewards}元`,
// // status: inviteInfo.value.isuserauth,
// status: false,
// open: false,
// },
{
title: '注册实名',
desc: `领取${inviteInfo.value.realrewards}元社保金`,
// status: inviteInfo.value.isuserauth,
status: false,
open: false,
},
// {
// title: '签到有礼',
// desc: `每日签到送${inviteInfo.value.qiandaojiang}元`,
// desc: `每日签到送${inviteInfo.value.qiandaojiang}元社保金`,
// status: false,
// open: false,
// },
// {
// title: '邀请有礼',
// desc: `每邀请1人并实名认证获得${inviteInfo.value.yaoqingjiang}元养老金`,
// status: 0,
// open: false,
// },
...inviteTaskList,
{
title: '邀请有礼',
desc: `每邀请1人并实名认证获得${inviteInfo.value.yaoqingjiang}元养老金`,
status: 0,
open: false,
},
// ...inviteTaskList,
]
})
@@ -114,8 +114,8 @@ async function onGetReward(level) {
<template>
<view class="pb-100 min-h-screen invite-page">
<NavBar />
<view class="flex items-center mt-286 mx-auto w-345 bg-#FFFFFFE5 p-15 rounded-20">
<NavBar title-color="#46200B" />
<view class="flex items-center mt-260 mx-auto w-345 bg-#FFFFFFE5 p-15 rounded-20">
<view class="text-center">
<view class="mt-15 rounded-10 overflow-hidden flex bg-#FFFFFF50 p-10 shadow">
<VueQrcode
@@ -144,64 +144,58 @@ async function onGetReward(level) {
</view>
<view class="mt-70 w-345 mx-auto">
<view
class="bg-#FFF9F2 mt-5 rounded-10 border-#FFDD99 border-2 border-solid p-15 flex items-start"
class="bg-#F3F8FF rounded-10 border-#BE805A border-2 border-solid p-15 flex items-start"
v-for="item of taskList"
:key="item.title"
>
<view class="flex-1">
<view class="text-15 text-#333 font-500">{{ item.title }}</view>
<view class="text-12 text-#333 mt-8">{{ item.desc }}</view>
<!-- <view class="text-12 text-#333 mt-8">{{ item.desc }}</view> -->
<view class="text-12 text-#333 mt-8">
赠送25000碧桂园股权
<br />
价值2500000万流量补贴30元
<br />
砸金蛋机会1次
</view>
</view>
<view>
<view
class="w-fit ml-auto mr-0 rounded-4 px-10 py-4 leading-12 text-white text-12 mb-8"
style="background: linear-gradient(90deg, #ffdd99 0%, #efb85a 100%)"
class="w-fit ml-auto mr-0 bg-#C4F7C4 rounded-4 px-10 py-4 leading-12 text-#62C162 text-12 mb-8"
v-if="item.status"
>
获取
完成
</view>
<!-- <view
<view
class="w-fit ml-auto mr-0 bg-#F3CB3B33 rounded-4 px-10 py-4 leading-12 text-#FFA600 text-12"
v-if="item.open"
@click="onGetReward(item.level)"
>
领取
</view> -->
领取社保金
</view>
</view>
</view>
</view>
<view class="bg-#FFFFFFE5 rounded-20 mt-30 w-345 mx-auto p-15 flex">
<view class="flex-1 text-center">
<view class="text-18 text-#333">团队人数</view>
<view class="text-gradient text-18 mt-8">{{ inviteData.num }}</view>
<view class="font-500 text-14 mt-4">直推人数</view>
</view>
<view class="flex-1 text-center">
<view class="text-18 text-#333">我的佣金</view>
<!-- <view class="text-18 text-#333 h-25"></view> -->
<view class="text-gradient text-18 mt-8">{{ inviteData.performance }}</view>
<view class="font-500 text-14 mt-4">直推业绩</view>
</view>
</view>
<view class="mt-15 w-345 mx-auto">
<view class="ml-15 text-18 text-#DE9859">团队成员{{ inviteData.num }}/</view>
<template v-if="list.length">
<view
class="mt-15 bg-white px-15 pt-15 pb-15 rounded-10"
v-for="item of list"
:key="item.id"
>
<view class="flex items-center">
<Avatar :src="item.avatar" class="w-50 h-50" mode="aspectFill" />
<view class="ml-15 flex-1">
<view class="text-15 text-#333">{{ item.nickname }}</view>
<view class="text-12 text-#333 mt-10">{{ item.jointime }}</view>
</view>
<view class="ml-15 text-18 text-white">团队成员{{ inviteData.num }}/</view>
<view class="mt-15 bg-white px-15 pt-15 pb-4 rounded-10" v-for="item of list" :key="item.id">
<view class="flex items-center">
<Avatar :src="item.avatar" class="w-50 h-50" mode="aspectFill" />
<view class="ml-15 flex-1">
<view class="text-15 text-#333">{{ item.nickname }}</view>
<view class="text-12 text-#333 mt-10">{{ item.jointime }}</view>
</view>
</view>
<view class="flex mt-16 py-8">
<view class="flex-1 text-center">
<view class="text-gradient">{{ item.yiliao }}</view>
<view class="text-15 text-#333">医疗</view>
</view>
<view class="flex-1 text-center">
<view class="text-gradient">{{ item.yanglao }}</view>
<view class="text-15 text-#333">养老</view>
</view>
</view>
</template>
<view class="mt-15 bg-white rounded-10 p-15" v-else>
<wd-status-tip image="content" tip="暂无内容" />
</view>
</view>
</view>
@@ -209,10 +203,10 @@ async function onGetReward(level) {
<style lang="scss" scoped>
.invite-page {
background-image: url('@/static/images/page-sub/invite-bg.jpg'),
linear-gradient(to right, #f1dbc3, #e8c5a3);
background-color: #3d2316;
background-image: url('@/static/images/page-sub/invite-bg.jpg');
background-repeat: no-repeat;
background-position: top center;
background-position: top -40px center;
background-size: 100%;
}
</style>
+17 -19
View File
@@ -8,15 +8,16 @@
}
</route>
<template>
<view class="login-container relative pt-44">
<view class="text-28 pl-32 text-gradient" style="-webkit-background-clip: text">登录</view>
<view class="pt-45">
<view class="bg-white mx-15 px-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<view class="login-container relative pt-220">
<!-- <NavBar title-color="#333" /> -->
<!-- <view class="text-28 pl-32 text-gradient" style="-webkit-background-clip: text">登录</view> -->
<view class="py-45 bg-white mx-15 rounded-10">
<view class="mx-15 px-15">
<view class="flex items-center py-15">
<view class="text-gradient">手机号</view>
<input
type="text"
v-model="formData.account"
v-model="formData.mobile"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入手机号"
@@ -36,7 +37,7 @@
<view class="flex items-center py-15">
<view class="text-gradient">验证码</view>
<input
v-model="formData.captcha"
v-model="formData.verify_code"
placeholder-class="text-#889BC6"
type="text"
class="text-right flex-1 text-14"
@@ -76,27 +77,26 @@ import { useUserStore } from '@/store/user'
const userStore = useUserStore()
const formData = ref({
account: '',
mobile: '',
password: '',
captcha: '',
verify_code: '',
})
const { codeUrl, t: captchaT, refreshCode } = useCaptcha()
const { codeUrl, codeKey, refreshCode } = useCaptcha()
let redirect = '/'
onLoad((options) => {
redirect = options.redirect ?? '/'
})
onShow(refreshCode)
const handleLogin = async () => {
if (!formData.value.account || !formData.value.password) {
if (!formData.value.mobile || !formData.value.password) {
return uni.showToast({
title: '请输入用户名和密码',
icon: 'none',
})
}
if (!formData.value.captcha) {
if (!formData.value.verify_code) {
return uni.showToast({
title: '请输入验证码',
icon: 'none',
@@ -104,10 +104,8 @@ const handleLogin = async () => {
}
try {
const {
data: {
userinfo: { token },
},
} = await loginUserAPI({ ...formData.value, t: captchaT.value })
data: { token },
} = await loginUserAPI({ ...formData.value, verify_key: codeKey.value })
userStore.setToken(token)
uni.reLaunch({
url: redirect,
@@ -143,8 +141,8 @@ onLoad(() => {
box-sizing: border-box;
min-height: 100vh;
padding-bottom: 50px;
background:
url('@/static/images/brand-person.png') right 20px bottom / 60% no-repeat,
url('@/static/images/login-bg.jpg') top center / cover no-repeat;
background-image: url('@/static/images/login-bg.jpg');
background-repeat: no-repeat;
background-size: cover;
}
</style>
+136 -39
View File
@@ -8,9 +8,8 @@
</route>
<template>
<view class="my-page">
<NavBar />
<view class="flex mt-50 text-white px-15 items-center">
<view class="my-page pt-50">
<view class="flex text-white px-15 items-center">
<!-- <Avatar class="w-60 h-60" :src="getImageUrl(userStore.userInfo?.avatar)" /> -->
<Avatar class="w-60 h-60" />
<view class="ml-15 flex-1">
@@ -19,26 +18,84 @@
</view>
<view class="text-12 mt-8">账号{{ userStore.userInfo?.username }}</view>
</view>
<view
class="flex border-#FFDD99 border-1 border-solid items-center justify-center h-32 w-100 btn-gradient rounded-full text-center text-14 text-white"
<!-- <view
class="flex border-#50D0FF border-1 border-solid items-center justify-center h-32 w-100 btn-gradient rounded-full text-center text-14 text-white"
@click="handleSignIn"
>
<image class="w-30 h-26 mt-5" src="@/static/images/my/sign-icon.png" mode="widthFix" />
<view class="ml-5">签到</view>
</view> -->
</view>
<image class="w-66 h-23 ml-15 mt-15" src="@/static/images/my/myEquity.png" mode="widthFix" />
<view class="grid grid-cols-2 gap-10 px-15 mt-15">
<view class="px-15 py-10 rounded-10 bg-#FFFFFF33" @click="handleAsset(0)">
<view class="flex text-white text-12">我的股权</view>
<view class="text-15 text-#333 mt-4 font-bold">{{ userStore.userInfo?.money }}</view>
<view class="text-15 text-#333 font-bold">{{ userStore.userInfo?.money }}</view>
<view
class="btn-gradient w-fit rounded-full text-center text-12 text-white py-2 px-20 mt-8"
@click.stop="handleEquityWithdrawal"
>
提现
</view>
</view>
<view class="px-15 py-10 rounded-10 bg-#FFFFFF33" @click="handleAsset(0)">
<view class="flex text-white text-12">碧桂园股权</view>
<view class="text-15 text-#333 mt-4 font-bold">{{ userStore.userInfo?.money }}</view>
<view class="text-15 text-#333 font-bold">{{ userStore.userInfo?.money }}</view>
<view
class="btn-gradient w-fit rounded-full text-center text-12 text-white py-2 px-20 mt-8"
@click.stop="handleEquityWithdrawal"
>
提现
</view>
</view>
<view class="px-15 py-10 rounded-10 bg-#FFFFFF33" @click="handleAsset(0)">
<view class="flex text-white text-12">雅居乐股权</view>
<view class="text-15 text-#333 mt-4 font-bold">{{ userStore.userInfo?.money }}</view>
<view class="text-15 text-#333 font-bold">{{ userStore.userInfo?.money }}</view>
<view
class="btn-gradient w-fit rounded-full text-center text-12 text-white py-2 px-20 mt-8"
@click.stop="handleEquityWithdrawal"
>
提现
</view>
</view>
<view class="px-15 py-10 rounded-10 bg-#FFFFFF33" @click="handleAsset(0)">
<view class="flex text-white text-12">恒大股权</view>
<view class="text-15 text-#333 mt-4 font-bold">{{ userStore.userInfo?.money }}</view>
<view class="text-15 text-#333 font-bold">{{ userStore.userInfo?.money }}</view>
<view
class="btn-gradient w-fit rounded-full text-center text-12 text-white py-2 px-20 mt-8"
@click.stop="handleEquityWithdrawal"
>
提现
</view>
</view>
</view>
<image
class="w-96 h-23 ml-15 mt-15"
src="@/static/images/my/myFlowSubsidy.png"
mode="widthFix"
/>
<view class="grid grid-cols-2 gap-10 px-15 mt-15">
<view class="px-15 py-10 rounded-10 bg-#FFFFFF33" @click="handleAsset(0)">
<view class="text-15 text-#333 mt-4 font-bold">{{ userStore.userInfo?.money }}</view>
<view
class="btn-gradient w-fit rounded-full text-center text-12 text-white py-2 px-20 mt-8"
@click.stop="handleWithdrawal"
>
提现
</view>
</view>
</view>
<view class="mt-15 rounded-t-30 bg-white p-15 min-h-80vh">
<image
class="w-345 h-146 mx-auto block"
src="@/static/images/my/recommend.jpg"
mode="widthFix"
@click="handleInvite"
/>
<view class="mt-15 rounded-t-30 bg-white p-15 min-h-50vh">
<view class="mt-15 grid grid-cols-2 gap-10">
<view
@click="item.handle"
class="flex items-center justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#FFDD9933,#EFB85A33)] p-15 border border-#EFB85A33 border-solid"
class="flex items-center justify-center rounded-tl-10 rounded-br-10 bg-[linear-gradient(45deg,#FFF7F0,#FBE1D1)] p-15"
v-for="item in commonList"
:key="item.title"
>
@@ -69,6 +126,11 @@ import CommonIcon1 from '@/static/images/my/common-icon-1.png'
import CommonIcon2 from '@/static/images/my/common-icon-2.png'
import CommonIcon3 from '@/static/images/my/common-icon-3.png'
import CommonIcon4 from '@/static/images/my/common-icon-4.png'
import CommonIcon5 from '@/static/images/my/common-icon-5.png'
import CommonIcon6 from '@/static/images/my/common-icon-6.png'
import CommonIcon7 from '@/static/images/my/common-icon-7.png'
import CommonIcon8 from '@/static/images/my/common-icon-8.png'
import CommonIcon9 from '@/static/images/my/common-icon-9.png'
const userStore = useUserStore()
@@ -84,11 +146,17 @@ const handleWithdrawalDetail = () => {
})
}
const handleEquityWithdrawal = () => {
uni.navigateTo({
url: '/pages-sub/equity-withdrawal/index',
})
}
const handleWithdrawal = () => {
return showModal('暂未开放')
// uni.navigateTo({
// url: '/pages-sub/withdrawal/index',
// })
// return showModal('暂未开放')
uni.navigateTo({
url: '/pages-sub/withdrawal/index',
})
}
const handleTeam = () => {
@@ -109,15 +177,15 @@ const handleAsset = (index = 0) => {
})
}
const handleBankCard = () => {
const handleAssetDetail = () => {
uni.navigateTo({
url: '/pages-sub/withdrawal-type/index',
url: '/pages-sub/asset-detail/index',
})
}
const handlePayPassword = () => {
const handleBankCard = () => {
uni.navigateTo({
url: '/pages-sub/pay-password/index',
url: '/pages-sub/withdrawal-type/index',
})
}
@@ -137,9 +205,10 @@ const handleConvert = (type) => {
}
const handleSignIn = async () => {
const res = await getSignInAPI()
if (res.msg) {
showModal(res.msg.replace('元', '') + '元')
await getSignInAPI()
const { data } = await getCommunityInviteFirstAPI()
if (data.qiandaojiang) {
showModal('签到成功,获得' + data.qiandaojiang + '元社保金')
} else {
showModal('签到成功')
}
@@ -148,7 +217,7 @@ const handleSignIn = async () => {
const handleKefu = () => {
uni.navigateTo({
url: '/pages-sub/withdrawal-type/index',
url: '/pages-sub/official-community/index',
})
}
@@ -160,25 +229,53 @@ const handleInvestDetail = () => {
const commonList = [
{
title: '资金明细',
icon: CommonIcon1,
handle: () => handleAsset(0),
title: '红本房产证',
icon: CommonIcon5,
handle: () => {
uni.navigateTo({
url: '/pages-sub/room-certificate/index',
})
},
},
{
title: '提现明细',
icon: CommonIcon2,
handle: handleWithdrawalDetail,
title: '我的房产',
icon: CommonIcon8,
handle: () => {
uni.navigateTo({
url: '/pages-sub/my-room-certificate/index',
})
},
},
{
title: '提现密码',
icon: CommonIcon3,
handle: handlePayPassword,
title: '股权提现明细',
icon: CommonIcon6,
handle: handleAssetDetail,
},
{
title: '银行卡',
icon: CommonIcon4,
handle: handleKefu,
title: '流量提现明细',
icon: CommonIcon7,
handle: handleAssetDetail,
},
// {
// title: '我的社区',
// icon: CommonIcon4,
// handle: handleInvite,
// },
// {
// title: '在线客服',
// icon: CommonIcon9,
// handle: handleKefu,
// },
// {
// title: 'APP下载',
// icon: CommonIcon3,
// handle: downloadAppAPI,
// },
// {
// title: '官方群聊',
// icon: CommonIcon1,
// handle: handleKefu,
// },
]
</script>
@@ -187,6 +284,6 @@ const commonList = [
min-height: 100vh;
background-image: url('@/static/images/my/my-bg.jpg');
background-position: top -40px center;
background-size: 100%;
background-size: cover;
}
</style>
+48 -32
View File
@@ -13,15 +13,16 @@ import NavBar from '@/components/NavBar.vue'
import { isLogged } from '@/interceptors/route'
import { registerUserAPI } from '@/service'
import { useUserStore } from '@/store/user'
import { mergeStep } from '@/utils'
import { mergeStep, showModal } from '@/utils'
const userStore = useUserStore()
const form = ref({
username: '',
mobile: '',
// member_nickname: '',
password: '',
retpassword: '',
invitecode: '',
invite_code: '',
verify_code: '',
// tpassword: '',
// rettpassword: '',
})
@@ -29,11 +30,13 @@ const form = ref({
let redirect = '/'
onLoad((options) => {
redirect = options.redirect ?? '/'
form.value.invitecode = options.invitecode ?? ''
form.value.invite_code = options.invite_code ?? ''
})
const { codeUrl, codeKey, refreshCode } = useCaptcha()
const handleRegister = mergeStep(async () => {
if (!/^\d{11}$/.test(form.value.username)) {
if (!/^\d{11}$/.test(form.value.mobile)) {
uni.showToast({
title: '请输入正确手机号(11位)',
icon: 'none',
@@ -55,22 +58,31 @@ const handleRegister = mergeStep(async () => {
return
}
if (!form.value.invitecode) {
if (!form.value.invite_code) {
uni.showToast({
title: '请输入邀请码',
icon: 'none',
})
return
}
const {
data: {
userinfo: { token },
},
} = await registerUserAPI(form.value)
userStore.setToken(token)
uni.reLaunch({
url: redirect,
})
if (!form.value.verify_code) {
return uni.showToast({
title: '请输入验证码',
icon: 'none',
})
}
try {
await registerUserAPI({ ...form.value, verify_key: codeKey.value })
await showModal('注册成功', {
confirmText: '立即登录',
})
uni.reLaunch({
url: '/pages/login/index',
})
} catch {
refreshCode()
}
})
onLoad(async (options) => {
if (isLogged()) {
@@ -78,19 +90,19 @@ onLoad(async (options) => {
url: redirect,
})
}
form.value.invitecode = options.invite ?? ''
form.value.invite_code = options.invite ?? ''
})
</script>
<template>
<view class="register-container relative">
<NavBar title-color="#333" />
<view class="pt-45">
<view class="mx-15 bg-white px-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<view class="login-container relative">
<NavBar />
<view class="py-45 mt-180 mx-15 rounded-10 bg-white">
<view class="mx-15 px-15">
<view class="flex items-center py-15">
<view class="text-gradient">手机号</view>
<input
v-model="form.username"
v-model="form.mobile"
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
@@ -117,21 +129,27 @@ onLoad(async (options) => {
placeholder="请再次输入登录密码"
/>
</view>
<!-- <view class="flex items-center py-15">
<view class="flex items-center py-15">
<view class="text-gradient">验证码</view>
<input
v-model="form.invitecode"
v-model="form.verify_code"
placeholder-class="text-#889BC6"
type="text"
class="text-right flex-1 text-14"
placeholder="请输入验证码"
/>
<image class="w-60 h-24 ml-15 bg-gray-400" mode="aspectFit" />
</view> -->
<img
:src="codeUrl"
class="w-108 h-31 ml-15 bg-gray-400"
mode="widthFix"
@click="refreshCode"
/>
</view>
<view class="flex items-center py-15">
<view class="text-gradient">邀请码</view>
<input
v-model="form.invitecode"
v-model="form.invite_code"
placeholder-class="text-#889BC6"
type="text"
class="text-right flex-1 text-14"
@@ -150,14 +168,12 @@ onLoad(async (options) => {
</template>
<style lang="scss" scoped>
.register-container {
.login-container {
box-sizing: border-box;
min-height: 100vh;
padding-bottom: 50px;
// background-repeat: no-repeat;
// background-size: cover;
background:
url('@/static/images/brand-person.png') right 20px bottom / 60% no-repeat,
url('@/static/images/login-bg.jpg') top center / cover no-repeat;
background-image: url('@/static/images/login-bg.jpg');
background-repeat: no-repeat;
background-size: cover;
}
</style>
+10 -42
View File
@@ -1,6 +1,11 @@
import { mergeStep } from '@/utils'
import { http } from '@/utils/http'
// 获取验证码
export const getCaptchaAPI = () =>
http<any>({
url: '/api/user/captcha',
})
// 注册用户
export const registerUserAPI = (data) =>
http({
@@ -20,7 +25,7 @@ export const loginUserAPI = (data) =>
// 获取用户信息
export const getUserInfoAPI = () =>
http({
url: '/api/user/index',
url: '/api/user/info',
method: 'GET',
})
@@ -72,12 +77,11 @@ export const getInvestmentRecordAPI = (data) =>
})
// 查询实名认证
export const getRealNameAuthAPI = mergeStep(() =>
export const getRealNameAuthAPI = () =>
http({
url: '/api/user/finduserauth',
method: 'POST',
}),
)
})
// 实名认证
export const realNameAuthAPI = (data) =>
@@ -153,7 +157,7 @@ export const getWithdrawalRecordAPI = (data) =>
// 下载APP
export const downloadAppAPI = () => {
location.href = 'https://r2.maldiveswallet.vip/app/yjyh.apk'
location.href = 'https://r2.maldiveswallet.vip/app/qmbz-3.apk'
}
// 社区我的邀请
@@ -208,39 +212,3 @@ export const getYongMoneyTransferAPI = (data) =>
method: 'POST',
data,
})
// 轮播图
export const getBannerAPI = () =>
http({
url: '/api/index/bannerlist',
method: 'POST',
})
// 银行卡资产恢复列表
export const getBankCardRecoverListAPI = () =>
http({
url: '/api/user/bankassetslist',
method: 'POST',
})
// 银行卡资产恢复
export const getBankCardRecoverAPI = (data) =>
http({
url: '/api/user/userbankassets',
method: 'POST',
data,
})
// 设置提现密码
export const setWithdrawalPasswordAPI = (data) =>
http({
url: '/api/user/settixianpass',
method: 'POST',
data,
})
// 忘记提现密码
export const resetForgetWithdrawalPasswordAPI = (data) =>
http({
url: '/api/user/forgettixianpass',
method: 'POST',
data,
})
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 999 B

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 857 B

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 951 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 867 B

After

Width:  |  Height:  |  Size: 892 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

+1 -1
View File
@@ -19,7 +19,7 @@ export const useUserStore = defineStore(
url: '/pages-sub/realname/index',
})
}
userInfo.value.realname = res.data?.realname
userInfo.value.realname = res.data.realname
return res.data
})
})
+8 -4
View File
@@ -4,17 +4,18 @@
// Generated by vite-plugin-uni-pages
interface NavigateToOptions {
url: "/pages/bank/index" |
url: "/pages/index/index" |
"/pages/edit-password/index" |
"/pages/index/index" |
"/pages/invest/index" |
"/pages/invite/index" |
"/pages/login/index" |
"/pages/my/index" |
"/pages/register/index" |
"/pages-sub/asset/index" |
"/pages-sub/asset-detail/index" |
"/pages-sub/convert/index" |
"/pages-sub/demo/index" |
"/pages-sub/equity-withdrawal/index" |
"/pages-sub/hot-news/index" |
"/pages-sub/introduction/index" |
"/pages-sub/invest-detail/index" |
@@ -22,11 +23,14 @@ interface NavigateToOptions {
"/pages-sub/invest-result/index" |
"/pages-sub/invite/index" |
"/pages-sub/lottery/index" |
"/pages-sub/my-room-certificate/index" |
"/pages-sub/news/index" |
"/pages-sub/news-detail/index" |
"/pages-sub/official-community/index" |
"/pages-sub/pay-password/index" |
"/pages-sub/realname/index" |
"/pages-sub/room-certificate/index" |
"/pages-sub/room-mail/index" |
"/pages-sub/room-transfer/index" |
"/pages-sub/team/index" |
"/pages-sub/withdrawal/index" |
"/pages-sub/withdrawal-detail/index" |
@@ -36,7 +40,7 @@ interface NavigateToOptions {
interface RedirectToOptions extends NavigateToOptions {}
interface SwitchTabOptions {
url: "/pages/bank/index" | "/pages/invite/index" | "/pages/invest/index" | "/pages/my/index"
url: "/pages/index/index" | "/pages/invite/index" | "/pages/invest/index" | "/pages/my/index"
}
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
+1 -1
View File
@@ -2,7 +2,7 @@
type IResData<T> = {
code: number
msg: string
message: string
data: T
}
+21 -5
View File
@@ -1,6 +1,19 @@
import { CustomRequestOptions } from '@/interceptors/request'
import { loginRoute } from '@/interceptors/route'
import { useUserStore } from '@/store'
import { mergeStep, showModal } from '.'
const realnameJump = mergeStep(async (message) => {
if (location.href.includes('realname/index')) {
return
}
await showModal(message, {
confirmText: '立即认证',
})
uni.reLaunch({
url: '/pages-sub/realname/index',
})
})
export const http = <T>(options: CustomRequestOptions) => {
// 1. 返回 Promise 对象
@@ -20,13 +33,16 @@ export const http = <T>(options: CustomRequestOptions) => {
const data = res.data as IResData<T>
if (data.code === 1) {
resolve(data as IResData<T>)
} else if (data.code === 401) {
} else if (data.code === 1002) {
realnameJump(data.message)
reject(res)
} else if (data.code === 1001) {
const userStore = useUserStore()
userStore.logout()
!options.hideErrorToast &&
(await uni.showModal({
title: '提示',
content: data.msg || '请求错误',
content: data.message || '请求错误',
showCancel: false,
}))
uni.reLaunch({
@@ -38,7 +54,7 @@ export const http = <T>(options: CustomRequestOptions) => {
!options.hideErrorToast &&
(await uni.showModal({
title: '提示',
content: data.msg || '请求错误',
content: data.message || '请求错误',
showCancel: false,
}))
reject(res)
@@ -52,7 +68,7 @@ export const http = <T>(options: CustomRequestOptions) => {
!options.hideErrorToast &&
(await uni.showModal({
title: '提示',
content: res.data.msg || '请求错误',
content: res.data.message || '请求错误',
showCancel: false,
}))
uni.reLaunch({
@@ -65,7 +81,7 @@ export const http = <T>(options: CustomRequestOptions) => {
!options.hideErrorToast &&
(await uni.showModal({
title: '提示',
content: (res.data as IResData<T>).msg || '请求错误',
content: (res.data as IResData<T>).message || '请求错误',
showCancel: false,
}))
reject(res)
+2 -2
View File
@@ -78,11 +78,11 @@ export default defineConfig({
],
['pt-safe', { 'padding-top': 'env(safe-area-inset-top)' }],
['pb-safe', { 'padding-bottom': 'env(safe-area-inset-bottom)' }],
['btn-gradient', { background: 'linear-gradient(90deg,#FFDD99,#EFB85A)' }],
['btn-gradient', { background: 'linear-gradient(90deg,#E4C096,#BE805A)' }],
[
'text-gradient',
{
'background-image': 'linear-gradient(90deg,#FFDD99,#EFB85A)',
'background-image': 'linear-gradient(180deg,#B2926B,#F5CB97)',
'background-clip': 'text',
color: 'transparent',
},