1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template>
- <uni-popup ref="SelectMap" :isMaskClick='true' type="bottom" border-radius="10px 10px 0 0"
- maskBackgroundColor='rgba(0, 0, 0, 0.1)'>
- <view class="map-list">
- <view class="title">请选择问题分类</view>
- <view class="map-item" @click.stop="handlerFeedbackType(item.value)" v-for="item in list">
- {{item.label }}
- </view>
- <view class="map-item cancel">
- 取消
- </view>
- </view>
- </uni-popup>
- </template>
- <script>
- export default {
- props: {
- list: {
- type: Array,
- default: () => []
- }
- },
- data() {
- return {
- };
- },
- created() {
-
- },
- mounted() {
- // setTimeout(() => {
- // this.open()
- // }, 200)
- },
- methods: {
- open() {
- this.$refs.SelectMap.open()
- },
- close() {
- this.$refs.SelectMap.close()
- },
- handlerFeedbackType(val) {
- this.$emit("chang" , val)
- this.close()
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .map-list {
- width: 100%;
- // height: 30vh;
- background-color: #fff;
- border-radius: 20rpx 20rpx 0 0;
- text-align: center;
- .title {
- width: 100%;
- text-align: center;
- padding: 30rpx 20rpx 50rpx 20rpx;
- font-size: 28rpx;
- }
- .map-item {
- width: 100%;
- padding: 30rpx 20rpx;
- }
- .cancel {
- padding: 50rpx 30rpx;
- }
- }
- </style>
|