custowstyle.vue 786 Bytes
Newer Older
王建威's avatar
王建威 committed
1
<template>
王建威's avatar
王建威 committed
2
	<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">
王建威's avatar
王建威 committed
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
		
	</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 {
王建威's avatar
王建威 committed
28
		width: 702rpx;
王建威's avatar
王建威 committed
29 30 31
		margin: 0 auto;
	}
</style>