|  | @@ -23,6 +23,7 @@ import request from '@/helpers/request'
 | 
											
												
													
														|  |  import requestOrigin from 'umi-request'
 |  |  import requestOrigin from 'umi-request'
 | 
											
												
													
														|  |  import UploadIcon from './images/music-icon.png'
 |  |  import UploadIcon from './images/music-icon.png'
 | 
											
												
													
														|  |  import btnBg from './images/btn-bg.png'
 |  |  import btnBg from './images/btn-bg.png'
 | 
											
												
													
														|  | 
 |  | +import iconBrid from './images/icon-brid.png'
 | 
											
												
													
														|  |  import iconTitleUpload from './images/icon-title-upload.png'
 |  |  import iconTitleUpload from './images/icon-title-upload.png'
 | 
											
												
													
														|  |  import iconTitleUpdate from './images/icon-title-update.png'
 |  |  import iconTitleUpdate from './images/icon-title-update.png'
 | 
											
												
													
														|  |  import ColUpload from '@/components/col-upload'
 |  |  import ColUpload from '@/components/col-upload'
 | 
											
										
											
												
													
														|  | @@ -112,6 +113,10 @@ export default defineComponent({
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    async mounted() {
 |  |    async mounted() {
 | 
											
												
													
														|  | 
 |  | +    const isCatchTip = localStorage.getItem('isCatchTip')
 | 
											
												
													
														|  | 
 |  | +    if (!isCatchTip) {
 | 
											
												
													
														|  | 
 |  | +      this.messageTipStatus = true
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  |      // 获取基础数据
 |  |      // 获取基础数据
 | 
											
												
													
														|  |      request
 |  |      request
 | 
											
												
													
														|  |        .get('/api-teacher/sysConfig/queryByParamNameList', {
 |  |        .get('/api-teacher/sysConfig/queryByParamNameList', {
 | 
											
										
											
												
													
														|  | @@ -385,12 +390,12 @@ export default defineComponent({
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      onFormatter2(val: any) {
 |  |      onFormatter2(val: any) {
 | 
											
												
													
														|  |        const num = verifiyNumberInteger(val)
 |  |        const num = verifiyNumberInteger(val)
 | 
											
												
													
														|  | -      if (num && Number(num) > 270) {
 |  | 
 | 
											
												
													
														|  | -        return '270'
 |  | 
 | 
											
												
													
														|  | -      }
 |  | 
 | 
											
												
													
														|  | -      if (num && Number(num) < 45) {
 |  | 
 | 
											
												
													
														|  | -        return '45'
 |  | 
 | 
											
												
													
														|  | -      }
 |  | 
 | 
											
												
													
														|  | 
 |  | +      // if (num && Number(num) > 270) {
 | 
											
												
													
														|  | 
 |  | +      //   return '270'
 | 
											
												
													
														|  | 
 |  | +      // }
 | 
											
												
													
														|  | 
 |  | +      // if (num && Number(num) < 45) {
 | 
											
												
													
														|  | 
 |  | +      //   return '45'
 | 
											
												
													
														|  | 
 |  | +      // }
 | 
											
												
													
														|  |        return num
 |  |        return num
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      fileName(name = '') {
 |  |      fileName(name = '') {
 | 
											
										
											
												
													
														|  | @@ -485,6 +490,9 @@ export default defineComponent({
 | 
											
												
													
														|  |            border={false}
 |  |            border={false}
 | 
											
												
													
														|  |          />
 |  |          />
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +        <div class={styles.bridSection}>
 | 
											
												
													
														|  | 
 |  | +          <img src={iconBrid} class={styles.iconBrid} />
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  |          <CellGroup class={[styles.area, styles.topArea]} border={false}>
 |  |          <CellGroup class={[styles.area, styles.topArea]} border={false}>
 | 
											
												
													
														|  |            <div
 |  |            <div
 | 
											
												
													
														|  |              class={styles.uploadMessage}
 |  |              class={styles.uploadMessage}
 | 
											
										
											
												
													
														|  | @@ -503,7 +511,7 @@ export default defineComponent({
 | 
											
												
													
														|  |            />
 |  |            />
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |            <div class={styles['section-title']}></div>
 |  |            <div class={styles['section-title']}></div>
 | 
											
												
													
														|  | -          <Field required label="播放类型" center inputAlign="right">
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <Field required label="播放模式" center inputAlign="right">
 | 
											
												
													
														|  |              {{
 |  |              {{
 | 
											
												
													
														|  |                input: () => (
 |  |                input: () => (
 | 
											
												
													
														|  |                  <RadioGroup
 |  |                  <RadioGroup
 | 
											
										
											
												
													
														|  | @@ -544,7 +552,7 @@ export default defineComponent({
 | 
											
												
													
														|  |                    </div>
 |  |                    </div>
 | 
											
												
													
														|  |                  ),
 |  |                  ),
 | 
											
												
													
														|  |                  input: () =>
 |  |                  input: () =>
 | 
											
												
													
														|  | -                  browser().isApp ? (
 |  | 
 | 
											
												
													
														|  | 
 |  | +                  !browser().isApp ? (
 | 
											
												
													
														|  |                      <div class={styles.btnSection}>
 |  |                      <div class={styles.btnSection}>
 | 
											
												
													
														|  |                        <Button
 |  |                        <Button
 | 
											
												
													
														|  |                          icon={UploadIcon}
 |  |                          icon={UploadIcon}
 | 
											
										
											
												
													
														|  | @@ -601,7 +609,7 @@ export default defineComponent({
 | 
											
												
													
														|  |                    </div>
 |  |                    </div>
 | 
											
												
													
														|  |                  ),
 |  |                  ),
 | 
											
												
													
														|  |                  input: () =>
 |  |                  input: () =>
 | 
											
												
													
														|  | -                  browser().isApp ? (
 |  | 
 | 
											
												
													
														|  | 
 |  | +                  !browser().isApp ? (
 | 
											
												
													
														|  |                      <div class={styles.btnSection}>
 |  |                      <div class={styles.btnSection}>
 | 
											
												
													
														|  |                        <Button
 |  |                        <Button
 | 
											
												
													
														|  |                          icon={UploadIcon}
 |  |                          icon={UploadIcon}
 | 
											
										
											
												
													
														|  | @@ -660,7 +668,7 @@ export default defineComponent({
 | 
											
												
													
														|  |                  </div>
 |  |                  </div>
 | 
											
												
													
														|  |                ),
 |  |                ),
 | 
											
												
													
														|  |                input: () =>
 |  |                input: () =>
 | 
											
												
													
														|  | -                browser().isApp ? (
 |  | 
 | 
											
												
													
														|  | 
 |  | +                !browser().isApp ? (
 | 
											
												
													
														|  |                    <div class={styles.btnSection}>
 |  |                    <div class={styles.btnSection}>
 | 
											
												
													
														|  |                      <Button
 |  |                      <Button
 | 
											
												
													
														|  |                        icon={UploadIcon}
 |  |                        icon={UploadIcon}
 | 
											
										
											
												
													
														|  | @@ -742,7 +750,7 @@ export default defineComponent({
 | 
											
												
													
														|  |                        </div>
 |  |                        </div>
 | 
											
												
													
														|  |                      ),
 |  |                      ),
 | 
											
												
													
														|  |                      input: () =>
 |  |                      input: () =>
 | 
											
												
													
														|  | -                      browser().isApp ? (
 |  | 
 | 
											
												
													
														|  | 
 |  | +                      !browser().isApp ? (
 | 
											
												
													
														|  |                          <div class={styles.btnSection}>
 |  |                          <div class={styles.btnSection}>
 | 
											
												
													
														|  |                            <Button
 |  |                            <Button
 | 
											
												
													
														|  |                              icon={UploadIcon}
 |  |                              icon={UploadIcon}
 | 
											
										
											
												
													
														|  | @@ -855,20 +863,28 @@ export default defineComponent({
 | 
											
												
													
														|  |            <Field
 |  |            <Field
 | 
											
												
													
														|  |              required
 |  |              required
 | 
											
												
													
														|  |              label="曲目速度"
 |  |              label="曲目速度"
 | 
											
												
													
														|  | -            center
 |  | 
 | 
											
												
													
														|  |              name="playSpeed"
 |  |              name="playSpeed"
 | 
											
												
													
														|  |              inputAlign="right"
 |  |              inputAlign="right"
 | 
											
												
													
														|  |              rules={[{ required: true, message: '请输入曲目速度' }]}
 |  |              rules={[{ required: true, message: '请输入曲目速度' }]}
 | 
											
												
													
														|  |              errorMessageAlign="right"
 |  |              errorMessageAlign="right"
 | 
											
												
													
														|  |              v-model={this.playSpeed}
 |  |              v-model={this.playSpeed}
 | 
											
												
													
														|  | 
 |  | +            placeholder="请输入曲目速度,范围45-270"
 | 
											
												
													
														|  |              // class={styles.inputControl}
 |  |              // class={styles.inputControl}
 | 
											
												
													
														|  |              formatter={this.onFormatter2}
 |  |              formatter={this.onFormatter2}
 | 
											
												
													
														|  | 
 |  | +            onBlur={() => {
 | 
											
												
													
														|  | 
 |  | +              if (this.playSpeed && Number(this.playSpeed) > 270) {
 | 
											
												
													
														|  | 
 |  | +                this.playSpeed = '270'
 | 
											
												
													
														|  | 
 |  | +              }
 | 
											
												
													
														|  | 
 |  | +              if (this.playSpeed && Number(this.playSpeed) < 45) {
 | 
											
												
													
														|  | 
 |  | +                this.playSpeed = '45'
 | 
											
												
													
														|  | 
 |  | +              }
 | 
											
												
													
														|  | 
 |  | +            }}
 | 
											
												
													
														|  |              autocomplete="off"
 |  |              autocomplete="off"
 | 
											
												
													
														|  |            ></Field>
 |  |            ></Field>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |            <Field
 |  |            <Field
 | 
											
												
													
														|  |              label="曲目标签"
 |  |              label="曲目标签"
 | 
											
												
													
														|  | -            placeholder=""
 |  | 
 | 
											
												
													
														|  | 
 |  | +            placeholder="请选择曲目标签"
 | 
											
												
													
														|  |              inputAlign="right"
 |  |              inputAlign="right"
 | 
											
												
													
														|  |              isLink
 |  |              isLink
 | 
											
												
													
														|  |              required
 |  |              required
 | 
											
										
											
												
													
														|  | @@ -959,8 +975,18 @@ export default defineComponent({
 | 
											
												
													
														|  |                />
 |  |                />
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |                <div class={styles.rule}>
 |  |                <div class={styles.rule}>
 | 
											
												
													
														|  | -                <p>扣除手续费后该曲目预计收入为:</p>
 |  | 
 | 
											
												
													
														|  |                  <p>
 |  |                  <p>
 | 
											
												
													
														|  | 
 |  | +                  扣除手续费后该曲目预计收入为:
 | 
											
												
													
														|  | 
 |  | +                  <span>
 | 
											
												
													
														|  | 
 |  | +                    {(
 | 
											
												
													
														|  | 
 |  | +                      ((parseFloat(this.musicPrice || '0') || 0) *
 | 
											
												
													
														|  | 
 |  | +                        (100 - this.music_sheet_service_fee)) /
 | 
											
												
													
														|  | 
 |  | +                      100
 | 
											
												
													
														|  | 
 |  | +                    ).toFixed(2)}
 | 
											
												
													
														|  | 
 |  | +                    <span>元/人</span>
 | 
											
												
													
														|  | 
 |  | +                  </span>
 | 
											
												
													
														|  | 
 |  | +                </p>
 | 
											
												
													
														|  | 
 |  | +                {/* <p>
 | 
											
												
													
														|  |                    每人:
 |  |                    每人:
 | 
											
												
													
														|  |                    <span>
 |  |                    <span>
 | 
											
												
													
														|  |                      {(
 |  |                      {(
 | 
											
										
											
												
													
														|  | @@ -970,7 +996,7 @@ export default defineComponent({
 | 
											
												
													
														|  |                      ).toFixed(2)}
 |  |                      ).toFixed(2)}
 | 
											
												
													
														|  |                    </span>
 |  |                    </span>
 | 
											
												
													
														|  |                    元/人
 |  |                    元/人
 | 
											
												
													
														|  | -                </p>
 |  | 
 | 
											
												
													
														|  | 
 |  | +                </p> */}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |                  <p>
 |  |                  <p>
 | 
											
												
													
														|  |                    您的乐谱收入在学员购买后{this.music_account_period}
 |  |                    您的乐谱收入在学员购买后{this.music_account_period}
 | 
											
										
											
												
													
														|  | @@ -981,19 +1007,19 @@ export default defineComponent({
 | 
											
												
													
														|  |            )}
 |  |            )}
 | 
											
												
													
														|  |          </CellGroup>
 |  |          </CellGroup>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        <ColSticky position="bottom" background="transparent">
 |  | 
 | 
											
												
													
														|  | -          <div class={styles['button-area']}>
 |  | 
 | 
											
												
													
														|  | -            <Button
 |  | 
 | 
											
												
													
														|  | -              type="primary"
 |  | 
 | 
											
												
													
														|  | -              block
 |  | 
 | 
											
												
													
														|  | -              round
 |  | 
 | 
											
												
													
														|  | -              native-type="submit"
 |  | 
 | 
											
												
													
														|  | -              disabled={this.submitLoading}
 |  | 
 | 
											
												
													
														|  | -            >
 |  | 
 | 
											
												
													
														|  | -              <img src={btnBg} />
 |  | 
 | 
											
												
													
														|  | -            </Button>
 |  | 
 | 
											
												
													
														|  | -          </div>
 |  | 
 | 
											
												
													
														|  | -        </ColSticky>
 |  | 
 | 
											
												
													
														|  | 
 |  | +        {/* <ColSticky position="bottom" background="transparent"> */}
 | 
											
												
													
														|  | 
 |  | +        <div class={[styles['button-area']]}>
 | 
											
												
													
														|  | 
 |  | +          <Button
 | 
											
												
													
														|  | 
 |  | +            type="primary"
 | 
											
												
													
														|  | 
 |  | +            block
 | 
											
												
													
														|  | 
 |  | +            round
 | 
											
												
													
														|  | 
 |  | +            native-type="submit"
 | 
											
												
													
														|  | 
 |  | +            disabled={this.submitLoading}
 | 
											
												
													
														|  | 
 |  | +          >
 | 
											
												
													
														|  | 
 |  | +            <img src={btnBg} />
 | 
											
												
													
														|  | 
 |  | +          </Button>
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  | 
 |  | +        {/* </ColSticky> */}
 | 
											
												
													
														|  |          {/* <Popup
 |  |          {/* <Popup
 | 
											
												
													
														|  |            show={this.showPicker}
 |  |            show={this.showPicker}
 | 
											
												
													
														|  |            round
 |  |            round
 | 
											
										
											
												
													
														|  | @@ -1023,7 +1049,7 @@ export default defineComponent({
 | 
											
												
													
														|  |            round
 |  |            round
 | 
											
												
													
														|  |            closeable
 |  |            closeable
 | 
											
												
													
														|  |            position="bottom"
 |  |            position="bottom"
 | 
											
												
													
														|  | -          style={{ height: '60%' }}
 |  | 
 | 
											
												
													
														|  | 
 |  | +          style={{ height: '35%' }}
 | 
											
												
													
														|  |            teleport="body"
 |  |            teleport="body"
 | 
											
												
													
														|  |            onUpdate:show={val => (this.tagVisibility = val)}
 |  |            onUpdate:show={val => (this.tagVisibility = val)}
 | 
											
												
													
														|  |          >
 |  |          >
 | 
											
										
											
												
													
														|  | @@ -1043,6 +1069,9 @@ export default defineComponent({
 | 
											
												
													
														|  |            type={this.messageTipType}
 |  |            type={this.messageTipType}
 | 
											
												
													
														|  |            show={this.messageTipStatus}
 |  |            show={this.messageTipStatus}
 | 
											
												
													
														|  |            onConfirm={() => {
 |  |            onConfirm={() => {
 | 
											
												
													
														|  | 
 |  | +            if (this.messageTipType === 'upload') {
 | 
											
												
													
														|  | 
 |  | +              localStorage.setItem('isCatchTip', '1')
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |              this.messageTipStatus = false
 |  |              this.messageTipStatus = false
 | 
											
												
													
														|  |            }}
 |  |            }}
 | 
											
												
													
														|  |          />
 |  |          />
 |