|
@@ -1,4 +1,4 @@
|
|
|
-import { defineComponent, onMounted, ref } from 'vue';
|
|
|
+import { defineComponent, ref } from 'vue';
|
|
|
import styles from './index.module.less';
|
|
|
import MHeader from '@/components/m-header';
|
|
|
import img1 from './images/img1.png';
|
|
@@ -7,86 +7,14 @@ import img13 from './images/img-1-3.png';
|
|
|
import img14 from './images/img-1-4.png';
|
|
|
import img21 from './images/img-2-1.png';
|
|
|
import img22 from './images/img-2-2.png';
|
|
|
-import wxBg from './images/wx_bg.png';
|
|
|
+import img3 from './images/img3.png';
|
|
|
import MFooter from '@/components/m-footer';
|
|
|
-import request from '@/helpers/request';
|
|
|
-import { browser } from '@/helpers/utils';
|
|
|
-import { showToast } from 'vant';
|
|
|
+import TheSubmit from '@/components/the-submit';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'colexiu-person',
|
|
|
setup() {
|
|
|
const activeTab = ref<'love' | 'music'>('love');
|
|
|
- const wxStatus = ref(false);
|
|
|
- const studentAndroidUrl = ref('');
|
|
|
- const teacherAndroidUrl = ref('');
|
|
|
-
|
|
|
- onMounted(async () => {
|
|
|
- try {
|
|
|
- const studentRes = await request.get(
|
|
|
- '/api-website/open/appVersionInfo/queryLatestByPlatform',
|
|
|
- {
|
|
|
- params: {
|
|
|
- platform: 'android-student',
|
|
|
- status: 'history'
|
|
|
- }
|
|
|
- }
|
|
|
- );
|
|
|
- studentAndroidUrl.value = studentRes.data?.downloadUrl;
|
|
|
-
|
|
|
- const teacherRes = await request.get(
|
|
|
- '/api-website/open/appVersionInfo/queryLatestByPlatform',
|
|
|
- {
|
|
|
- params: {
|
|
|
- platform: 'android-teacher',
|
|
|
- status: 'history'
|
|
|
- }
|
|
|
- }
|
|
|
- );
|
|
|
- teacherAndroidUrl.value = teacherRes.data?.downloadUrl;
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- // 下载
|
|
|
- const onDownload = (type: string) => {
|
|
|
- if (browser().weixin || navigator.userAgent.indexOf('DingTalk') > -1) {
|
|
|
- wxStatus.value = true;
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- let urlIos = '';
|
|
|
- let urlAndroid = '';
|
|
|
- if (location.origin.indexOf('m.colexiu.com') > -1) {
|
|
|
- if (type === 'student') {
|
|
|
- urlIos = 'https://itunes.apple.com/cn/app/id1626971695?mt=8';
|
|
|
- urlAndroid = studentAndroidUrl.value; // 'https://oss.dayaedu.com/appstore/clx-student-domain.apk'
|
|
|
- } else {
|
|
|
- urlIos = 'https://itunes.apple.com/cn/app/id1626971149?mt=8';
|
|
|
- urlAndroid = teacherAndroidUrl.value; // 'https://oss.dayaedu.com/appstore/clx-teacher-domain.apk'
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (type === 'student') {
|
|
|
- urlIos = 'https://www.pgyer.com/powy';
|
|
|
- urlAndroid = studentAndroidUrl.value; // 'https://www.pgyer.com/70e7'
|
|
|
- } else {
|
|
|
- urlIos = 'https://www.pgyer.com/iO0m';
|
|
|
- urlAndroid = teacherAndroidUrl.value; // 'https://www.pgyer.com/N2U3'
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (
|
|
|
- browser().ios ||
|
|
|
- /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)
|
|
|
- ) {
|
|
|
- window.location.href = urlIos;
|
|
|
- } else if (/(Android)/i.test(navigator.userAgent)) {
|
|
|
- window.location.href = urlAndroid;
|
|
|
- } else {
|
|
|
- showToast('请用手机或移动设备打开');
|
|
|
- }
|
|
|
- };
|
|
|
|
|
|
return () => (
|
|
|
<div class={styles.person}>
|
|
@@ -225,24 +153,24 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class={[styles.section6]}>
|
|
|
- <div class={styles.sTitle}>
|
|
|
- 立即加入
|
|
|
- <br />
|
|
|
- 与器乐爱好者们分享音乐吧!
|
|
|
- </div>
|
|
|
- <div class={styles.btnGroup}>
|
|
|
- <div
|
|
|
- class={[styles.btn, styles.btnIos]}
|
|
|
- onClick={() => onDownload('student')}></div>
|
|
|
- <div
|
|
|
- class={[styles.btn, styles.btnAndroid]}
|
|
|
- onClick={() => onDownload('teacher')}></div>
|
|
|
+ <div class={styles.section6}>
|
|
|
+ <div class={[styles.title6]}>
|
|
|
+ <span class={styles.blue}>提交</span>合作信息
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class={styles.content}>我们将在提交后尽快与您取得联系</div>
|
|
|
+
|
|
|
+ <TheSubmit type="person" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class={styles.section7}>
|
|
|
+ <div class={[styles.title7]}></div>
|
|
|
+
|
|
|
+ <img src={img3} class={'w100'} />
|
|
|
</div>
|
|
|
<MFooter />
|
|
|
|
|
|
- {wxStatus.value && (
|
|
|
+ {/* {wxStatus.value && (
|
|
|
<div
|
|
|
class={styles.wxpopup}
|
|
|
onClick={() => {
|
|
@@ -250,7 +178,7 @@ export default defineComponent({
|
|
|
}}>
|
|
|
<img src={wxBg} alt="" />
|
|
|
</div>
|
|
|
- )}
|
|
|
+ )} */}
|
|
|
</div>
|
|
|
);
|
|
|
}
|