You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="content">
  3. <button class="popup-btn" @tap="popup_bottom()">请选择</button>
  4. <view>{{address}}</view>
  5. <linkAddress
  6. ref="linkAddress"
  7. :height="height"
  8. @confirmCallback="confirmCallback()"
  9. >
  10. </linkAddress>
  11. </view>
  12. </template>
  13. <script>
  14. import linkAddress from '../../components/xuan-linkAddress/xuan-linkAddress.vue'
  15. export default {
  16. components:{
  17. linkAddress
  18. },
  19. data() {
  20. return {
  21. height: '500px',
  22. address:''
  23. }
  24. },
  25. onLoad() {
  26. },
  27. methods: {
  28. //点击弹出弹窗
  29. popup_bottom: function() {
  30. this.height = '550rpx';
  31. //显示
  32. this.show_popup();
  33. },
  34. //显示弹窗
  35. show_popup: function() {
  36. this.$refs.linkAddress.show();
  37. },
  38. //回掉
  39. confirmCallback: function() {
  40. let ads=this.$store.state.user_address;
  41. this.address=ads.province+ads.city+ads.district;
  42. }
  43. }
  44. }
  45. </script>
  46. <style>
  47. .popup-btn{
  48. margin-top: 10px;
  49. }
  50. </style>