Myorderlist.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view>
  3. <customNav :shownav="true" :title="$t('order.wodedingdan')" tinColor="#006AFF" jiantou="0" titledetl=''></customNav>
  4. <view class="toptalbar">
  5. <view v-for="(item,index) in tableList">
  6. <text :class="index==toptableindex?'tableLab tableselect':'tableLab'" :style="" @click="tableselct(item.value,index)">{{item.text}}</text>
  7. </view>
  8. </view>
  9. <view class="">
  10. <myorderItem style="width: 100%;" :orderObj="dataList"></myorderItem>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. tableList:[],
  19. toptableindex:0,
  20. dataList:[]
  21. }
  22. },
  23. onLoad() {
  24. this.tableList=[
  25. { value: 0, text: this.$t('order.ridingdan') },
  26. { value: 1, text: this.$t('order.yuedingdan')},
  27. ];
  28. this.dataList=[
  29. { date:this.$t('order.jintian'), dateds:'' },
  30. { date: this.$t('order.zuotian'), dateds:'07-13'},
  31. { date:this.$t('order.benyue'), dateds:'07-1'+this.$t('order.zhi')+'07-13' },
  32. { date: '6'+this.$t('order.yue'), dateds:''},
  33. ];
  34. },
  35. methods: {
  36. tableselct(id,index){
  37. this.toptableindex=index;
  38. //this.state = id;
  39. //this.getorderList(1,id);
  40. },
  41. }
  42. }
  43. </script>
  44. <style>
  45. .toptalbar{
  46. width: 100%;
  47. display: flex;
  48. flex-direction: row;
  49. justify-content:flex-start;
  50. align-items:center;
  51. background-color:white;
  52. padding-top: 30rpx;
  53. height: 70rpx;
  54. padding-left: 6rpx;
  55. padding-right: 12rpx;
  56. }
  57. .tableLab{
  58. width: 20%;
  59. text-align:center;
  60. margin-left: 50rpx;
  61. margin-right: 50rpx;
  62. font-size: 26rpx;
  63. color: dimgray;
  64. }
  65. .tableselect{
  66. border-bottom-width: 6rpx;
  67. border-bottom-style:solid;
  68. border-bottom-color:#006AFF;
  69. color: #006AFF;
  70. font-size: 32rpx;
  71. }
  72. </style>