Browse Source

🎈 perf: 优化了部分细节

Pchen. 10 months ago
parent
commit
45967385eb

+ 3 - 3
src/pages/Main/components/section2.vue

@@ -26,21 +26,21 @@ const cards = [
         title: '全自动乐跑体验',
         icon: new URL('@/assets/img/homePage/icons/visualization.svg', import.meta.url).href,
         dec: '自动上传跑步数据,无需手动操作,轻松完成乐跑任务',
-        img: new URL('http:\/\/lepao-cloud.xxoo365.top\/view.php\/f9192f9d310b16a7e8e4ef2f71ac8629.png').href,
+        img: new URL('https:\/\/lepao-cloud.xxoo365.top\/view.php\/f9192f9d310b16a7e8e4ef2f71ac8629.png').href,
         reverse: false
     },
     {
         title: '智能成绩上传系统',
         icon: new URL('@/assets/img/homePage/icons/ai.svg', import.meta.url).href,
         dec: '支持夜间上传与异常修复,忘跑也能及时补救,成绩无忧',
-        img: new URL('http:\/\/lepao-cloud.xxoo365.top\/view.php\/6cf4d3d8f5d9e6b41c525541c8949329.png').href,
+        img: new URL('https:\/\/lepao-cloud.xxoo365.top\/view.php\/6cf4d3d8f5d9e6b41c525541c8949329.png').href,
         reverse: true
     },
     {
         title: '自由跑区与贴心服务',
         icon: new URL('@/assets/img/homePage/icons/quality.svg', import.meta.url).href,
         dec: '支持自定义跑步区域与乐跑时段,体验便捷又人性化',
-        img: new URL('http:\/\/lepao-cloud.xxoo365.top\/view.php\/3132165c9476e659c710114f963e6814.png').href,
+        img: new URL('https:\/\/lepao-cloud.xxoo365.top\/view.php\/3132165c9476e659c710114f963e6814.png').href,
         reverse: false
     }
 ]

+ 0 - 9
src/pages/lepao/accountList/components/userCard.vue

@@ -11,20 +11,12 @@
 
 <script setup>
 import { ref } from 'vue'
-import { useUserStore } from '@/store/modules/user'
 import { getCount } from '@/api/goods'
 import { Notification } from '@arco-design/web-vue'
 
 const userCount = ref({})
 const loading = ref(false)
 
-const user = ref('')
-const getuser = async () => {
-  const userStore = useUserStore()
-  let userInfo = await userStore.getInfo()
-  user.value = userInfo
-}
-
 const GetCount = async () => {
   try {
     loading.value = true
@@ -46,7 +38,6 @@ const GetCount = async () => {
 }
 
 GetCount()
-getuser()
 </script>
 
 <style scoped lang="less"></style>

+ 0 - 23
src/pages/lepao/accountList/index.vue

@@ -229,7 +229,6 @@
 import { ref, reactive, h } from 'vue'
 import { useUserStore } from '@/store/modules/user'
 import { accountList, deleteAccount, addAccount, changeAutoRun, singleRun } from '@/api/lepao'
-import { getCount } from '@/api/goods'
 import { Modal, Notification, Message } from '@arco-design/web-vue'
 import { IconSearch } from '@arco-design/web-vue/es/icon'
 import userCard from './components/userCard.vue'
@@ -256,33 +255,12 @@ const data = ref([])
 const loading = ref(false)
 
 const email = ref('')
-const userCount = ref({})
 const getuser = async () => {
   const userStore = useUserStore()
   let userInfo = await userStore.getInfo()
   email.value = userInfo.email
 }
 
-const GetCount = async () => {
-  try {
-    loading.value = true
-    const res = await getCount()
-    if (!res || res.code !== 0)
-      return Notification.error({
-        title: '获取用户数据失败!',
-        content: res?.msg ?? '请稍后再试'
-      })
-    userCount.value = res.data
-  } catch (error) {
-    Notification.error({
-      title: '获取用户数据失败!',
-      content: error.message || '请稍后再试'
-    })
-  } finally {
-    loading.value = false
-  }
-}
-
 const visible = ref(false)
 const ok_loading = ref(false)
 const form = reactive({
@@ -462,7 +440,6 @@ const stramptoTime = (time) => {
 
 getAccounts()
 getuser()
-GetCount()
 </script>
 
 <style scoped lang="less">