style(fittingRoom): 调整 Clothespic 组件样式和代码格式- 调整 image 标签属性顺序,提高代码可读性- 为试穿按钮添加弹性布局相关样式-修复 tryItOn 方法调用缺少分号的问题

- 更新组件最后编辑时间和编辑者信息
This commit is contained in:
liguigong
2025-09-28 16:23:17 +08:00
parent b9d19508ca
commit 5a9dad9a4b
+7 -5
View File
@@ -1,15 +1,15 @@
<!--
* @Author: liguigong liguigong@shopline.com
* @Date: 2025-09-26 19:17:18
* @LastEditors:
* @LastEditTime: 2025-09-27 16:38:42
* @LastEditors: liguigong liguigong@shopline.com
* @LastEditTime: 2025-09-28 16:22:27
* @FilePath: pages/fittingRoom/components/Clothespic.vue
* @Description: 这是默认设置,可以在设置工具File Description中进行配置
-->
<template>
<view class="clothes-box">
<view v-for="item in fittingRoomStore.currentClothes" class="clothes-pic">
<image class="pic" :src="item.fileUrl" mode="aspectFill"></image>
<image :src="item.fileUrl" class="pic" mode="aspectFill"></image>
</view>
<view class="btn" @click="tryItOn">试穿</view>
</view>
@@ -19,9 +19,8 @@
const fittingRoomStore = sheep.$store('fittingRoom');
function tryItOn() {
fittingRoomStore.tryOn()
fittingRoomStore.tryOn();
}
</script>
<style lang="scss" scoped>
.clothes-box {
@@ -55,5 +54,8 @@
line-height: 48rpx;
text-align: center;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
</style>