index.vue 1.9 KB

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