WINDOWS-7IFQK7E\EDY 2 years ago
parent
commit
1e9dc82808
3 changed files with 56 additions and 68 deletions
  1. 0 12
      src/components.d.ts
  2. 1 1
      src/pages/_user/index.vue
  3. 55 55
      src/store/user.js

+ 0 - 12
src/components.d.ts

@@ -11,25 +11,13 @@ declare module '@vue/runtime-core' {
     RemoteList: typeof import('./components/RemoteList/index.vue')['default']
     RouterLink: typeof import('vue-router')['RouterLink']
     RouterView: typeof import('vue-router')['RouterView']
-    VanButton: typeof import('vant/es')['Button']
     VanCard: typeof import('vant/es')['Card']
-    VanCellGroup: typeof import('vant/es')['CellGroup']
-    VanCheckbox: typeof import('vant/es')['Checkbox']
-    VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
-    VanCollapse: typeof import('vant/es')['Collapse']
-    VanCollapseItem: typeof import('vant/es')['CollapseItem']
     VanConfigProvider: typeof import('vant/es')['ConfigProvider']
-    VanField: typeof import('vant/es')['Field']
-    VanForm: typeof import('vant/es')['Form']
     VanGrid: typeof import('vant/es')['Grid']
     VanGridItem: typeof import('vant/es')['GridItem']
     VanIcon: typeof import('vant/es')['Icon']
     VanList: typeof import('vant/es')['List']
-    VanNavBar: typeof import('vant/es')['NavBar']
-    VanOverlay: typeof import('vant/es')['Overlay']
     VanPullRefresh: typeof import('vant/es')['PullRefresh']
-    VanRadio: typeof import('vant/es')['Radio']
-    VanRadioGroup: typeof import('vant/es')['RadioGroup']
     VanSwipe: typeof import('vant/es')['Swipe']
     VanSwipeItem: typeof import('vant/es')['SwipeItem']
     VanTab: typeof import('vant/es')['Tab']

+ 1 - 1
src/pages/_user/index.vue

@@ -19,7 +19,7 @@
     </div>
     <div class="user-info">
       <div class="user-shot">
-        <!-- <img :src="userInfo.user_avatar.big" alt="" /> -->
+        <img :src="userInfo.user_avatar.big" alt="" />
       </div>
       <div class="info">
         <h3 class="user-name">

+ 55 - 55
src/store/user.js

@@ -1,60 +1,60 @@
 
-export const user = JSON.parse(localStorage.getItem('userInfo'))
+export const user =// JSON.parse(localStorage.getItem('userInfo'))
 
-// {
-//   "user_id": "248627",
-//   "user_name": "15995403324",
-//   "email": "15995403324@bozedu.net",
-//   "lastlogintime": "2022-11-25 11:50:32",
-//   "user_role_id": "77", "user_role_name": "家长",
-//   "user_avatar": {
-//     "big": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png",
-//     "middle": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png",
-//     "small": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png"
-//   },
-//   "user_no": { "no_title": "学号", "no": "" },
-//   "token": "504a7P0DxKy6uu9zUuZ0AqkCeL72LWWItzaFuhSp98yu95kzgf_aqsTd7y6V1MuuCO9KrwVAsSimjGm_bXN9oz9ScvTi0",
-//   "user_realname": "李昊家长", "user_phone": "15995403324", "idcard": "", "gender": "0", "gender_char": "保密",
-//   "qq": "", "nationality": "", "address": "", "education": "", "area_info": {
-//     "area_id1": "10", "area_id2": "166",
-//     "area_id3": "2069", "area_id4": "0", "area_id1_char": "江苏省", "area_id2_char": "苏州市", "area_id3_char": "常熟市",
-//     "area_id4_char": "", "area_code1": "320000000000", "area_code2": "320500000000", "area_code3": "320581000000", "area_code4": "",
-//     "area_code_dist": "320581000000"
-//   }, "sm_info": {
-//     "sm_id": "0", "sm_name": "", "area_id1": "0", "area_id2": "0", "area_id3": "0",
-//     "area_id4": "0", "major_mode": "0"
-//   }, "first_cm_id": "", "first_cm_name": "", "cm_info": [], "related_desc": "全部",
-//   "bind3rd": { "wechat": "0" },
-//   "org_info": {
-//     "org": "苏州博智", "telephone": "", "telephone_short": "", "is_org": "0", "up_org": "0",
-//     "up_org_info": { "sm_id": "", "sm_name": "" }
-//   }, "pan": { "unit": "G", "size": "500", "used": "0.00", "desc": "0.00%" },
-//   "safe_tips": ["您的密码安全程度较低,请立即修改", "必须包含数字、字母大小写或者特殊字符,长度8位及以上"],
-//   "update_center": "https://openapi.bozedu.net",
-//   "base_url": {
-//     "aboutus": "https://openapi.bozedu.net/aboutus",
-//     "file": "https://openapi.bozedu.net", "vpn": "http://openapi.bozedu.net",
-//     "uc": "https://uc.bozedu.net", "yzy": "https://yzy.bozedu.net", "kzkt": "https://kzkt.bozedu.net",
-//     "openapi": "https://openapi.bozedu.net", "site_zhkt_api": "http://120.26.51.195:8008", "yxxt": "https://yxxt.bozedu.net"
-//   },
-//   "role_system": [{ "code": "kzkt", "name": "空中课堂", "icon": "", "cate": "1", "type": "1", "url": "https://kzkt.bozedu.net" },
-//   { "code": "yzy", "name": "作业系统", "icon": "", "cate": "1", "type": "1", "url": "https://yzy.bozedu.net" },
-//   { "code": "zhkt", "name": "智慧课堂", "icon": "", "cate": "1", "type": "2", "url": "http://120.26.51.195:8008/desadmin.php" }],
-//   "user_score": "668", "product": ["课堂", "直播", "作业"], "app_url": {
-//     "A119": "https://qqyxt.m.bozedu.net/page/course/tskc_more.html",
-//     "A120": "https://qqyxt.m.bozedu.net/page/my/msg_hybrid.html?id=31", "A121": "https://qqyxt.m.bozedu.net/page/parent/msg.html",
-//     "A122": "https://qqyxt.m.bozedu.net/page/my/integral_hybrid.html",
-//     "A123": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html", "A124": "https://qqyxt.m.bozedu.net/page/my/footPrint.html",
-//     "A125": "https://qqyxt.m.bozedu.net/page/my/intergralMall.html",
-//     "A126": "https://openapi.bozedu.net/component/ebook_main/public?api=html",
-//     "A127": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?v=1",
-//     "A128": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?type=course_after_service",
-//     "A129": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=1", "A130": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=2",
-//     "A131": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=3", "A132": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=4"
-//   },
-//   "cpm_access_level": "6",
-//   "pwd": "lihao123"
-// }
+{
+  "user_id": "248627",
+  "user_name": "15995403324",
+  "email": "15995403324@bozedu.net",
+  "lastlogintime": "2022-11-25 11:50:32",
+  "user_role_id": "77", "user_role_name": "家长",
+  "user_avatar": {
+    "big": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png",
+    "middle": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png",
+    "small": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png"
+  },
+  "user_no": { "no_title": "学号", "no": "" },
+  "token": "504a7P0DxKy6uu9zUuZ0AqkCeL72LWWItzaFuhSp98yu95kzgf_aqsTd7y6V1MuuCO9KrwVAsSimjGm_bXN9oz9ScvTi0",
+  "user_realname": "李昊家长", "user_phone": "15995403324", "idcard": "", "gender": "0", "gender_char": "保密",
+  "qq": "", "nationality": "", "address": "", "education": "", "area_info": {
+    "area_id1": "10", "area_id2": "166",
+    "area_id3": "2069", "area_id4": "0", "area_id1_char": "江苏省", "area_id2_char": "苏州市", "area_id3_char": "常熟市",
+    "area_id4_char": "", "area_code1": "320000000000", "area_code2": "320500000000", "area_code3": "320581000000", "area_code4": "",
+    "area_code_dist": "320581000000"
+  }, "sm_info": {
+    "sm_id": "0", "sm_name": "", "area_id1": "0", "area_id2": "0", "area_id3": "0",
+    "area_id4": "0", "major_mode": "0"
+  }, "first_cm_id": "", "first_cm_name": "", "cm_info": [], "related_desc": "全部",
+  "bind3rd": { "wechat": "0" },
+  "org_info": {
+    "org": "苏州博智", "telephone": "", "telephone_short": "", "is_org": "0", "up_org": "0",
+    "up_org_info": { "sm_id": "", "sm_name": "" }
+  }, "pan": { "unit": "G", "size": "500", "used": "0.00", "desc": "0.00%" },
+  "safe_tips": ["您的密码安全程度较低,请立即修改", "必须包含数字、字母大小写或者特殊字符,长度8位及以上"],
+  "update_center": "https://openapi.bozedu.net",
+  "base_url": {
+    "aboutus": "https://openapi.bozedu.net/aboutus",
+    "file": "https://openapi.bozedu.net", "vpn": "http://openapi.bozedu.net",
+    "uc": "https://uc.bozedu.net", "yzy": "https://yzy.bozedu.net", "kzkt": "https://kzkt.bozedu.net",
+    "openapi": "https://openapi.bozedu.net", "site_zhkt_api": "http://120.26.51.195:8008", "yxxt": "https://yxxt.bozedu.net"
+  },
+  "role_system": [{ "code": "kzkt", "name": "空中课堂", "icon": "", "cate": "1", "type": "1", "url": "https://kzkt.bozedu.net" },
+  { "code": "yzy", "name": "作业系统", "icon": "", "cate": "1", "type": "1", "url": "https://yzy.bozedu.net" },
+  { "code": "zhkt", "name": "智慧课堂", "icon": "", "cate": "1", "type": "2", "url": "http://120.26.51.195:8008/desadmin.php" }],
+  "user_score": "668", "product": ["课堂", "直播", "作业"], "app_url": {
+    "A119": "https://qqyxt.m.bozedu.net/page/course/tskc_more.html",
+    "A120": "https://qqyxt.m.bozedu.net/page/my/msg_hybrid.html?id=31", "A121": "https://qqyxt.m.bozedu.net/page/parent/msg.html",
+    "A122": "https://qqyxt.m.bozedu.net/page/my/integral_hybrid.html",
+    "A123": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html", "A124": "https://qqyxt.m.bozedu.net/page/my/footPrint.html",
+    "A125": "https://qqyxt.m.bozedu.net/page/my/intergralMall.html",
+    "A126": "https://openapi.bozedu.net/component/ebook_main/public?api=html",
+    "A127": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?v=1",
+    "A128": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?type=course_after_service",
+    "A129": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=1", "A130": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=2",
+    "A131": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=3", "A132": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=4"
+  },
+  "cpm_access_level": "6",
+  "pwd": "lihao123"
+}
 //  {
 //   "user_id": "347479",
 //   "user_name": "张虹",