فهرست منبع

Merge branch '2025北京诚祥' of https://gogs.mtavip.com/wangguoyu/uniProject into 2025北京诚祥

tanxue 2 ماه پیش
والد
کامیت
fa2a79a2e5
1فایلهای تغییر یافته به همراه80 افزوده شده و 29 حذف شده
  1. 80 29
      pages/admin/Jiazheng/index.vue

+ 80 - 29
pages/admin/Jiazheng/index.vue

@@ -8,7 +8,6 @@
 				<uni-icons type="search" size="16" color="#000" @click="toggle('top')"></uni-icons>
 			</view>
 			<view class="jiazheng-search-box">
-
 				<view @click="clickAlltype" class="select-item-box">
 					<text>全部类型</text>
 					<icon :class="allJtClass" />
@@ -31,27 +30,36 @@
 						<text>录入时间</text>
 						<icon :class="luruJtClass" />
 					</view>
-
-				</view>
-
-			</view>
-
-			<view class="wgy" @click="lookUserInfo">
-				<view>
-					<view>王一一123</view>
-					<view>分享阿斯蒂芬</view>
-					<view>打电话</view>
-				</view>
-				<view>
-					<image src="" mode=""></image>
-					<view>
-						<p> 1000岁|3年经验</p>
-						<p>四川成都人</p>
-					</view>
-					<view>
-						待岗
-					</view>
 				</view>
+			</view>		
+			<view>
+				<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
+					:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh"
+					class="phone-scroll-view">
+					<uni-list class="admin-list-box">
+						<uni-list-item v-for="item in data.list" class="admin-list-item-box">
+							<template v-slot:body>
+								<view>
+									<view>{{item.realName}}</view>
+									<view @click="shareInfo">分享</view>
+									<view @click="telephone">打电话</view>
+								</view>
+								<view @click="lookUserInfo">
+									<image :src="item.icon ||defauleImg" mode=""></image>
+									<view>
+										<p> 1000岁|3年经验</p>
+										<p>四川成都人</p>
+									</view>
+									<view>
+										待岗
+									</view>
+								</view>				
+							</template>
+						</uni-list-item>
+						<uni-load-more :status="data.state" @click="getMore(0)"
+							:contentText="data.contentText"></uni-load-more>
+					</uni-list>
+				</scroll-view>
 			</view>
 			<view>
 				<!-- 普通弹窗 -->
@@ -80,7 +88,8 @@
 
 <script setup>
 	import {
-		ref
+		ref,
+		reactive
 	} from "vue";
 	import {
 		onLoad
@@ -124,10 +133,24 @@
 			"text": "游泳"
 		}
 	])
+	let data = reactive({
+		zyName: '', // 职业名称
+		list: [], // 考试列表
+		loading: false,
+		page: 0,
+		size: 10,
+		state: 'more',
+		contentText: {
+			contentdown: '查看更多',
+			contentrefresh: '加载中',
+			contentnomore: '没有更多'
+		}
+	})
 	let zyName = ref('')
 	let value = ref(0)
 	let isOpen = ref(false)
 	let typeChecked = ref(1)
+	let defauleImg = ref('@/static/images/my/client-default-icon.png')
 	const popup = ref(null);
 	const allJtClass = 'select-jt-default';
 	const updataJtClass = 'saixuan-jt-default';
@@ -149,20 +172,46 @@
 			url: `/pages/admin/Jiazheng/jiazhengUserInfo`
 		})
 	}
-	function goUpPage(){
+
+	function goUpPage() {
 		uni.redirectTo({
 			url: `/pages/admin/ShouYe/shouye`
 		})
 	}
-	function timeClick(){
-		
+
+	function onRefresh() {
+		data.page = 0;
+		data.list = [];
+		data.loading = true;
+		refreshData();
 	}
-	function change(){
-		
+
+	function telephone() {
+		uni.makePhoneCall({
+			phoneNumber: '114' //仅为示例
+		});
 	}
-	function handleSearch(){
-		
+
+	function shareInfo() {
+
 	}
+
+	function refreshData() {
+
+	}
+
+	function timeClick() {
+
+	}
+
+	function change() {
+
+	}
+
+	function handleSearch() {
+
+	}
+
 	function getDataList() {
 		let req = {
 			"leixing": "",
@@ -175,6 +224,8 @@
 		}
 		getJiazhengList(req).then(res => {
 			console.log('res', res);
+			data.list = res.data.data
+			console.log('data.list', data.list);
 		})
 	}
 	onLoad(() => {