wangxy 1 month ago
parent
commit
664befa0fa
2 changed files with 28 additions and 0 deletions
  1. 12 0
      api/login.js
  2. 16 0
      pages/Login/components/clientloginBox.vue

+ 12 - 0
api/login.js

@@ -35,4 +35,16 @@ export function getVersion(data = {}) {
     data,
     data,
     timeout: 20000
     timeout: 20000
   })
   })
+}
+
+export function getAllImgList(data = {}) {
+  return request({
+    'url': '/common/app/xiaochengxu',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
 }
 }

+ 16 - 0
pages/Login/components/clientloginBox.vue

@@ -33,6 +33,9 @@
 	import {ref} from "vue"
 	import {ref} from "vue"
 	import {toast} from "@/utils/common";
 	import {toast} from "@/utils/common";
 	import {useIsCanBack} from "@/store/isCanBack.js"
 	import {useIsCanBack} from "@/store/isCanBack.js"
+  import {
+    onLoad
+  } from "@dcloudio/uni-app";
 	
 	
 	
 	
 	const userName = ref('') // 用户名
 	const userName = ref('') // 用户名
@@ -44,6 +47,10 @@
 	const clearPwIcon= ref(false)
 	const clearPwIcon= ref(false)
 	
 	
 	const store = useIsCanBack();
 	const store = useIsCanBack();
+
+  onLoad(() => {
+    getAllImg();
+  })
 	
 	
 	// 加密
 	// 加密
 	function handleUpdateLLiPassword() {
 	function handleUpdateLLiPassword() {
@@ -141,6 +148,15 @@
           url: `/pages/client/ShouYe/shouye`
           url: `/pages/client/ShouYe/shouye`
         })
         })
 	}
 	}
+
+  function getAllImg() {
+    httpApi.getAllImgList({}).then(res => {
+      cacheManager.set('projectImg', res.data)
+
+
+      // defultKsImg.value = cacheManager.get('projectImg').index_ks_default
+    });
+  }
 </script>
 </script>
 
 
 <style>
 <style>