.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user