index.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="left">
  5. <image src="../../static/logo.png" mode="widthFix" class="head-img"></image>
  6. </view>
  7. <view class="right">
  8. <view class="">
  9. achao
  10. </view>
  11. <view class="">
  12. 2022-12-2到期
  13. </view>
  14. </view>
  15. </view>
  16. <jobSelect ref="jobSelect" :listData="listData" @confirem="confiremJob"></jobSelect>
  17. </view>
  18. </template>
  19. <script>
  20. import jobSelect from '@/components/yunmiao-jobSelect/yunmiao-jobSelect.vue'
  21. export default {
  22. components: {
  23. jobSelect
  24. },
  25. data() {
  26. return {
  27. listData: [{
  28. "id": 1,
  29. "name": "餐饮",
  30. "children": [{
  31. "id": 2,
  32. "name": "服务员",
  33. }, {
  34. "id": 3,
  35. "name": "送餐员",
  36. }, {
  37. "id": 4,
  38. "name": "传菜员",
  39. },
  40. {
  41. "id": 5,
  42. "name": "厨师",
  43. }
  44. ]
  45. }, {
  46. "id": 6,
  47. "name": "家政保洁",
  48. "children": [{
  49. "id": 7,
  50. "name": "保洁",
  51. }, {
  52. "id": 8,
  53. "name": "保姆",
  54. }, {
  55. "id": 9,
  56. "name": "月嫂",
  57. }]
  58. }, {
  59. "id": 10,
  60. "name": "美容美发",
  61. "children": [{
  62. "id": 11,
  63. "name": "发型师",
  64. }]
  65. }],
  66. title: ''
  67. }
  68. },
  69. onLoad() {
  70. // this.$refs.jobSelect.show()
  71. },
  72. methods: {
  73. // show() {
  74. // this.$refs.jobSelect.show()
  75. // },
  76. confiremJob(e) {
  77. console.log(e)
  78. uni.navigateTo({
  79. url: "/pages/index/price"
  80. })
  81. }
  82. }
  83. }
  84. </script>
  85. <style>
  86. .content {}
  87. .top {
  88. display: flex;
  89. }
  90. .head-img {
  91. width: 100rpx;
  92. }
  93. </style>