|
@@ -3,9 +3,19 @@ import App from './App'
|
|
|
|
|
|
Vue.config.productionTip = false
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
|
|
+// 打开App
|
|
|
|
+Vue.prototype.openApp = function () {
|
|
|
|
+ const res = uni.getSystemInfoSync()
|
|
|
|
+ if (res.platform === 'ios') {
|
|
|
|
+ window.location.href = 'MKROhPlay://'
|
|
|
|
+ } else {
|
|
|
|
+ window.location.href = 'airsmart://com.muzen.radioplayer:8888/main'
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
App.mpType = 'app'
|
|
App.mpType = 'app'
|
|
|
|
|
|
const app = new Vue({
|
|
const app = new Vue({
|
|
...App
|
|
...App
|
|
})
|
|
})
|
|
-app.$mount()
|
|
|
|
|
|
+app.$mount()
|