新增部分页面按钮

This commit is contained in:
唐明明
2021-09-27 14:57:48 +08:00
parent 90f6498207
commit 02a27907cc
2 changed files with 85 additions and 23 deletions

View File

@@ -48,6 +48,9 @@
<view class="sub-title">暂无相关优惠券</view>
</view>
</block>
<view class="basisc-btn">
<button class="btn" type="default" @click="$Router.push({name: 'couponsAdd'})">添加优惠券</button>
</view>
</view>
</template>
@@ -94,14 +97,35 @@
})
})
}
},
onNavigationBarButtonTap() {
this.$Router.push({name: 'couponsAdd'})
}
}
</script>
<style lang="scss" scoped>
// 按钮组
.basisc-btn{
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: $padding;
background: white;
box-shadow: 0 0 4rpx 4rpx rgba($color: #000000, $alpha: .02);
.btn {
background: $mian-color;
color: white;
border-radius: 0;
font-size: $title-size-lg;
line-height: 88rpx;
height: 88rpx;
&::after {
border: none;
}
&[disabled] {
background: rgba($color: $mian-color, $alpha: .6);
}
}
}
// tabs
.header{
position: fixed;