bzkf30 2 years ago
parent
commit
6b031a3210
7 changed files with 66 additions and 74 deletions
  1. 10 19
      src/App.vue
  2. 1 1
      src/main.ts
  3. 1 1
      src/pages/jckc/index.vue
  4. 1 1
      src/pages/jckc/zy_index.vue
  5. 1 1
      src/pages/ysgc/detail.vue
  6. 1 1
      src/pages/ysgc/index.vue
  7. 51 50
      src/store/index.ts

+ 10 - 19
src/App.vue

@@ -1,22 +1,19 @@
 <script setup lang="ts">
-import type { ConfigProviderProps, ConfigProviderTheme } from 'vant'
-import { useDark, useToggle } from '@vueuse/core'
+import type { ConfigProviderProps, ConfigProviderTheme } from "vant";
+import { useDark, useToggle } from "@vueuse/core";
 
-const isDark = useDark()
-const toggleDark = useToggle(isDark)
+const isDark = useDark();
+const toggleDark = useToggle(isDark);
 
-const theme = computed<ConfigProviderTheme>(() => isDark.value ? 'dark' : 'light')
+const theme = computed<ConfigProviderTheme>(() =>
+  isDark.value ? "dark" : "light"
+);
 
-const themeVars: ConfigProviderProps['themeVars'] = {
-
-}
+const themeVars: ConfigProviderProps["themeVars"] = {};
 </script>
 
 <template>
-  <van-config-provider
-    :theme="theme" :theme-vars="themeVars"
-    class="w-screen h-screen bg-light-900 text-dark-900 flex flex-col " :class="isDark && 'bg-dark-900 text-light-900'"
-  >
+  <van-config-provider :theme="theme" :theme-vars="themeVars" class="w-screen h-screen bg-light-900 text-dark-900 flex flex-col " :class="isDark && 'bg-dark-900 text-light-900'">
     <!-- <van-nav-bar title="标题">
       <template #right>
         <button @click="toggleDark()" class="text-18px">
