ShareSetting.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <div class="share">
  3. <div class="preview">
  4. <div class="preview-area"></div>
  5. </div>
  6. <div class="setting">
  7. <img class="share-close" src="../assets/images/share-close.png" alt="" @click="closeBtn">
  8. <div class="share-title">分享设置</div>
  9. <div class="share-titleBox">
  10. <div class="top">
  11. <span class="title">h5测试分享标题</span><span class="count">8/30</span>
  12. </div>
  13. <div class="content">
  14. <el-input class="input" type="textarea" :rows="3" placeholder="请输入内容" v-model="textarea" maxlength="30"
  15. show-word-limit>
  16. </el-input>
  17. <img class="cover" src="" alt="" @click="closeBtn">
  18. <div class="cover-title">更换封面</div>
  19. </div>
  20. </div>
  21. <div class="qrcode-title">渠道二维码</div>
  22. <div class="qrcode">
  23. <el-input v-model="input" placeholder="请输入内容"></el-input>
  24. <img class="qrcode-img" src="" alt="">
  25. <div class="qrcode-btn">
  26. <div class="qrcode-download" @click="save">下载二维码</div>
  27. <div class="qrcode-copy" @click="save">
  28. <img class="qrcode-copy-img" src="../assets/images/qrcode-copy.png" alt="">
  29. 复制链接</div>
  30. </div>
  31. </div>
  32. <div class="qrcode-add">添加渠道</div>
  33. <div class="share-save" @click="save">确定</div>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. textarea: ""
  42. };
  43. },
  44. props: {
  45. close: {
  46. type: Function,
  47. default: null
  48. }
  49. },
  50. methods: {
  51. closeBtn() {
  52. this.close();
  53. },
  54. save() {
  55. console.log("XXXX");
  56. }
  57. }
  58. };
  59. </script>
  60. <style lang="less" scoped>
  61. .share {
  62. z-index: 1000;
  63. position: fixed;
  64. top: 0;
  65. right: 0;
  66. bottom: 0;
  67. left: 0;
  68. background: rgba(0, 0, 0, 0.6);
  69. display: flex;
  70. flex-direction: row;
  71. .preview {
  72. flex-grow: 2;
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. .preview-area {
  77. width: 340px;
  78. height: 530px;
  79. border: 1px solid #d6d6d6;
  80. background: red;
  81. }
  82. }
  83. .setting {
  84. overflow: auto;
  85. width: 446px;
  86. height: 100%;
  87. background: #fff;
  88. .share-close {
  89. z-index: 1001;
  90. position: absolute;
  91. top: 0px;
  92. right: 0px;
  93. width: 63px;
  94. height: 57px;
  95. cursor: pointer;
  96. }
  97. .share-title {
  98. margin: 80px 0px 10px 18px;
  99. font-size: 16px;
  100. font-family: PingFangSC-Regular;
  101. font-weight: 400;
  102. color: rgba(0, 0, 0, 1);
  103. line-height: 22px;
  104. }
  105. .share-titleBox {
  106. margin: 0px 12px;
  107. height: 130px;
  108. border-radius: 4px;
  109. border: 1px solid rgba(204, 204, 204, 1);
  110. .top {
  111. display: flex;
  112. flex-direction: row;
  113. justify-content: space-between;
  114. margin: 10px;
  115. .title {
  116. font-size: 14px;
  117. font-family: MicrosoftYaHei;
  118. color: rgba(51, 51, 51, 1);
  119. line-height: 19px;
  120. }
  121. .count {
  122. font-size: 14px;
  123. font-family: MicrosoftYaHei;
  124. color: rgba(153, 160, 182, 1);
  125. line-height: 19px;
  126. }
  127. }
  128. .content {
  129. display: flex;
  130. position: relative;
  131. .input {
  132. width: 326px;
  133. margin-left: 10px;
  134. }
  135. .cover {
  136. width: 70px;
  137. height: 70px;
  138. background: rgba(239, 239, 239, 1);
  139. margin: 0px 10px;
  140. cursor: pointer;
  141. }
  142. .cover-title {
  143. position: absolute;
  144. bottom: 0px;
  145. right: 10px;
  146. width: 70px;
  147. height: 20px;
  148. background: rgba(0, 0, 0, 0.8);
  149. color: #fff;
  150. font-size: 12px;
  151. line-height: 20px;
  152. text-align: center;
  153. }
  154. }
  155. }
  156. .qrcode-title {
  157. margin: 28px 0px 10px 18px;
  158. font-size: 16px;
  159. font-family: PingFangSC-Regular;
  160. font-weight: 400;
  161. color: rgba(0, 0, 0, 1);
  162. line-height: 22px;
  163. }
  164. .qrcode {
  165. margin-left: 18px;
  166. margin-bottom: 10px;
  167. width: 408px;
  168. height: 283px;
  169. border: 1px solid rgba(204, 204, 204, 1);
  170. display: flex;
  171. flex-direction: column;
  172. align-items: center;
  173. .el-input {
  174. margin-top: 16px;
  175. width: 265px;
  176. }
  177. .qrcode-img {
  178. margin-top: 16px;
  179. width: 140px;
  180. height: 140px;
  181. background: rgba(239, 239, 239, 1);
  182. }
  183. .qrcode-btn {
  184. display: flex;
  185. justify-content: space-between;
  186. width: 250px;
  187. height: 31px;
  188. margin-top: 20px;
  189. font-size: 14px;
  190. font-family: PingFangSC-Regular;
  191. font-weight: 400;
  192. color: rgba(78, 93, 255, 1);
  193. line-height: 30px;
  194. text-align: center;
  195. .qrcode-download {
  196. width: 91px;
  197. height: 30px;
  198. background: rgba(230, 237, 255, 1);
  199. border-radius: 15px;
  200. cursor: pointer;
  201. }
  202. .qrcode-copy {
  203. width: 125px;
  204. height: 30px;
  205. background: rgba(230, 237, 255, 1);
  206. border-radius: 15px;
  207. cursor: pointer;
  208. .qrcode-copy-img {
  209. width: 16px;
  210. height: 16px;
  211. vertical-align: middle;
  212. }
  213. }
  214. }
  215. }
  216. .qrcode-add {
  217. margin-left: 18px;
  218. margin-top: 20px;
  219. width: 408px;
  220. height: 44px;
  221. background: rgba(241, 241, 241, 1);
  222. border: 1px dotted rgba(192, 192, 192, 1);
  223. line-height: 44px;
  224. text-align: center;
  225. font-size: 14px;
  226. font-weight: 400;
  227. color: rgba(78, 93, 255, 1);
  228. cursor: pointer;
  229. }
  230. .share-save {
  231. text-align: center;
  232. width: 105px;
  233. height: 34px;
  234. background: rgba(78, 93, 255, 1);
  235. border-radius: 19px;
  236. margin-top: 40px;
  237. margin-bottom: 94px;
  238. margin-left: 174px;
  239. font-weight: 500;
  240. color: rgba(255, 255, 255, 1);
  241. line-height: 34px;
  242. font-size: 14px;
  243. cursor: pointer;
  244. }
  245. }
  246. }
  247. </style>