selectType.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="div">
  3. <view class="content">
  4. <view class="type">
  5. <view class="type_item" v-for="(item,index) in selectLocality" :key="index" @click="transmitType(item)">
  6. {{item.label}}
  7. </view>
  8. </view>
  9. <view class="btn" @click="cut">
  10. 取消
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'selectType',
  18. data() {
  19. return {
  20. selectLocality: [{
  21. value: 1,
  22. label: '个人独资'
  23. },
  24. {
  25. value: 2,
  26. label: '个体工商户'
  27. },
  28. {
  29. value: 3,
  30. label: '有限责任公司'
  31. },
  32. {
  33. value: 4,
  34. label: '股份责任公司'
  35. },
  36. {
  37. value: 1,
  38. label: '合伙企业'
  39. }
  40. ],
  41. }
  42. },
  43. methods:{
  44. transmitType(item){
  45. this.$emit('transmitType',{value: item.value, label: item.label})
  46. },
  47. cut(){
  48. this.$emit('cutPopup')
  49. }
  50. }
  51. }
  52. </script>
  53. <style scoped lang="scss">
  54. .div {
  55. width: 100vw;
  56. height: 100vh;
  57. background: rgba(0, 0, 0, 0.4);
  58. position: fixed;
  59. top: 0;
  60. left: 0;
  61. display: flex;
  62. align-items: end;
  63. .content {
  64. width: 100%;
  65. border-radius: 20rpx 20rpx 0px 0px;
  66. overflow-y: hidden;
  67. .type {
  68. width: 100%;
  69. height: 455rpx;
  70. margin-bottom: 20rpx;
  71. background-color: #fff;
  72. display: flex;
  73. flex-direction: column;
  74. justify-content: space-between;
  75. .type_item{
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. flex: 1;
  80. }
  81. }
  82. .btn {
  83. width: 100%;
  84. height: 114rpx;
  85. background-color: #fff;
  86. font-weight: 500;
  87. font-size: 32rpx;
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. }
  92. }
  93. }
  94. </style>