|
|
@@ -271,12 +271,24 @@ const cutThreeTab = (id, num) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+import { showToast } from "vant";
|
|
|
+import 'vant/lib/index.css';
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
window.addEventListener("message", (e) => {
|
|
|
if (e.data.source === "modelSuccItem") {
|
|
|
// 拼接模型成功,接受 unity的消息 取消 模型的选中ui效果
|
|
|
elementActive.value = "";
|
|
|
}
|
|
|
+ if (e.data.source === "modelSuccColor") {
|
|
|
+ // 没有拼接,直接上色
|
|
|
+ console.log("没有拼接,直接上色");
|
|
|
+ }
|
|
|
+ if (e.data.source === "showTouchErrorTips") {
|
|
|
+ // 没有拼接,直接上色
|
|
|
+ showToast("位置错误");
|
|
|
+ console.log("拼接模型,位置不对");
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
</script>
|
|
|
@@ -326,7 +338,7 @@ onMounted(() => {
|
|
|
height: 100%;
|
|
|
|
|
|
> li {
|
|
|
- opacity: .8;
|
|
|
+ opacity: 0.8;
|
|
|
color: #706764;
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
@@ -472,7 +484,7 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
&.active {
|
|
|
- border: 2px solid #3D4A51;
|
|
|
+ border: 2px solid #3d4a51;
|
|
|
}
|
|
|
|
|
|
&.colorActive {
|