Selaa lähdekoodia

接口名称修改

lifanagju_citu 2 kuukautta sitten
vanhempi
commit
635390c8f1
2 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  1. 1 1
      api/student.js
  2. 5 4
      pagesA/student/enterpriseRecommendationLetter.vue

+ 1 - 1
api/student.js

@@ -1,7 +1,7 @@
 import request from "@/utils/request"
 
 // 获取企业推荐信列表
-export const getEnterpriseRecommendationList = async (data) => {
+export const getRecommendationPage = async (data) => {
 	return request({
 		url: '/app-api/flames/student/recommendation/list',
 		method: 'POST',

+ 5 - 4
pagesA/student/enterpriseRecommendationLetter.vue

@@ -8,6 +8,7 @@
           <text class="color-primary" @tap.stop="viewReport(item)">点击查看</text>
         </view>
       </uni-card>
+      <uni-load-more status="noMore" style="line-height: 20vh;" />
 		</view>
 		<view v-else class="nodata-img-parent">
 			<image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>
@@ -17,7 +18,7 @@
 
 <script setup>
 import { ref } from 'vue'
-import { getEnterpriseRecommendationList } from '@/api/student'
+import { getRecommendationPage } from '@/api/student'
 import { onShow } from '@dcloudio/uni-app'
 import { formatName } from '@/utils/getText'
 import { timesTampChange } from '@/utils/date'
@@ -34,6 +35,7 @@ const list = ref([
     }
   }
 ])
+// list.value = Array.from({ length: 10 }, () => list.value[0]);
 
 // 推荐信预览
 const viewReport = (item) => {
@@ -51,14 +53,14 @@ const viewReport = (item) => {
 // 获取推荐信列表
 const getList = async () => {
   try {
-    const { data } = await getEnterpriseRecommendationList({ size: 9999, current: 1 })
+    const { data } = await getRecommendationPage({ size: 9999, current: 1 })
     console.log(data, '推荐信列表')
     // list.value = data.records.reverse()
   } catch {}
 }
 
 onShow(async () => {
-  // await getList()
+  await getList()
 })
 </script>
 
@@ -66,7 +68,6 @@ onShow(async () => {
 .list-item {
   background-color: #fff;
   border-radius: 3px;
-  padding: 20px;
   box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.1);
 }
 </style>