share-modal.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="mask-share-box" v-if="isShowShare">
  3. <image src="/static/share-arrow.png" mode="aspectFit" :style="{ 'margin-top': isFirstPage ? '15%' : '0' }"></image>
  4. <view :style="{ 'margin-top': isFirstPage ? '30%' : '15%' }">点击右上角分享至支部群</view>
  5. <button @click="closeShare">关闭</button>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. name: "share-modal",
  11. props: {
  12. isShowShare: {
  13. type: Boolean,
  14. default: false,
  15. },
  16. isFirstPage: {
  17. type: Boolean,
  18. default: false,
  19. },
  20. },
  21. data() {
  22. return {};
  23. },
  24. methods: {
  25. closeShare() {
  26. this.$emit("closeShare",'success');
  27. },
  28. },
  29. };
  30. </script>
  31. <style lang="scss" scoped>
  32. .mask-share-box{
  33. position: fixed;
  34. width: 100%;
  35. height: 100%;
  36. z-index: 999;
  37. background-color: rgba(0,0,0,.7);
  38. image {
  39. width: 100rpx;
  40. height: 100rpx;
  41. float: right;
  42. margin-right: 15%;
  43. }
  44. view {
  45. color: #fff;
  46. font-size: 32rpx;
  47. text-align: center;
  48. margin: 15% 0 70% 15%;
  49. font-weight: bold;
  50. }
  51. button {
  52. width: 200rpx;
  53. font-size: 26rpx;
  54. position: fixed;
  55. bottom: 35%;
  56. left: 37%;
  57. background: transparent;
  58. color: #fff;
  59. border: 1px solid #fff;
  60. }
  61. }
  62. </style>