shaogen1995 il y a 2 ans
Parent
commit
302122dec4

BIN
web/public/program/Build/Build13.data.unityweb


BIN
web/public/program/Build/Build13.framework.js.unityweb


BIN
web/public/program/Build/Build13.wasm.unityweb


+ 16 - 1
web/public/program/index copy.html

@@ -135,6 +135,16 @@
         "*")
     }
 
+    // 拼接模型成功,接受 unity的消息 取消 模型的选中ui效果
+    window.modelSuccItem = () => {
+      window.parent.postMessage({
+          source: 'modelSuccItem',
+          data: true
+        },
+        "*")
+    }
+
+
 
     window.Internal_ShowTouchErrorTips = (data) => {
       console.log('result:', data);
@@ -170,8 +180,8 @@
 
         // 点击子项
         else if (res.data.source === "clickItemBtn") {
+          console.log('选中了子选项', data);
           unityInstance.SendMessage('Main', 'OnClickItem', data);
-          console.log('result:OnClickItem', data);
         }
 
         // 保存
@@ -190,6 +200,11 @@
           unityInstance.SendMessage('Main', 'CallShareImage');
         }
 
+        // 到处逛逛
+        else if (res.data.source === "ShowUserData") {
+          console.log('到处逛逛,用户id:', data);
+          unityInstance.SendMessage('Main', 'ShowUserData', data);
+        }
 
         // 点击编辑
         else if (res.data.source === "OnClickEdit") {

+ 1 - 1
web/public/program/index.html

@@ -202,7 +202,7 @@
 
         // 到处逛逛
         else if (res.data.source === "ShowUserData") {
-          console.log('到处逛逛,用户id:', data);
+          console.log('到处逛逛,用户id:', data, '不知道为啥报错??');
           unityInstance.SendMessage('Main', 'ShowUserData', data);
         }
 

+ 5 - 5
web/src/views/Integral.vue

@@ -35,7 +35,7 @@
       </ul>
     </div>
 
-    <div class="center-area" @click="toggleLike">
+    <div class="center-area" @click="toggleLike" v-show="active.id">
       <img
         :src="`${config.cdn_url}images/icon_like2_${
           current.isLike ? 'active' : 'normal'
@@ -82,7 +82,7 @@ const onClickItem = (item) => {
   getLikeStatus(item);
 
   // 切换模型
-  postMsg("ShowUserData", unref(item.id));
+  postMsg("ShowUserData", item.id);
 };
 
 const getLikeStatus = async (item) => {
@@ -252,12 +252,12 @@ watch(
           position: relative;
           background: linear-gradient(
             90deg,
-            #404C53 0%,
+            #404c53 0%,
             rgba(64, 76, 83, 0) 100%
           );
 
           .like {
-            color: #3D4A51;
+            color: #3d4a51;
           }
         }
       }
@@ -287,7 +287,7 @@ watch(
       border-radius: 50%;
       overflow: hidden;
       display: inline-block;
-      background: #3D4A51;
+      background: #3d4a51;
       color: #fff;
       box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.3);
     }