city.vue 803 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view class="">
  3. <city-select @back_city="back_city" @selectCity="selectCity"></city-select>
  4. </view>
  5. </template>
  6. <script>
  7. import citySelect from '../../components/linzq-citySelect/linzq-citySelect.vue'
  8. export default {
  9. data() {
  10. return {
  11. }
  12. },
  13. mounted(){
  14. this.getData()
  15. },
  16. methods: {
  17. getData(){
  18. this.http.httpRequest('/admin/staff/shop_list','get',{lat:0,lng:0},true).then((res)=>{
  19. console.log(res)
  20. console.log('11')
  21. })
  22. },
  23. //选择城市
  24. back_city(data) {
  25. console.log(data)
  26. uni.navigateTo({
  27. url: "./selectHouse"
  28. })
  29. },
  30. // 选择当前定位城市
  31. selectCity(data) {
  32. console.log(data)
  33. uni.navigateTo({
  34. url: "./selectHouse"
  35. })
  36. }
  37. },
  38. components: {
  39. citySelect
  40. },
  41. }
  42. </script>
  43. <style>
  44. </style>