tm-callback-listpage.vue 682 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="tm-callback-listpage" @click="callback">
  3. <image src="../../static/top-icon.png"></image>
  4. </view>
  5. </template>
  6. <script>
  7. /**
  8. * tm-callback-listpage
  9. * 返回列表页的悬浮按钮
  10. */
  11. export default {
  12. data() {
  13. return {
  14. };
  15. },
  16. methods: {
  17. callback: function() {
  18. // uni.redirectTo({url: `/pages/situationsCenter/situationsCenter`});
  19. uni.reLaunch({
  20. url: '/pages/situationsCenter/situationsCenter'
  21. });
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="less">
  27. .tm-callback-listpage {
  28. position: fixed;
  29. left: 25rpx;
  30. bottom: 100rpx;
  31. width: 75rpx;
  32. height: 75rpx;
  33. image {
  34. width: 100%;
  35. height: 100%;
  36. }
  37. }
  38. </style>