SelectClassify.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <uni-popup ref="SelectMap" :isMaskClick='true' type="bottom" border-radius="10px 10px 0 0"
  3. maskBackgroundColor='rgba(0, 0, 0, 0.1)'>
  4. <view class="map-list">
  5. <view class="title">请选择问题分类</view>
  6. <view class="map-item" @click.stop="handlerFeedbackType(item.value)" v-for="item in list">
  7. {{item.label }}
  8. </view>
  9. <view class="map-item cancel">
  10. 取消
  11. </view>
  12. </view>
  13. </uni-popup>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. list: {
  19. type: Array,
  20. default: () => []
  21. }
  22. },
  23. data() {
  24. return {
  25. };
  26. },
  27. created() {
  28. },
  29. mounted() {
  30. // setTimeout(() => {
  31. // this.open()
  32. // }, 200)
  33. },
  34. methods: {
  35. open() {
  36. this.$refs.SelectMap.open()
  37. },
  38. close() {
  39. this.$refs.SelectMap.close()
  40. },
  41. handlerFeedbackType(val) {
  42. this.$emit("chang" , val)
  43. this.close()
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .map-list {
  50. width: 100%;
  51. // height: 30vh;
  52. background-color: #fff;
  53. border-radius: 20rpx 20rpx 0 0;
  54. text-align: center;
  55. .title {
  56. width: 100%;
  57. text-align: center;
  58. padding: 30rpx 20rpx 50rpx 20rpx;
  59. font-size: 28rpx;
  60. }
  61. .map-item {
  62. width: 100%;
  63. padding: 30rpx 20rpx;
  64. }
  65. .cancel {
  66. padding: 50rpx 30rpx;
  67. }
  68. }
  69. </style>