项目初始化

This commit is contained in:
jerry
2025-01-21 01:46:34 +08:00
parent 364021b042
commit 48153e7761
962 changed files with 172070 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<template>
<view class="photo-box">
<scroll-view scroll-x>
<view class="scroll-box">
<view class="img-box" @click="showImage(item)" v-for="(item,index) in dataList">
<u-image border-radius="20" width="170rpx" height="170rpx" :src="item"></u-image>
</view>
</view>
</scroll-view>
</view>
</template>
<script>
export default {
components: {
},
props: {
dataList: {
type: Array,
default: [],
},
},
data() {
return {
}
},
methods: {
showImage(src) {
uni.previewImage({
indicator: "none",
current: src,
urls: this.dataList,
});
},
}
}
</script>
<style lang="scss" scoped>
.photo-box {
.scroll-box {
display: flex;
}
.img-box {
margin-right: 15px;
}
}
</style>