zs 1 ano atrás
pai
commit
f4a122f7d2
29 arquivos alterados com 813 adições e 748 exclusões
  1. 149 5
      pages/home/index.vue
  2. 145 1
      pages/teacher/index.vue
  3. 295 0
      pagesHome/list/index.vue
  4. 0 136
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.js
  5. 0 7
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.json
  6. 0 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.wxml
  7. 0 39
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.wxss
  8. 0 99
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.js
  9. 0 7
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.json
  10. 0 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.wxml
  11. 0 102
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.wxss
  12. 0 34
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js
  13. 0 4
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.json
  14. 0 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.wxml
  15. 0 21
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.wxss
  16. 0 44
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js
  17. 0 4
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.json
  18. 0 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.wxml
  19. 0 27
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.wxss
  20. 0 122
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.js
  21. 0 7
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.json
  22. 0 1
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.wxml
  23. 0 70
      unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.wxss
  24. 29 5
      unpackage/dist/dev/mp-weixin/pages/home/index.js
  25. 1 1
      unpackage/dist/dev/mp-weixin/pages/home/index.wxml
  26. 82 2
      unpackage/dist/dev/mp-weixin/pages/home/index.wxss
  27. 26 5
      unpackage/dist/dev/mp-weixin/pages/teacher/index.js
  28. 1 1
      unpackage/dist/dev/mp-weixin/pages/teacher/index.wxml
  29. 85 0
      unpackage/dist/dev/mp-weixin/pages/teacher/index.wxss

+ 149 - 5
pages/home/index.vue

@@ -18,7 +18,41 @@
 		<view class="five">
 			<up-list @scrolltolower="scrolltolower">
 				<up-list-item v-for="(item, index) in list" :key="index">
-					{{item.nick_name}}
+					<view class="list">
+						<view class="left">
+							<image v-if="item.icon&&item.icon.length>0&&item.icon" class="image"
+								:src="item.icon[0].url">
+							</image>
+							<image v-else class="image" :src="config.icon[0].url"></image>
+						</view>
+						<view class="right">
+							<view class="right_1">
+								<view class="leftR">
+									{{item.nick_name||'暂无昵称'}}
+								</view>
+								<view class="rightR">
+									<view class="text">
+										<span class="text_1">最近可约:</span>
+										<span class="text_2">{{item.time||'休息中'}}</span>
+									</view>
+								</view>
+							</view>
+							<view class="right_2">
+								<view class="text"> 所在院校: </view>
+								<view class="value"> {{item.college||'暂无'}} </view>
+							</view>
+							<view class="right_2">
+								<view class="text"> 学历: </view>
+								<view class="value">{{getDict(item.education,'education')}}</view>
+							</view>
+							<view class="right_3">
+								<view class="money">¥{{item.money||'免费'}} </view>
+								<view class="button">
+									<button type="warn" size="mini" @click="toBuy(item)">预约</button>
+								</view>
+							</view>
+						</view>
+					</view>
 				</up-list-item>
 			</up-list>
 		</view>
@@ -54,6 +88,7 @@
 	const is_bottom = ref(false);
 	// 字典表
 	const subjectList = ref([]);
+	const educationList = ref([]);
 	// 遮罩层
 	const show = ref(false);
 	// user
@@ -83,6 +118,9 @@
 		res = await $api(`dictData`, 'GET', { code: 'subject', is_use: '0' });
 		if (res.errcode === 0) subjectList.value = res.data;
 		subjectList.value.unshift({ label: '全部', value: '-1', is_show: true })
