feat: 新增首页IP交互

This commit is contained in:
duanshuwen
2025-11-05 20:34:02 +08:00
parent fad25e951c
commit 19c21d2510
5 changed files with 87 additions and 16 deletions

View File

@@ -4,10 +4,20 @@
<!-- 隐藏 -->
<view class="flex-full h-full flex flex-items-center flex-justify-center">
<!-- 需要添加的image-animated动画 -->
<image class="w-32 h-32" :src="logoImageUrl" mode="aspectFit" />
<!-- 需要添加的text-animated动画 -->
<text class="font-size-14 font-500 color-171717 ml-10">沐沐</text>
<!-- ChatTopWelcome不在可视区显示并添加动画在可视区隐藏 -->
<image
v-show="show"
class="w-32 h-32"
:class="{ 'image-animated': show }"
:src="logoImageUrl"
mode="aspectFit"
/>
<text
v-show="show"
class="font-size-14 font-500 color-171717 ml-10"
:class="{ 'text-animated': show }"
>沐沐</text
>
</view>
<view class="w-24 h-24"></view>
@@ -15,7 +25,7 @@
</template>
<script setup>
import { defineProps, computed } from "vue";
import { ref, defineProps, computed, defineExpose } from "vue";
const props = defineProps({
mainPageDataModel: {
@@ -24,11 +34,15 @@ const props = defineProps({
},
});
const show = ref(false);
const logoImageUrl = computed(
() => props.mainPageDataModel.initPageImages?.logoImageUrl
);
const showDrawer = () => uni.$emit("SHOW_DRAWER");
defineExpose({ show });
</script>
<style lang="scss" scoped>