back.vue 551 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <view>
  3. <view class="back-icon" @click="back()">
  4. <u-icon name="arrow-left" color="#ffffff" size="25px" class="arrow"></u-icon>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. }
  13. },
  14. onLoad() {
  15. },
  16. methods: {
  17. back() {
  18. uni.navigateBack()
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="scss" scoped>
  24. .back-icon {
  25. width: 80rpx;
  26. height: 80rpx;
  27. border-radius: 50%;
  28. background-color:transparent;
  29. margin-left: 20rpx;
  30. .arrow{
  31. text-align: center;
  32. padding: 15rpx 12rpx;
  33. }
  34. }
  35. </style>