home.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="content">
  3. <index :iStatusBarHeight="iStatusBarHeight"></index>
  4. <view class="bTabBox">
  5. <view class="btabLine">
  6. <image class="btabLineImg" src="/static/img/index1.png" mode=""></image>
  7. <view class="btabLineTxt">首页</view>
  8. </view>
  9. <view class="btabLine">
  10. <image class="btabLineImg2" src="/static/img/vin.png" mode=""></image>
  11. </view>
  12. <view class="btabLine">
  13. <image class="btabLineImg" src="/static/img/user2.png" mode=""></image>
  14. <view class="btabLineTxt">我的</view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import index from './index.vue'
  21. export default {
  22. components: {
  23. index
  24. },
  25. data() {
  26. return {
  27. iStatusBarHeight:'',
  28. }
  29. },
  30. onLoad() {
  31. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  32. },
  33. onShow() {
  34. },
  35. methods: {
  36. },
  37. onShareAppMessage(){
  38. }
  39. }
  40. </script>
  41. <style scoped>
  42. .bTabBox{
  43. width: 100vw;
  44. position: fixed;
  45. left: 0;
  46. bottom: 0;
  47. background: #FFFFFF;
  48. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  49. padding-bottom: constant(safe-area-inset-bottom);
  50. padding-bottom: env(safe-area-inset-bottom);
  51. display: flex;
  52. justify-content: space-around;
  53. }
  54. .btabLineImg{
  55. width: 42rpx;height: 42rpx;
  56. }
  57. .btabLineTxt{
  58. font-weight: 400;
  59. font-size: 22rpx;
  60. color: #1A1A1A;
  61. }
  62. .btabLine{
  63. padding-top: 21rpx;
  64. }
  65. .btabLineImg2{
  66. width: 140rpx;height: 140rpx;
  67. margin-top: -70rpx;
  68. }
  69. </style>