|
@@ -6,6 +6,8 @@ import wxBg from './images/wx_bg.png'
|
|
|
import qs from 'query-string'
|
|
|
import OSticky from '@/components/o-sticky'
|
|
|
import student from './images/student-center.png'
|
|
|
+import teacher from './images/teacher-center.png'
|
|
|
+import manage from './images/manage-center.png'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'download-transfer',
|
|
@@ -24,14 +26,20 @@ export default defineComponent({
|
|
|
let beforeAndroid = 'orchestrastudent://html:8888/SplashActivity?url='
|
|
|
|
|
|
if (pn === 's') {
|
|
|
+ this.type = 'student'
|
|
|
+ this.buttonText = '下载管乐团学生端'
|
|
|
tempPathname = '/orchestra-student/'
|
|
|
beforeIos = 'BandMusicTeam://linkUrl='
|
|
|
beforeAndroid = 'orchestrastudent://html:8888/SplashActivity?url='
|
|
|
} else if (pn === 't') {
|
|
|
+ this.type = 'teacher'
|
|
|
+ this.buttonText = '下载管乐团伴学端'
|
|
|
tempPathname = '/orchestra-teacher/'
|
|
|
beforeIos = 'BandMusicTeamTeacher://linkUrl='
|
|
|
beforeAndroid = 'orchestrateacher://html:8888/SplashActivity?url='
|
|
|
} else if (pn === 'm') {
|
|
|
+ this.type = 'manage'
|
|
|
+ this.buttonText = '下载管乐团管理端'
|
|
|
tempPathname = '/orchestra-school/'
|
|
|
beforeIos = 'BandMusicTeamManager://linkUrl='
|
|
|
beforeAndroid = 'orchestramanager://html:8888/SplashActivity?url='
|
|
@@ -94,7 +102,10 @@ export default defineComponent({
|
|
|
render() {
|
|
|
return (
|
|
|
<div class={[styles.downloadContainer]}>
|
|
|
- <Image src={student} />
|
|
|
+ {/* <Image src={student} /> */}
|
|
|
+ {this.type !== 'teacher' && this.type !== 'manage' && <Image src={student} />}
|
|
|
+ {this.type === 'teacher' && <Image src={teacher} />}
|
|
|
+ {this.type === 'manage' && <Image src={manage} />}
|
|
|
|
|
|
<div class={styles.buttonGroup}>
|
|
|
<Button round size="large" color="#FF8057" class={styles.btn} onClick={this.onDownload}>
|