zs 1 anno fa
parent
commit
b7a4a77332

+ 6 - 5
pages/home/index.vue

@@ -28,7 +28,7 @@
 						<view class="right">
 							<view class="right_1">
 								<view class="leftR">
-									{{item.nick_name||'暂无昵称'}}
+									{{item.course||'暂无'}}
 								</view>
 								<view class="rightR">
 									<view class="text">
@@ -38,12 +38,12 @@
 								</view>
 							</view>
 							<view class="right_2">
-								<view class="text"> 所在院校: </view>
-								<view class="value"> {{item.college||'暂无'}} </view>
+								<view class="text">老师: </view>
+								<view class="value"> {{item.nick_name||'暂无'}} </view>
 							</view>
 							<view class="right_2">
-								<view class="text"> 学历: </view>
-								<view class="value">{{getDict(item.education,'education')}}</view>
+								<view class="text"> 内容: </view>
+								<view class="value textOne">{{item.content||'暂无'}}</view>
 							</view>
 							<view class="right_3">
 								<view class="money">¥{{item.money||'免费'}} </view>
@@ -267,6 +267,7 @@
 									color: var(--3c9Color);
 									font-weight: bold;
 								}
+
 								.text_2 {
 									color: var(--ff0Color);
 								}

+ 11 - 0
pages/teacher/index.vue

@@ -291,5 +291,16 @@
 				}
 			}
 		}
+		.is_bottom {
+			width: 100%;
+			text-align: center;
+		
+			text {
+				padding: 2vw 0;
+				display: inline-block;
+				color: var(--f85Color);
+				font-size: var(--font12Size);
+			}
+		}
 	}
 </style>

+ 2 - 2
pagesHome/list/index.vue

@@ -29,8 +29,8 @@
 								</view>
 							</view>
 							<view class="right_2">
-								<view class="text"> 所在院校: </view>
-								<view class="value"> {{item.college||'暂无'}} </view>
+								<view class="text"> 课程名称: </view>
+								<view class="value"> {{item.course||'暂无'}} </view>
 							</view>
 							<view class="right_2">
 								<view class="text"> 学历: </view>

+ 3 - 9
unpackage/dist/dev/mp-weixin/pages/home/index.js

@@ -90,12 +90,6 @@ 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;
     };
@@ -158,10 +152,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           } : {
             c: config.value.icon[0].url
           }, {
-            d: common_vendor.t(item.nick_name || "暂无昵称"),
+            d: common_vendor.t(item.course || "暂无"),
             e: common_vendor.t(item.time || "休息中"),
-            f: common_vendor.t(item.college || "暂无"),
-            g: common_vendor.t(getDict(item.education, "education")),
+            f: common_vendor.t(item.nick_name || "暂无"),
+            g: common_vendor.t(item.content || "暂无"),
             h: common_vendor.t(item.money || "免费"),
             i: common_vendor.o(($event) => toBuy(item), index),
             j: index,

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/index.wxml


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

@@ -99,4 +99,14 @@
   background: linear-gradient(to right, #1e3fdc, #3c9cff);
   font-size: var(--font12Size);
   border-radius: 5vw;
+}
+.content .is_bottom.data-v-f3506c63 {
+  width: 100%;
+  text-align: center;
+}
+.content .is_bottom text.data-v-f3506c63 {
+  padding: 2vw 0;
+  display: inline-block;
+  color: var(--f85Color);
+  font-size: var(--font12Size);
 }