推广小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.6 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view class="page">
  3. <view class="head-box"></view>
  4. <uv-navbar title="我的订单" bgColor="transparent" height="100rpx"></uv-navbar>
  5. <view class="content">
  6. <uv-tabs
  7. :scrollable="false"
  8. @click= "tabs"
  9. :list="list"
  10. lineWidth="40"
  11. :lineColor="`url(${lineBg}) 100% 100%`"
  12. :activeStyle="{
  13. color: '#FD5C5C',
  14. fontWeight: 'bold',
  15. transform: 'scale(1.05)'
  16. }"
  17. :inactiveStyle="{
  18. color: '#999',
  19. transform: 'scale(1)'
  20. }"
  21. itemStyle="padding-left: 15px; padding-right: 15px; height: 44px;"
  22. ></uv-tabs>
  23. <view class="container">
  24. <!-- <CardList /> -->
  25. </view>
  26. </view>
  27. <tabber select="cart" />
  28. </view>
  29. </template>
  30. <script>
  31. import tabber from '@/components/base/tabbar.vue'
  32. // import CardList from '@/components/card/CardList.vue'
  33. export default {
  34. components:{
  35. tabber,
  36. // CardList
  37. },
  38. data() {
  39. return {
  40. list: [
  41. { id: 0, name: '全部' },
  42. { id: 1, name: '待参加' },
  43. { id: 2, name: '已完成' },
  44. { id: 3, name: '已取消' },
  45. ],
  46. lineBg: require('@/static/image/cart/tabIcon.png')
  47. }
  48. },
  49. methods: {
  50. tabs(val) {
  51. console.log(val);
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="scss">
  57. page {
  58. background-color: #060504;
  59. }
  60. </style>
  61. <style scoped lang="scss">
  62. .page {
  63. .head-box {
  64. background: url('@/static/image/nav-bg.png') no-repeat;
  65. background-size: 100% 100%;
  66. width: 100%;
  67. height: 534rpx;
  68. position: absolute;
  69. }
  70. /deep/.uv-navbar__content__title {
  71. color: #fff;
  72. }
  73. .content {
  74. color: #fff;
  75. padding-top: calc(var(--status-bar-height) + 100rpx);
  76. }
  77. }
  78. </style>