|
@@ -0,0 +1,276 @@
|
|
|
+<template>
|
|
|
+ <uni-popup ref="popupRef">
|
|
|
+
|
|
|
+ <view class="share-box">
|
|
|
+ <view class="share-status-bar" :style="{'height': `${statusBarHeight}px`}"></view>
|
|
|
+ <!-- statusBarHeight -->
|
|
|
+ <view class="share-content">
|
|
|
+ <view class="content">
|
|
|
+ <view class="share-top">
|
|
|
+ <image class="share-logo" src="@/static/share/img_02.png" mode="aspectFit"></image>
|
|
|
+ <text class="share-title">注册会员</text>
|
|
|
+ <text class="share-title">获取高额奖励</text>
|
|
|
+ <view class="share-list">
|
|
|
+ <view class="share-list-item"><text class="item-icon"></text><text
|
|
|
+ class="item-text">安全的钱包技术</text></view>
|
|
|
+ <view class="share-list-item"><text class="item-icon"></text><text
|
|
|
+ class="item-text">交易流畅顶级风控</text></view>
|
|
|
+ <view class="share-list-item"><text class="item-icon"></text><text
|
|
|
+ class="item-text">丰富的加密资产业务</text></view>
|
|
|
+ <view class="share-list-item"><text class="item-icon"></text><text
|
|
|
+ class="item-text">分布在世界各地的客户</text></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="footer">
|
|
|
+ <image class="share-code" src="@/static/share/img_03.png" mode="aspectFit"></image>
|
|
|
+ <view class="share-btns">
|
|
|
+ <view class="share-btn">
|
|
|
+ 邀请您加入[币王]
|
|
|
+ </view>
|
|
|
+ <view class="share-btn-hint">
|
|
|
+ <<<长按识别二维码 </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="share-footer">
|
|
|
+
|
|
|
+ <view class="share-list">
|
|
|
+ <view class="share-icons">
|
|
|
+ <text class="share-icon iconfont" style="color: #00b1ff;"></text>
|
|
|
+ <text class="share-text">复制链接</text>
|
|
|
+ </view>
|
|
|
+ <view class="share-icons">
|
|
|
+ <text class="share-icon iconfont" style="color: #029a73;"></text>
|
|
|
+ <text class="share-text">微信</text>
|
|
|
+ </view>
|
|
|
+ <view class="share-icons">
|
|
|
+ <text class="share-icon iconfont" style="color: #02d9a2;"></text>
|
|
|
+ <text class="share-text">朋友圈</text>
|
|
|
+ </view>
|
|
|
+ <view class="share-icons">
|
|
|
+ <text class="share-icon iconfont" style="color: #1890ff;"></text>
|
|
|
+ <text class="share-text">QQ</text>
|
|
|
+ </view>
|
|
|
+ <view class="share-icons">
|
|
|
+ <text class="share-icon iconfont" style="color: #83a0e5"></text>
|
|
|
+ <text class="share-text">保存图片</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="share-cancel" @click.stop="cancelShare">
|
|
|
+ 取消
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import {
|
|
|
+ mapGetters
|
|
|
+ } from 'vuex'
|
|
|
+ export default {
|
|
|
+ name: "sharePage",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters([
|
|
|
+ 'statusBarHeight'
|
|
|
+ ])
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ openShare() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ uni.hideTabBar();
|
|
|
+ this.$refs.popupRef.open()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ cancelShare() {
|
|
|
+ this.$refs.popupRef.close()
|
|
|
+ uni.showTabBar()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .share-box {
|
|
|
+ width: 750rpx;
|
|
|
+ height: 100vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ .share-status-bar {
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 100%;
|
|
|
+ background-color: rgba(255, 255, 255, 0.5);
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-content {
|
|
|
+ flex: 1;
|
|
|
+ padding: 30rpx 40rpx;
|
|
|
+
|
|
|
+ .content {
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: url("@/static/share/img_01.png") no-repeat center center;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 30rpx 30rpx 20rpx;
|
|
|
+
|
|
|
+ .share-top {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: flex-start;
|
|
|
+
|
|
|
+ .share-logo {
|
|
|
+ display: inline-block;
|
|
|
+ height: 80rpx;
|
|
|
+ // margin-bottom: 14rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-title {
|
|
|
+
|
|
|
+ font-size: 56rpx;
|
|
|
+ font-family: PingFang SC, PingFang SC-Bold;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 1.1;
|
|
|
+ letter-spacing: 1.2px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-list {
|
|
|
+ width: 100%;
|
|
|
+ padding-top: 20rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ .share-list-item {
|
|
|
+ font-size: 20rpx;
|
|
|
+ font-family: PingFang SC, PingFang SC-Regular;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 1.5;
|
|
|
+ // transform: scale(0.8);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-start;
|
|
|
+
|
|
|
+ .item-icon {
|
|
|
+ display: inline-block;
|
|
|
+ width: 14rpx;
|
|
|
+ height: 14rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+
|
|
|
+ .item-text {
|
|
|
+ padding-left: 3px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .footer {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 20rpx;
|
|
|
+
|
|
|
+ .share-code {
|
|
|
+ width: 130rpx;
|
|
|
+ height: 130rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-btns {
|
|
|
+ width: calc(100% - 130rpx);
|
|
|
+ padding-left: 45rpx;
|
|
|
+ color: #fff;
|
|
|
+
|
|
|
+ .share-btn {
|
|
|
+ width: 100%;
|
|
|
+ height: 50rpx;
|
|
|
+ background: linear-gradient(180deg, #faae3d, #f9d159);
|
|
|
+ border-radius: 29rpx;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 50rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-family: PingFang SC, PingFang SC-Regular;
|
|
|
+ font-weight: 400;
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-btn-hint {
|
|
|
+ padding-top: 22rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-family: PingFang SC, PingFang SC-Regular;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #ffffff;
|
|
|
+ letter-spacing: 0.56rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-footer {
|
|
|
+ flex-shrink: 0;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ .share-list {
|
|
|
+ border-radius: 40rpx 40rpx 0 0;
|
|
|
+ width: 100%;
|
|
|
+ padding: 30rpx 30rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: stretch;
|
|
|
+ background-color: #f6f7fc;
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-icons {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+
|
|
|
+ .share-icon {
|
|
|
+ font-size: 100rpx;
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-text {
|
|
|
+ font-size: 24rpx;
|
|
|
+ padding-top: 10rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .share-cancel {
|
|
|
+ width: 100%;
|
|
|
+ height: 100rpx;
|
|
|
+ line-height: 100rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 34rpx;
|
|
|
+ color: #c0c0c0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // <view class="share-content"></view>
|
|
|
+ // <view class="share-share"></view>
|
|
|
+ }
|
|
|
+</style>
|