Quellcode durchsuchen

fix(app): 移除首页日程卡片,简化登录页面代码,更新配置文件

EvilDragon vor 5 Monaten
Ursprung
Commit
3108b02c8f

+ 0 - 17
packages/app/src/package.json

@@ -1,17 +0,0 @@
-{
-  "id": "avatar-group-casual",
-  "name": "头像组无限轮播",
-  "displayName": "头像组无限轮播",
-  "version": "1.0.0",
-  "description": "用户组头像的轮播循环",
-  "keywords": [
-    "vue3头像组",
-    "轮播图"
-  ],
-  "dcloudext": {
-    "category": [
-      "前端组件",
-      "通用组件"
-    ]
-  }
-}

+ 1 - 1
packages/app/src/pages/home/index.vue

@@ -97,7 +97,7 @@ onShareAppMessage(() => ({}))
       </swiper>
     </view>
     <view class="bg-[#f6f6f6] relative bottom-4 rounded-t-2xl py-1">
-      <ScheduleCard custom-class="my-6 mx-3.5"></ScheduleCard>
+      <!-- <ScheduleCard custom-class="my-6 mx-3.5"></ScheduleCard> -->
       <menus></menus>
       <view class="my-6 mx-3.5">
         <HotActivity></HotActivity>

+ 3 - 40
packages/app/src/pages/login/index.vue

@@ -3,51 +3,14 @@ style:
   navigationBarTitleText: 登录
 </route>
 <script lang="ts" setup>
-import { weixinMiniAppLogin } from '@/core/libs/requests'
-import { logo } from '@/core/libs/svgs'
-import { useUserStore } from '@/store'
+import { weixinMiniAppLogin } from '../../core/libs/requests'
+import { logo } from '../../core/libs/svgs'
+import { useUserStore } from '../../store'
 
 const userStore = useUserStore()
 const { setUserInfo } = userStore
 const loginCode = ref('')
 const phoneCode = ref('')
-const loginType = ref('weixin')
-const loginTypeOption = ref([
-  {
-    value: 'weixin',
-    text: '微信',
-  },
-  {
-    value: 'univerify',
-    text: '一键登录',
-  },
-  {
-    value: 'username',
-    text: '账号密码',
-  },
-  {
-    value: 'smsCode',
-    text: '手机验证码',
-  },
-])
-const toLogin = () => {
-  if (loginType.value === 'username') {
-    uni.navigateTo({
-      url: '/uni_modules/uni-id-pages/pages/login/login-withpwd',
-    })
-  } else {
-    uni.navigateTo({
-      url: '/pages/login/login-withoutpwd?type=' + loginType.value,
-      animationType: 'none',
-      animationDuration: 0,
-    })
-  }
-}
-const toUserInfoPage = () => {
-  uni.navigateTo({
-    url: '/uni_modules/uni-id-pages/pages/userinfo/userinfo?showLoginManage=true',
-  })
-}
 const getPhoneNumber = async ({ detail: { code: phoneCode } }) => {
   const { code } = await uni.login()
   console.log(code, phoneCode)

+ 0 - 0
packages/app/src/uni_modules/.gitkeep


+ 1 - 0
packages/app/tsconfig.json

@@ -12,6 +12,7 @@
     "baseUrl": ".",
     "paths": {
       "@/*": ["./src/*"]
+      // "@/*": ["../../packages/app/src/*"]
     },
     "outDir": "dist",
     "lib": ["esnext", "dom"],