11 changed files with 279 additions and 269 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
export default { |
||||
data() { |
||||
return { |
||||
mainScrollTop: 0, |
||||
} |
||||
}, |
||||
activated() { |
||||
if (this.$refs.mainScroll && this.$refs.mainScroll.wrapper) { |
||||
this.$refs.mainScroll.wrapper.scrollTop = this.mainScrollTop |
||||
} |
||||
}, |
||||
deactivated() { |
||||
if (this.$refs.mainScroll && this.$refs.mainScroll.wrapper) { |
||||
this.mainScrollTop = this.$refs.mainScroll.wrapper.scrollTop |
||||
} |
||||
}, |
||||
} |
@ -0,0 +1,163 @@
@@ -0,0 +1,163 @@
|
||||
import Index2 from "../pages/home/Index2"; |
||||
import Test from "../pages/test/Test"; |
||||
import Test2 from "../pages/test/Test2"; |
||||
import Test3 from "../pages/test/Test3"; |
||||
import Test4 from "../pages/test/Test4"; |
||||
import Test5 from "../pages/test/Test5"; |
||||
import TestVue3 from "../pages/test/TestVue3"; |
||||
import TestKeepAlive from "../pages/test/TestKeepAlive"; |
||||
import TestKeepAlivePage1 from "../pages/test/TestKeepAlivePage1"; |
||||
import Index from "../pages/home"; |
||||
import SubmitReport from "../pages/home/SubmitReport"; |
||||
import Music from "../pages/home/Music"; |
||||
import MusicRankList from "../pages/home/MusicRankList"; |
||||
import Report from "../pages/home/Report"; |
||||
import Search from "../pages/home/SearchPage"; |
||||
import LivePage from "../pages/home/LivePage"; |
||||
import VideoDetail from "../pages/me/VideoDetail"; |
||||
import Attention from "../pages/home/Attention"; |
||||
import Publish from "../pages/home/Publish"; |
||||
import Me from "../pages/me/Me"; |
||||
import EditUserInfo from "../pages/me/userinfo/EditUserInfo"; |
||||
import EditUserInfoItem from "../pages/me/userinfo/EditUserInfoItem"; |
||||
import countryChoose from "../pages/login/countryChoose"; |
||||
import MyCard from "../pages/me/MyCard"; |
||||
import MyCollect from "../pages/me/MyCollect"; |
||||
import AddSchool from "../pages/me/userinfo/AddSchool"; |
||||
import ChooseSchool from "../pages/me/userinfo/ChooseSchool"; |
||||
import DeclareSchool from "../pages/me/userinfo/DeclareSchool"; |
||||
import ChooseDepartment from "../pages/me/userinfo/ChooseDepartment"; |
||||
import DisplayType from "../pages/me/userinfo/DisplayType"; |
||||
import ChooseLocation from "../pages/me/userinfo/ChooseLocation"; |
||||
import ChooseProvince from "../pages/me/userinfo/ChooseProvince"; |
||||
import ChooseCity from "../pages/me/userinfo/ChooseCity"; |
||||
import LookHistory from "../pages/me/rightMenu/LookHistory"; |
||||
import MinorProtectionIndex from "../pages/me/rightMenu/MinorProtection"; |
||||
import MinorProtectionDetailSetting from "../pages/me/rightMenu/MinorProtection/DetailSetting"; |
||||
import TriggerTime from "../pages/me/rightMenu/MinorProtection/TriggerTime"; |
||||
import Setting from "../pages/me/rightMenu/Setting"; |
||||
import MusicCollect from "../pages/me/collect/MusicCollect"; |
||||
import VideoCollect from "../pages/me/collect/VideoCollect"; |
||||
import MyMusic from "../pages/me/MyMusic"; |
||||
import RequestUpdate from "../pages/me/RequestUpdate"; |
||||
import MyRequestUpdate from "../pages/me/MyRequestUpdate"; |
||||
import Message from "../pages/message/Message"; |
||||
import AllMessage from "../pages/message/AllMessage"; |
||||
import MoreSearch from "../pages/message/MoreSearch"; |
||||
import Share2Friend from "../pages/message/Share2Friend"; |
||||
import JoinedGroupChat from "../pages/message/JoinedGroupChat"; |
||||
import Fans from "../pages/message/Fans"; |
||||
import Visitors from "../pages/message/Visitors"; |
||||
import DouyinHelper from "../pages/message/notice/DouyinHelper"; |
||||
import SystemNotice from "../pages/message/notice/SystemNotice"; |
||||
import TaskNotice from "../pages/message/notice/TaskNotice"; |
||||
import LiveNotice from "../pages/message/notice/LiveNotice"; |
||||
import MoneyNotice from "../pages/message/notice/MoneyNotice"; |
||||
import NoticeSetting from "../pages/message/notice/NoticeSetting"; |
||||
import Chat from "../pages/message/chat/Chat"; |
||||
import ChatDetail from "../pages/message/chat/ChatDetail"; |
||||
import RedPacketDetail from "../pages/message/RedPacketDetail"; |
||||
import FindAcquaintance from "../pages/people/FindAcquaintance"; |
||||
import FollowAndFans from "../pages/people/FollowAndFans"; |
||||
import ServiceProtocol from "../pages/other/ServiceProtocol"; |
||||
import AddressList from "../pages/people/AddressList"; |
||||
import Scan from "../pages/people/Scan"; |
||||
import FaceToFace from "../pages/people/FaceToFace"; |
||||
import SetRemark from "../pages/message/SetRemark"; |
||||
import Login from "../pages/login/Login"; |
||||
import OtherLogin from "../pages/login/OtherLogin"; |
||||
import PasswordLogin from "../pages/login/PasswordLogin"; |
||||
import VerificationCode from "../pages/login/VerificationCode"; |
||||
import RetrievePassword from "../pages/login/RetrievePassword"; |
||||
import Help from "../pages/login/Help"; |
||||
|
||||
const routes = [ |
||||
// {path: '', component: Music},
|
||||
// {path: '/', component: Index},
|
||||
{path: '/', component: Index2}, |
||||
{path: '/test', component: Test}, |
||||
{path: '/test2', component: Test2}, |
||||
{path: '/test3', component: Test3}, |
||||
{path: '/test4', component: Test4}, |
||||
{path: '/test5', component: Test5}, |
||||
{path: '/TestVue3', component: TestVue3}, |
||||
{path: '/TestKeepAlive', component: TestKeepAlive}, |
||||
{path: '/TestKeepAlivePage1', component: TestKeepAlivePage1}, |
||||
{path: '/home', component: Index}, |
||||
{path: '/home/submit-report', component: SubmitReport}, |
||||
{path: '/home/music', component: Music}, |
||||
{path: '/home/music-rank-list', component: MusicRankList}, |
||||
{path: '/home/report', component: Report}, |
||||
{path: '/home/search', component: Search}, |
||||
{path: '/home/live', component: LivePage}, |
||||
|
||||
{path: '/video-detail', component: VideoDetail}, |
||||
{path: '/attention', component: Attention}, |
||||
{path: '/publish', component: Publish}, |
||||
|
||||
|
||||
{path: '/me', component: Me,}, |
||||
{path: '/me/edit-userinfo', component: EditUserInfo}, |
||||
{path: '/me/edit-userinfo-item', component: EditUserInfoItem}, |
||||
{path: '/me/country-choose', component: countryChoose}, |
||||
{path: '/me/my-card', component: MyCard}, |
||||
{path: '/me/my-collect', component: MyCollect}, |
||||
{path: '/me/add-school', component: AddSchool}, |
||||
{path: '/me/choose-school', component: ChooseSchool}, |
||||
{path: '/me/declare-school', component: DeclareSchool}, |
||||
{path: '/me/choose-department', component: ChooseDepartment}, |
||||
{path: '/me/display-type', component: DisplayType}, |
||||
{path: '/me/choose-location', component: ChooseLocation}, |
||||
{path: '/me/choose-province', component: ChooseProvince}, |
||||
{path: '/me/choose-city', component: ChooseCity}, |
||||
{path: '/me/right-menu/look-history', component: LookHistory}, |
||||
{path: '/me/right-menu/minor-protection/index', component: MinorProtectionIndex}, |
||||
{path: '/me/right-menu/minor-protection/detail-setting', component: MinorProtectionDetailSetting}, |
||||
{path: '/me/right-menu/minor-protection/trigger-time', component: TriggerTime}, |
||||
{path: '/me/right-menu/setting', component: Setting}, |
||||
{path: '/me/collect/music-collect', component: MusicCollect}, |
||||
{path: '/me/collect/video-collect', component: VideoCollect}, |
||||
{path: '/me/my-music', component: MyMusic}, |
||||
|
||||
{path: '/message', component: Message}, |
||||
{path: '/message/all', component: AllMessage}, |
||||
{path: '/message/more-search', component: MoreSearch}, |
||||
{path: '/message/share-to-friend', component: Share2Friend}, |
||||
{path: '/message/joined-group-chat', component: JoinedGroupChat}, |
||||
{path: '/message/fans', component: Fans}, |
||||
{path: '/message/visitors', component: Visitors}, |
||||
{path: '/message/douyin-helper', component: DouyinHelper}, |
||||
{path: '/message/system-notice', component: SystemNotice}, |
||||
{path: '/message/task-notice', component: TaskNotice}, |
||||
{path: '/message/live-notice', component: LiveNotice}, |
||||
{path: '/message/money-notice', component: MoneyNotice}, |
||||
{path: '/message/notice-setting', component: NoticeSetting}, |
||||
|
||||
{path: '/message/chat', component: Chat}, |
||||
{path: '/message/chat/detail', component: ChatDetail}, |
||||
{path: '/message/chat/red-packet-detail', component: RedPacketDetail}, |
||||
|
||||
|
||||
{path: '/people/find-acquaintance', component: FindAcquaintance}, |
||||
{path: '/people/follow-and-fans', component: FollowAndFans}, |
||||
|
||||
{path: '/service-protocol', component: ServiceProtocol}, |
||||
{path: '/address-list', component: AddressList}, |
||||
{path: '/scan', component: Scan}, |
||||
{path: '/face-to-face', component: FaceToFace}, |
||||
{path: '/set-remark', component: SetRemark}, |
||||
|
||||
|
||||
{path: '/login', component: Login}, |
||||
{path: '/login/other', component: OtherLogin}, |
||||
{path: '/login/password', component: PasswordLogin}, |
||||
{path: '/login/verification-code', component: VerificationCode}, |
||||
{path: '/login/retrieve-password', component: RetrievePassword}, |
||||
{path: '/login/help', component: Help}, |
||||
|
||||
//message页面要跳到这页面,所以放后面
|
||||
{path: '/me/request-update', component: RequestUpdate}, |
||||
{path: '/me/my-request-update', component: MyRequestUpdate}, |
||||
] |
||||
|
||||
export default routes |
Loading…
Reference in new issue