|
@@ -7,15 +7,32 @@ import qs from 'query-string';
|
|
|
import student from './images/student-center.png';
|
|
|
import teacher from './images/teacher-center.png';
|
|
|
import manage from './images/manage-center.png';
|
|
|
+import request from '@/helpers/request';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'download-transfer',
|
|
|
data() {
|
|
|
return {
|
|
|
- wxStatus: false
|
|
|
+ wxStatus: false,
|
|
|
+ androidUrl: ''
|
|
|
};
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ async mounted() {
|
|
|
+ try {
|
|
|
+ const { data } = await request.get(
|
|
|
+ '/edu-app/open/appVersionInfo/queryLatestByPlatform',
|
|
|
+ {
|
|
|
+ params: {
|
|
|
+ platform: 'android-student',
|
|
|
+ status: 'history'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ this.androidUrl = data.downloadUrl;
|
|
|
+ } catch (e) {
|
|
|
+ //
|
|
|
+ console.log(e);
|
|
|
+ }
|
|
|
const { pn, url, action, pageTag, ...rest } = this.$route.query;
|
|
|
const { origin, pathname } = location;
|
|
|
let tempPathname = pathname;
|
|
@@ -60,11 +77,10 @@ export default defineComponent({
|
|
|
if (location.origin.indexOf('kt.colexiu.com') > -1) {
|
|
|
urlIos =
|
|
|
'https://apps.apple.com/us/app/%E9%9F%B3%E4%B9%90%E6%95%B0%E5%AD%97%E8%AF%BE%E5%A0%82/id6452725878';
|
|
|
- urlAndroid =
|
|
|
- 'https://oss.dayaedu.com/appstore/kt_cooleshow_student.apk';
|
|
|
+ urlAndroid = this.androidUrl; //'https://oss.dayaedu.com/appstore/kt_cooleshow_student.apk';
|
|
|
} else {
|
|
|
urlIos = 'https://www.pgyer.com/dzRRNN';
|
|
|
- urlAndroid = 'https://www.pgyer.com/2meenh';
|
|
|
+ urlAndroid = this.androidUrl; //'https://www.pgyer.com/2meenh';
|
|
|
}
|
|
|
|
|
|
if (
|