custowstyle.vue 779 Bytes
Newer Older
王建威's avatar
王建威 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<template>
	<view class="customer_content" :class="style_setting.padding_type === 1 ? 'need_padding' : ''" :style="[{'border-radius': style_setting.border_radius*2+'rpx','height': style_setting.height*2+'rpx'}, style_setting.bg_show ? {'background-image': 'url('+style_setting.bg_url+')'} : {'background-color': style_setting.bg_color}]" @click="style_setting.link ? $jump(style_setting.link) : null">
		
	</view>
</template>

<script>
	export default {
		props: {
			wrapper_props: {
				type: Object
			}
		},
		data() {
			return {
				style_setting: this.wrapper_props.style_setting
			}
		}
	}
</script>

<style lang="less">
	.customer_content {
		background-repeat: no-repeat;
		background-size: 100% 100%;
	}
	.need_padding {
		width: 93.6%;
		margin: 0 auto;
	}
</style>