index.vue 570 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class='content'>
  3. <view class='wrap'>
  4. <view></view>
  5. <view>
  6. </view>
  7. </view>
  8. <view style='margin:20rpx;' class='flex justify-space-between'>
  9. <view class='button'>一键刷新</view>
  10. <view @click='add' class='button'>添加民宿</view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. var that
  16. export default {
  17. data() {
  18. return {
  19. }
  20. },
  21. onLoad() {
  22. that = this
  23. },
  24. onShow(){
  25. },
  26. methods: {
  27. add(){
  28. uni.navigateTo({
  29. url:'/pageA/enter/myHomestay/add'
  30. })
  31. }
  32. }
  33. }
  34. </script>
  35. <style>
  36. </style>