custowstyle.vue 786 Bytes
<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+')'} : null, {'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: 702rpx;
		margin: 0 auto;
	}
</style>