mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] SubmitBar:优化提交订单栏 (#635)
This commit is contained in:
parent
bd525425ad
commit
5d2b0dd604
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"navigationBarTitleText": "Search 搜索",
|
"navigationBarTitleText": "Radio 单选框",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"demo-block": "../../components/demo-block/index",
|
"demo-block": "../../components/demo-block/index",
|
||||||
"van-radio-group": "../../dist/radio-group/index",
|
"van-radio-group": "../../dist/radio-group/index",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"navigationBarTitleText": "Steps 步骤条",
|
"navigationBarTitleText": "SubmitBar 提交订单栏",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"demo-block": "../../components/demo-block/index",
|
"demo-block": "../../components/demo-block/index",
|
||||||
"van-submit-bar": "../../dist/submit-bar/index",
|
"van-submit-bar": "../../dist/submit-bar/index",
|
||||||
|
@ -2,6 +2,7 @@ import { VantComponent } from '../common/component';
|
|||||||
|
|
||||||
VantComponent({
|
VantComponent({
|
||||||
classes: [
|
classes: [
|
||||||
|
'bar-class',
|
||||||
'price-class',
|
'price-class',
|
||||||
'button-class'
|
'button-class'
|
||||||
],
|
],
|
||||||
@ -9,7 +10,7 @@ VantComponent({
|
|||||||
props: {
|
props: {
|
||||||
tip: [String, Boolean],
|
tip: [String, Boolean],
|
||||||
type: Number,
|
type: Number,
|
||||||
price: Number,
|
price: null,
|
||||||
label: String,
|
label: String,
|
||||||
loading: Boolean,
|
loading: Boolean,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
|
@ -1,42 +1,38 @@
|
|||||||
@import '../common/style/var.pcss';
|
@import '../common/style/var.pcss';
|
||||||
|
|
||||||
.van-submit-bar {
|
.van-submit-bar {
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
&__tip {
|
&__tip {
|
||||||
color: $orange;
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
background-color: #fff7cc;
|
||||||
|
color: $orange;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
background-color: #fff7cc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__bar {
|
&__bar {
|
||||||
height: 50px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: 14px;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
height: 50px;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__text {
|
&__text {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
color: $text-color;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
color: $text-color;
|
|
||||||
padding-right: 12px;
|
|
||||||
|
|
||||||
span {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__price {
|
&__price {
|
||||||
|
padding-right: 12px;
|
||||||
color: $red;
|
color: $red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{{ tipStr }}<slot name="tip" />
|
{{ tipStr }}<slot name="tip" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="van-submit-bar__bar">
|
<view class="van-submit-bar__bar bar-class">
|
||||||
<slot />
|
<slot />
|
||||||
<view class="van-submit-bar__text">
|
<view class="van-submit-bar__text">
|
||||||
<block wx:if="{{ hasPrice }}">
|
<block wx:if="{{ hasPrice }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user