|  | @@ -1,4 +1,4 @@
 | 
											
												
													
														|  | -import { Button, Cell, Icon, Image, Rate, Toast } from 'vant'
 |  | 
 | 
											
												
													
														|  | 
 |  | +import { Button, Cell, Icon, Image, Popup, Rate, Toast } from 'vant'
 | 
											
												
													
														|  |  import { defineComponent } from 'vue'
 |  |  import { defineComponent } from 'vue'
 | 
											
												
													
														|  |  import styles from './teacher-header.module.less'
 |  |  import styles from './teacher-header.module.less'
 | 
											
												
													
														|  |  import { postMessage } from '@/helpers/native-message'
 |  |  import { postMessage } from '@/helpers/native-message'
 | 
											
										
											
												
													
														|  | @@ -25,6 +25,11 @@ export default defineComponent({
 | 
											
												
													
														|  |        default: ''
 |  |        default: ''
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  | 
 |  | +  data() {
 | 
											
												
													
														|  | 
 |  | +    return {
 | 
											
												
													
														|  | 
 |  | +      iconShow: false
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  },
 | 
											
												
													
														|  |    computed: {
 |  |    computed: {
 | 
											
												
													
														|  |      subjectNameList() {
 |  |      subjectNameList() {
 | 
											
												
													
														|  |        const userInfo: any = this.userInfo
 |  |        const userInfo: any = this.userInfo
 | 
											
										
											
												
													
														|  | @@ -82,9 +87,35 @@ export default defineComponent({
 | 
											
												
													
														|  |            break
 |  |            break
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |        return status
 |  |        return status
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    openTeacherIcon() {
 | 
											
												
													
														|  | 
 |  | +      this.iconShow = true
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    render() {
 |  |    render() {
 | 
											
												
													
														|  | 
 |  | +    const iconList = [
 | 
											
												
													
														|  | 
 |  | +      {
 | 
											
												
													
														|  | 
 |  | +        icon: 'cert_active.png',
 | 
											
												
													
														|  | 
 |  | +        title: '演奏Mlog达人',
 | 
											
												
													
														|  | 
 |  | +        des: '个人风采中上传老师风采视频并通过审核'
 | 
											
												
													
														|  | 
 |  | +      },
 | 
											
												
													
														|  | 
 |  | +      {
 | 
											
												
													
														|  | 
 |  | +        icon: 'video_active.png',
 | 
											
												
													
														|  | 
 |  | +        title: '教学视频达人',
 | 
											
												
													
														|  | 
 |  | +        des: '发布您制作的教学视频课程并通过审核'
 | 
											
												
													
														|  | 
 |  | +      },
 | 
											
												
													
														|  | 
 |  | +      {
 | 
											
												
													
														|  | 
 |  | +        icon: 'live_active.png',
 | 
											
												
													
														|  | 
 |  | +        title: '直播up达人',
 | 
											
												
													
														|  | 
 |  | +        des: '达到开通直播权限标准并开通直播功能'
 | 
											
												
													
														|  | 
 |  | +      },
 | 
											
												
													
														|  | 
 |  | +      {
 | 
											
												
													
														|  | 
 |  | +        icon: 'music_active.png',
 | 
											
												
													
														|  | 
 |  | +        title: '乐谱歌单达人',
 | 
											
												
													
														|  | 
 |  | +        des: '上传您制作的乐谱并通过审核'
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +    ]
 | 
											
												
													
														|  |      return (
 |  |      return (
 | 
											
												
													
														|  |        <>
 |  |        <>
 | 
											
												
													
														|  |          <div class={styles.headerContent}>
 |  |          <div class={styles.headerContent}>
 | 
											
										
											
												
													
														|  | @@ -138,38 +169,43 @@ export default defineComponent({
 | 
											
												
													
														|  |                            : getAssetsHomeFile('vip_default.png')
 |  |                            : getAssetsHomeFile('vip_default.png')
 | 
											
												
													
														|  |                        }
 |  |                        }
 | 
											
												
													
														|  |                      />
 |  |                      />
 | 
											
												
													
														|  | -                    <Image
 |  | 
 | 
											
												
													
														|  | -                      class={styles.iconOther}
 |  | 
 | 
											
												
													
														|  | -                      src={
 |  | 
 | 
											
												
													
														|  | -                        this.checkBadge('STYLE')
 |  | 
 | 
											
												
													
														|  | -                          ? getAssetsHomeFile('cert_active.png')
 |  | 
 | 
											
												
													
														|  | -                          : getAssetsHomeFile('cert_default.png')
 |  | 
 | 
											
												
													
														|  | -                      }
 |  | 
 | 
											
												
													
														|  | -                    />
 |  | 
 | 
											
												
													
														|  | -                    <Image
 |  | 
 | 
											
												
													
														|  | -                      class={styles.iconOther}
 |  | 
 | 
											
												
													
														|  | -                      src={
 |  | 
 | 
											
												
													
														|  | -                        this.checkBadge('VIDEO')
 |  | 
 | 
											
												
													
														|  | -                          ? getAssetsHomeFile('video_active.png')
 |  | 
 | 
											
												
													
														|  | -                          : getAssetsHomeFile('video_default.png')
 |  | 
 | 
											
												
													
														|  | -                      }
 |  | 
 | 
											
												
													
														|  | -                    />
 |  | 
 | 
											
												
													
														|  | -                    <Image
 |  | 
 | 
											
												
													
														|  | -                      class={styles.iconOther}
 |  | 
 | 
											
												
													
														|  | -                      src={
 |  | 
 | 
											
												
													
														|  | -                        this.checkBadge('LIVE')
 |  | 
 | 
											
												
													
														|  | -                          ? getAssetsHomeFile('live_active.png')
 |  | 
 | 
											
												
													
														|  | -                          : getAssetsHomeFile('live_default.png')
 |  | 
 | 
											
												
													
														|  | -                      }
 |  | 
 | 
											
												
													
														|  | -                    />
 |  | 
 | 
											
												
													
														|  | -                    <Image
 |  | 
 | 
											
												
													
														|  | -                      class={styles.iconOther}
 |  | 
 | 
											
												
													
														|  | -                      src={
 |  | 
 | 
											
												
													
														|  | -                        this.checkBadge('MUSIC')
 |  | 
 | 
											
												
													
														|  | -                          ? getAssetsHomeFile('music_active.png')
 |  | 
 | 
											
												
													
														|  | -                          : getAssetsHomeFile('music_default.png')
 |  | 
 | 
											
												
													
														|  | -                      }
 |  | 
 | 
											
												
													
														|  | -                    />
 |  | 
 | 
											
												
													
														|  | 
 |  | +                    <div
 | 
											
												
													
														|  | 
 |  | +                      class={styles.teacherIcons}
 | 
											
												
													
														|  | 
 |  | +                      onClick={this.openTeacherIcon}
 | 
											
												
													
														|  | 
 |  | +                    >
 | 
											
												
													
														|  | 
 |  | +                      <Image
 | 
											
												
													
														|  | 
 |  | +                        class={styles.iconOther}
 | 
											
												
													
														|  | 
 |  | +                        src={
 | 
											
												
													
														|  | 
 |  | +                          this.checkBadge('STYLE')
 | 
											
												
													
														|  | 
 |  | +                            ? getAssetsHomeFile('cert_active.png')
 | 
											
												
													
														|  | 
 |  | +                            : getAssetsHomeFile('cert_default.png')
 | 
											
												
													
														|  | 
 |  | +                        }
 | 
											
												
													
														|  | 
 |  | +                      />
 | 
											
												
													
														|  | 
 |  | +                      <Image
 | 
											
												
													
														|  | 
 |  | +                        class={styles.iconOther}
 | 
											
												
													
														|  | 
 |  | +                        src={
 | 
											
												
													
														|  | 
 |  | +                          this.checkBadge('VIDEO')
 | 
											
												
													
														|  | 
 |  | +                            ? getAssetsHomeFile('video_active.png')
 | 
											
												
													
														|  | 
 |  | +                            : getAssetsHomeFile('video_default.png')
 | 
											
												
													
														|  | 
 |  | +                        }
 | 
											
												
													
														|  | 
 |  | +                      />
 | 
											
												
													
														|  | 
 |  | +                      <Image
 | 
											
												
													
														|  | 
 |  | +                        class={styles.iconOther}
 | 
											
												
													
														|  | 
 |  | +                        src={
 | 
											
												
													
														|  | 
 |  | +                          this.checkBadge('LIVE')
 | 
											
												
													
														|  | 
 |  | +                            ? getAssetsHomeFile('live_active.png')
 | 
											
												
													
														|  | 
 |  | +                            : getAssetsHomeFile('live_default.png')
 | 
											
												
													
														|  | 
 |  | +                        }
 | 
											
												
													
														|  | 
 |  | +                      />
 | 
											
												
													
														|  | 
 |  | +                      <Image
 | 
											
												
													
														|  | 
 |  | +                        class={styles.iconOther}
 | 
											
												
													
														|  | 
 |  | +                        src={
 | 
											
												
													
														|  | 
 |  | +                          this.checkBadge('MUSIC')
 | 
											
												
													
														|  | 
 |  | +                            ? getAssetsHomeFile('music_active.png')
 | 
											
												
													
														|  | 
 |  | +                            : getAssetsHomeFile('music_default.png')
 | 
											
												
													
														|  | 
 |  | +                        }
 | 
											
												
													
														|  | 
 |  | +                      />
 | 
											
												
													
														|  | 
 |  | +                    </div>
 | 
											
												
													
														|  |                    </div>
 |  |                    </div>
 | 
											
												
													
														|  |                  </div>
 |  |                  </div>
 | 
											
												
													
														|  |                  <div class={styles.level}>
 |  |                  <div class={styles.level}>
 | 
											
										
											
												
													
														|  | @@ -248,6 +284,27 @@ export default defineComponent({
 | 
											
												
													
														|  |              </div>
 |  |              </div>
 | 
											
												
													
														|  |            </div>
 |  |            </div>
 | 
											
												
													
														|  |          </div>
 |  |          </div>
 | 
											
												
													
														|  | 
 |  | +        <Popup class={styles['teaherPopup']} v-model:show={this.iconShow}>
 | 
											
												
													
														|  | 
 |  | +          <Image src={getAssetsHomeFile('teacher-icon.png')} />
 | 
											
												
													
														|  | 
 |  | +          <div class={styles.teacherIconWrap}>
 | 
											
												
													
														|  | 
 |  | +            {iconList.map(n => {
 | 
											
												
													
														|  | 
 |  | +              return (
 | 
											
												
													
														|  | 
 |  | +                <div class={styles.teacherIconItem}>
 | 
											
												
													
														|  | 
 |  | +                  <div class={styles.teacherIconItemTop}>
 | 
											
												
													
														|  | 
 |  | +                    <Image src={getAssetsHomeFile(n.icon)} />
 | 
											
												
													
														|  | 
 |  | +                    <div class={styles.teacherIconTitle}>{n.title}</div>
 | 
											
												
													
														|  | 
 |  | +                  </div>
 | 
											
												
													
														|  | 
 |  | +                  <div class={styles.teacherIconDes}>{n.des}</div>
 | 
											
												
													
														|  | 
 |  | +                </div>
 | 
											
												
													
														|  | 
 |  | +              )
 | 
											
												
													
														|  | 
 |  | +            })}
 | 
											
												
													
														|  | 
 |  | +          </div>
 | 
											
												
													
														|  | 
 |  | +          <Image
 | 
											
												
													
														|  | 
 |  | +            onClick={() => (this.iconShow = false)}
 | 
											
												
													
														|  | 
 |  | +            class={styles.closeIcon}
 | 
											
												
													
														|  | 
 |  | +            src={getAssetsHomeFile('icon-close.png')}
 | 
											
												
													
														|  | 
 |  | +          />
 | 
											
												
													
														|  | 
 |  | +        </Popup>
 | 
											
												
													
														|  |        </>
 |  |        </>
 | 
											
												
													
														|  |      )
 |  |      )
 | 
											
												
													
														|  |    }
 |  |    }
 |