This commit is contained in:
杨鹏
2025-10-14 11:03:07 +08:00
parent e28858a340
commit c05f6e540d
12 changed files with 66 additions and 27 deletions
+11 -2
View File
@@ -6,7 +6,7 @@
class="record-li"
v-for="(item, idx) in recordList"
:key="item.id"
@click="sheep.$router.go('/pages/user/tryOnPreview', {})"
@click="handleJump(item)"
>
<image :src="item.tryOnResultUrl" mode="widthFix" style="width: 100%" />
</li>
@@ -24,6 +24,14 @@
default: () => [],
},
});
const handleJump = (item) => {
uni.setStorageSync('tryOnId', item.id);
uni.setStorageSync('modelId', item.modelId);
uni.switchTab({
url: `/pages/index/room`,
});
};
</script>
<style lang="scss" scoped>
@@ -52,9 +60,10 @@
margin-top: 50rpx;
.record-li {
width: 25%;
aspect-ratio: 1/1.4;
height: 272rpx;
border: 1px solid #000;
box-sizing: border-box;
overflow: hidden;
}
}
}