c8e651b7a6
支付单改为上传凭证和附件,尾款或全款时提示交易已完结。 Co-authored-by: Cursor <cursoragent@cursor.com>
67 lines
1.3 KiB
Vue
67 lines
1.3 KiB
Vue
<template>
|
|
<el-carousel :height="`${height}rem`" :style="{width: width}" class="m-a">
|
|
<el-carousel-item v-for="(item, index) in list.swiper" :key="item" :style="{width: width}">
|
|
<image class="carousel-img" :src="item" mode="scaleToFill" :style="{width: width}" @click="onClick(index)"/>
|
|
</el-carousel-item>
|
|
</el-carousel>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "CommonSwiper",
|
|
props: {
|
|
page: {
|
|
type: String,
|
|
default: "index"
|
|
},
|
|
height: {
|
|
type: String | Number,
|
|
default: "11"
|
|
},
|
|
width: {
|
|
type: String,
|
|
default: "100%"
|
|
},
|
|
|
|
},
|
|
data() {
|
|
return {
|
|
list: []
|
|
}
|
|
},
|
|
methods: {
|
|
getList() {
|
|
vk.callFunction({
|
|
url: 'client/album/pub/list',
|
|
data: {
|
|
page: this.page
|
|
},
|
|
success: res => {
|
|
this.list = res
|
|
console.log(this.list)
|
|
}
|
|
})
|
|
},
|
|
onClick(index) {
|
|
if (this.list.companyId) vk.navigateTo(`/pages/yellowPage/info?id=${this.list.companyId}`)
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getList()
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.carousel-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
::v-deep .el-carousel__indicators {
|
|
height: 30px !important;
|
|
}
|
|
</style> |