zs 1 gadu atpakaļ
vecāks
revīzija
492620f693

+ 7 - 0
pages.json

@@ -63,6 +63,13 @@
 						"backgroundColorBottom": "#F4F5F6"
 					}
 				},
+				{
+					"path": "list/index",
+					"style": {
+						"navigationBarTitleText": "课程",
+						"enablePullDownRefresh": true
+					}
+				},
 				{
 					"path": "teacher/index",
 					"style": {

+ 9 - 2
pages/home/index.vue

@@ -7,7 +7,7 @@
 			<up-notice-bar :text="config.notice" duration="3000"></up-notice-bar>
 		</view>
 		<view class="thr">
-			<view class="list" v-for="(item, index) in typeList" :key="index">
+			<view class="list" v-for="(item, index) in typeList" :key="index" @click="toList(item)">
 				<text class="t-icon" :class="[item.remark]"></text>
 				<view class="text">{{item.label}}</view>
 			</view>
@@ -159,6 +159,12 @@
 	const toBuy = (item) => {
 		console.log(item);
 	}
+	// 去查看
+	const toList = (item) => {
+		uni.navigateTo({
+			url: `/pagesHome/list/index?type=${item.value}&name=${item.label}`
+		})
+	}
 	const scrolltolower = () => {
 		if (total.value > list.value.length) {
 			uni.showLoading({
@@ -321,10 +327,11 @@
 				}
 			}
 		}
+
 		.is_bottom {
 			width: 100%;
 			text-align: center;
-		
+
 			text {
 				padding: 2vw 0;
 				display: inline-block;

+ 161 - 160
pagesHome/list/index.vue

@@ -1,56 +1,44 @@
 <template>
 	<view class="content">
 		<view class="one">
-			<up-search v-model="nick_name" @custom="searchInfo"></up-search>
+			<view class="one_1">
+				<input type="text" v-model="nick_name" placeholder="请输入想要搜索的内容">
+			</view>
+			<view class="one_2">
+				<button size="mini" class="button" type="primary" @click="searchInfo">搜索</button>
+			</view>
 		</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 class="two" v-if="total>0">
+			<view class="two_1">
+				<scroll-view scroll-y="true" class="scroll-view">
+					<view class="list-scroll-view">
+						<view class="list" :class="[active==index?'listActive':'']" v-for="(item,index) in subjectList"
+							:key="index" @tap="toChange(index,item)">
+							<text>{{item.label}}</text>
 						</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>
+				</scroll-view>
+			</view>
+			<view class="two_2">
+				<view class="two_2_1">
+					<up-tabs :list="gradeList" keyName="label" @click="toTab"></up-tabs>
+				</view>
+				<view class="two_2_2" v-if="total>0">
+					<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
+						<view class="list-scroll-view">
+							<view class=" one_2_1">
+								<view class="list" v-for="(tag,index) in list" :key="index" @tap="toBuy(tag)">
+									{{tag.nick_name}}
 								</view>
 							</view>
-							<view class="right_2">
-								<view class="text"> 课程名称: </view>
-								<view class="value"> {{item.course||'暂无'}} </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 class="is_bottom" v-if="is_bottom">
+								<text>{{config.bottom_title}}</text>
 							</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>
+					</scroll-view>
+				</view>
+				<up-empty v-else mode="list" icon="/static/list.png"></up-empty>
+			</view>
 		</view>
 		<up-overlay :show="show">
 			<login @showChange='showChange'></login>
@@ -62,11 +50,14 @@
 	import login from "@/components/login.vue"
 	import { inject, computed, ref } from 'vue';
 	//该依赖已内置不需要单独安装
-	import { onShow, onPullDownRefresh } from "@dcloudio/uni-app";
+	import { onShow, onLoad, onPullDownRefresh } from "@dcloudio/uni-app";
 	// 请求接口
 	const $api = inject('$api');
 	// 基本信息
 	const config = ref({ logo: [], file: [] });
+	const type = ref('');
+	const subject = ref('-1');
+	const grade = ref('-1');
 	// 列表
 	const list = ref([]);
 	const total = ref(0);
@@ -77,14 +68,22 @@
 	const is_bottom = ref(false);
 	// 遮罩层
 	const show = ref(false);
+	const nick_name = ref('');
 	// 字典表
-	const subjectList = ref([]);
 	const educationList = ref([]);
-	const nick_name = ref('');
+	const active = ref(0);
+	const subjectList = ref([]);
+	const gradeList = ref([]);
 	// user
 	const user = computed(() => {
 		return uni.getStorageSync('user');
 	})
+	onLoad(async (options) => {
+		type.value = options && options.type
+		uni.setNavigationBarTitle({
+			title: options && options.name + '课程' || '课程'
+		});
+	});
 	onShow(async () => {
 		await searchConfig();
 		await searchOther();
@@ -104,20 +103,22 @@
 	// 其他查询信息
 	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;
+		// 学科
+		res = await $api(`dictData`, 'GET', { code: 'subject', is_use: '0' });
+		if (res.errcode === 0) subjectList.value = res.data;
+		subjectList.value.unshift({ label: '全部', value: '-1' })
+		// 年级
+		res = await $api(`dictData`, 'GET', { code: 'grade', is_use: '0' });
+		if (res.errcode === 0) gradeList.value = res.data;
+		gradeList.value.unshift({ label: '全部', value: '-1' })
 	};
 	// 名称搜索
 	const searchInfo = async () => {
-		if (nick_name.value) {
-			await clearPage();
-			await search();
-		}
+		await clearPage();
+		await search();
 	};
 	// 查询
 	const search = async () => {
@@ -139,10 +140,6 @@
 			});
 		}
 	};
-	// 改变标签
-	const toTab = async (data) => {
-		console.log(data);
-	};
 	const showChange = () => {
 		show.value = false
 	}
@@ -151,6 +148,18 @@
 		if (model == 'education') res = educationList.value.find((f) => f.value == data)
 		return res.label || '暂无'
 	}
+	// 左侧一级选择
+	const toChange = (index, e) => {
+		console.log(index, e);
+		active.value = index
+		subject.value = e.value
+		// that.clearPage();
+		// that.searchMarket();
+	}
+	// 改变标签
+	const toTab = async (data) => {
+		console.log(data);
+	};
 	const scrolltolower = () => {
 		if (total.value > list.value.length) {
 			uni.showLoading({
@@ -173,123 +182,115 @@
 </script>
 <style lang="scss" scoped>
 	.content {
-		display: flex;
-		flex-direction: column;
-		min-height: 100vh;
 		background-color: var(--f1Color);
 
 		.one {
+			display: flex;
+			justify-content: center;
+			align-items: center;
 			padding: 2vw;
 			background-color: var(--mainColor);
+
+			.one_1 {
+				padding: 0 2vw;
+				width: 75vw;
+
+				input {
+					padding: 2vw;
+					background-color: var(--f1Color);
+					font-size: var(--font14Size);
+					border-radius: 5px;
+				}
+			}
+
+			.one_2 {
+				.button {
+					background-color: var(--3c9Color);
+					color: var(--mainColor);
+				}
+			}
 		}
 
 		.two {
-			margin: 2vw;
-			border-radius: 5px;
-			background-color: var(--mainColor);
-			
-		}
-		.thr {
-			margin: 0 2vw;
-		
-			.list {
+			height: 90vh;
+			display: flex;
+			flex-direction: row;
+			margin: 2vw 0 0 0;
+
+			.two_1 {
+				position: relative;
+				width: 25vw;
+				background-color: #fafafa;
 				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;
+				flex-direction: column;
+
+				.list {
+					text-align: center;
+					padding: 3.1vw 0;
+					border-bottom: 1px solid var(--f1Color);
+
+					text {
+						font-size: var(--font14Size);
 					}
-		
 				}
-		
-				.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 {
+
+				.listActive {
+					background-color: var(--3c9Color);
+					color: var(--mainColor);
+				}
+			}
+
+			.two_2 {
+				width: 75vw;
+				flex-grow: 1;
+				position: relative;
+				display: flex;
+				flex-direction: column;
+
+				.two_2_1 {
+					background-color: var(--mainColor);
+				}
+
+				.two_2_2 {
+					flex-grow: 1;
+					position: relative;
+					display: flex;
+					flex-direction: column;
+					margin: 2vw 2vw 0 2vw;
+
+					.list {
 						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);
-						}
+						padding: 2vw;
+						border-radius: 5px;
+						background-color: var(--mainColor);
 					}
-		
-					.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;
-							}
-						}
+				}
+
+				.is_bottom {
+					width: 100%;
+					text-align: center;
+
+					text {
+						padding: 2vw 0;
+						display: inline-block;
+						color: var(--f85Color);
+						font-size: var(--font12Size);
 					}
 				}
 			}
 		}
+
+		.scroll-view {
+			position: absolute;
+			top: 0;
+			left: 0;
+			right: 0;
+			bottom: 0;
+
+			.list-scroll-view {
+				display: flex;
+				flex-direction: column;
+			}
+		}
 	}
 </style>

+ 8 - 1
pagesMy/course/add.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="teacher">
 		<view class="one">
-			<up-form :model="form" ref="uFormRef" :rules="rules">
+			<up-form :model="form" ref="uFormRef" :rules="rules" labelPosition="top">
 				<up-form-item label="课程名称" labelWidth="80" prop="name" :required="true">
 					<up-input v-model="form.name" placeholder="请输入课程名称" />
 				</up-form-item>
@@ -258,6 +258,13 @@
 				}
 			}
 
+			:deep(.u-form-item__body__left__content) {
+				padding: 5rpx 10rpx !important;
+			}
+
+			:deep(.u-form-item__body) {
+				padding: 5rpx 0 !important;
+			}
 		}
 	}
 </style>

