createInWeb.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <div class="createInWeb">
  3. <div class="img">
  4. <img src="@/assets/img/other/kaifain/compute@2x.png" alt="">
  5. </div>
  6. <div class="tips">请前往web端入驻解决方案</div>
  7. <div class="urls" @click="copyToclipeFn">{{link}}</div>
  8. <div class="copyWord" @click="copyToclipeFn">复制</div>
  9. <div class="btn" @click="back()">
  10. <p>我知道了</p>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. /**
  16. * 到web创建解决方案提示
  17. */
  18. export default {
  19. name: 'CreateInWeb',
  20. asyncData({ store }) {
  21. return {
  22. link: store.state.domainConfig.siteUrl + "/otherpage/companyComplete"
  23. }
  24. },
  25. data() {
  26. },
  27. async created() {
  28. },
  29. async mounted() {
  30. },
  31. methods: {
  32. copyToclipeFn() {
  33. const { link = '' } = this
  34. const input = document.createElement('input')
  35. input.readOnly = 'readonly'
  36. input.value = link
  37. document.body.appendChild(input)
  38. input.select()
  39. input.setSelectionRange(0, input.value.length)
  40. document.execCommand('Copy')
  41. document.body.removeChild(input)
  42. this.$toast('复制成功!')
  43. },
  44. back() {
  45. history.back()
  46. }
  47. },
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. @import "../../../assets/css/scssCommon";
  52. .createInWeb {
  53. width: 100vw;
  54. height: 100vh;
  55. overflow: hidden;
  56. background: rgba(244, 245, 249, 1);
  57. display: flex;
  58. justify-content: center;
  59. align-items: center;
  60. flex-direction: column;
  61. .img {
  62. width: pxtovw(123);
  63. height: pxtovw(123);
  64. font-size: 0;
  65. img {
  66. width: pxtovw(123);
  67. height: pxtovw(123);
  68. }
  69. }
  70. .tips {
  71. margin-top: pxtovw(22);
  72. height: pxtovw(22);
  73. font-size: pxtovw(16);
  74. font-weight: 600;
  75. color: rgba(34, 34, 34, 1);
  76. line-height: pxtovw(22);
  77. }
  78. .urls {
  79. margin-top: pxtovw(6);
  80. min-height: pxtovw(20);
  81. font-size: pxtovw(14);
  82. font-weight: 400;
  83. color: rgba(146, 154, 164, 1);
  84. line-height: pxtovw(20);
  85. text-align: center;
  86. word-break: break-all;
  87. white-space: pre-wrap;
  88. max-width: pxtovw(270);
  89. text-decoration: underline;
  90. }
  91. .copyWord {
  92. margin-top: pxtovw(6);
  93. height: pxtovw(21);
  94. font-size: pxtovw(15);
  95. font-weight: 400;
  96. color: rgba(48, 142, 255, 1);
  97. line-height: pxtovw(21);
  98. }
  99. .btn {
  100. margin-top: pxtovw(29);
  101. width: pxtovw(149);
  102. height: pxtovw(42);
  103. background: rgba(48, 142, 255, 1);
  104. box-shadow: 0px pxtovw(2) pxtovw(6) 0px rgba(48, 142, 255, 0.3);
  105. border-radius: pxtovw(2);
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. p {
  110. height: pxtovw(20);
  111. font-size: pxtovw(14);
  112. font-family: PingFangSC-Medium, PingFang SC;
  113. font-weight: 500;
  114. color: rgba(255, 255, 255, 1);
  115. line-height: pxtovw(20);
  116. }
  117. }
  118. }
  119. </style>