feat: 全局更改tabbar、首页、分享页UI重构
This commit is contained in:
+78
-90
@@ -2,22 +2,17 @@
|
||||
<s-layout title="邀请好友">
|
||||
<view class="share_page_bg" id="captureBox">
|
||||
<view class="slogan">
|
||||
<view class="text" v-for="(t, idx) in sloganLines" :key="idx">{{ t }}</view>
|
||||
<image class="slogan_img" src="/static/share_bg.png" mode="widthFix" />
|
||||
</view>
|
||||
|
||||
<view class="share_card">
|
||||
<view class="con_center">
|
||||
<view class="center m-b-28">
|
||||
<view class="con_name">邀好友来购物</view>
|
||||
<view class="sub_title m-t-16">长按保存二维码或复制邀请码分享</view>
|
||||
</view>
|
||||
|
||||
<view class="flex-center">
|
||||
<view class="code flex-center code_wrap">
|
||||
<view class="img">
|
||||
<Qrcode
|
||||
ref="qrcodeRef"
|
||||
:size="300"
|
||||
:size="420"
|
||||
@generated="onQrGenerated"
|
||||
@longpress="saveServiceQrcode"
|
||||
/>
|
||||
@@ -25,16 +20,17 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="center m-t-32 m-b-24 label_text">您的推荐码</view>
|
||||
<view class="center m-t-32 m-b-24 label_text">我的邀请码</view>
|
||||
|
||||
<view class="invite_code_bar">
|
||||
<view class="code_val">{{ inviteinfo?.inviteCode }}</view>
|
||||
<view class="copy_btn" @click="copy(inviteinfo?.inviteCode)">
|
||||
<view class="icon-copy"></view>
|
||||
<text class="btn_text">复制</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="qr_tip">扫描二维码,注册并登录APP</view>
|
||||
|
||||
<!-- <view class="btns">
|
||||
<view class="square-btn-outline" @click="saveImg">
|
||||
<view class="icon-down"></view>
|
||||
@@ -51,6 +47,8 @@
|
||||
</uni-popup>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="save_btn" @click="saveImg">保存到相册</view>
|
||||
</view>
|
||||
</s-layout>
|
||||
</template>
|
||||
@@ -63,8 +61,6 @@ import * as api from '@/sheep/api/home/index';
|
||||
const instance = getCurrentInstance();
|
||||
const proxy = instance?.proxy;
|
||||
|
||||
const sloganLines = ref(['优品赢四海', '购福赴新途']);
|
||||
|
||||
const inviteinfo = ref({});
|
||||
const qrCodeUrl = ref('');
|
||||
const qrcodeRef = ref(null);
|
||||
@@ -304,16 +300,12 @@ getinviteinfo();
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
:deep(page) {
|
||||
background: #fff6f7;
|
||||
}
|
||||
|
||||
.share_page_bg {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
padding: 330rpx 40rpx 0rpx;
|
||||
padding: 520rpx 40rpx 80rpx;
|
||||
box-sizing: border-box;
|
||||
background: #fff6f7;
|
||||
// background: #0b53d8;
|
||||
}
|
||||
|
||||
.share_page_bg::before {
|
||||
@@ -323,50 +315,43 @@ getinviteinfo();
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image: linear-gradient(
|
||||
to bottom,
|
||||
rgba(255, 246, 247, 0) 0%,
|
||||
rgba(255, 246, 247, 0) 35%,
|
||||
rgba(255, 246, 247, 1) 85%,
|
||||
rgba(255, 246, 247, 1) 100%
|
||||
),
|
||||
url('/static/home/jinzhongzi_bg.png');
|
||||
background-repeat: no-repeat, no-repeat;
|
||||
background-position: center top, center -80rpx;
|
||||
background-size: 100% 100%, 100% auto;
|
||||
background-image: url('/static/home/seedBg.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center top;
|
||||
background-size: cover;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.slogan {
|
||||
position: absolute;
|
||||
top: 140rpx;
|
||||
left: 50rpx;
|
||||
right: 40rpx;
|
||||
text-align: left;
|
||||
color: #fff;
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
letter-spacing: 2rpx;
|
||||
top: 0rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
// padding: 0 40rpx;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
}
|
||||
|
||||
.text + .text {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.slogan_img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.share_card {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
border-radius: 32rpx;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
box-shadow: 0 18rpx 56rpx rgba(0, 0, 0, 0.12);
|
||||
border-radius: 28rpx;
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
box-shadow: 0 16rpx 40rpx rgba(0, 0, 0, 0.18);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.con_center {
|
||||
padding: 60rpx 40rpx 44rpx;
|
||||
padding: 48rpx 40rpx 44rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -384,24 +369,23 @@ getinviteinfo();
|
||||
.label_text {
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
color: #1a73ff;
|
||||
}
|
||||
|
||||
.code {
|
||||
width: 380rpx;
|
||||
height: 380rpx;
|
||||
border: 4rpx solid rgba(255, 111, 145, 0.28);
|
||||
border-radius: 32rpx;
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
width: 460rpx;
|
||||
height: 460rpx;
|
||||
border-radius: 22rpx;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.code_wrap {
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: 0 10rpx 28rpx rgba(31, 63, 132, 0.14);
|
||||
}
|
||||
|
||||
.img {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
width: 420rpx;
|
||||
height: 420rpx;
|
||||
border-radius: 18rpx;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
@@ -410,17 +394,16 @@ getinviteinfo();
|
||||
.invite_code_bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border-radius: 20rpx;
|
||||
overflow: visible;
|
||||
height: 120rpx;
|
||||
background: #f2f3f5;
|
||||
border-radius: 18rpx;
|
||||
overflow: hidden;
|
||||
height: 112rpx;
|
||||
margin: 0;
|
||||
gap: 12rpx;
|
||||
}
|
||||
|
||||
.code_val {
|
||||
flex: 1;
|
||||
color: #fff;
|
||||
color: #111;
|
||||
font-size: 56rpx;
|
||||
font-weight: 700;
|
||||
letter-spacing: 4rpx;
|
||||
@@ -429,58 +412,63 @@ getinviteinfo();
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(to right, #ffb4a2, #ff6f91);
|
||||
border-top-left-radius: 20rpx;
|
||||
border-bottom-left-radius: 20rpx;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.copy_btn {
|
||||
width: 140rpx;
|
||||
height: 120rpx;
|
||||
background: #ff7a8a;
|
||||
width: 120rpx;
|
||||
height: 112rpx;
|
||||
background: transparent;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-top-right-radius: 20rpx;
|
||||
border-bottom-right-radius: 20rpx;
|
||||
}
|
||||
|
||||
.btn_text {
|
||||
color: #fff;
|
||||
font-size: 22rpx;
|
||||
font-weight: 500;
|
||||
margin-top: 10rpx;
|
||||
color: #1a73ff;
|
||||
}
|
||||
|
||||
.icon-copy {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
border: 1.3333rpx solid currentColor;
|
||||
border-radius: 5.3333rpx;
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
border: 2rpx solid currentColor;
|
||||
border-radius: 6rpx;
|
||||
position: relative;
|
||||
margin-bottom: 5.3333rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.icon-copy::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -8rpx;
|
||||
top: 8rpx;
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
border: 1.3333rpx solid currentColor;
|
||||
border-radius: 5.3333rpx;
|
||||
left: -10rpx;
|
||||
top: 10rpx;
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
border: 2rpx solid currentColor;
|
||||
border-radius: 6rpx;
|
||||
box-sizing: border-box;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.qr_tip {
|
||||
margin-top: 22rpx;
|
||||
text-align: center;
|
||||
font-size: 22rpx;
|
||||
color: #9aa0a6;
|
||||
}
|
||||
|
||||
.save_btn {
|
||||
margin-top: 32rpx;
|
||||
width: 100%;
|
||||
height: 104rpx;
|
||||
border-radius: 18rpx;
|
||||
background: #2f7cf6;
|
||||
color: #fff;
|
||||
font-size: 34rpx;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 18rpx 40rpx rgba(47, 124, 246, 0.35);
|
||||
}
|
||||
|
||||
.btns {
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user