@@ -29,10 +26,4 @@ const themeVars: ConfigProviderProps['themeVars'] = {
       <router-view />
     </div>
   </van-config-provider>
-</template>
-
-<style>
-.van-nav-bar .van-nav-bar__left {
-  display: none;
-}
-</style>
+</template>

+ 1 - 1
src/main.ts

@@ -14,7 +14,7 @@ import 'vant/es/notify/style'
 import 'vant/es/image-preview/style'
 
 import VConsole from 'vconsole';
-// const vConsole = new VConsole();
+const vConsole = new VConsole();
 
 const app = createApp(App)
 app.use(router)

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

@@ -1,6 +1,6 @@
 <template>
   <div class="jckcContent">
-    <van-nav-bar left-arrow title="基础课程" right-text="筛选" @click-right="handleRightClick" @click-left="onClickLeft" />
+    <van-nav-bar title="基础课程" right-text="筛选" @click-right="handleRightClick" @click-left="onClickLeft" />
     <van-search v-model="keyword" shape="round" placeholder="搜索你要看的内容" @search="handleSearch" @clear="handleSearch" />
 
     <van-empty v-if="listData.length==0 && !loading" description="无数据" />

+ 1 - 1
src/pages/jckc/zy_index.vue

@@ -2,7 +2,7 @@
   <div class="zyContent">
     <!-- <van-loading v-if="loading || detailLoad" class="h-full flex items-center justify-center" /> -->
 
-    <van-nav-bar left-arrow :title="detailInfo.grade_name+' 《'+ detailInfo.kk_name+'》'" @click-left="onClickLeft" />
+    <van-nav-bar :title="detailInfo.grade_name+' 《'+ detailInfo.kk_name+'》'" @click-left="onClickLeft" />
 
     <div class="production p-5">
       <div class="title">{{detailInfo.grade_name+' 《'+ detailInfo.kk_name+'》'}}</div>

+ 1 - 1
src/pages/ysgc/detail.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="detailContent">
-    <van-nav-bar left-arrow title="作品详情" @click-left="onClickLeft" />
+    <van-nav-bar title="作品详情" @click-left="onClickLeft" />
 
     <div class="flex justify-between items-center px-3 mt-2">
       <div style="font-size: 15px;">{{detailInfo.yz_name}}</div>

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

@@ -1,6 +1,6 @@
 <template>
   <div class="ysgcContent">
-    <van-nav-bar left-arrow title="艺术广场" @click-left="onClickLeft" />
+    <van-nav-bar title="艺术广场" @click-left="onClickLeft" />
 
     <van-swipe class="mb-5" :loop="false" :width="144" :show-indicators="false">
       <van-swipe-item v-for="(item, index) in swiperData" :key="index">

+ 51 - 50
src/store/index.ts

@@ -12,57 +12,58 @@ if (localUserInfo) {
   showFailToast('本地用户信息不存在')
 
   // userInfo = {
-  //   "user_id":"100",
-  //   "user_name":"tyyxadmin",
-  //   "user_realname":"局管理",
-  //   "user_password":"b923bc037bffebe673963ddd046c7306990ea7aa",
-  //   "user_group_id":"1",
-  //   "user_role_id":"69",
-  //   "user_level_id":"1",
-  //   "user_detail_id":null,
-  //   "user_score":"23",
-  //   "modify_dateline":"1616403054",
-  //   "create_dateline":"1616403054",
-  //   "isdelete":"0",
-  //   "area_id1":"0",
-  //   "area_id2":"0",
-  //   "area_id3":"0",
-  //   "area_id4":"0",
-  //   "sm_id":"0",
-  //   "sm_admin":"0",
-  //   "cm_id":"0",
-  //   "cm_admin":"0",
-  //   "user_phone":"",
-  //   "phone_validation":"0",
-  //   "parent_user_id":null,
-  //   "user_nickname":null,
-  //   "user_avatar":"https://ossdownload.bozedu.net/template/default/static/img/avatar_student_small.png",
-  //   "user_email":null,
-  //   "email_validation":"0",
-  //   "email_token":null,
-  //   "email_token_exptime":null,
-  //   "ischeck":"1",
-  //   "student_no":null,
-  //   "address":null,
-  //   "gender":null,
-  //   "about":null,
-  //   "qq":null,
-  //   "openid":"",
-  //   "webchatopenid":null,
-  //   "user_level":"1",
-  //   "user_birthday":"",
-  //   "grade_id":null,
-  //   "create_user_id":null,
-  //   "user_dept":"",
-  //   "user_cardno":null,
-  //   "dept_id":"",
-  //   "user_eyear":"0",
-  //   "user_grade_num":"0",
-  //   "user_class_num":"0",
-  //   "last_token":null,
-  //   "last_login":null,
-  //   "token":"01c54JHFBaaOkzA6XETYWgkxbxorMrroEyjBLls9Gpcc5BU7634OMG_bLyWXBxYA4jfrr6ij_aviuT5F8iLB3nTUFSg39xwEAlvQ"
+  //   "user_id": "100",
+  //   "user_name": "tyyxadmin",
+  //   "user_realname": "局管理",
+  //   "user_password": "b923bc037bffebe673963ddd046c7306990ea7aa",
+  //   "user_group_id": "1",
+  //   "user_role_id": "69",
+  //   "user_level_id": "1",
+  //   "user_detail_id": null,
+  //   "user_score": "23",
+  //   "modify_dateline": "1616403054",
+  //   "create_dateline": "1616403054",
+  //   "isdelete": "0",
+  //   "area_id1": "0",
+  //   "area_id2": "0",
+  //   "area_id3": "0",
+  //   "area_id4": "0",
+  //   "sm_id": "0",
+  //   "sm_admin": "0",
+  //   "cm_id": "0",
+  //   "cm_admin": "0",
+  //   "user_phone": "",
+  //   "phone_validation": "0",
+  //   "parent_user_id": null,
+  //   "user_nickname": null,
+  //   "user_avatar": "https://ossdownload.bozedu.net/template/default/static/img/avatar_student_small.png",
+  //   "user_email": null,
+  //   "email_validation": "0",
+  //   "email_token": null,
+  //   "email_token_exptime": null,
+  //   "ischeck": "1",
+  //   "student_no": null,
+  //   "address": null,
+  //   "gender": null,
+  //   "about": null,
+  //   "qq": null,
+  //   "openid": "",
+  //   "webchatopenid": null,
+  //   "user_level": "1",
+  //   "user_birthday": "",
+  //   "grade_id": null,
+  //   "create_user_id": null,
+  //   "user_dept": "",
+  //   "user_cardno": null,
+  //   "dept_id": "",
+  //   "user_eyear": "0",
+  //   "user_grade_num": "0",
+  //   "user_class_num": "0",
+  //   "last_token": null,
+  //   "last_login": null,
+  //   "token": "01c54JHFBaaOkzA6XETYWgkxbxorMrroEyjBLls9Gpcc5BU7634OMG_bLyWXBxYA4jfrr6ij_aviuT5F8iLB3nTUFSg39xwEAlvQ"
   // }
 }
+console.log(userInfo)
 
 export default userInfo