feat(fittingRoom): 添加 Clothespic 组件并集成到试衣间页面
- 创建 Clothespic.vue 组件,包含试穿按钮和样式 - 在 fittingRoom/index.vue 中引入并使用 Clothespic 组件- 调整组件导入顺序以优化代码结构- 添加 uv-button 和 uv-loading-icon 组件模块及相关配置 - 更新组件 changelog、package.json、props.js 和 readme.md 文件 - 实现按钮和加载图标的基础样式与功能配置
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<!--
|
||||
* @Author: liguigong liguigong@shopline.com
|
||||
* @Date: 2025-09-26 19:17:18
|
||||
* @LastEditors: liguigong liguigong@shopline.com
|
||||
* @LastEditTime: 2025-09-26 19:31:15
|
||||
* @FilePath: pages/fittingRoom/components/Clothespic.vue
|
||||
* @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
|
||||
-->
|
||||
<template>
|
||||
<view class="clothes-box">
|
||||
<view></view>
|
||||
<view class="btn" @click="tryItOn">试穿</view>
|
||||
</view>
|
||||
</template>
|
||||
<script setup>
|
||||
function tryItOn() {}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.clothes-box {
|
||||
position: absolute;
|
||||
top: 50rpx;
|
||||
height: 600rpx;
|
||||
right: 30rpx;
|
||||
overflow: hidden;
|
||||
width: 120rpx;
|
||||
z-index: 200;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.btn {
|
||||
height: 48rpx;
|
||||
background: #000;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
line-height: 48rpx;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user