sharePage.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <template>
  2. <uni-popup ref="popupRef">
  3. <view class="share-box">
  4. <view class="share-status-bar" :style="{'height': `${statusBarHeight}px`}"></view>
  5. <!-- statusBarHeight -->
  6. <view class="share-content">
  7. <view class="content">
  8. <view class="share-top">
  9. <image class="share-logo" src="@/static/share/img_02.png" mode="aspectFit"></image>
  10. <text class="share-title">注册会员</text>
  11. <text class="share-title">获取高额奖励</text>
  12. <view class="share-list">
  13. <view class="share-list-item"><text class="item-icon"></text><text
  14. class="item-text">安全的钱包技术</text></view>
  15. <view class="share-list-item"><text class="item-icon"></text><text
  16. class="item-text">交易流畅顶级风控</text></view>
  17. <view class="share-list-item"><text class="item-icon"></text><text
  18. class="item-text">丰富的加密资产业务</text></view>
  19. <view class="share-list-item"><text class="item-icon"></text><text
  20. class="item-text">分布在世界各地的客户</text></view>
  21. </view>
  22. </view>
  23. <view class="footer">
  24. <image class="share-code" src="@/static/share/img_03.png" mode="aspectFit"></image>
  25. <view class="share-btns">
  26. <view class="share-btn">
  27. 邀请您加入[币王]
  28. </view>
  29. <view class="share-btn-hint">
  30. <<<长按识别二维码 </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="share-footer">
  36. <view class="share-list">
  37. <view class="share-icons">
  38. <text class="share-icon iconfont" style="color: #00b1ff;">&#xe754;</text>
  39. <text class="share-text">复制链接</text>
  40. </view>
  41. <view class="share-icons">
  42. <text class="share-icon iconfont" style="color: #029a73;">&#xe654;</text>
  43. <text class="share-text">微信</text>
  44. </view>
  45. <view class="share-icons">
  46. <text class="share-icon iconfont" style="color: #02d9a2;">&#xe602;</text>
  47. <text class="share-text">朋友圈</text>
  48. </view>
  49. <view class="share-icons">
  50. <text class="share-icon iconfont" style="color: #1890ff;">&#xe887;</text>
  51. <text class="share-text">QQ</text>
  52. </view>
  53. <view class="share-icons">
  54. <text class="share-icon iconfont" style="color: #83a0e5">&#xe6b4;</text>
  55. <text class="share-text">保存图片</text>
  56. </view>
  57. </view>
  58. <view class="share-cancel" @click.stop="cancelShare">
  59. 取消
  60. </view>
  61. </view>
  62. </view>
  63. </uni-popup>
  64. </template>
  65. <script>
  66. import {
  67. mapGetters
  68. } from 'vuex'
  69. export default {
  70. name: "sharePage",
  71. data() {
  72. return {
  73. };
  74. },
  75. computed: {
  76. ...mapGetters([
  77. 'statusBarHeight'
  78. ])
  79. },
  80. mounted() {
  81. },
  82. methods: {
  83. openShare() {
  84. this.$nextTick(() => {
  85. uni.hideTabBar();
  86. this.$refs.popupRef.open()
  87. })
  88. },
  89. cancelShare() {
  90. this.$refs.popupRef.close()
  91. uni.showTabBar()
  92. }
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. .share-box {
  98. width: 750rpx;
  99. height: 100vh;
  100. display: flex;
  101. flex-direction: column;
  102. .share-status-bar {
  103. flex-shrink: 0;
  104. width: 100%;
  105. background-color: rgba(255, 255, 255, 0.5);
  106. }
  107. .share-content {
  108. flex: 1;
  109. padding: 30rpx 40rpx;
  110. .content {
  111. flex-shrink: 0;
  112. width: 100%;
  113. height: 100%;
  114. background: url("@/static/share/img_01.png") no-repeat center center;
  115. background-size: 100% 100%;
  116. display: flex;
  117. flex-direction: column;
  118. justify-content: space-between;
  119. padding: 30rpx 30rpx 20rpx;
  120. .share-top {
  121. display: flex;
  122. flex-direction: column;
  123. align-items: flex-start;
  124. .share-logo {
  125. display: inline-block;
  126. height: 80rpx;
  127. // margin-bottom: 14rpx;
  128. }
  129. .share-title {
  130. font-size: 56rpx;
  131. font-family: PingFang SC, PingFang SC-Bold;
  132. font-weight: 700;
  133. color: #ffffff;
  134. line-height: 1.1;
  135. letter-spacing: 1.2px;
  136. }
  137. .share-list {
  138. width: 100%;
  139. padding-top: 20rpx;
  140. display: flex;
  141. flex-direction: column;
  142. .share-list-item {
  143. font-size: 20rpx;
  144. font-family: PingFang SC, PingFang SC-Regular;
  145. font-weight: 400;
  146. color: #ffffff;
  147. line-height: 1.5;
  148. // transform: scale(0.8);
  149. display: flex;
  150. align-items: center;
  151. justify-content: flex-start;
  152. .item-icon {
  153. display: inline-block;
  154. width: 14rpx;
  155. height: 14rpx;
  156. border-radius: 50%;
  157. background-color: #fff;
  158. }
  159. .item-text {
  160. padding-left: 3px;
  161. }
  162. }
  163. }
  164. }
  165. .footer {
  166. width: 100%;
  167. display: flex;
  168. align-items: center;
  169. padding: 0 20rpx;
  170. .share-code {
  171. width: 130rpx;
  172. height: 130rpx;
  173. }
  174. .share-btns {
  175. width: calc(100% - 130rpx);
  176. padding-left: 45rpx;
  177. color: #fff;
  178. .share-btn {
  179. width: 100%;
  180. height: 50rpx;
  181. background: linear-gradient(180deg, #faae3d, #f9d159);
  182. border-radius: 29rpx;
  183. text-align: center;
  184. line-height: 50rpx;
  185. font-size: 24rpx;
  186. font-family: PingFang SC, PingFang SC-Regular;
  187. font-weight: 400;
  188. }
  189. .share-btn-hint {
  190. padding-top: 22rpx;
  191. font-size: 24rpx;
  192. font-family: PingFang SC, PingFang SC-Regular;
  193. font-weight: 400;
  194. color: #ffffff;
  195. letter-spacing: 0.56rpx;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. .share-footer {
  202. flex-shrink: 0;
  203. .share-list {
  204. border-radius: 40rpx 40rpx 0 0;
  205. width: 100%;
  206. padding: 30rpx 30rpx;
  207. display: flex;
  208. justify-content: space-between;
  209. align-items: stretch;
  210. background-color: #f6f7fc;
  211. }
  212. .share-icons {
  213. display: flex;
  214. flex-direction: column;
  215. justify-content: center;
  216. align-items: center;
  217. .share-icon {
  218. font-size: 100rpx;
  219. color: red;
  220. }
  221. .share-text {
  222. font-size: 24rpx;
  223. padding-top: 10rpx;
  224. }
  225. }
  226. .share-cancel {
  227. width: 100%;
  228. height: 100rpx;
  229. line-height: 100rpx;
  230. background-color: #fff;
  231. text-align: center;
  232. font-size: 34rpx;
  233. color: #c0c0c0;
  234. }
  235. }
  236. // <view class="share-content"></view>
  237. // <view class="share-share"></view>
  238. }
  239. </style>