transfer-legacy.861b8461.js 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. !(function () {
  2. var t = ['pn', 'url', 'action', 'pageTag']
  3. function e(t, e) {
  4. var n = Object.keys(t)
  5. if (Object.getOwnPropertySymbols) {
  6. var r = Object.getOwnPropertySymbols(t)
  7. e &&
  8. (r = r.filter(function (e) {
  9. return Object.getOwnPropertyDescriptor(t, e).enumerable
  10. })),
  11. n.push.apply(n, r)
  12. }
  13. return n
  14. }
  15. function n(t, e, n) {
  16. return (
  17. e in t
  18. ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 })
  19. : (t[e] = n),
  20. t
  21. )
  22. }
  23. function r(t, e) {
  24. if (null == t) return {}
  25. var n,
  26. r,
  27. i = (function (t, e) {
  28. if (null == t) return {}
  29. var n,
  30. r,
  31. i = {},
  32. a = Object.keys(t)
  33. for (r = 0; r < a.length; r++) (n = a[r]), e.indexOf(n) >= 0 || (i[n] = t[n])
  34. return i
  35. })(t, e)
  36. if (Object.getOwnPropertySymbols) {
  37. var a = Object.getOwnPropertySymbols(t)
  38. for (r = 0; r < a.length; r++)
  39. (n = a[r]),
  40. e.indexOf(n) >= 0 || (Object.prototype.propertyIsEnumerable.call(t, n) && (i[n] = t[n]))
  41. }
  42. return i
  43. }
  44. System.register(
  45. [
  46. './index-legacy.37a26c18.js',
  47. './manage-center-legacy.ba5a75a1.js',
  48. './index-legacy.c75fe8a2.js',
  49. './index-legacy.d552d569.js'
  50. ],
  51. function (i) {
  52. 'use strict'
  53. var a, o, s, c, p, u, l, h, g, y, d, f
  54. return {
  55. setters: [
  56. function (t) {
  57. ;(a = t.d), (o = t.o), (s = t.e), (c = t.c), (p = t.B)
  58. },
  59. function (t) {
  60. ;(u = t.s), (l = t.t), (h = t.m), (g = t.a), (y = t.w)
  61. },
  62. function (t) {
  63. d = t.q
  64. },
  65. function (t) {
  66. f = t.I
  67. }
  68. ],
  69. execute: function () {
  70. i(
  71. 'default',
  72. a({
  73. name: 'download-transfer',
  74. data: function () {
  75. return { wxStatus: !1, type: 'student', buttonText: '下载管乐团学员端' }
  76. },
  77. mounted: function () {
  78. var i = this.$route.query,
  79. a = i.pn,
  80. s = i.url,
  81. c = i.action,
  82. p = i.pageTag,
  83. u = r(i, t),
  84. l = location,
  85. h = l.origin,
  86. g = l.pathname,
  87. y = 'BandMusicTeam://linkUrl=',
  88. f = 'orchestrastudent://html:8888/SplashActivity?url='
  89. 's' === a
  90. ? ((this.type = 'student'),
  91. (this.buttonText = '下载管乐团学员端'),
  92. (g = '/orchestra-student/'),
  93. (y = 'BandMusicTeam://linkUrl='),
  94. (f = 'orchestrastudent://html:8888/SplashActivity?url='))
  95. : 't' === a
  96. ? ((this.type = 'teacher'),
  97. (this.buttonText = '下载管乐团伴学端'),
  98. (g = '/orchestra-teacher/'),
  99. (y = 'BandMusicTeamTeacher://linkUrl='),
  100. (f = 'orchestrateacher://html:8888/SplashActivity?url='))
  101. : 'm' === a &&
  102. ((this.type = 'manage'),
  103. (this.buttonText = '下载管乐团管理端'),
  104. (g = '/orchestra-school/'),
  105. (y = 'BandMusicTeamManager://linkUrl='),
  106. (f = 'orchestramanager://html:8888/SplashActivity?url='))
  107. var w = h + g + '#/'
  108. if (s || c) {
  109. var m = d.stringify(
  110. (function (t) {
  111. for (var r = 1; r < arguments.length; r++) {
  112. var i = null != arguments[r] ? arguments[r] : {}
  113. r % 2
  114. ? e(Object(i), !0).forEach(function (e) {
  115. n(t, e, i[e])
  116. })
  117. : Object.getOwnPropertyDescriptors
  118. ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i))
  119. : e(Object(i)).forEach(function (e) {
  120. Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e))
  121. })
  122. }
  123. return t
  124. })({}, u)
  125. ),
  126. b = { url: (w += s + (m ? '?' + m : '')), action: c || 'h5', pageTag: p || 1 },
  127. O = encodeURIComponent(JSON.stringify(b))
  128. console.log(b, 'iosStr'),
  129. /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)
  130. ? (window.location.href = y + O)
  131. : /(Android)/i.test(navigator.userAgent)
  132. ? (window.location.href = f + O)
  133. : o('请用手机或移动设备打开')
  134. }
  135. },
  136. methods: {
  137. onDownload: function () {
  138. if (s().weixin) this.wxStatus = !0
  139. else {
  140. var t = '',
  141. e = ''
  142. location.origin.indexOf('online.lexiaoya.cn') > -1
  143. ? 'student' === this.type
  144. ? ((t =
  145. 'https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2/id1671474346?uo=4 '),
  146. (e = 'https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-student.apk'))
  147. : 'teacher' === this.type
  148. ? ((t =
  149. 'https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E4%BC%B4%E5%AD%A6%E7%AB%AF/id1670584741?uo=4'),
  150. (e = 'https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-teacher.apk'))
  151. : 'manage' === this.type &&
  152. ((t =
  153. 'https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E7%AE%A1%E7%90%86%E7%AB%AF/id1671473981?uo=4'),
  154. (e = 'https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-manager.apk'))
  155. : 'student' === this.type
  156. ? ((t = 'https://www.pgyer.com/2Wg2'), (e = 'https://www.pgyer.com/9NBz'))
  157. : 'teacher' === this.type
  158. ? ((t = 'https://www.pgyer.com/v5yB'), (e = 'https://www.pgyer.com/BQeE'))
  159. : 'manage' === this.type &&
  160. ((t = 'https://www.pgyer.com/DGrR'), (e = 'https://www.pgyer.com/TEWv')),
  161. s().ios || /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)
  162. ? t && (window.location.href = t)
  163. : /(Android)/i.test(navigator.userAgent)
  164. ? (window.location.href = e)
  165. : o('请用手机或移动设备打开')
  166. }
  167. }
  168. },
  169. render: function () {
  170. var t = this
  171. return c('div', { class: [g.downloadContainer] }, [
  172. 'teacher' !== this.type && 'manage' !== this.type && c(f, { src: u }, null),
  173. 'teacher' === this.type && c(f, { src: l }, null),
  174. 'manage' === this.type && c(f, { src: h }, null),
  175. c('div', { class: g.buttonGroup }, [
  176. c(
  177. p,
  178. {
  179. round: !0,
  180. size: 'large',
  181. color: '#FF8057',
  182. class: g.btn,
  183. onClick: this.onDownload
  184. },
  185. {
  186. default: function () {
  187. return [t.buttonText]
  188. }
  189. }
  190. )
  191. ]),
  192. this.wxStatus &&
  193. c(
  194. 'div',
  195. {
  196. class: g.wxpopup,
  197. onClick: function () {
  198. t.wxStatus = !1
  199. }
  200. },
  201. [c('img', { src: y, alt: '' }, null)]
  202. )
  203. ])
  204. }
  205. })
  206. )
  207. }
  208. }
  209. }
  210. )
  211. })()