Browse Source

更新打包

lex 3 years ago
parent
commit
1120fedc2a

File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-legacy.067b6991.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-legacy.d44566f7.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.3be1f77e.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.879a8185.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.bb34006e.css


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.e05d7397.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/polyfills-legacy.7ac27942.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher-home-legacy.5ba14b23.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher-home.05993e5f.css


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher-home.4d425aec.css


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher-home.d94aa037.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher-home.e8dd7f4d.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher-legacy.530dc37f.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher.132ffe9a.js


+ 3 - 3
dist/index.html

@@ -35,7 +35,7 @@
     <meta name="msapplication-tap-highlight" content="no" />
     <title>酷乐秀</title>
     <script src="./flexible.js" charset="UTF-8"></script>
-    <script type="module" crossorigin src="./assets/index.12be5767.js"></script>
+    <script type="module" crossorigin src="./assets/index.879a8185.js"></script>
     <link rel="modulepreload" href="./assets/vendor.cec27b4c.js">
     <link rel="modulepreload" href="./assets/index.b55c6800.js">
     <link rel="stylesheet" href="./assets/vendor.0f0cf986.css">
@@ -49,7 +49,7 @@
     
     <!-- <script type="module" src="/src/teacher/main.ts"></script> -->
     <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.c577a8fb.js"></script>
-    <script nomodule id="vite-legacy-entry" data-src="./assets/index-legacy.9cf237ea.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.7ac27942.js"></script>
+    <script nomodule id="vite-legacy-entry" data-src="./assets/index-legacy.067b6991.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 3 - 3
dist/teacher.html

@@ -35,7 +35,7 @@
     <meta name="msapplication-tap-highlight" content="no" />
     <title>酷乐秀</title>
     <script src="./flexible.js" charset="UTF-8"></script>
-    <script type="module" crossorigin src="./assets/teacher.80be85e2.js"></script>
+    <script type="module" crossorigin src="./assets/teacher.132ffe9a.js"></script>
     <link rel="modulepreload" href="./assets/vendor.cec27b4c.js">
     <link rel="modulepreload" href="./assets/index.b55c6800.js">
     <link rel="stylesheet" href="./assets/index.5242455e.css">
@@ -48,7 +48,7 @@
     <div id="app"></div>
     
     <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.c577a8fb.js"></script>
-    <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.44b57362.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.7ac27942.js"></script>
+    <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.530dc37f.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 185 - 176
src/student/teacher-dependent/components/practice.tsx

