selectCity.vue 590 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view class="container">
  3. <view>定位</view>
  4. <citySelect @back_city="back_city"></citySelect>
  5. </view>
  6. </template>
  7. <script>
  8. import citySelect from '@/components/linzq-citySelect/linzq-citySelect.vue';
  9. export default {
  10. components: {
  11. citySelect
  12. },
  13. data() {
  14. return {
  15. }
  16. },
  17. methods: {
  18. back_city(e) {
  19. if (e !== 'no') {
  20. this.region = e.cityName
  21. this.$refs.popupRef.close();
  22. } else {
  23. this.$refs.popupRef.close();
  24. }
  25. }
  26. }
  27. }
  28. </script>
  29. <style>
  30. .container {
  31. padding: 20px;
  32. font-size: 14px;
  33. line-height: 24px;
  34. }
  35. </style>