123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- import { d as u, a as e, j as i, C as r, B as n } from './vendor.3506a68e.js'
- /* empty css */ import { q as d } from './index.339fc024.js'
- import { r as a, i as m, b as l, p as h } from './index.9e4b607f.js'
- import { i as p, a as _, b } from './icon_discount.202ead11.js'
- import { I as g } from './icon_teacher.cb128c00.js'
- const v = '_musicShare_bcot3_1',
- y = '_header_bcot3_5',
- F = '_btnMore_bcot3_23',
- I = '_section_bcot3_29',
- E = '_music_bcot3_1',
- f = '_discount_bcot3_56',
- A = '_shareTeacher_bcot3_61',
- C = '_teacherImg_bcot3_69',
- D = '_recommend_bcot3_75',
- T = '_img_bcot3_81',
- S = '_name_bcot3_86',
- B = '_titleTips_bcot3_91'
- var t = {
- musicShare: v,
- header: y,
- btnMore: F,
- section: I,
- music: E,
- discount: f,
- shareTeacher: A,
- teacherImg: C,
- recommend: D,
- img: T,
- name: S,
- titleTips: B
- },
- w = u({
- name: 'share-music-sheet',
- data() {
- const s = this.$route.query
- return {
- id: s.id,
- recomUserId: s.recomUserId,
- activityId: s.activityId || 0,
- discounts: 0,
- musicSheet: {},
- teacherName: ''
- }
- },
- async mounted() {
- try {
- const s = await a.post('/api-teacher/open/musicShareProfit', {
- data: { bizId: this.id, userId: this.recomUserId }
- })
- if (
- ((this.musicSheet = s.data.musicSheet || {}),
- (this.teacherName = s.data.name || ''),
- this.activityId)
- ) {
- const c = await a.post(
- `/api-student/open/activity/state/${this.activityId}`,
- { data: {} }
- )
- this.discounts = c.data.check || 0
- }
- } catch {}
- this.onDetail()
- },
- methods: {
- onDetail() {
- const s = m(),
- c = l(),
- o = d.stringifyUrl({
- url: location.origin + '/accompany',
- query: {
- id: this.id,
- recomUserId: this.recomUserId,
- activityId: this.activityId,
- discounts: this.discounts,
- client: c.isTeacher ? 'teacher' : 'student',
- behaviorId: s
- }
- })
- h({
- api: 'openAccompanyWebView',
- content: {
- url: o,
- orientation: 0,
- isHideTitle: !0,
- statusBarTextColor: !1,
- isOpenLight: !0
- }
- })
- }
- },
- render() {
- return e('div', { class: t.musicShare }, [
- e('div', { class: t.header }, [
- e('h2', null, [
- i('\u79D1\u5B66\u7684\u7EC3\u4E60\u6709\u52A9'),
- e('br', null, null),
- i('\u4E8E\u6C34\u5E73\u5FEB\u901F\u63D0\u5347')
- ]),
- e('p', null, [
- i(
- '\u4F60\u7684\u6C34\u5E73\u4E00\u5B9A\u80FD\u9A7E\u9A6D\u8FD9\u9996\u66F2\u5B50\uFF01'
- )
- ])
- ]),
- e('div', { class: t.section }, [
- e('div', { class: t.music }, [
- e('img', { src: p }, null),
- e('div', null, [
- e('h2', null, [this.musicSheet.musicSheetName]),
- e('p', null, [
- i('\u4F5C\u66F2\u4EBA: '),
- this.musicSheet.composer
- ]),
- this.discounts == 1 &&
- e('img', { src: _, class: t.discount }, null)
- ])
- ]),
- e(
- r,
- { center: !0, border: !1, class: t.shareTeacher },
- {
- icon: () =>
- e('div', { class: t.teacherImg }, [
- e(
- 'img',
- {
- src: this.musicSheet.avatar || g,
- class: t.img,
- style: { objectFit: 'cover' },
- crossorigin: 'anonymous'
- },
- null
- ),
- e('img', { class: t.recommend, src: b }, null)
- ]),
- title: () =>
- e('div', null, [
- e('p', { class: t.name }, [
- i(
- '\u8FD9\u4E2A\u66F2\u5B50\u633A\u4E0D\u9519\uFF01\u63A8\u8350\u7ED9\u4F60\uFF5E'
- )
- ]),
- e('p', { class: t.titleTips }, [
- e('span', null, [this.teacherName]),
- i(' \u8001\u5E08\u4E3A\u60A8\u63A8\u8350')
- ])
- ])
- }
- )
- ]),
- e(
- 'div',
- {
- class: ['btnGroup'],
- style: { paddingTop: '60px', margin: '0 28px' }
- },
- [
- e(
- n,
- {
- block: !0,
- round: !0,
- type: 'primary',
- onClick: this.onDetail,
- class: t.btnMore,
- color: 'linear-gradient(180deg, #59E5D5 0%, #01C1B5 100%)'
- },
- {
- default: () => [
- i(
- '\u6253\u5361\u5C0F\u9177Ai\u5F00\u59CB\u7EC3\u4E60\u5427\uFF01'
- )
- ]
- }
- )
- ]
- )
- ])
- }
- })
- export { w as default }
|