新增tips组件
This commit is contained in:
parent
d81ed47f28
commit
cb4a10d8ed
|
@ -0,0 +1,68 @@
|
||||||
|
<template>
|
||||||
|
<view class="tips">
|
||||||
|
<text
|
||||||
|
class="iconfont icon-tixing"
|
||||||
|
:class="[icon]"
|
||||||
|
:style="{ color: iconColor }"
|
||||||
|
></text>
|
||||||
|
<text
|
||||||
|
class="text-container limit-line clamp-1"
|
||||||
|
:style="{ color: textColor }"
|
||||||
|
>
|
||||||
|
{{ text }}
|
||||||
|
</text>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "widgets-tips",
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
icon: {
|
||||||
|
type: String,
|
||||||
|
default: "icon-tixing",
|
||||||
|
},
|
||||||
|
iconColor: {
|
||||||
|
type: String,
|
||||||
|
default: "#ffa800",
|
||||||
|
},
|
||||||
|
text: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
textColor: {
|
||||||
|
type: String,
|
||||||
|
default: "#a0a0a0",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
components: {},
|
||||||
|
created() {},
|
||||||
|
mounted() {},
|
||||||
|
destroyed() {},
|
||||||
|
methods: {},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.tips {
|
||||||
|
width: 710rpx;
|
||||||
|
height: 75rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #ffffff;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 10rpx;
|
||||||
|
.iconfont {
|
||||||
|
font-size: 40rpx;
|
||||||
|
margin-right: 26rpx;
|
||||||
|
}
|
||||||
|
.text-container {
|
||||||
|
font-size: 22rpx;
|
||||||
|
line-height: 22rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -5,12 +5,7 @@
|
||||||
textColor="dark"
|
textColor="dark"
|
||||||
backgroundColor="#F6F6F6"
|
backgroundColor="#F6F6F6"
|
||||||
>
|
>
|
||||||
<view class="tips">
|
<widget-tips text="保险公司承保,人身财产,双重保障,下单无忧!" />
|
||||||
<text class="iconfont icon-tixing"></text>
|
|
||||||
<text class="text-container">
|
|
||||||
保险公司承保,人身财产,双重保障,下单无忧!
|
|
||||||
</text>
|
|
||||||
</view>
|
|
||||||
<view class="form-container">
|
<view class="form-container">
|
||||||
<view class="select-group">
|
<view class="select-group">
|
||||||
<view class="select-item address" @click="selectAddress">
|
<view class="select-item address" @click="selectAddress">
|
||||||
|
@ -90,6 +85,7 @@ import AppLayout from "@/components/layout/layout";
|
||||||
import ServicePreviewItem from "@/components/service/preview-item";
|
import ServicePreviewItem from "@/components/service/preview-item";
|
||||||
import Agreement from "@/components/auth/agreement";
|
import Agreement from "@/components/auth/agreement";
|
||||||
import WidgetSwitch from "@/components/widgets/switch";
|
import WidgetSwitch from "@/components/widgets/switch";
|
||||||
|
import WidgetTips from "@/components/widgets/tips";
|
||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "order-create",
|
name: "order-create",
|
||||||
|
@ -122,6 +118,7 @@ export default {
|
||||||
ServicePreviewItem,
|
ServicePreviewItem,
|
||||||
Agreement,
|
Agreement,
|
||||||
WidgetSwitch,
|
WidgetSwitch,
|
||||||
|
WidgetTips,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
|
@ -172,26 +169,6 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.tips {
|
|
||||||
width: 710rpx;
|
|
||||||
height: 75rpx;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
background-color: #ffffff;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 0 10rpx;
|
|
||||||
.iconfont {
|
|
||||||
font-size: 40rpx;
|
|
||||||
color: #ffa800;
|
|
||||||
margin-right: 26rpx;
|
|
||||||
}
|
|
||||||
.text-container {
|
|
||||||
color: #a0a0a0;
|
|
||||||
font-size: 22rpx;
|
|
||||||
line-height: 22rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.form-container {
|
.form-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 16rpx;
|
margin-top: 16rpx;
|
||||||
|
|
Loading…
Reference in New Issue