Files
FirstUI-vue/pages/component/layout/arc/arc.vue
2023-08-17 21:28:49 +08:00

59 lines
1.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号1 8 6 1 4 07 2549身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任-->
<template>
<view class="fui-wrap">
<view class="fui-page__hd">
<view class="fui-page__title fui-align__center" @tap="vip">BannerArc <image
src="/static/images/index/light/icon_member_3x.png"></image>
</view>
<view class="fui-page__desc">BannerArc 横幅底部圆弧常用的布局组件</view>
</view>
<view class="fui-page__bd">
<fui-section is-line title="纯背景色" margin-top="32"></fui-section>
<fui-banner-arc background="#465CFF" margin-top="32"></fui-banner-arc>
<fui-section is-line title="渐变背景/调整高度/弧度" margin-top="96"></fui-section>
<!-- ratio 用于调整弧度大小值越大弧度越小 -->
<fui-banner-arc background="linear-gradient(#6831FF,#465CFF)" :height="500" :ratio="1.5"
margin-top="32"></fui-banner-arc>
<fui-section is-line title="图片设置弧度" margin-top="96"></fui-section>
<fui-banner-arc margin-top="32" background="#EDF9FF" height="512" :ratio="1.5">
<image class="fui-banner" src="https://res.firstui.cn/static/images/my/light/img_banner_3x.png" mode="widthFix"></image>
</fui-banner-arc>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
vip() {
this.fui.href("/pages/my/qa/qa?index=2&title=VIP专属内容")
}
}
}
</script>
<style>
.fui-wrap {
padding-bottom: 120rpx;
}
.fui-banner {
width: 750rpx;
height: 512rpx;
/* #ifndef APP-NVUE */
display: block;
/* #endif */
/* #ifdef APP-NVUE */
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 750rpx;
border-bottom-left-radius: 750rpx;
/* #endif */
}
</style>