+		// 学历
+		res = await $api(`dictData`, 'GET', { code: 'education', is_use: '0' });
+		if (res.errcode === 0) educationList.value = res.data;
 	};
 	// 查询
 	const search = async () => {
@@ -107,9 +145,18 @@
 	const toTab = async (data) => {
 		console.log(data);
 	};
+	const getDict = (data, model) => {
+		let res
+		if (model == 'education') res = educationList.value.find((f) => f.value == data)
+		return res.label || '暂无'
+	}
 	const showChange = () => {
 		show.value = false
 	}
+	// 去预约
+	const toBuy = (item) => {
+		console.log(item);
+	}
 	const scrolltolower = () => {
 		if (total.value > list.value.length) {
 			uni.showLoading({
@@ -163,15 +210,112 @@
 		}
 
 		.four {
-			margin: 2vw;
+			margin: 0 2vw;
 			border-radius: 5px;
 			background-color: var(--mainColor);
 		}
 
 		.five {
-			margin: 2vw;
-			border-radius: 5px;
-			background-color: var(--mainColor);
+			margin: 0 2vw;
+
+			.list {
+				display: flex;
+				margin: 2vw 0 0 0;
+				padding: 2vw;
+				border-radius: 5px;
+				background-color: var(--mainColor);
+
+				.left {
+					width: 28%;
+					margin: 0 2vw 0 0;
+
+					.image {
+						width: 25vw;
+						height: 25vw;
+						border-radius: 25vw;
+					}
+
+				}
+
+				.right {
+					width: 70%;
+
+					.right_1 {
+						display: flex;
+						align-items: center;
+						justify-content: space-between;
+
+						.leftR {
+							width: 40%;
+							font-size: var(--font16Size);
+							font-weight: bold;
+						}
+
+						.rightR {
+							width: 60%;
+							text-align: right;
+							font-size: var(--font12Size);
+
+							.text {
+								text-align: center;
+								border: 1px solid var(--3c9Color);
+								border-radius: 4px;
+								padding: 1vw;
+								background: linear-gradient(to right, #ffffff, #3c9cff59);
+
+								.text_1 {
+									color: var(--3c9Color);
+									font-weight: bold;
+								}
+								.text_2 {
+									color: var(--ff0Color);
+								}
+							}
+						}
+					}
+
+					.right_2 {
+						display: flex;
+						align-items: center;
+						margin: 1vw 0 0 0;
+
+						.text {
+							font-size: var(--font14Size);
+							margin: 0 1vw 0 0;
+						}
+
+						.value {
+							text-align: right;
+							color: var(--f85Color);
+							font-size: var(--font12Size);
+						}
+					}
+
+					.right_3 {
+						display: flex;
+						align-items: center;
+						justify-content: space-between;
+
+						.money {
+							width: 50%;
+							font-size: var(--font14Size);
+							color: var(--ff0Color);
+						}
+
+						.button {
+							width: 50%;
+							text-align: right;
+
+							button {
+								color: var(--mainColor);
+								background: linear-gradient(to right, #1e3fdc, #3c9cff);
+								font-size: var(--font12Size);
+								border-radius: 5vw;
+							}
+						}
+					}
+				}
+			}
 		}
 	}
 </style>

+ 145 - 1
pages/teacher/index.vue

@@ -10,7 +10,39 @@
 			<up-list @scrolltolower="scrolltolower">
 				<up-list-item v-for="(item, index) in list" :key="index">
 					<view class="list">
-						{{item.nick_name}}
+						<view class="left">
+							<image v-if="item.icon&&item.icon.length>0&&item.icon" class="image"
+								:src="item.icon[0].url">
+							</image>
+							<image v-else class="image" :src="config.icon[0].url"></image>
+						</view>
+						<view class="right">
+							<view class="right_1">
+								<view class="leftR">
+									{{item.nick_name||'暂无昵称'}}
+								</view>
+								<view class="rightR">
+									<view class="text">
+										<span class="text_1">最近可约:</span>
+										<span class="text_2">{{item.time||'休息中'}}</span>
+									</view>
+								</view>
+							</view>
+							<view class="right_2">
+								<view class="text"> 所在院校: </view>
+								<view class="value"> {{item.college||'暂无'}} </view>
+							</view>
+							<view class="right_2">
+								<view class="text"> 学历: </view>
+								<view class="value">{{getDict(item.education,'education')}}</view>
+							</view>
+							<view class="right_3">
+								<view class="money">¥{{item.money||'免费'}} </view>
+								<view class="button">
+									<button type="warn" size="mini" @click="toBuy(item)">预约</button>
+								</view>
+							</view>
+						</view>
 					</view>
 				</up-list-item>
 			</up-list>
@@ -47,6 +79,7 @@
 	const show = ref(false);
 	// 字典表
 	const subjectList = ref([]);
+	const educationList = ref([]);
 	const nick_name = ref('');
 	// user
 	const user = computed(() => {
@@ -75,6 +108,9 @@
 		res = await $api(`dictData`, 'GET', { code: 'subject', is_use: '0' });
 		if (res.errcode === 0) subjectList.value = res.data;
 		subjectList.value.unshift({ label: '全部', value: '-1', is_show: true })
+		// 学历
+		res = await $api(`dictData`, 'GET', { code: 'education', is_use: '0' });
+		if (res.errcode === 0) educationList.value = res.data;
 	};
 	// 名称搜索
 	const searchInfo = async () => {
@@ -110,6 +146,11 @@
 	const showChange = () => {
 		show.value = false
 	}
+	const getDict = (data, model) => {
+		let res
+		if (model == 'education') res = educationList.value.find((f) => f.value == data)
+		return res.label || '暂无'
+	}
 	const scrolltolower = () => {
 		if (total.value > list.value.length) {
 			uni.showLoading({
@@ -146,6 +187,109 @@
 			margin: 2vw;
 			border-radius: 5px;
 			background-color: var(--mainColor);
+			
+		}
+		.thr {
+			margin: 0 2vw;
+		
+			.list {
+				display: flex;
+				margin: 2vw 0 0 0;
+				padding: 2vw;
+				border-radius: 5px;
+				background-color: var(--mainColor);
+		
+				.left {
+					width: 28%;
+					margin: 0 2vw 0 0;
+		
+					.image {
+						width: 25vw;
+						height: 25vw;
+						border-radius: 25vw;
+					}
+		
+				}
+		
+				.right {
+					width: 70%;
+		
+					.right_1 {
+						display: flex;
+						align-items: center;
+						justify-content: space-between;
+		
+						.leftR {
+							width: 40%;
+							font-size: var(--font16Size);
+							font-weight: bold;
+						}
+		
+						.rightR {
+							width: 60%;
+							text-align: right;
+							font-size: var(--font12Size);
+		
+							.text {
+								text-align: center;
+								border: 1px solid var(--3c9Color);
+								border-radius: 4px;
+								padding: 1vw;
+								background: linear-gradient(to right, #ffffff, #3c9cff59);
+		
+								.text_1 {
+									color: var(--3c9Color);
+									font-weight: bold;
+								}
+								.text_2 {
+									color: var(--ff0Color);
+								}
+							}
+						}
+					}
+		
+					.right_2 {
+						display: flex;
+						align-items: center;
+						margin: 1vw 0 0 0;
+		
+						.text {
+							font-size: var(--font14Size);
+							margin: 0 1vw 0 0;
+						}
+		
+						.value {
+							text-align: right;
+							color: var(--f85Color);
+							font-size: var(--font12Size);
+						}
+					}
+		
+					.right_3 {
+						display: flex;
+						align-items: center;
+						justify-content: space-between;
+		
+						.money {
+							width: 50%;
+							font-size: var(--font14Size);
+							color: var(--ff0Color);
+						}
+		
+						.button {
+							width: 50%;
+							text-align: right;
+		
+							button {
+								color: var(--mainColor);
+								background: linear-gradient(to right, #1e3fdc, #3c9cff);
+								font-size: var(--font12Size);
+								border-radius: 5vw;
+							}
+						}
+					}
+				}
+			}
 		}
 	}
 </style>

+ 295 - 0
pagesHome/list/index.vue

@@ -0,0 +1,295 @@
+<template>
+	<view class="content">
+		<view class="one">
+			<up-search v-model="nick_name" @custom="searchInfo"></up-search>
+		</view>
+		<view class="two">
+			<up-tabs :list="subjectList" keyName="label" @click="toTab"></up-tabs>
+		</view>
+		<view class="thr" v-if="total>0">
+			<up-list @scrolltolower="scrolltolower">
+				<up-list-item v-for="(item, index) in list" :key="index">
+					<view class="list">
+						<view class="left">
+							<image v-if="item.icon&&item.icon.length>0&&item.icon" class="image"
+								:src="item.icon[0].url">
+							</image>
+							<image v-else class="image" :src="config.icon[0].url"></image>
+						</view>
+						<view class="right">
+							<view class="right_1">
+								<view class="leftR">
+									{{item.nick_name||'暂无昵称'}}
+								</view>
+								<view class="rightR">
+									<view class="text">
+										<span class="text_1">最近可约:</span>
+										<span class="text_2">{{item.time||'休息中'}}</span>
+									</view>
+								</view>
+							</view>
+							<view class="right_2">
+								<view class="text"> 所在院校: </view>
+								<view class="value"> {{item.college||'暂无'}} </view>
+							</view>
+							<view class="right_2">
+								<view class="text"> 学历: </view>
+								<view class="value">{{getDict(item.education,'education')}}</view>
+							</view>
+							<view class="right_3">
+								<view class="money">¥{{item.money||'免费'}} </view>
+								<view class="button">
+									<button type="warn" size="mini" @click="toBuy(item)">预约</button>
+								</view>
+							</view>
+						</view>
+					</view>
+				</up-list-item>
+			</up-list>
+		</view>
+		<up-empty v-else mode="list" icon="/static/list.png">
+		</up-empty>
+		<view class="is_bottom" v-if="is_bottom">
+			<text>{{config.bottom_title||'没有更多了!'}}</text>
+		</view>
+		<up-overlay :show="show">
+			<login @showChange='showChange'></login>
+		</up-overlay>
+	</view>
+</template>
+
+<script setup lang="ts">
+	import login from "@/components/login.vue"
+	import { inject, computed, ref } from 'vue';
+	//该依赖已内置不需要单独安装
+	import { onShow, onPullDownRefresh } from "@dcloudio/uni-app";
+	// 请求接口
+	const $api = inject('$api');
+	// 基本信息
+	const config = ref({ logo: [], file: [] });
+	// 列表
+	const list = ref([]);
+	const total = ref(0);
+	const skip = ref(0);
+	const limit = ref(5);
+	const page = ref(0);
+	// 数据是否触底
+	const is_bottom = ref(false);
+	// 遮罩层
+	const show = ref(false);
+	// 字典表
+	const subjectList = ref([]);
+	const educationList = ref([]);
+	const nick_name = ref('');
+	// user
+	const user = computed(() => {
+		return uni.getStorageSync('user');
+	})
+	onShow(async () => {
+		await searchConfig();
+		await searchOther();
+		await clearPage();
+		await search();
+		if (!user.value) show.value = true
+	})
+	onPullDownRefresh(async () => {
+		await clearPage();
+		await search();
+		uni.stopPullDownRefresh();
+	})
+	// config信息
+	const searchConfig = async () => {
+		config.value = uni.getStorageSync('config');
+	};
+	// 其他查询信息
+	const searchOther = async () => {
+		let res;
+		// 学科
+		res = await $api(`dictData`, 'GET', { code: 'subject', is_use: '0' });
+		if (res.errcode === 0) subjectList.value = res.data;
+		subjectList.value.unshift({ label: '全部', value: '-1', is_show: true })
+		// 学历
+		res = await $api(`dictData`, 'GET', { code: 'education', is_use: '0' });
+		if (res.errcode === 0) educationList.value = res.data;
+	};
+	// 名称搜索
+	const searchInfo = async () => {
+		if (nick_name.value) {
+			await clearPage();
+			await search();
+		}
+	};
+	// 查询
+	const search = async () => {
+		const info : any = {
+			skip: skip.value,
+			limit: limit.value,
+			status: '1',
+			is_show: '0'
+		}
+		if (nick_name.value) info.nick_name = nick_name.value
+		const res = await $api('teacher', 'GET', info);
+		if (res.errcode === 0) {
+			list.value = list.value.concat(res.data)
+			total.value = res.total
+		} else {
+			uni.showToast({
+				title: res.errmsg || '',
+				icon: 'error',
+			});
+		}
+	};
+	// 改变标签
+	const toTab = async (data) => {
+		console.log(data);
+	};
+	const showChange = () => {
+		show.value = false
+	}
+	const getDict = (data, model) => {
+		let res
+		if (model == 'education') res = educationList.value.find((f) => f.value == data)
+		return res.label || '暂无'
+	}
+	const scrolltolower = () => {
+		if (total.value > list.value.length) {
+			uni.showLoading({
+				title: '加载中',
+				mask: true
+			})
+			page.value = page.value + 1;
+			skip.value = page.value * limit.value;
+			search();
+			uni.hideLoading();
+		} else is_bottom.value = true
+	};
+	// 清空列表
+	const clearPage = () => {
+		list.value = []
+		skip.value = 0
+		limit.value = 6
+		page.value = 0
+	};
+</script>
+<style lang="scss" scoped>
+	.content {
+		display: flex;
+		flex-direction: column;
+		min-height: 100vh;
+		background-color: var(--f1Color);
+
+		.one {
+			padding: 2vw;
+			background-color: var(--mainColor);
+		}
+
+		.two {
+			margin: 2vw;
+			border-radius: 5px;
+			background-color: var(--mainColor);
+			
+		}
+		.thr {
+			margin: 0 2vw;
+		
+			.list {
+				display: flex;
+				margin: 2vw 0 0 0;
+				padding: 2vw;
+				border-radius: 5px;
+				background-color: var(--mainColor);
+		
+				.left {
+					width: 28%;
+					margin: 0 2vw 0 0;
+		
+					.image {
+						width: 25vw;
+						height: 25vw;
+						border-radius: 25vw;
+					}
+		
+				}
+		
+				.right {
+					width: 70%;
+		
+					.right_1 {
+						display: flex;
+						align-items: center;
+						justify-content: space-between;
+		
+						.leftR {
+							width: 40%;
+							font-size: var(--font16Size);
+							font-weight: bold;
+						}
+		
+						.rightR {
+							width: 60%;
+							text-align: right;
+							font-size: var(--font12Size);
+		
+							.text {
+								text-align: center;
+								border: 1px solid var(--3c9Color);
+								border-radius: 4px;
+								padding: 1vw;
+								background: linear-gradient(to right, #ffffff, #3c9cff59);
+		
+								.text_1 {
+									color: var(--3c9Color);
+									font-weight: bold;
+								}
+								.text_2 {
+									color: var(--ff0Color);
+								}
+							}
+						}
+					}
+		
+					.right_2 {
+						display: flex;
+						align-items: center;
+						margin: 1vw 0 0 0;
+		
+						.text {
+							font-size: var(--font14Size);
+							margin: 0 1vw 0 0;
+						}
+		
+						.value {
+							text-align: right;
+							color: var(--f85Color);
+							font-size: var(--font12Size);
+						}
+					}
+		
+					.right_3 {
+						display: flex;
+						align-items: center;
+						justify-content: space-between;
+		
+						.money {
+							width: 50%;
+							font-size: var(--font14Size);
+							color: var(--ff0Color);
+						}
+		
+						.button {
+							width: 50%;
+							text-align: right;
+		
+							button {
+								color: var(--mainColor);
+								background: linear-gradient(to right, #1e3fdc, #3c9cff);
+								font-size: var(--font12Size);
+								border-radius: 5vw;
+							}
+						}
+					}
+				}
+			}
+		}
+	}
+</style>

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 136
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.js


+ 0 - 7
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.json

@@ -1,7 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "u-icon": "../u-icon/u-icon",
-    "up-text": "../u-text/u-text"
-  }
-}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.wxml


+ 0 - 39
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-avatar/u-avatar.wxss

@@ -1,39 +0,0 @@
-/* 水平间距 */
-/* 水平间距 */
-.u-empty.data-v-14a988f2,
-.u-empty__wrap.data-v-14a988f2,
-.u-tabs.data-v-14a988f2,
-.u-tabs__wrapper.data-v-14a988f2,
-.u-tabs__wrapper__scroll-view-wrapper.data-v-14a988f2,
-.u-tabs__wrapper__scroll-view.data-v-14a988f2,
-.u-tabs__wrapper__nav.data-v-14a988f2,
-.u-tabs__wrapper__nav__line.data-v-14a988f2 {
-  display: flex;
-  flex-direction: column;
-  flex-shrink: 0;
-  flex-grow: 0;
-  flex-basis: auto;
-  align-items: stretch;
-  align-content: flex-start;
-}
-.u-avatar.data-v-14a988f2 {
-
-  display: flex;
-
-  flex-direction: row;
-  align-items: center;
-  justify-content: center;
-}
-.u-avatar--circle.data-v-14a988f2 {
-  border-radius: 100px;
-}
-.u-avatar--square.data-v-14a988f2 {
-  border-radius: 4px;
-}
-.u-avatar__image--circle.data-v-14a988f2 {
-  border-radius: 100px;
-  overflow: hidden;
-}
-.u-avatar__image--square.data-v-14a988f2 {
-  border-radius: 4px;
-}

+ 0 - 99
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.js

@@ -1,99 +0,0 @@
-"use strict";
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "u-cell",
-  data() {
-    return {};
-  },
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$4],
-  computed: {
-    titleTextStyle() {
-      return common_vendor.addStyle(this.titleStyle);
-    }
-  },
-  emits: ["click"],
-  methods: {
-    addStyle: common_vendor.addStyle,
-    testEmpty: common_vendor.test.empty,
-    // 点击cell
-    clickHandler(e) {
-      if (this.disabled)
-        return;
-      this.$emit("click", {
-        name: this.name
-      });
-      this.openPage();
-      this.stop && this.preventEvent(e);
-    }
-  }
-};
-if (!Array) {
-  const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
-  const _easycom_u_line2 = common_vendor.resolveComponent("u-line");
-  (_easycom_u_icon2 + _easycom_u_line2)();
-}
-const _easycom_u_icon = () => "../u-icon/u-icon.js";
-const _easycom_u_line = () => "../u-line/u-line.js";
-if (!Math) {
-  (_easycom_u_icon + _easycom_u_line)();
-}
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return common_vendor.e({
-    a: _ctx.$slots.icon || _ctx.icon
-  }, _ctx.$slots.icon || _ctx.icon ? common_vendor.e({
-    b: _ctx.$slots.icon
-  }, _ctx.$slots.icon ? {} : {
-    c: common_vendor.p({
-      name: _ctx.icon,
-      ["custom-style"]: _ctx.iconStyle,
-      size: _ctx.size === "large" ? 22 : 18
-    })
-  }) : {}, {
-    d: _ctx.$slots.title || !_ctx.title
-  }, _ctx.$slots.title || !_ctx.title ? {} : {
-    e: common_vendor.t(_ctx.title),
-    f: common_vendor.s($options.titleTextStyle),
-    g: common_vendor.n(_ctx.disabled && "u-cell--disabled"),
-    h: common_vendor.n(_ctx.size === "large" && "u-cell__title-text--large")
-  }, {
-    i: _ctx.label
-  }, _ctx.label ? {
-    j: common_vendor.t(_ctx.label),
-    k: common_vendor.n(_ctx.disabled && "u-cell--disabled"),
-    l: common_vendor.n(_ctx.size === "large" && "u-cell__label--large")
-  } : {}, {
-    m: !$options.testEmpty(_ctx.value)
-  }, !$options.testEmpty(_ctx.value) ? {
-    n: common_vendor.t(_ctx.value),
-    o: common_vendor.n(_ctx.disabled && "u-cell--disabled"),
-    p: common_vendor.n(_ctx.size === "large" && "u-cell__value--large")
-  } : {}, {
-    q: _ctx.$slots["right-icon"] || _ctx.isLink
-  }, _ctx.$slots["right-icon"] || _ctx.isLink ? common_vendor.e({
-    r: _ctx.rightIcon && !_ctx.$slots["right-icon"]
-  }, _ctx.rightIcon && !_ctx.$slots["right-icon"] ? {
-    s: common_vendor.p({
-      name: _ctx.rightIcon,
-      ["custom-style"]: _ctx.rightIconStyle,
-      color: _ctx.disabled ? "#c8c9cc" : "info",
-      size: _ctx.size === "large" ? 18 : 16
-    })
-  } : {}, {
-    t: common_vendor.n(`u-cell__right-icon-wrap--${_ctx.arrowDirection}`)
-  }) : {}, {
-    v: _ctx.$slots["righticon"]
-  }, _ctx.$slots["righticon"] ? {
-    w: common_vendor.n(`u-cell__right-icon-wrap--${_ctx.arrowDirection}`)
-  } : {}, {
-    x: common_vendor.n(_ctx.center && "u-cell--center"),
-    y: common_vendor.n(_ctx.size === "large" && "u-cell__body--large"),
-    z: _ctx.border
-  }, _ctx.border ? {} : {}, {
-    A: common_vendor.n(_ctx.customClass),
-    B: common_vendor.s($options.addStyle(_ctx.customStyle)),
-    C: !_ctx.disabled && (_ctx.clickable || _ctx.isLink) ? "u-cell--clickable" : "",
-    D: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
-  });
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4243719"], ["__file", "D:/project/学吧/learn_applet/node_modules/uview-plus/components/u-cell/u-cell.vue"]]);
-wx.createComponent(Component);

+ 0 - 7
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.json

@@ -1,7 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "u-icon": "../u-icon/u-icon",
-    "u-line": "../u-line/u-line"
-  }
-}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.wxml


+ 0 - 102
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-cell/u-cell.wxss

@@ -1,102 +0,0 @@
-/* 水平间距 */
-/* 水平间距 */
-.u-empty.data-v-b4243719,
-.u-empty__wrap.data-v-b4243719,
-.u-tabs.data-v-b4243719,
-.u-tabs__wrapper.data-v-b4243719,
-.u-tabs__wrapper__scroll-view-wrapper.data-v-b4243719,
-.u-tabs__wrapper__scroll-view.data-v-b4243719,
-.u-tabs__wrapper__nav.data-v-b4243719,
-.u-tabs__wrapper__nav__line.data-v-b4243719 {
-  display: flex;
-  flex-direction: column;
-  flex-shrink: 0;
-  flex-grow: 0;
-  flex-basis: auto;
-  align-items: stretch;
-  align-content: flex-start;
-}
-.u-cell__body.data-v-b4243719 {
-
-  display: flex;
-
-  flex-direction: row;
-  box-sizing: border-box;
-  padding: 13px 15px;
-  font-size: 15px;
-  color: #303133;
-  align-items: center;
-}
-.u-cell__body__content.data-v-b4243719 {
-
-  display: flex;
-
-  flex-direction: row;
-  align-items: center;
-  flex: 1;
-}
-.u-cell__body--large.data-v-b4243719 {
-  padding-top: 13px;
-  padding-bottom: 13px;
-}
-.u-cell__left-icon-wrap.data-v-b4243719, .u-cell__right-icon-wrap.data-v-b4243719 {
-
-  display: flex;
-
-  flex-direction: row;
-  align-items: center;
-  font-size: 16px;
-}
-.u-cell__left-icon-wrap.data-v-b4243719 {
-  margin-right: 4px;
-}
-.u-cell__right-icon-wrap.data-v-b4243719 {
-  margin-left: 4px;
-  transition: transform 0.3s;
-}
-.u-cell__right-icon-wrap--up.data-v-b4243719 {
-  transform: rotate(-90deg);
-}
-.u-cell__right-icon-wrap--down.data-v-b4243719 {
-  transform: rotate(90deg);
-}
-.u-cell__title.data-v-b4243719 {
-  flex: 1;
-}
-.u-cell__title-text.data-v-b4243719 {
-  font-size: 15px;
-  line-height: 22px;
-  color: #303133;
-}
-.u-cell__title-text--large.data-v-b4243719 {
-  font-size: 16px;
-}
-.u-cell__label.data-v-b4243719 {
-  margin-top: 5px;
-  font-size: 12px;
-  color: #909193;
-  line-height: 18px;
-}
-.u-cell__label--large.data-v-b4243719 {
-  font-size: 14px;
-}
-.u-cell__value.data-v-b4243719 {
-  text-align: right;
-  margin-left: auto;
-  font-size: 14px;
-  line-height: 24px;
-  color: #606266;
-}
-.u-cell__value--large.data-v-b4243719 {
-  font-size: 15px;
-}
-.u-cell--clickable.data-v-b4243719 {
-  background-color: #f3f4f6;
-}
-.u-cell--disabled.data-v-b4243719 {
-  color: #c8c9cc;
-  cursor: not-allowed;
-}
-.u-cell--center.data-v-b4243719 {
-  align-items: center;
-}

+ 0 - 34
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.js

@@ -1,34 +0,0 @@
-"use strict";
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "u-line",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$18],
-  computed: {
-    lineStyle() {
-      const style = {};
-      style.margin = this.margin;
-      if (this.direction === "row") {
-        style.borderBottomWidth = "1px";
-        style.borderBottomStyle = this.dashed ? "dashed" : "solid";
-        style.width = common_vendor.addUnit(this.length);
-        if (this.hairline)
-          style.transform = "scaleY(0.5)";
-      } else {
-        style.borderLeftWidth = "1px";
-        style.borderLeftStyle = this.dashed ? "dashed" : "solid";
-        style.height = common_vendor.addUnit(this.length);
-        if (this.hairline)
-          style.transform = "scaleX(0.5)";
-      }
-      style.borderColor = this.color;
-      return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
-    }
-  }
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return {
-    a: common_vendor.s($options.lineStyle)
-  };
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bbd9963c"], ["__file", "D:/project/学吧/learn_applet/node_modules/uview-plus/components/u-line/u-line.vue"]]);
-wx.createComponent(Component);

+ 0 - 4
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.wxml

@@ -1 +0,0 @@
-<view class="u-line data-v-bbd9963c" style="{{a}}"></view>

+ 0 - 21
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-line/u-line.wxss

@@ -1,21 +0,0 @@
-/* 水平间距 */
-/* 水平间距 */
-.u-empty.data-v-bbd9963c,
-.u-empty__wrap.data-v-bbd9963c,
-.u-tabs.data-v-bbd9963c,
-.u-tabs__wrapper.data-v-bbd9963c,
-.u-tabs__wrapper__scroll-view-wrapper.data-v-bbd9963c,
-.u-tabs__wrapper__scroll-view.data-v-bbd9963c,
-.u-tabs__wrapper__nav.data-v-bbd9963c,
-.u-tabs__wrapper__nav__line.data-v-bbd9963c {
-  display: flex;
-  flex-direction: column;
-  flex-shrink: 0;
-  flex-grow: 0;
-  flex-basis: auto;
-  align-items: stretch;
-  align-content: flex-start;
-}
-.u-line.data-v-bbd9963c {
-  vertical-align: middle;
-}

+ 0 - 44
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js

@@ -1,44 +0,0 @@
-"use strict";
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "u-link",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$23],
-  computed: {
-    linkStyle() {
-      const style = {
-        color: this.color,
-        fontSize: common_vendor.addUnit(this.fontSize),
-        // line-height设置为比字体大小多2px
-        lineHeight: common_vendor.addUnit(common_vendor.getPx(this.fontSize) + 2),
-        textDecoration: this.underLine ? "underline" : "none"
-      };
-      return style;
-    }
-  },
-  emits: ["click"],
-  methods: {
-    addStyle: common_vendor.addStyle,
-    openLink() {
-      common_vendor.index.setClipboardData({
-        data: this.href,
-        success: () => {
-          common_vendor.index.hideToast();
-          this.$nextTick(() => {
-            common_vendor.toast(this.mpTips);
-          });
-        }
-      });
-      this.$emit("click");
-    }
-  }
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return {
-    a: common_vendor.t(_ctx.text),
-    b: common_vendor.o((...args) => $options.openLink && $options.openLink(...args)),
-    c: common_vendor.s($options.linkStyle),
-    d: common_vendor.s($options.addStyle(_ctx.customStyle))
-  };
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dedad317"], ["__file", "D:/project/学吧/learn_applet/node_modules/uview-plus/components/u-link/u-link.vue"]]);
-wx.createComponent(Component);

+ 0 - 4
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.wxml

@@ -1 +0,0 @@
-<text class="u-link data-v-dedad317" catchtap="{{b}}" style="{{c + ';' + d}}">{{a}}</text>

+ 0 - 27
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.wxss

@@ -1,27 +0,0 @@
-/* 水平间距 */
-/* 水平间距 */
-.u-empty.data-v-dedad317,
-.u-empty__wrap.data-v-dedad317,
-.u-tabs.data-v-dedad317,
-.u-tabs__wrapper.data-v-dedad317,
-.u-tabs__wrapper__scroll-view-wrapper.data-v-dedad317,
-.u-tabs__wrapper__scroll-view.data-v-dedad317,
-.u-tabs__wrapper__nav.data-v-dedad317,
-.u-tabs__wrapper__nav__line.data-v-dedad317 {
-  display: flex;
-  flex-direction: column;
-  flex-shrink: 0;
-  flex-grow: 0;
-  flex-basis: auto;
-  align-items: stretch;
-  align-content: flex-start;
-}
-.u-link.data-v-dedad317 {
-  line-height: 1;
-
-  display: flex;
-
-  flex-direction: row;
-  flex-wrap: wrap;
-  flex: 1;
-}

+ 0 - 122
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.js

@@ -1,122 +0,0 @@
-"use strict";
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "u--text",
-  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.value, common_vendor.button, common_vendor.openType, common_vendor.props$17],
-  emits: ["click"],
-  computed: {
-    valueStyle() {
-      const style = {
-        textDecoration: this.decoration,
-        fontWeight: this.bold ? "bold" : "normal",
-        wordWrap: this.wordWrap,
-        fontSize: common_vendor.addUnit(this.size)
-      };
-      !this.type && (style.color = this.color);
-      this.isNvue && this.lines && (style.lines = this.lines);
-      this.lineHeight && (style.lineHeight = common_vendor.addUnit(this.lineHeight));
-      !this.isNvue && this.block && (style.display = "block");
-      return common_vendor.deepMerge(style, common_vendor.addStyle(this.customStyle));
-    },
-    isNvue() {
-      let nvue = false;
-      return nvue;
-    },
-    isMp() {
-      let mp = false;
-      mp = true;
-      return mp;
-    }
-  },
-  data() {
-    return {};
-  },
-  methods: {
-    addStyle: common_vendor.addStyle,
-    clickHandler() {
-      if (this.call && this.mode === "phone") {
-        common_vendor.index.makePhoneCall({
-          phoneNumber: this.text
-        });
-      }
-      this.$emit("click");
-    }
-  }
-};
-if (!Array) {
-  const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
-  const _easycom_u_link2 = common_vendor.resolveComponent("u-link");
-  (_easycom_u_icon2 + _easycom_u_link2)();
-}
-const _easycom_u_icon = () => "../u-icon/u-icon.js";
-const _easycom_u_link = () => "../u-link/u-link.js";
-if (!Math) {
-  (_easycom_u_icon + _easycom_u_link)();
-}
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return common_vendor.e({
-    a: _ctx.show
-  }, _ctx.show ? common_vendor.e({
-    b: _ctx.mode === "price"
-  }, _ctx.mode === "price" ? {
-    c: common_vendor.n(_ctx.type && `u-text__value--${_ctx.type}`),
-    d: common_vendor.s($options.valueStyle)
-  } : {}, {
-    e: _ctx.prefixIcon
-  }, _ctx.prefixIcon ? {
-    f: common_vendor.p({
-      name: _ctx.prefixIcon,
-      customStyle: $options.addStyle(_ctx.iconStyle)
-    })
-  } : {}, {
-    g: _ctx.mode === "link"
-  }, _ctx.mode === "link" ? {
-    h: $options.valueStyle.fontWeight,
-    i: $options.valueStyle.wordWrap,
-    j: $options.valueStyle.fontSize,
-    k: common_vendor.n(_ctx.type && `u-text__value--${_ctx.type}`),
-    l: common_vendor.n(_ctx.lines && `u-line-${_ctx.lines}`),
-    m: common_vendor.p({
-      text: _ctx.value,
-      href: _ctx.href,
-      underLine: true
-    })
-  } : _ctx.openType && $options.isMp ? {
-    o: common_vendor.t(_ctx.value),
-    p: common_vendor.s($options.valueStyle),
-    q: _ctx.index,
-    r: _ctx.openType,
-    s: common_vendor.o((...args) => _ctx.onGetUserInfo && _ctx.onGetUserInfo(...args)),
-    t: common_vendor.o((...args) => _ctx.onContact && _ctx.onContact(...args)),
-    v: common_vendor.o((...args) => _ctx.onGetPhoneNumber && _ctx.onGetPhoneNumber(...args)),
-    w: common_vendor.o((...args) => _ctx.onError && _ctx.onError(...args)),
-    x: common_vendor.o((...args) => _ctx.onLaunchApp && _ctx.onLaunchApp(...args)),
-    y: common_vendor.o((...args) => _ctx.onOpenSetting && _ctx.onOpenSetting(...args)),
-    z: _ctx.lang,
-    A: _ctx.sessionFrom,
-    B: _ctx.sendMessageTitle,
-    C: _ctx.sendMessagePath,
-    D: _ctx.sendMessageImg,
-    E: _ctx.showMessageCard,
-    F: _ctx.appParameter
-  } : {
-    G: common_vendor.t(_ctx.value),
-    H: common_vendor.s($options.valueStyle),
-    I: common_vendor.n(_ctx.type && `u-text__value--${_ctx.type}`),
-    J: common_vendor.n(_ctx.lines && `u-line-${_ctx.lines}`)
-  }, {
-    n: _ctx.openType && $options.isMp,
-    K: _ctx.suffixIcon
-  }, _ctx.suffixIcon ? {
-    L: common_vendor.p({
-      name: _ctx.suffixIcon,
-      customStyle: $options.addStyle(_ctx.iconStyle)
-    })
-  } : {}, {
-    M: _ctx.margin,
-    N: _ctx.align === "left" ? "flex-start" : _ctx.align === "center" ? "center" : "flex-end",
-    O: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
-  }) : {});
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5fec1d8b"], ["__file", "D:/project/学吧/learn_applet/node_modules/uview-plus/components/u-text/u-text.vue"]]);
-wx.createComponent(Component);

+ 0 - 7
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.json

@@ -1,7 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "u-icon": "../u-icon/u-icon",
-    "u-link": "../u-link/u-link"
-  }
-}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.wxml


+ 0 - 70
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-text/u-text.wxss

@@ -1,70 +0,0 @@
-/* 水平间距 */
-/* 水平间距 */
-.u-empty.data-v-5fec1d8b,
-.u-empty__wrap.data-v-5fec1d8b,
-.u-tabs.data-v-5fec1d8b,
-.u-tabs__wrapper.data-v-5fec1d8b,
-.u-tabs__wrapper__scroll-view-wrapper.data-v-5fec1d8b,
-.u-tabs__wrapper__scroll-view.data-v-5fec1d8b,
-.u-tabs__wrapper__nav.data-v-5fec1d8b,
-.u-tabs__wrapper__nav__line.data-v-5fec1d8b {
-  display: flex;
-  flex-direction: column;
-  flex-shrink: 0;
-  flex-grow: 0;
-  flex-basis: auto;
-  align-items: stretch;
-  align-content: flex-start;
-}
-.u-text.data-v-5fec1d8b {
-
-  display: flex;
-
-  flex-direction: row;
-  align-items: center;
-  flex-wrap: nowrap;
-  flex: 1;
-  width: 100%;
-}
-.u-text__price.data-v-5fec1d8b {
-  font-size: 14px;
-  color: #606266;
-}
-.u-text__value.data-v-5fec1d8b {
-  font-size: 14px;
-
-  display: flex;
-
-  flex-direction: row;
-  color: #606266;
-  flex-wrap: wrap;
-  text-overflow: ellipsis;
-  align-items: center;
-}
-.u-text__value--primary.data-v-5fec1d8b {
-  color: #3c9cff;
-}
-.u-text__value--warning.data-v-5fec1d8b {
-  color: #f9ae3d;
-}
-.u-text__value--success.data-v-5fec1d8b {
-  color: #5ac725;
-}
-.u-text__value--info.data-v-5fec1d8b {
-  color: #909399;
-}
-.u-text__value--error.data-v-5fec1d8b {
-  color: #f56c6c;
-}
-.u-text__value--main.data-v-5fec1d8b {
-  color: #303133;
-}
-.u-text__value--content.data-v-5fec1d8b {
-  color: #606266;
-}
-.u-text__value--tips.data-v-5fec1d8b {
-  color: #909193;
-}
-.u-text__value--light.data-v-5fec1d8b {
-  color: #c0c4cc;
-}

+ 29 - 5
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -38,6 +38,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const page = common_vendor.ref(0);
     const is_bottom = common_vendor.ref(false);
     const subjectList = common_vendor.ref([]);
+    const educationList = common_vendor.ref([]);
     const show = common_vendor.ref(false);
     const user = common_vendor.computed(() => {
       return common_vendor.index.getStorageSync("user");
@@ -64,6 +65,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
       if (res.errcode === 0)
         subjectList.value = res.data;
       subjectList.value.unshift({ label: "全部", value: "-1", is_show: true });
+      res = await $api(`dictData`, "GET", { code: "education", is_use: "0" });
+      if (res.errcode === 0)
+        educationList.value = res.data;
     };
     const search = async () => {
       const info = {
@@ -86,9 +90,18 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const toTab = async (data) => {
       console.log(data);
     };
+    const getDict = (data, model) => {
+      let res;
+      if (model == "education")
+        res = educationList.value.find((f) => f.value == data);
+      return res.label || "暂无";
+    };
     const showChange = () => {
       show.value = false;
     };
+    const toBuy = (item) => {
+      console.log(item);
+    };
     const scrolltolower = () => {
       if (total.value > list.value.length) {
         common_vendor.index.showLoading({
@@ -138,11 +151,22 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           keyName: "label"
         }),
         g: common_vendor.f(list.value, (item, index, i0) => {
-          return {
-            a: common_vendor.t(item.nick_name),
-            b: index,
-            c: "4978fed5-4-" + i0 + ",4978fed5-3"
-          };
+          return common_vendor.e({
+            a: item.icon && item.icon.length > 0 && item.icon
+          }, item.icon && item.icon.length > 0 && item.icon ? {
+            b: item.icon[0].url
+          } : {
+            c: config.value.icon[0].url
+          }, {
+            d: common_vendor.t(item.nick_name || "暂无昵称"),
+            e: common_vendor.t(item.time || "休息中"),
+            f: common_vendor.t(item.college || "暂无"),
+            g: common_vendor.t(getDict(item.education, "education")),
+            h: common_vendor.t(item.money || "免费"),
+            i: common_vendor.o(($event) => toBuy(item), index),
+            j: index,
+            k: "4978fed5-4-" + i0 + ",4978fed5-3"
+          });
         }),
         h: common_vendor.o(scrolltolower),
         i: common_vendor.o(showChange),

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/index.wxml


+ 82 - 2
unpackage/dist/dev/mp-weixin/pages/home/index.wxss

@@ -28,12 +28,92 @@
   font-size: var(--font14Size);
 }
 .content .four.data-v-4978fed5 {
-  margin: 2vw;
+  margin: 0 2vw;
   border-radius: 5px;
   background-color: var(--mainColor);
 }
 .content .five.data-v-4978fed5 {
-  margin: 2vw;
+  margin: 0 2vw;
+}
+.content .five .list.data-v-4978fed5 {
+  display: flex;
+  margin: 2vw 0 0 0;
+  padding: 2vw;
   border-radius: 5px;
   background-color: var(--mainColor);
+}
+.content .five .list .left.data-v-4978fed5 {
+  width: 28%;
+  margin: 0 2vw 0 0;
+}
+.content .five .list .left .image.data-v-4978fed5 {
+  width: 25vw;
+  height: 25vw;
+  border-radius: 25vw;
+}
+.content .five .list .right.data-v-4978fed5 {
+  width: 70%;
+}
+.content .five .list .right .right_1.data-v-4978fed5 {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+}
+.content .five .list .right .right_1 .leftR.data-v-4978fed5 {
+  width: 40%;
+  font-size: var(--font16Size);
+  font-weight: bold;
+}
+.content .five .list .right .right_1 .rightR.data-v-4978fed5 {
+  width: 60%;
+  text-align: right;
+  font-size: var(--font12Size);
+}
+.content .five .list .right .right_1 .rightR .text.data-v-4978fed5 {
+  text-align: center;
+  border: 1px solid var(--3c9Color);
+  border-radius: 4px;
+  padding: 1vw;
+  background: linear-gradient(to right, #ffffff, #3c9cff59);
+}
+.content .five .list .right .right_1 .rightR .text .text_1.data-v-4978fed5 {
+  color: var(--3c9Color);
+  font-weight: bold;
+}
+.content .five .list .right .right_1 .rightR .text .text_2.data-v-4978fed5 {
+  color: var(--ff0Color);
+}
+.content .five .list .right .right_2.data-v-4978fed5 {
+  display: flex;
+  align-items: center;
+  margin: 1vw 0 0 0;
+}
+.content .five .list .right .right_2 .text.data-v-4978fed5 {
+  font-size: var(--font14Size);
+  margin: 0 1vw 0 0;
+}
+.content .five .list .right .right_2 .value.data-v-4978fed5 {
+  text-align: right;
+  color: var(--f85Color);
+  font-size: var(--font12Size);
+}
+.content .five .list .right .right_3.data-v-4978fed5 {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+}
+.content .five .list .right .right_3 .money.data-v-4978fed5 {
+  width: 50%;
+  font-size: var(--font14Size);
+  color: var(--ff0Color);
+}
+.content .five .list .right .right_3 .button.data-v-4978fed5 {
+  width: 50%;
+  text-align: right;
+}
+.content .five .list .right .right_3 .button button.data-v-4978fed5 {
+  color: var(--mainColor);
+  background: linear-gradient(to right, #1e3fdc, #3c9cff);
+  font-size: var(--font12Size);
+  border-radius: 5vw;
 }

+ 26 - 5
unpackage/dist/dev/mp-weixin/pages/teacher/index.js

@@ -32,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const is_bottom = common_vendor.ref(false);
     const show = common_vendor.ref(false);
     const subjectList = common_vendor.ref([]);
+    const educationList = common_vendor.ref([]);
     const nick_name = common_vendor.ref("");
     const user = common_vendor.computed(() => {
       return common_vendor.index.getStorageSync("user");
@@ -58,6 +59,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
       if (res.errcode === 0)
         subjectList.value = res.data;
       subjectList.value.unshift({ label: "全部", value: "-1", is_show: true });
+      res = await $api(`dictData`, "GET", { code: "education", is_use: "0" });
+      if (res.errcode === 0)
+        educationList.value = res.data;
     };
     const searchInfo = async () => {
       if (nick_name.value) {
@@ -91,6 +95,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const showChange = () => {
       show.value = false;
     };
+    const getDict = (data, model) => {
+      let res;
+      if (model == "education")
+        res = educationList.value.find((f) => f.value == data);
+      return res.label || "暂无";
+    };
     const scrolltolower = () => {
       if (total.value > list.value.length) {
         common_vendor.index.showLoading({
@@ -125,11 +135,22 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         f: total.value > 0
       }, total.value > 0 ? {
         g: common_vendor.f(list.value, (item, index, i0) => {
-          return {
-            a: common_vendor.t(item.nick_name),
-            b: index,
-            c: "f3506c63-3-" + i0 + ",f3506c63-2"
-          };
+          return common_vendor.e({
+            a: item.icon && item.icon.length > 0 && item.icon
+          }, item.icon && item.icon.length > 0 && item.icon ? {
+            b: item.icon[0].url
+          } : {
+            c: config.value.icon[0].url
+          }, {
+            d: common_vendor.t(item.nick_name || "暂无昵称"),
+            e: common_vendor.t(item.time || "休息中"),
+            f: common_vendor.t(item.college || "暂无"),
+            g: common_vendor.t(getDict(item.education, "education")),
+            h: common_vendor.t(item.money || "免费"),
+            i: common_vendor.o(($event) => _ctx.toBuy(item), index),
+            j: index,
+            k: "f3506c63-3-" + i0 + ",f3506c63-2"
+          });
         }),
         h: common_vendor.o(scrolltolower)
       } : {

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/teacher/index.wxml


+ 85 - 0
unpackage/dist/dev/mp-weixin/pages/teacher/index.wxss

@@ -14,4 +14,89 @@
   margin: 2vw;
   border-radius: 5px;
   background-color: var(--mainColor);
+}
+.content .thr.data-v-f3506c63 {
+  margin: 0 2vw;
+}
+.content .thr .list.data-v-f3506c63 {
+  display: flex;
+  margin: 2vw 0 0 0;
+  padding: 2vw;
+  border-radius: 5px;
+  background-color: var(--mainColor);
+}
+.content .thr .list .left.data-v-f3506c63 {
+  width: 28%;
+  margin: 0 2vw 0 0;
+}
+.content .thr .list .left .image.data-v-f3506c63 {
+  width: 25vw;
+  height: 25vw;
+  border-radius: 25vw;
+}
+.content .thr .list .right.data-v-f3506c63 {
+  width: 70%;
+}
+.content .thr .list .right .right_1.data-v-f3506c63 {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+}
+.content .thr .list .right .right_1 .leftR.data-v-f3506c63 {
+  width: 40%;
+  font-size: var(--font16Size);
+  font-weight: bold;
+}
+.content .thr .list .right .right_1 .rightR.data-v-f3506c63 {
+  width: 60%;
+  text-align: right;
+  font-size: var(--font12Size);
+}
+.content .thr .list .right .right_1 .rightR .text.data-v-f3506c63 {
+  text-align: center;
+  border: 1px solid var(--3c9Color);
+  border-radius: 4px;
+  padding: 1vw;
+  background: linear-gradient(to right, #ffffff, #3c9cff59);
+}
+.content .thr .list .right .right_1 .rightR .text .text_1.data-v-f3506c63 {
+  color: var(--3c9Color);
+  font-weight: bold;
+}
+.content .thr .list .right .right_1 .rightR .text .text_2.data-v-f3506c63 {
+  color: var(--ff0Color);
+}
+.content .thr .list .right .right_2.data-v-f3506c63 {
+  display: flex;
+  align-items: center;
+  margin: 1vw 0 0 0;
+}
+.content .thr .list .right .right_2 .text.data-v-f3506c63 {
+  font-size: var(--font14Size);
+  margin: 0 1vw 0 0;
+}
+.content .thr .list .right .right_2 .value.data-v-f3506c63 {
+  text-align: right;
+  color: var(--f85Color);
+  font-size: var(--font12Size);
+}
+.content .thr .list .right .right_3.data-v-f3506c63 {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+}
+.content .thr .list .right .right_3 .money.data-v-f3506c63 {
+  width: 50%;
+  font-size: var(--font14Size);
+  color: var(--ff0Color);
+}
+.content .thr .list .right .right_3 .button.data-v-f3506c63 {
+  width: 50%;
+  text-align: right;
+}
+.content .thr .list .right .right_3 .button button.data-v-f3506c63 {
+  color: var(--mainColor);
+  background: linear-gradient(to right, #1e3fdc, #3c9cff);
+  font-size: var(--font12Size);
+  border-radius: 5vw;
 }