|
@@ -5,6 +5,7 @@ Vue.config.productionTip = false
|
|
|
|
|
|
// 打开App
|
|
|
Vue.prototype.openApp = function (page, channel, audioType, audioId) {
|
|
|
+ //
|
|
|
const res = uni.getSystemInfoSync()
|
|
|
var ua = window.navigator.userAgent.toLowerCase();
|
|
|
if (ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/WeiBo/i) == "weibo" || ua.match(/QQ/i) == "qq") {
|
|
@@ -15,7 +16,7 @@ Vue.prototype.openApp = function (page, channel, audioType, audioId) {
|
|
|
})
|
|
|
} else {
|
|
|
if (res.platform === 'ios') {
|
|
|
- window.location.href = 'airsmart://?page=${page}&channel=${channel}&audioType=${audioType}&audioId=${audioId}'
|
|
|
+ window.location.href = `airsmart://?page=${page}&channel=${channel}&audioType=${audioType}&audioId=${audioId}`
|
|
|
} else {
|
|
|
window.location.href = `airsmart://com.muzen.radioplayer:8888/main?page=${page}&channel=${channel}&audioType=${audioType}&audioId=${audioId}`
|
|
|
}
|