index.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!--
  2. * @Author: liuzhenlin 461480418@qq.ocm
  3. * @Date: 2023-02-24 17:28:55
  4. * @LastEditors: liuzhenlin
  5. * @LastEditTime: 2023-02-25 10:05:16
  6. * @Description: file content
  7. * @FilePath: \oms\components\WaterMark\index.vue
  8. -->
  9. <template>
  10. <view class="make">
  11. <view class="list">
  12. <view class="item" v-for="i in 300" :key="i">
  13. <text>{{ nickName }}{{ phone }}</text>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import { mapGetters } from 'vuex'
  20. export default {
  21. name: 'watermark',
  22. computed: {
  23. ...mapGetters(['nickName', 'phone']),
  24. },
  25. data() {
  26. return {}
  27. },
  28. mounted() {
  29. },
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .make {
  34. position: fixed;
  35. width: 100%;
  36. height: 100%;
  37. top: 0;
  38. left: 0;
  39. z-index: 9999;
  40. background: rgba(0, 0, 0, 0);
  41. pointer-events: none;
  42. .list {
  43. width: 500%;
  44. height: 400%;
  45. position: absolute;
  46. top: -50%;
  47. left: -50%;
  48. transform: rotate(-45deg);
  49. display: flex;
  50. flex-wrap: wrap;
  51. justify-content: space-between;
  52. pointer-events: none;
  53. .item {
  54. font-size: 32rpx;
  55. color: rgba(220, 220, 220, 0.5);
  56. padding: 30rpx;
  57. pointer-events: none;
  58. }
  59. }
  60. }
  61. </style>