Browse Source

feat: www /zfb 自动切换

jinx 4 years ago
parent
commit
392042a6df
1 changed files with 8 additions and 8 deletions
  1. 8 8
      socket.js

+ 8 - 8
socket.js

@@ -64,14 +64,14 @@ export default {
       sponsor = false
     }
     // remote.viewHost
-    // let hostUrl
-    // if(options.url.indexOf('www.4dkankan.com')!=-1){
-    //   hostUrl ='https://www.4dkankan.com'
-    // }else{
-    //   hostUrl ='https://zfb.4dkankan.com'
-    // }
-    let base = remote.viewHost + '/shop-container/fashilong.html?env=' + remote.env + '&sponsor=' + sponsor + '&many=' + this.data.many
-    // let base = hostUrl + '/shop-container/fashilong.html?env=' + remote.env + '&sponsor=' + sponsor + '&many=' + this.data.many
+    let hostUrl
+    if(options.url.indexOf('www.4dkankan.com')!=-1){
+      hostUrl ='https://www.4dkankan.com/shop-container-zfb/'
+    }else{
+      hostUrl ='https://zfb.4dkankan.com/shop-container/'
+    }
+    // let base = remote.viewHost + '/shop-container/fashilong.html?env=' + remote.env + '&sponsor=' + sponsor + '&many=' + this.data.many
+    let base = hostUrl + 'fashilong.html?env=' + remote.env + '&sponsor=' + sponsor + '&many=' + this.data.many
     // let base = remote.viewHost + '/shop.html'
 
     this.data.reload = false