+ 1 - 1
pagesMy/course/index.vue

@@ -29,7 +29,7 @@
 						</view>
 						<view class="other_2">
 							<view class="other_2_1">金额(元):</view>
-							<view class="other_2_2 red">{{item.money||'免费'}}</view>
+							<view class="other_2_2 red">{{item.money||'免费'}}</view>
 						</view>
 						<view class="other_2">
 							<view class="other_2_1">时间:</view>

+ 1 - 0
unpackage/dist/dev/mp-weixin/app.js

@@ -11,6 +11,7 @@ if (!Math) {
   "./pages/news/index.js";
   "./pages/my/index.js";
   "./pagesHome/agree/index.js";
+  "./pagesHome/list/index.js";
   "./pagesHome/teacher/index.js";
   "./pagesMy/order/index.js";
   "./pagesMy/course/index.js";

+ 1 - 0
unpackage/dist/dev/mp-weixin/app.json

@@ -11,6 +11,7 @@
       "root": "pagesHome",
       "pages": [
         "agree/index",
+        "list/index",
         "teacher/index"
       ]
     },

+ 7 - 1
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -96,6 +96,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const toBuy = (item) => {
       console.log(item);
     };
+    const toList = (item) => {
+      common_vendor.index.navigateTo({
+        url: `/pagesHome/list/index?type=${item.value}&name=${item.label}`
+      });
+    };
     const scrolltolower = () => {
       if (total.value > list.value.length) {
         common_vendor.index.showLoading({
@@ -136,7 +141,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           return {
             a: common_vendor.n(item.remark),
             b: common_vendor.t(item.label),
-            c: index
+            c: index,
+            d: common_vendor.o(($event) => toList(item), index)
           };
         }),
         e: common_vendor.o(toTab),

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/index.wxml


+ 172 - 0
unpackage/dist/dev/mp-weixin/pagesHome/list/index.js

@@ -0,0 +1,172 @@
+"use strict";
+const common_vendor = require("../../common/vendor.js");
+if (!Array) {
+  const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs");
+  const _easycom_up_empty2 = common_vendor.resolveComponent("up-empty");
+  const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
+  (_easycom_up_tabs2 + _easycom_up_empty2 + _easycom_up_overlay2)();
+}
+const _easycom_up_tabs = () => "../../node-modules/uview-plus/components/u-tabs/u-tabs.js";
+const _easycom_up_empty = () => "../../node-modules/uview-plus/components/u-empty/u-empty.js";
+const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
+if (!Math) {
+  (_easycom_up_tabs + _easycom_up_empty + login + _easycom_up_overlay)();
+}
+const login = () => "../../components/login.js";
+const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
+  __name: "index",
+  setup(__props) {
+    const $api = common_vendor.inject("$api");
+    const config = common_vendor.ref({ logo: [], file: [] });
+    const type = common_vendor.ref("");
+    const subject = common_vendor.ref("-1");
+    common_vendor.ref("-1");
+    const list = common_vendor.ref([]);
+    const total = common_vendor.ref(0);
+    const skip = common_vendor.ref(0);
+    const limit = common_vendor.ref(5);
+    const page = common_vendor.ref(0);
+    const is_bottom = common_vendor.ref(false);
+    const show = common_vendor.ref(false);
+    const nick_name = common_vendor.ref("");
+    const educationList = common_vendor.ref([]);
+    const active = common_vendor.ref(0);
+    const subjectList = common_vendor.ref([]);
+    const gradeList = common_vendor.ref([]);
+    const user = common_vendor.computed(() => {
+      return common_vendor.index.getStorageSync("user");
+    });
+    common_vendor.onLoad(async (options) => {
+      type.value = options && options.type;
+      common_vendor.index.setNavigationBarTitle({
+        title: options && options.name + "课程" || "课程"
+      });
+    });
+    common_vendor.onShow(async () => {
+      await searchConfig();
+      await searchOther();
+      await clearPage();
+      await search();
+      if (!user.value)
+        show.value = true;
+    });
+    common_vendor.onPullDownRefresh(async () => {
+      await clearPage();
+      await search();
+      common_vendor.index.stopPullDownRefresh();
+    });
+    const searchConfig = async () => {
+      config.value = common_vendor.index.getStorageSync("config");
+    };
+    const searchOther = async () => {
+      let res;
+      res = await $api(`dictData`, "GET", { code: "education", is_use: "0" });
+      if (res.errcode === 0)
+        educationList.value = res.data;
+      res = await $api(`dictData`, "GET", { code: "subject", is_use: "0" });
+      if (res.errcode === 0)
+        subjectList.value = res.data;
+      subjectList.value.unshift({ label: "全部", value: "-1" });
+      res = await $api(`dictData`, "GET", { code: "grade", is_use: "0" });
+      if (res.errcode === 0)
+        gradeList.value = res.data;
+      gradeList.value.unshift({ label: "全部", value: "-1" });
+    };
+    const searchInfo = async () => {
+      await clearPage();
+      await search();
+    };
+    const search = async () => {
+      const info = {
+        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 {
+        common_vendor.index.showToast({
+          title: res.errmsg || "",
+          icon: "error"
+        });
+      }
+    };
+    const showChange = () => {
+      show.value = false;
+    };
+    const toChange = (index, e) => {
+      console.log(index, e);
+      active.value = index;
+      subject.value = e.value;
+    };
+    const toTab = async (data) => {
+      console.log(data);
+    };
+    const clearPage = () => {
+      list.value = [];
+      skip.value = 0;
+      limit.value = 6;
+      page.value = 0;
+    };
+    return (_ctx, _cache) => {
+      return common_vendor.e({
+        a: nick_name.value,
+        b: common_vendor.o(($event) => nick_name.value = $event.detail.value),
+        c: common_vendor.o(searchInfo),
+        d: total.value > 0
+      }, total.value > 0 ? common_vendor.e({
+        e: common_vendor.f(subjectList.value, (item, index, i0) => {
+          return {
+            a: common_vendor.t(item.label),
+            b: common_vendor.n(active.value == index ? "listActive" : ""),
+            c: index,
+            d: common_vendor.o(($event) => toChange(index, item), index)
+          };
+        }),
+        f: common_vendor.o(toTab),
+        g: common_vendor.p({
+          list: gradeList.value,
+          keyName: "label"
+        }),
+        h: total.value > 0
+      }, total.value > 0 ? common_vendor.e({
+        i: common_vendor.f(list.value, (tag, index, i0) => {
+          return {
+            a: common_vendor.t(tag.nick_name),
+            b: index,
+            c: common_vendor.o(($event) => _ctx.toBuy(tag), index)
+          };
+        }),
+        j: is_bottom.value
+      }, is_bottom.value ? {
+        k: common_vendor.t(config.value.bottom_title)
+      } : {}, {
+        l: common_vendor.o(
+          //@ts-ignore
+          (...args) => _ctx.toPage && _ctx.toPage(...args)
+        ),
+        m: common_vendor.o(
+          //@ts-ignore
+          (...args) => _ctx.toScroll && _ctx.toScroll(...args)
+        )
+      }) : {
+        n: common_vendor.p({
+          mode: "list",
+          icon: "/static/list.png"
+        })
+      }) : {}, {
+        o: common_vendor.o(showChange),
+        p: common_vendor.p({
+          show: show.value
+        })
+      });
+    };
+  }
+});
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-db68cfa6"], ["__file", "D:/project/学吧/learn_applet/pagesHome/list/index.vue"]]);
+wx.createPage(MiniProgramPage);

+ 10 - 0
unpackage/dist/dev/mp-weixin/pagesHome/list/index.json

@@ -0,0 +1,10 @@
+{
+  "navigationBarTitleText": "课程",
+  "enablePullDownRefresh": true,
+  "usingComponents": {
+    "up-tabs": "../../node-modules/uview-plus/components/u-tabs/u-tabs",
+    "up-empty": "../../node-modules/uview-plus/components/u-empty/u-empty",
+    "up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay",
+    "login": "../../components/login"
+  }
+}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/list/index.wxml


+ 95 - 0
unpackage/dist/dev/mp-weixin/pagesHome/list/index.wxss

@@ -0,0 +1,95 @@
+/* 水平间距 */
+/* 水平间距 */
+.content.data-v-db68cfa6 {
+  background-color: var(--f1Color);
+}
+.content .one.data-v-db68cfa6 {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  padding: 2vw;
+  background-color: var(--mainColor);
+}
+.content .one .one_1.data-v-db68cfa6 {
+  padding: 0 2vw;
+  width: 75vw;
+}
+.content .one .one_1 input.data-v-db68cfa6 {
+  padding: 2vw;
+  background-color: var(--f1Color);
+  font-size: var(--font14Size);
+  border-radius: 5px;
+}
+.content .one .one_2 .button.data-v-db68cfa6 {
+  background-color: var(--3c9Color);
+  color: var(--mainColor);
+}
+.content .two.data-v-db68cfa6 {
+  height: 90vh;
+  display: flex;
+  flex-direction: row;
+  margin: 2vw 0 0 0;
+}
+.content .two .two_1.data-v-db68cfa6 {
+  position: relative;
+  width: 25vw;
+  background-color: #fafafa;
+  display: flex;
+  flex-direction: column;
+}
+.content .two .two_1 .list.data-v-db68cfa6 {
+  text-align: center;
+  padding: 3.1vw 0;
+  border-bottom: 1px solid var(--f1Color);
+}
+.content .two .two_1 .list text.data-v-db68cfa6 {
+  font-size: var(--font14Size);
+}
+.content .two .two_1 .listActive.data-v-db68cfa6 {
+  background-color: var(--3c9Color);
+  color: var(--mainColor);
+}
+.content .two .two_2.data-v-db68cfa6 {
+  width: 75vw;
+  flex-grow: 1;
+  position: relative;
+  display: flex;
+  flex-direction: column;
+}
+.content .two .two_2 .two_2_1.data-v-db68cfa6 {
+  background-color: var(--mainColor);
+}
+.content .two .two_2 .two_2_2.data-v-db68cfa6 {
+  flex-grow: 1;
+  position: relative;
+  display: flex;
+  flex-direction: column;
+  margin: 2vw 2vw 0 2vw;
+}
+.content .two .two_2 .two_2_2 .list.data-v-db68cfa6 {
+  display: flex;
+  padding: 2vw;
+  border-radius: 5px;
+  background-color: var(--mainColor);
+}
+.content .two .two_2 .is_bottom.data-v-db68cfa6 {
+  width: 100%;
+  text-align: center;
+}
+.content .two .two_2 .is_bottom text.data-v-db68cfa6 {
+  padding: 2vw 0;
+  display: inline-block;
+  color: var(--f85Color);
+  font-size: var(--font12Size);
+}
+.content .scroll-view.data-v-db68cfa6 {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.content .scroll-view .list-scroll-view.data-v-db68cfa6 {
+  display: flex;
+  flex-direction: column;
+}

+ 2 - 1
unpackage/dist/dev/mp-weixin/pagesMy/course/add.js

@@ -307,7 +307,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
         }),
         L: common_vendor.p({
           model: form.value,
-          rules: rules.value
+          rules: rules.value,
+          labelPosition: "top"
         }),
         M: common_vendor.o(submit),
         N: common_vendor.o(StartConfirm),

+ 6 - 0
unpackage/dist/dev/mp-weixin/pagesMy/course/add.wxss

@@ -29,4 +29,10 @@
   background-color: var(--3c9Color);
   font-size: var(--font14Size);
   border-radius: 2vw;
+}
+.teacher .one.data-v-abcf3dc4 .u-form-item__body__left__content {
+  padding: 5rpx 10rpx !important;
+}
+.teacher .one.data-v-abcf3dc4 .u-form-item__body {
+  padding: 5rpx 0 !important;
 }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesMy/course/index.wxml