index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="content">
  3. <view class="order-title"><text>订单选择</text></view>
  4. <view class="title">请选择订单类型</view>
  5. <view class="tip">请您选择您需要查看的订单类型</view>
  6. <view class="order" @click="nav('/pages/order/order1?state=0')">
  7. <image src="../../static/img/order1.png" mode=""></image>
  8. </view>
  9. <view class="order" @click="nav('/pages/order/order')">
  10. <image src="../../static/img/order2.png" mode=""></image>
  11. </view>
  12. <view class="order" @click="nav('/pages/order/tihuoOrder')">
  13. <image src="../../static/img/order3.png" mode=""></image>
  14. </view>
  15. <u-tabbar activeColor="#f42b4e" v-model="current" :list="tabbar" :mid-button="true"></u-tabbar>
  16. </view>
  17. </template>
  18. <script>
  19. import { tabbar } from '@/utils/tabbar.js';
  20. export default {
  21. data() {
  22. return {
  23. tabbar: tabbar,
  24. current: 1 //底部tabar选中的icon对象
  25. };
  26. },
  27. methods: {
  28. nav(url) {
  29. uni.navigateTo({
  30. url
  31. })
  32. }
  33. }
  34. };
  35. </script>
  36. <style lang="less">
  37. .order-title {
  38. width: 750rpx;
  39. height: 200rpx;
  40. background: url(../../static/img/order99.png) repeat-x 0;
  41. display: flex;
  42. flex-direction: column;
  43. text-align: center;
  44. text {
  45. margin: 30px 0;
  46. font-size: 17px;
  47. font-family: PingFang SC;
  48. font-weight: bold;
  49. color: #ffffff;
  50. }
  51. .roder-content {
  52. display: flex;
  53. justify-content: space-around;
  54. .left {
  55. width: 168px;
  56. height: 40px;
  57. line-height: 40px;
  58. border: 1px solid #ffffff;
  59. border-radius: 5px;
  60. text-align: center;
  61. font-size: 15px;
  62. font-family: PingFang SC;
  63. font-weight: bold;
  64. color: #ffffff;
  65. background: #dc262b;
  66. }
  67. .current {
  68. color: #dc262b;
  69. background: #ffffff;
  70. }
  71. }
  72. }
  73. .title {
  74. margin: 80rpx 34rpx 0;
  75. font-size: 42rpx;
  76. font-family: PingFang SC;
  77. font-weight: bold;
  78. color: #000000;
  79. }
  80. .tip {
  81. margin: 26rpx 34rpx 50rpx;
  82. font-size: 28rpx;
  83. font-family: PingFang SC;
  84. font-weight: bold;
  85. color: #9F9F9F;
  86. }
  87. .order {
  88. margin: 30rpx auto 0;
  89. width: 700rpx;
  90. height: 184rpx;
  91. box-shadow: 0px 6rpx 30rpx 0px rgba(166, 166, 166, 0.16);
  92. border-radius: 20rpx;
  93. image {
  94. width: 100%;
  95. height: 100%;
  96. }
  97. }
  98. </style>