diff --git a/miniprogram/image/account/Account_AboutUs.svg b/miniprogram/image/account/Account_AboutUs.svg new file mode 100644 index 0000000..335ef47 --- /dev/null +++ b/miniprogram/image/account/Account_AboutUs.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_Customer.svg b/miniprogram/image/account/Account_Customer.svg new file mode 100644 index 0000000..837602a --- /dev/null +++ b/miniprogram/image/account/Account_Customer.svg @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_DateList.svg b/miniprogram/image/account/Account_DateList.svg new file mode 100644 index 0000000..511fd13 --- /dev/null +++ b/miniprogram/image/account/Account_DateList.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_DefaultAvator.svg b/miniprogram/image/account/Account_DefaultAvator.svg new file mode 100644 index 0000000..c0c7ca6 --- /dev/null +++ b/miniprogram/image/account/Account_DefaultAvator.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_FAQ.svg b/miniprogram/image/account/Account_FAQ.svg new file mode 100644 index 0000000..4460fd2 --- /dev/null +++ b/miniprogram/image/account/Account_FAQ.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_OK.svg b/miniprogram/image/account/Account_OK.svg new file mode 100644 index 0000000..00e4ca5 --- /dev/null +++ b/miniprogram/image/account/Account_OK.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_PubilcAccount.svg b/miniprogram/image/account/Account_PubilcAccount.svg new file mode 100644 index 0000000..e08f0a7 --- /dev/null +++ b/miniprogram/image/account/Account_PubilcAccount.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_Settings.svg b/miniprogram/image/account/Account_Settings.svg new file mode 100644 index 0000000..a042129 --- /dev/null +++ b/miniprogram/image/account/Account_Settings.svg @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_Sponsor.svg b/miniprogram/image/account/Account_Sponsor.svg new file mode 100644 index 0000000..d2c8e6b --- /dev/null +++ b/miniprogram/image/account/Account_Sponsor.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_Support.svg b/miniprogram/image/account/Account_Support.svg new file mode 100644 index 0000000..baed39a --- /dev/null +++ b/miniprogram/image/account/Account_Support.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_Theme.svg b/miniprogram/image/account/Account_Theme.svg new file mode 100644 index 0000000..433ca30 --- /dev/null +++ b/miniprogram/image/account/Account_Theme.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/image/account/Account_UserInfo.svg b/miniprogram/image/account/Account_UserInfo.svg new file mode 100644 index 0000000..5f8572b --- /dev/null +++ b/miniprogram/image/account/Account_UserInfo.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/miniprogram/pages/Account/Account.scss b/miniprogram/pages/Account/Account.scss index 1557d1d..685a369 100644 --- a/miniprogram/pages/Account/Account.scss +++ b/miniprogram/pages/Account/Account.scss @@ -1,39 +1,3 @@ -@import "../../app.scss"; - -view.container { - - // 用户卡片 - view.user-card { - margin-top: 20px; - height: 100px; - display: flex; - padding-top: 20px; - padding-bottom: 20px; - - view.avatar { - width: 80px; - height: 80px; - border-radius: 1000px; - overflow: hidden; - } - - view.info { - width: calc(100% - 80px - 20px); - padding-left: 20px; - - view.nick { - margin: 4px 0; - } - - view.student { - margin: 1px 0; - } - } - } -} - -@media (prefers-color-scheme: dark) { - view.container view.user-card view.avatar{ - filter: brightness(.8); - } -} \ No newline at end of file +@import "./UserCard.scss"; +@import "./MainFunction.scss"; +@import "./FunctionList.scss"; \ No newline at end of file diff --git a/miniprogram/pages/Account/Account.ts b/miniprogram/pages/Account/Account.ts index 5c5896d..2cf08a9 100644 --- a/miniprogram/pages/Account/Account.ts +++ b/miniprogram/pages/Account/Account.ts @@ -1,66 +1,10 @@ -// pages/Account/Account.ts -Page({ +import { Manager } from "../../core/Module"; +import { UserCard } from "./UserCard"; +import { MainFunction } from "./MainFunction"; +import { FunctionList } from "./FunctionList"; - /** - * 页面的初始数据 - */ - data: { - - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad() { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady() { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow() { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide() { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload() { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh() { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom() { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage() { - - } -}) \ No newline at end of file +Manager.Page((manager) => { + manager.addModule(UserCard, "userCard"); + manager.addModule(MainFunction, "mainFunction"); + manager.addModule(FunctionList, "functionList"); +}); \ No newline at end of file diff --git a/miniprogram/pages/Account/FunctionList.scss b/miniprogram/pages/Account/FunctionList.scss new file mode 100644 index 0000000..c582eaa --- /dev/null +++ b/miniprogram/pages/Account/FunctionList.scss @@ -0,0 +1 @@ +@import "../../app.scss"; \ No newline at end of file diff --git a/miniprogram/pages/Account/FunctionList.ts b/miniprogram/pages/Account/FunctionList.ts new file mode 100644 index 0000000..72909dd --- /dev/null +++ b/miniprogram/pages/Account/FunctionList.ts @@ -0,0 +1,11 @@ +import { Modular, Manager } from "../../core/Module"; + +class FunctionList extends Modular { + + public override onLoad() { + // Do something + } +} + +export { FunctionList }; +export default FunctionList; \ No newline at end of file diff --git a/miniprogram/pages/Account/MainFunction.scss b/miniprogram/pages/Account/MainFunction.scss new file mode 100644 index 0000000..c582eaa --- /dev/null +++ b/miniprogram/pages/Account/MainFunction.scss @@ -0,0 +1 @@ +@import "../../app.scss"; \ No newline at end of file diff --git a/miniprogram/pages/Account/MainFunction.ts b/miniprogram/pages/Account/MainFunction.ts new file mode 100644 index 0000000..9b69d4c --- /dev/null +++ b/miniprogram/pages/Account/MainFunction.ts @@ -0,0 +1,11 @@ +import { Modular, Manager } from "../../core/Module"; + +class MainFunction extends Modular { + + public override onLoad() { + // Do something + } +} + +export { MainFunction }; +export default MainFunction; \ No newline at end of file diff --git a/miniprogram/pages/Account/UserCard.scss b/miniprogram/pages/Account/UserCard.scss new file mode 100644 index 0000000..81bff8e --- /dev/null +++ b/miniprogram/pages/Account/UserCard.scss @@ -0,0 +1,36 @@ +@import "../../app.scss"; + +// 用户卡片 +view.user-card { + margin-top: 20px; + height: 100px; + display: flex; + padding-top: 20px; + padding-bottom: 20px; + + view.avatar { + width: 80px; + height: 80px; + border-radius: 1000px; + overflow: hidden; + } + + view.info { + width: calc(100% - 80px - 20px); + padding-left: 20px; + + view.nick { + margin: 4px 0; + } + + view.student { + margin: 1px 0; + } + } +} + +@media (prefers-color-scheme: dark) { + view.container view.user-card view.avatar{ + filter: brightness(.8); + } +} \ No newline at end of file diff --git a/miniprogram/pages/Account/UserCard.ts b/miniprogram/pages/Account/UserCard.ts new file mode 100644 index 0000000..7fe07b0 --- /dev/null +++ b/miniprogram/pages/Account/UserCard.ts @@ -0,0 +1,11 @@ +import { Modular, Manager } from "../../core/Module"; + +class UserCard extends Modular { + + public override onLoad() { + // Do something + } +} + +export { UserCard }; +export default UserCard; \ No newline at end of file