lex vor 2 Jahren
Ursprung
Commit
f46f09560d

+ 18 - 8
src/views/role-auth/teacherAuth/components/edu-information/index.tsx

@@ -62,21 +62,31 @@ export default defineComponent({
       >
         <ElFormItem
           labelWidth={this.labelWidth}
-          label="毕业院校(填)"
+          label="毕业院校(填)"
           prop="graduateSchool"
-          // rules={[
-          //   {
-          //     required: true,
-          //     message: '请输入您的毕业院校'
-          //   }
-          // ]}
+          rules={[
+            {
+              required: true,
+              message: '请输入您的毕业院校'
+            }
+          ]}
         >
           <ElInput
             v-model={teacherState.teacherCert.graduateSchool}
             placeholder="请输入您的毕业院校"
           />
         </ElFormItem>
-        <ElFormItem labelWidth={this.labelWidth} label="专业(选填)">
+        <ElFormItem
+          labelWidth={this.labelWidth}
+          label="专业(必填)"
+          prop="subject"
+          rules={[
+            {
+              required: true,
+              message: '请输入您的专业名称'
+            }
+          ]}
+        >
           <ElInput
             v-model={teacherState.teacherCert.subject}
             placeholder="请输入您的专业名称"

+ 15 - 27
src/views/user-info/open-live/index.tsx

@@ -115,7 +115,15 @@ export default defineComponent({
             </div>
           )}
 
-          <div class={['flex justify-between', !this.btnStatus && 'mt-8']}>
+          <div
+            class={[
+              'text-2xl text-[#333] pb-4 mt-8',
+              !this.btnStatus && 'mt-8'
+            ]}
+          >
+            开通条件
+          </div>
+          <div class={['flex justify-between']}>
             <div
               class="w-[334px] rounded-[10px] px-7 py-7"
               style={{
@@ -123,26 +131,16 @@ export default defineComponent({
               }}
             >
               <div class="flex justify-between items-center">
-                <span class="text-2xl text-[#666]">
+                <span class="text-xl text-[#666]">
                   <i class="text-[#E32121] pr-1">*</i>粉丝数
                 </span>
                 <div class="text-2xl text-[#999] font-semibold flex items-center">
                   <span class="text-4xl text-black leading-none">
-                    {this.users?.fansNum}
+                    {this.fansNum}
                   </span>
-                  <span>/</span>
-                  <span class="mt-1">{this.fansNum}</span>
+                  <span class="mt-1 text-xl text-black">人</span>
                 </div>
               </div>
-              <div class="relative h-3.5 mt-7">
-                <div class="absolute w-full h-full bg-[#E9E9E9] z-10 rounded-lg" />
-                <div
-                  class="absolute h-full bg-[#FFA449] z-20 rounded-lg"
-                  style={{
-                    width: this.getRate(this.users?.fansNum, this.fansNum)
-                  }}
-                />
-              </div>
             </div>
 
             <div
@@ -152,26 +150,16 @@ export default defineComponent({
               }}
             >
               <div class="flex justify-between items-center">
-                <span class="text-2xl text-[#666]">
+                <span class="text-xl text-[#666]">
                   <i class="text-[#E32121] pr-1">*</i>课程数
                 </span>
                 <div class="text-2xl text-[#999] font-semibold flex items-center">
                   <span class="text-4xl text-black leading-none">
-                    {this.users?.expTime}
+                    {this.overClassNum}
                   </span>
-                  <span>/</span>
-                  <span class="mt-1">{this.overClassNum}</span>
+                  <span class="mt-1 text-xl text-black">课时</span>
                 </div>
               </div>
-              <div class="relative h-3.5 mt-7">
-                <div class="absolute w-full h-full bg-[#E9E9E9] z-10 rounded-lg" />
-                <div
-                  class="absolute h-full bg-[#2DC7AA] z-20 rounded-lg"
-                  style={{
-                    width: this.getRate(this.users?.expTime, this.overClassNum)
-                  }}
-                />
-              </div>
             </div>
           </div>