shaogen1995 3 years ago
parent
commit
276e0db873
3 changed files with 7 additions and 7 deletions
  1. 4 4
      hot/src/views/Home.vue
  2. 1 1
      web/public/static/js/Hot.js
  3. 2 2
      web/src/pages/Home.vue

+ 4 - 4
hot/src/views/Home.vue

@@ -236,12 +236,12 @@ export default {
     },
     imgSrc(val) {
       //线下调试
-      if (typeof val === "number")
-        return `/data/${this.m}/img/${val}${this.data.suf}`;
+      // if (typeof val === "number")
+      //   return `/data/${this.m}/img/${val}${this.data.suf}`;
 
       //打包
-      // if (typeof val === "number")
-      //   return `/erhai/data/${this.m}/img/${val}${this.data.suf}`;
+      if (typeof val === "number")
+        return `/erhai/data/${this.m}/img/${val}${this.data.suf}`;
 
 
       else return val;

+ 1 - 1
web/public/static/js/Hot.js

@@ -1177,7 +1177,7 @@ window.initHot = function (model) {
             var popup = document.getElementById("popup");
 
             if (openHot) {
-                let tempp ='e7hJg962934,2qk4QTi116699'
+                let tempp ='e7hJg962934,2qk4QTi116699,ibrBT3742057,NIfM5p239840'
                 if(tempp.includes(this.info.sid)){
                     window.player.emit('openGame',this.info.sid)
                     return

+ 2 - 2
web/src/pages/Home.vue

@@ -181,10 +181,10 @@ export default {
         });
 
         window.player.on('openGame',(data)=>{
-          if(data==='e7hJg962934'){
+          if(data==='e7hJg962934'||data==='NIfM5p239840'){
             //打开开心消消乐游戏
           this.$refs.vMenuRef.gameShowFu('Remove');
-          }else if(data==='2qk4QTi116699') {
+          }else if(data==='2qk4QTi116699'||data==='ibrBT3742057') {
             // 打开趣味答题游戏
           this.$refs.vMenuRef.gameShowFu('Issue');
           }