@@ -50,11 +50,13 @@ export default defineComponent({
       selectStatus: false,
       coursePlanList: [] as any,
       calendarDate: dayjs().add(1, 'day').toDate() as Date, // 日历当前时间
-      settingStatus: true // 是否设置陪练课
+      settingStatus: true, // 是否设置陪练课
+      loadDataStatus: true // 是否加载数据
     }
   },
   async mounted() {
     try {
+      this.loadDataStatus = true
       const res = await request.get(
         '/api-student/courseSchedule/getTeacherSubjectPrice',
         {
@@ -63,6 +65,7 @@ export default defineComponent({
           }
         }
       )
+      this.loadDataStatus = false
       const result = res.data || []
       if (result.length > 0) {
         const userSubjectId = this.subjectId || state.user.data?.subjectId
@@ -92,7 +95,9 @@ export default defineComponent({
       } else {
         this.settingStatus = false
       }
-    } catch {}
+    } catch {
+      this.loadDataStatus = false
+    }
   },
   computed: {
     showSelectList() {
@@ -361,192 +366,196 @@ export default defineComponent({
   render() {
     return (
       <>
-        {this.settingStatus ? (
-          <>
-            <div class={styles.practice}>
-              <CellGroup class={styles.group} border={false}>
+        {!this.loadDataStatus &&
+          (this.settingStatus ? (
+            <>
+              <div class={styles.practice}>
+                <CellGroup class={styles.group} border={false}>
+                  <Cell
+                    title="陪练课收费"
+                    v-slots={{
+                      default: () => (
+                        <div class={styles.price}>
+                          <span>
+                            ¥
+                            {(this as any).$filters.moneyFormat(
+                              this.subjectInfo.subjectPrice
+                            )}
+                          </span>
+                          /{this.subjectInfo.courseMinutes}分钟
+                        </div>
+                      )
+                    }}
+                  />
+                  <Cell
+                    title="选择专业"
+                    isLink
+                    value={this.subjectInfo.subjectName}
+                    onClick={() => (this.subjectStatus = true)}
+                  />
+                  <Cell
+                    title="课时数"
+                    v-slots={{
+                      default: () => (
+                        <Stepper
+                          v-model={this.courseNum}
+                          theme="round"
+                          max={12}
+                          min={1}
+                          buttonSize={22}
+                          onChange={() => {
+                            this.selectCourseList = []
+                          }}
+                        />
+                      )
+                    }}
+                  />
+                </CellGroup>
+
+                {this.calendarStatus && (
+                  <div class={styles.group}>
+                    <Calendar
+                      selectList={this.selectCourseList}
+                      list={this.calendarList}
+                      maxDays={this.courseNum}
+                      nextMonth={(date: Date) => this.getList(date)}
+                      prevMonth={(date: Date) => this.getList(date)}
+                      selectDay={this.onSelectDay}
+                      v-model:calendarDate={this.calendarDate}
+                    />
+                  </div>
+                )}
+
                 <Cell
-                  title="陪练课收费"
+                  class={[styles.arrangeCell]}
                   v-slots={{
-                    default: () => (
-                      <div class={styles.price}>
-                        <span>
-                          ¥
-                          {(this as any).$filters.moneyFormat(
-                            this.subjectInfo.subjectPrice
-                          )}
-                        </span>
-                        /{this.subjectInfo.courseMinutes}分钟
+                    title: () => (
+                      <div class={styles.rTitle}>
+                        <span>已选择课程时间</span>
+                      </div>
+                    ),
+                    label: () => (
+                      <div class={styles.rTag}>
+                        {this.showSelectList.map((item: any) => (
+                          <>
+                            <Tag
+                              plain
+                              round
+                              closeable
+                              size="large"
+                              type="primary"
+                              class={styles.tag}
+                              onClose={() => this.onCloseTag(item)}
+                            >
+                              {item.title}
+                            </Tag>
+                            <br />
+                          </>
+                        ))}
                       </div>
                     )
                   }}
-                />
-                <Cell
-                  title="选择专业"
-                  isLink
-                  value={this.subjectInfo.subjectName}
-                  onClick={() => (this.subjectStatus = true)}
-                />
-                <Cell
-                  title="课时数"
-                  v-slots={{
-                    default: () => (
-                      <Stepper
-                        v-model={this.courseNum}
-                        theme="round"
-                        max={12}
-                        min={1}
-                        buttonSize={22}
-                        onChange={() => {
-                          this.selectCourseList = []
-                        }}
-                      />
-                    )
-                  }}
-                />
-              </CellGroup>
-
-              {this.calendarStatus && (
-                <div class={styles.group}>
-                  <Calendar
-                    selectList={this.selectCourseList}
-                    list={this.calendarList}
-                    maxDays={this.courseNum}
-                    nextMonth={(date: Date) => this.getList(date)}
-                    prevMonth={(date: Date) => this.getList(date)}
-                    selectDay={this.onSelectDay}
-                    v-model:calendarDate={this.calendarDate}
-                  />
-                </div>
-              )}
+                ></Cell>
 
-              <Cell
-                class={[styles.arrangeCell]}
-                v-slots={{
-                  title: () => (
+                <Popup show={this.selectStatus} class={styles.selectPopup}>
+                  <div class={styles.selectContainer}>
                     <div class={styles.rTitle}>
-                      <span>已选择课程时间</span>
+                      <span>提示</span>
                     </div>
-                  ),
-                  label: () => (
-                    <div class={styles.rTag}>
-                      {this.showSelectList.map((item: any) => (
-                        <>
-                          <Tag
-                            plain
-                            round
-                            closeable
-                            size="large"
-                            type="primary"
-                            class={styles.tag}
-                            onClose={() => this.onCloseTag(item)}
-                          >
-                            {item.title}
-                          </Tag>
-                          <br />
-                        </>
-                      ))}
+                    <div class={styles.selectPopupContent}>
+                      <p class={styles.desc}>
+                        {this.selectType === 'noEnough' &&
+                        !this.coursePlanStatus
+                          ? '您所选择的上课时间未达到您输入的课时数,系统根据已选时间将自动按周顺延排课。'
+                          : '您已选择以下上课时间段,时间段会暂时锁定,锁定期间学员不可购买该时间段课程。'}
+                      </p>
+                      {this.coursePlanList &&
+                        this.coursePlanList.length > 0 &&
+                        this.coursePlanStatus && (
+                          <p class={styles.times}>
+                            {this.coursePlanList.map((item: any) => (
+                              <span>
+                                {dayjs(item.startTime || new Date()).format(
+                                  'YYYY-MM-DD'
+                                )}{' '}
+                                {dayjs(item.startTime || new Date()).format(
+                                  'HH:mm'
+                                )}
+                                ~
+                                {dayjs(item.endTime || new Date()).format(
+                                  'HH:mm'
+                                )}
+                              </span>
+                            ))}
+                          </p>
+                        )}
                     </div>
-                  )
-                }}
-              ></Cell>
 
-              <Popup show={this.selectStatus} class={styles.selectPopup}>
-                <div class={styles.selectContainer}>
-                  <div class={styles.rTitle}>
-                    <span>提示</span>
-                  </div>
-                  <div class={styles.selectPopupContent}>
-                    <p class={styles.desc}>
-                      {this.selectType === 'noEnough' && !this.coursePlanStatus
-                        ? '您所选择的上课时间未达到您输入的课时数,系统根据已选时间将自动按周顺延排课。'
-                        : '您已选择以下上课时间段,时间段会暂时锁定,锁定期间学员不可购买该时间段课程。'}
-                    </p>
-                    {this.coursePlanList &&
-                      this.coursePlanList.length > 0 &&
-                      this.coursePlanStatus && (
-                        <p class={styles.times}>
-                          {this.coursePlanList.map((item: any) => (
-                            <span>
-                              {dayjs(item.startTime || new Date()).format(
-                                'YYYY-MM-DD'
-                              )}{' '}
-                              {dayjs(item.startTime || new Date()).format(
-                                'HH:mm'
-                              )}
-                              ~
-                              {dayjs(item.endTime || new Date()).format(
-                                'HH:mm'
-                              )}
-                            </span>
-                          ))}
-                        </p>
-                      )}
-                  </div>
-
-                  <div class={styles.selectBtn}>
-                    <Button
-                      class={styles.btn}
-                      type="primary"
-                      round
-                      block
-                      plain
-                      onClick={this.onReset}
-                    >
-                      {this.selectType === 'noEnough' ? '继续选择' : '重新选择'}
-                    </Button>
-                    <Button
-                      class={styles.btn}
-                      type="primary"
-                      round
-                      block
-                      onClick={this.onSure}
-                    >
-                      确认
-                    </Button>
+                    <div class={styles.selectBtn}>
+                      <Button
+                        class={styles.btn}
+                        type="primary"
+                        round
+                        block
+                        plain
+                        onClick={this.onReset}
+                      >
+                        {this.selectType === 'noEnough'
+                          ? '继续选择'
+                          : '重新选择'}
+                      </Button>
+                      <Button
+                        class={styles.btn}
+                        type="primary"
+                        round
+                        block
+                        onClick={this.onSure}
+                      >
+                        确认
+                      </Button>
+                    </div>
                   </div>
-                </div>
-              </Popup>
+                </Popup>
 
-              <ActionSheet
-                show={this.subjectStatus}
-                actions={this.teacherSubjectList}
-                cancelText="取消"
-                closeOnClickAction
-                onCancel={() => (this.subjectStatus = false)}
-                onSelect={(item: any) => {
-                  const {
-                    subjectName,
-                    subjectPrice,
-                    courseMinutes,
-                    subjectId
-                  } = item
-                  this.subjectInfo = {
-                    subjectPrice,
-                    courseMinutes,
-                    subjectName,
-                    subjectId
-                  }
-                  this.subjectStatus = false
-                }}
-              />
-            </div>
-            <div
-              class={['btnGroup', styles.fixedBtn]}
-              style={{ background: '#fff', paddingTop: '10px' }}
-            >
-              <Button block round type="primary" onClick={this.onSubmit}>
-                确认约课
-              </Button>
-            </div>
-          </>
-        ) : (
-          <ColResult
-            btnStatus={false}
-            classImgSize="SMALL"
-            tips="老师暂未开放陪练课"
-          />
-        )}
+                <ActionSheet
+                  show={this.subjectStatus}
+                  actions={this.teacherSubjectList}
+                  cancelText="取消"
+                  closeOnClickAction
+                  onCancel={() => (this.subjectStatus = false)}
+                  onSelect={(item: any) => {
+                    const {
+                      subjectName,
+                      subjectPrice,
+                      courseMinutes,
+                      subjectId
+                    } = item
+                    this.subjectInfo = {
+                      subjectPrice,
+                      courseMinutes,
+                      subjectName,
+                      subjectId
+                    }
+                    this.subjectStatus = false
+                  }}
+                />
+              </div>
+              <div
+                class={['btnGroup', styles.fixedBtn]}
+                style={{ background: '#fff', paddingTop: '10px' }}
+              >
+                <Button block round type="primary" onClick={this.onSubmit}>
+                  确认约课
+                </Button>
+              </div>
+            </>
+          ) : (
+            <ColResult
+              btnStatus={false}
+              classImgSize="SMALL"
+              tips="老师暂未开放陪练课"
+            />
+          ))}
       </>
     )
   }

+ 1 - 0
src/student/teacher-dependent/teacher-home.module.less

@@ -8,6 +8,7 @@
     .van-tab {
       margin-top: 12px;
       margin-bottom: 5px;
+      padding: 0 14px;
     }
     .van-tab--active {
       font-size: 16px !important;

+ 1 - 0
src/student/teacher-dependent/teacher-home.tsx

@@ -74,6 +74,7 @@ export default defineComponent({
         <Tabs
           color="var(--van-primary)"
           background="#f8f9fc"
+          shrink
           lineWidth={20}
           sticky
           offsetTop={this.height}

+ 1 - 1
src/teacher/piano-room/account-recharge-timer/index.module.less

@@ -97,6 +97,7 @@
   user-select: none;
   box-sizing: content-box;
   padding-bottom: 10px;
+  margin-bottom: 10px;
 }
 .system-item {
   display: flex;
@@ -114,7 +115,6 @@
   );
   border-radius: 10px;
   border: 1px solid #b1652e;
-  margin-bottom: 10px;
   margin-right: 8px;
   .title {
     font-size: 16px;

+ 3 - 3
src/teacher/piano-room/account-recharge-timer/index.tsx

@@ -41,7 +41,6 @@ export default defineComponent({
         const item: any = this.list[0]
         this.selectItem = item
       }
-
       useEventListener(document, 'scroll', evt => {
         const { y } = useWindowScroll()
         if (y.value > 30) {
@@ -49,14 +48,14 @@ export default defineComponent({
           this.color = '#333'
           postMessage({
             api: 'backIconChange',
-            content: { iconStyle: 'white' }
+            content: { iconStyle: 'black' }
           })
         } else {
           this.background = 'transparent'
           this.color = '#fff'
           postMessage({
             api: 'backIconChange',
-            content: { iconStyle: 'black' }
+            content: { iconStyle: 'white' }
           })
         }
       })
@@ -105,6 +104,7 @@ export default defineComponent({
       <div class={styles.accountRechargeTimer}>
         <ColHeader
           rightText="充值记录"
+          backIconColor="white"
           border={false}
           background={this.background}
           color={this.color}

Some files were not shown because too many files changed in this diff