style(fittingRoom): 调整 Clothespic 组件样式和代码格式- 调整 image 标签属性顺序,提高代码可读性- 为试穿按钮添加弹性布局相关样式-修复 tryItOn 方法调用缺少分号的问题
- 更新组件最后编辑时间和编辑者信息
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: liguigong liguigong@shopline.com
|
* @Author: liguigong liguigong@shopline.com
|
||||||
* @Date: 2025-09-26 19:17:18
|
* @Date: 2025-09-26 19:17:18
|
||||||
* @LastEditors:
|
* @LastEditors: liguigong liguigong@shopline.com
|
||||||
* @LastEditTime: 2025-09-27 16:38:42
|
* @LastEditTime: 2025-09-28 16:22:27
|
||||||
* @FilePath: pages/fittingRoom/components/Clothespic.vue
|
* @FilePath: pages/fittingRoom/components/Clothespic.vue
|
||||||
* @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
|
* @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<view class="clothes-box">
|
<view class="clothes-box">
|
||||||
<view v-for="item in fittingRoomStore.currentClothes" class="clothes-pic">
|
<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>
|
||||||
<view class="btn" @click="tryItOn">试穿</view>
|
<view class="btn" @click="tryItOn">试穿</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -19,9 +19,8 @@
|
|||||||
|
|
||||||
const fittingRoomStore = sheep.$store('fittingRoom');
|
const fittingRoomStore = sheep.$store('fittingRoom');
|
||||||
function tryItOn() {
|
function tryItOn() {
|
||||||
fittingRoomStore.tryOn()
|
fittingRoomStore.tryOn();
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.clothes-box {
|
.clothes-box {
|
||||||
@@ -55,5 +54,8 @@
|
|||||||
line-height: 48rpx;
|
line-height: 48rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user