Explorar o código

local version

tremble %!s(int64=4) %!d(string=hai) anos
pai
achega
c01346256d
Modificáronse 1 ficheiros con 6 adicións e 13 borrados
  1. 6 13
      src/views/Home.vue

+ 6 - 13
src/views/Home.vue

@@ -172,7 +172,7 @@ export default {
     },
     async getData() {
       // https://www.4dmodel.com/
-      let url = `https://super.4dage.com/data/${
+      let url = `/data/${
         this.id
       }/hot/js/data.js?time=${Math.random()}`;
       let result = (await this.$http.get(url)).data;
@@ -207,20 +207,13 @@ export default {
     fixUrl(item) {
       let condition =
         item.indexOf("http://") > -1 || item.indexOf("https://") > -1;
-      if (this.isMobile) {
-        if (
-          item.indexOf("mp.weixin.qq.com/mp/") > -1 &&
-          this.active === "iframe"
-        ) {
-          return `https://www.4dmodel.com/SuperTwo/hot_online1/linktoWC.html?url=${encodeURIComponent(
-            item
-          )}`;
-        }
-      }
+      let tmp = ''
       if (!condition) {
-        return "https://" + item;
+        tmp = "https://" + item
+        tmp = tmp.replace('https://super.4dage.com','')
+        return tmp;
       }
-      return item;
+      return item.replace('https://super.4dage.com','');
     },
     slideto(action) {
       this.swiper[action]();