|
@@ -248,6 +248,7 @@ import Swiper from 'swiper/swiper-bundle.esm.js'
|
|
import 'swiper/swiper-bundle.css'
|
|
import 'swiper/swiper-bundle.css'
|
|
import bgImg from "@/assets/images/bg.png"
|
|
import bgImg from "@/assets/images/bg.png"
|
|
import titleBottomLine from "@/assets/images/title-bottom-line.png"
|
|
import titleBottomLine from "@/assets/images/title-bottom-line.png"
|
|
|
|
+import { deepProcess } from "@/utils/other.js"
|
|
// import browser from "@/utils/browser";
|
|
// import browser from "@/utils/browser";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -358,9 +359,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ changeSubStr(str) {
|
|
|
|
+ return str.replace('https://super.4dage.com/', process.env.VUE_APP_G_PREFIX)
|
|
|
|
+ },
|
|
async getData() {
|
|
async getData() {
|
|
- let url = `https://super.4dage.com/data/${this.$route.query.id}/hot/js/data.js?time=${Math.random()}`
|
|
|
|
|
|
+ let url = `${process.env.VUE_APP_G_PREFIX}/data/${this.$route.query.id}/hot/js/data.js?time=${Math.random()}`
|
|
let result = (await this.$http.get(url)).data
|
|
let result = (await this.$http.get(url)).data
|
|
|
|
+ deepProcess(result, this.changeSubStr)
|
|
|
|
+
|
|
this.hotspotData = result[this.$route.query.m]
|
|
this.hotspotData = result[this.$route.query.m]
|
|
if (!this.hotspotData) {
|
|
if (!this.hotspotData) {
|
|
return alert("热点解析错误")
|
|
return alert("热点解析错误")
|