feat: 更新登录弹窗组件路径,新增实时信息页面的登录弹窗实现
This commit is contained in:
parent
032b7a1dab
commit
a90946ef89
|
|
@ -184,7 +184,7 @@ import {
|
||||||
onShareTimeline,
|
onShareTimeline,
|
||||||
} from "@dcloudio/uni-app";
|
} from "@dcloudio/uni-app";
|
||||||
import articleMock from "@/mock/article.js";
|
import articleMock from "@/mock/article.js";
|
||||||
import LoginDialog from "@/components/loginPopup/index.vue";
|
import LoginDialog from "@/pages/realtimeInfo/LoginPopup/index.vue";
|
||||||
import { Session } from "@/utils/storage";
|
import { Session } from "@/utils/storage";
|
||||||
import zhaiyaoImg from "../../assets/zixun/zhaiyao_icon.png";
|
import zhaiyaoImg from "../../assets/zixun/zhaiyao_icon.png";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
|
|
|
||||||
|
|
@ -1,57 +1,32 @@
|
||||||
<template>
|
<template>
|
||||||
<u-popup
|
<!-- <view class="loginPopup"> -->
|
||||||
class="loginPopup"
|
<u-popup class="loginPopup" :show="props.show" closeable :mode="props.mode" round="12" :closeOnClickOverlay="false"
|
||||||
:show="props.show"
|
@close="handlePopupClose">
|
||||||
closeable
|
|
||||||
:mode="props.mode"
|
|
||||||
round="12"
|
|
||||||
:closeOnClickOverlay="false"
|
|
||||||
@close="handlePopupClose"
|
|
||||||
>
|
|
||||||
<view class="loginPopupContent">
|
<view class="loginPopupContent">
|
||||||
<view class="loginTitle">登录后掌握更多优质财经内容</view>
|
<view class="loginTitle">登录后掌握更多优质财经内容</view>
|
||||||
|
|
||||||
<!-- 登录表单 -->
|
<!-- 登录表单 -->
|
||||||
<view class="loginForm">
|
<view class="loginForm">
|
||||||
<u--form :model="state.loginForm" ref="uForm">
|
<u--form :model="state.loginForm" ref="uForm">
|
||||||
<u-form-item
|
<u-form-item style="padding: 0" class="loginFormItem" prop="userInfo.name" borderBottom ref="item1">
|
||||||
style="padding: 0"
|
<u--input class="loginFormInput" placeholder="请输入您的手机号" v-model="state.loginForm.phone"
|
||||||
class="loginFormItem"
|
border="none"></u--input>
|
||||||
prop="userInfo.name"
|
|
||||||
borderBottom
|
|
||||||
ref="item1"
|
|
||||||
>
|
|
||||||
<u--input
|
|
||||||
class="loginFormInput"
|
|
||||||
placeholder="请输入您的手机号"
|
|
||||||
v-model="state.loginForm.phone"
|
|
||||||
border="none"
|
|
||||||
></u--input>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item
|
<u-form-item class="loginFormItem" prop="userInfo.name" borderBottom ref="item1">
|
||||||
class="loginFormItem"
|
<u--input class="loginFormInput" placeholder="请输入短信验证码" v-model="state.loginForm.code"
|
||||||
prop="userInfo.name"
|
border="none"></u--input>
|
||||||
borderBottom
|
|
||||||
ref="item1"
|
|
||||||
>
|
|
||||||
<u--input
|
|
||||||
class="loginFormInput"
|
|
||||||
placeholder="请输入短信验证码"
|
|
||||||
v-model="state.loginForm.code"
|
|
||||||
border="none"
|
|
||||||
></u--input>
|
|
||||||
<view class="getCode" @click="captcha">{{ codeText }}</view>
|
<view class="getCode" @click="captcha">{{ codeText }}</view>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</u--form>
|
</u--form>
|
||||||
<u-button class="loginFormBtn" text="登录" @click="Login"></u-button>
|
<u-button class="loginFormBtn" text="登录" @click="Login"></u-button>
|
||||||
</view>
|
</view>
|
||||||
<!-- 用户协议 -->
|
<!-- 用户协议 -->
|
||||||
<view class="tips"
|
<view class="tips">登录即代表已经阅读并同意
|
||||||
>登录即代表已经阅读并同意
|
|
||||||
<view class="userAgreement">《用户协议》</view>
|
<view class="userAgreement">《用户协议》</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
<!-- </view> -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
@ -59,22 +34,23 @@ import { reactive, ref } from "vue";
|
||||||
import { getCaptcha, login } from "@/api";
|
import { getCaptcha, login } from "@/api";
|
||||||
import { validatePhoneNumber } from "@/utils/util";
|
import { validatePhoneNumber } from "@/utils/util";
|
||||||
import { Session } from "@/utils/storage";
|
import { Session } from "@/utils/storage";
|
||||||
import { useUserStore } from "@/stores/user";
|
const emit = defineEmits([
|
||||||
|
"handlePopupClose",
|
||||||
|
"handlePopupSuccessCallback",
|
||||||
|
"handlePopupErrorCallback",
|
||||||
|
]);
|
||||||
|
|
||||||
const emit = defineEmits(["onSuccess", "onError", "onCancel"]);
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
// 列表内容
|
// 列表内容
|
||||||
show: {
|
show: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: () => false,
|
default: () => false,
|
||||||
},
|
},
|
||||||
|
|
||||||
mode: {
|
mode: {
|
||||||
type: String,
|
type: String,
|
||||||
default: () => "bottom",
|
default: () => "bottom",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const userStore = useUserStore();
|
|
||||||
const codeText = ref("获取验证码");
|
const codeText = ref("获取验证码");
|
||||||
const isDisabled = ref(false);
|
const isDisabled = ref(false);
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
|
@ -84,7 +60,6 @@ const state = reactive({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取验证码
|
|
||||||
const captcha = async () => {
|
const captcha = async () => {
|
||||||
if (!validatePhoneNumber(state.loginForm.phone)) {
|
if (!validatePhoneNumber(state.loginForm.phone)) {
|
||||||
return uni.showToast({
|
return uni.showToast({
|
||||||
|
|
@ -121,13 +96,14 @@ const captcha = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// 登录成功之后的回调
|
// 登录成功之后的回调
|
||||||
const callbackSuccess = () => {
|
const handlePopupSuccessCallback = () => {
|
||||||
emit("onSuccess");
|
emit("handlePopupSuccessCallback");
|
||||||
};
|
};
|
||||||
// 登录失败之后的回调
|
// 登录失败之后的回调
|
||||||
const callBackError = () => {
|
const handlePopupErrorCallback = () => {
|
||||||
emit("onError");
|
emit("handlePopupErrorCallback");
|
||||||
};
|
};
|
||||||
|
const { aplus_queue } = window;
|
||||||
|
|
||||||
// 登录
|
// 登录
|
||||||
const Login = async () => {
|
const Login = async () => {
|
||||||
|
|
@ -142,17 +118,50 @@ const Login = async () => {
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const result = await userStore.onLogin({ ...state.loginForm });
|
|
||||||
if (result.code === 200) {
|
uni.showLoading({
|
||||||
callbackSuccess();
|
title: "登录中",
|
||||||
|
mask: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
const { code, data, msg } = await login({
|
||||||
|
phone: state.loginForm.phone,
|
||||||
|
smsCode: state.loginForm.code,
|
||||||
|
});
|
||||||
|
console.log(code, "<=== code");
|
||||||
|
if (code === 200) {
|
||||||
|
aplus_queue.push({
|
||||||
|
action: 'aplus.record',
|
||||||
|
arguments: ['login', 'CLK', {
|
||||||
|
phone: data.phone,
|
||||||
|
}]
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
uni.hideLoading();
|
||||||
|
Session.set("token", data.token);
|
||||||
|
Session.set("userPhone", data.phone);
|
||||||
|
uni.showToast({
|
||||||
|
title: "登录成功",
|
||||||
|
icon: "success",
|
||||||
|
});
|
||||||
|
handlePopupSuccessCallback();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
callBackError();
|
console.log(msg, "<=== msg");
|
||||||
|
handlePopupErrorCallback();
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: "error",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
emit("handlePopupClose");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 关闭弹框
|
// 关闭弹框
|
||||||
const handlePopupClose = () => {
|
const handlePopupClose = () => {
|
||||||
emit("onCancel");
|
emit("handlePopupClose");
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
import { computed, onMounted, ref } from "vue";
|
import { computed, onMounted, ref } from "vue";
|
||||||
import LoginDialog from "@/components/loginPopup/index.vue";
|
import LoginDialog from "@/pages/realtimeInfo/LoginPopup/index.vue";
|
||||||
import CustomView from "./components/CustomView.vue";
|
import CustomView from "./components/CustomView.vue";
|
||||||
import List from "./components/List.vue";
|
import List from "./components/List.vue";
|
||||||
import { getMyTags, updateMyTags } from "@/api";
|
import { getMyTags, updateMyTags } from "@/api";
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@
|
||||||
import { getForeignList } from "@/api";
|
import { getForeignList } from "@/api";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
import { computed, onMounted, reactive, ref } from "vue";
|
import { computed, onMounted, reactive, ref } from "vue";
|
||||||
import LoginDialog from "@/components/loginPopup/index.vue";
|
import LoginDialog from "@/pages/realtimeInfo/LoginPopup/index.vue";
|
||||||
import { onReachBottom } from "@dcloudio/uni-app";
|
import { onReachBottom } from "@dcloudio/uni-app";
|
||||||
|
|
||||||
// 导航栏路由返回
|
// 导航栏路由返回
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
import { computed, onMounted, ref } from "vue";
|
import { computed, onMounted, ref } from "vue";
|
||||||
import LoginDialog from "@/components/loginPopup/index.vue";
|
import LoginDialog from "@/pages/realtimeInfo/LoginPopup/index.vue";
|
||||||
import CustomView from "./components/CustomView.vue";
|
import CustomView from "./components/CustomView.vue";
|
||||||
import List from "./components/List.vue";
|
import List from "./components/List.vue";
|
||||||
import { getMyIndustries, updateMyIndustries } from "@/api";
|
import { getMyIndustries, updateMyIndustries } from "@/api";
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
import { getMacroList } from "@/api";
|
import { getMacroList } from "@/api";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
import { computed, onMounted, reactive, ref } from "vue";
|
import { computed, onMounted, reactive, ref } from "vue";
|
||||||
import LoginDialog from "@/components/loginPopup/index.vue";
|
import LoginDialog from "@/pages/realtimeInfo/LoginPopup/index.vue";
|
||||||
import { onReachBottom } from "@dcloudio/uni-app";
|
import { onReachBottom } from "@dcloudio/uni-app";
|
||||||
// 导航栏路由返回
|
// 导航栏路由返回
|
||||||
const handleBack = () => {
|
const handleBack = () => {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,267 @@
|
||||||
|
<template>
|
||||||
|
<u-popup
|
||||||
|
class="loginPopup"
|
||||||
|
:show="props.show"
|
||||||
|
closeable
|
||||||
|
:mode="props.mode"
|
||||||
|
round="12"
|
||||||
|
:closeOnClickOverlay="false"
|
||||||
|
@close="handlePopupClose"
|
||||||
|
>
|
||||||
|
<view class="loginPopupContent">
|
||||||
|
<view class="loginTitle">登录后掌握更多优质财经内容</view>
|
||||||
|
|
||||||
|
<!-- 登录表单 -->
|
||||||
|
<view class="loginForm">
|
||||||
|
<u--form :model="state.loginForm" ref="uForm">
|
||||||
|
<u-form-item
|
||||||
|
style="padding: 0"
|
||||||
|
class="loginFormItem"
|
||||||
|
prop="userInfo.name"
|
||||||
|
borderBottom
|
||||||
|
ref="item1"
|
||||||
|
>
|
||||||
|
<u--input
|
||||||
|
class="loginFormInput"
|
||||||
|
placeholder="请输入您的手机号"
|
||||||
|
v-model="state.loginForm.phone"
|
||||||
|
border="none"
|
||||||
|
></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item
|
||||||
|
class="loginFormItem"
|
||||||
|
prop="userInfo.name"
|
||||||
|
borderBottom
|
||||||
|
ref="item1"
|
||||||
|
>
|
||||||
|
<u--input
|
||||||
|
class="loginFormInput"
|
||||||
|
placeholder="请输入短信验证码"
|
||||||
|
v-model="state.loginForm.code"
|
||||||
|
border="none"
|
||||||
|
></u--input>
|
||||||
|
<view class="getCode" @click="captcha">{{ codeText }}</view>
|
||||||
|
</u-form-item>
|
||||||
|
</u--form>
|
||||||
|
<u-button class="loginFormBtn" text="登录" @click="Login"></u-button>
|
||||||
|
</view>
|
||||||
|
<!-- 用户协议 -->
|
||||||
|
<view class="tips"
|
||||||
|
>登录即代表已经阅读并同意
|
||||||
|
<view class="userAgreement">《用户协议》</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { reactive, ref } from "vue";
|
||||||
|
import { getCaptcha, login } from "@/api";
|
||||||
|
import { validatePhoneNumber } from "@/utils/util";
|
||||||
|
import { Session } from "@/utils/storage";
|
||||||
|
import { useUserStore } from "@/stores/user";
|
||||||
|
|
||||||
|
const emit = defineEmits(["onSuccess", "onError", "onCancel"]);
|
||||||
|
const props = defineProps({
|
||||||
|
// 列表内容
|
||||||
|
show: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => false,
|
||||||
|
},
|
||||||
|
|
||||||
|
mode: {
|
||||||
|
type: String,
|
||||||
|
default: () => "bottom",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
const userStore = useUserStore();
|
||||||
|
const codeText = ref("获取验证码");
|
||||||
|
const isDisabled = ref(false);
|
||||||
|
const state = reactive({
|
||||||
|
loginForm: {
|
||||||
|
phone: "",
|
||||||
|
code: "",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// 获取验证码
|
||||||
|
const captcha = async () => {
|
||||||
|
if (!validatePhoneNumber(state.loginForm.phone)) {
|
||||||
|
return uni.showToast({
|
||||||
|
title: "请输入正确的手机号",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
const res = await getCaptcha({
|
||||||
|
phone: state.loginForm.phone,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (res.code == 200) {
|
||||||
|
let countdown = 60;
|
||||||
|
if (!isDisabled.value) {
|
||||||
|
isDisabled.value = true;
|
||||||
|
codeText.value = `${countdown}秒后重新获取`;
|
||||||
|
const intervalId = setInterval(() => {
|
||||||
|
countdown--;
|
||||||
|
codeText.value = `${countdown}秒后重新获取`;
|
||||||
|
if (countdown <= 0) {
|
||||||
|
clearInterval(intervalId);
|
||||||
|
isDisabled.value = false;
|
||||||
|
codeText.value = "获取验证码";
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: "请等待 60s 后重试",
|
||||||
|
icon: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 登录成功之后的回调
|
||||||
|
const callbackSuccess = () => {
|
||||||
|
emit("onSuccess");
|
||||||
|
};
|
||||||
|
// 登录失败之后的回调
|
||||||
|
const callBackError = () => {
|
||||||
|
emit("onError");
|
||||||
|
};
|
||||||
|
|
||||||
|
// 登录
|
||||||
|
const Login = async () => {
|
||||||
|
if (!validatePhoneNumber(state.loginForm.phone)) {
|
||||||
|
return uni.showToast({
|
||||||
|
title: "请输入正确的手机号",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
} else if (state.loginForm.code.length !== 6) {
|
||||||
|
return uni.showToast({
|
||||||
|
title: "请输入正确的验证码",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const result = await userStore.onLogin({ ...state.loginForm });
|
||||||
|
if (result.code === 200) {
|
||||||
|
callbackSuccess();
|
||||||
|
} else {
|
||||||
|
callBackError();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 关闭弹框
|
||||||
|
const handlePopupClose = () => {
|
||||||
|
emit("onCancel");
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.loginPopup {
|
||||||
|
::v-deep {
|
||||||
|
.u-slide-up-enter-active {
|
||||||
|
width: 100%;
|
||||||
|
height: 786rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.u-popup__content__close {
|
||||||
|
margin-top: 30rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginPopupContent {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 30rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.loginTitle {
|
||||||
|
// font-size: 32rpx;
|
||||||
|
font-size: var(--h1-font-size);
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-top: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginForm {
|
||||||
|
width: 600rpx;
|
||||||
|
// border: 1px solid;
|
||||||
|
margin: 60rpx auto;
|
||||||
|
|
||||||
|
.loginFormItem {
|
||||||
|
width: 600rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 2rpx solid #b9b9b9;
|
||||||
|
// padding: 0 !important;
|
||||||
|
|
||||||
|
&:nth-child(2) {
|
||||||
|
margin: 32rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep {
|
||||||
|
.u-form-item__body {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginFormInput {
|
||||||
|
width: 100%;
|
||||||
|
height: 100rpx !important;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.getCode {
|
||||||
|
height: 100rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: var(--h1-font-size);
|
||||||
|
color: rgba(51, 51, 51, 0.6);
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
width: 2rpx;
|
||||||
|
height: 52rpx;
|
||||||
|
background-color: rgba(51, 51, 51, 0.1);
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginFormBtn {
|
||||||
|
width: 600rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
border: none;
|
||||||
|
background-color: #e7303f;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
::v-deep {
|
||||||
|
.u-button__text {
|
||||||
|
font-size: var(--h1-font-size) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tips {
|
||||||
|
// font-size: 24rpx;
|
||||||
|
font-size: var(--h4-font-size);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
color: #717171;
|
||||||
|
|
||||||
|
.userAgreement {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -49,7 +49,7 @@ import IndustryNewsView from "./components/IndustryNewsView/index.vue";
|
||||||
import ConceptNewsView from "./components/ConceptNewsView/index.vue";
|
import ConceptNewsView from "./components/ConceptNewsView/index.vue";
|
||||||
import TodayNewsView from "./components/TodayNewsView/index.vue";
|
import TodayNewsView from "./components/TodayNewsView/index.vue";
|
||||||
import FooterView from "./components/FooterView/index.vue";
|
import FooterView from "./components/FooterView/index.vue";
|
||||||
import LoginDialog from "@/components/loginPopup/index.vue";
|
import LoginDialog from "@/pages/realtimeInfo/LoginPopup/index.vue";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
|
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@
|
||||||
import { getRecommendList } from "@/api";
|
import { getRecommendList } from "@/api";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
import { computed, onMounted, reactive, ref } from "vue";
|
import { computed, onMounted, reactive, ref } from "vue";
|
||||||
import LoginDialog from "@/components/loginPopup/index.vue";
|
import LoginDialog from "@/pages/realtimeInfo/LoginPopup/index.vue";
|
||||||
import { onReachBottom } from "@dcloudio/uni-app";
|
import { onReachBottom } from "@dcloudio/uni-app";
|
||||||
// 导航栏路由返回
|
// 导航栏路由返回
|
||||||
const handleBack = () => {
|
const handleBack = () => {
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ import { getTopNews } from "@/api/newsInfo";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
import RadarChat from "@/components/charts/Radar.vue";
|
import RadarChat from "@/components/charts/Radar.vue";
|
||||||
import LoginDialog from "@/components/loginPopup/index.vue";
|
import LoginDialog from "@/pages/realtimeInfo/LoginPopup/index.vue";
|
||||||
|
|
||||||
const userStore = useUserStore(); // 登录弹框
|
const userStore = useUserStore(); // 登录弹框
|
||||||
const LoginShow = ref(false);
|
const LoginShow = ref(false);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue