footer-share.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view class="footer-share-box display-around">
  3. <view class="display-flex-start items-center share-font" :style="{'border-right': isCollection ? '1px solid #d8d8d8' : 'none'}">
  4. <view style="margin-right:15rpx;font-size: 26rpx;">分享</view>
  5. <image src="../../static/share_icon.png" mode="aspectFill" style="width: 30rpx;height: 30rpx;"></image>
  6. </view>
  7. <view class="display-flex-start items-center share-font" v-if='isCollection'>
  8. <view style="margin-right:15rpx;font-size: 26rpx;">收藏</view>
  9. <image src="../../static/collection.png" mode="aspectFill" style="width: 40rpx;height: 40rpx;"></image>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. name:"footer-share",
  16. props:{
  17. isCollection: {
  18. type: Boolean,
  19. default:false
  20. }
  21. },
  22. data() {
  23. return {
  24. };
  25. }
  26. }
  27. </script>
  28. <style>
  29. .footer-share-box {
  30. height: 50rpx;
  31. position: fixed;
  32. bottom: 0;
  33. width: 100%;
  34. border-radius: 10rpx;
  35. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  36. padding: 20rpx;
  37. background: #fff;
  38. }
  39. .share-font {
  40. width: 45%;
  41. justify-content: center;
  42. }
  43. </style>