Commit 0b2379e7 by 李伟康

commit 提交

1 parent 4e3f5383
const target = ["ip", "dev", "uat", "prod", "beta"]; const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 2; const index = 1;
/** /**
* *
0本地 0本地
......
...@@ -11,6 +11,21 @@ ...@@ -11,6 +11,21 @@
@click="handleTouchStart()" @click="handleTouchStart()"
> >
<view :class="['home', { show: !id }]"> <view :class="['home', { show: !id }]">
<view class="bg">
<view class="top">
<view class="top-one"></view>
</view>
<view class="bottom">
<view class="bottom-one"></view>
<view class="bottom-two"></view>
<view
class="bottom-three"
:style="{transform: 'translate(' + x + 'px, ' + y + 'px)'}"
></view>
</view>
</view>
<!-- <template v-if="false"> -->
<view class="left-side"> <view class="left-side">
<!-- 左侧内容 --> <!-- 左侧内容 -->
<view class="user-info flex"> <view class="user-info flex">
...@@ -131,6 +146,7 @@ ...@@ -131,6 +146,7 @@
<view class="addr-text">{{ userInfo.shopMerchantName }}</view> <view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view> </view>
</view> </view>
<!-- </template> -->
</view> </view>
<view :class="['detail', { show: id }]"> <view :class="['detail', { show: id }]">
<detail <detail
...@@ -211,11 +227,14 @@ export default { ...@@ -211,11 +227,14 @@ export default {
version: '', version: '',
payInfo: null, payInfo: null,
accountInfo: null, accountInfo: null,
accountLength: uni.$storage.get('accountLength') accountLength: uni.$storage.get('accountLength'),
x: 0,
y: 0,
}; };
}, },
mounted () { mounted () {
this.randomize();
setInterval(this.randomize, 3e3);
}, },
onBackPress (options) { onBackPress (options) {
if (options.from === "backbutton") { if (options.from === "backbutton") {
...@@ -236,6 +255,13 @@ export default { ...@@ -236,6 +255,13 @@ export default {
// else this.$refs.recordRef?.pageonReachBottom() // else this.$refs.recordRef?.pageonReachBottom()
}, },
methods: { methods: {
randomize() {
const maxX = uni.getSystemInfoSync().windowWidth - 300
const maxY = uni.getSystemInfoSync().windowHeight - 100
console.log(maxX)
this.x = Math.floor(Math.random() * maxX);
this.y = Math.floor(Math.random() * maxY);
},
init () { init () {
this.getSoure(); this.getSoure();
this.findPayInfo(); this.findPayInfo();
...@@ -385,16 +411,151 @@ export default { ...@@ -385,16 +411,151 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.container { .container {
position: relative; position: relative;
&::after { // &::after {
// position: absolute;
// z-index: -2;
// left: 0;
// top: 0;
// width: 100vw;
// height: 100vh;
// background-image: url("../../assets/images/home/bg.webp");
// background-size: 100% 100%;
// content: "";
// }
.bg {
position: absolute; position: absolute;
z-index: -2; z-index: -2;
left: 0; left: 0;
top: 0; top: 0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-image: url("../../assets/images/home/bg.webp"); background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%);
background-size: 100% 100%; overflow: hidden;
.top {
position: absolute;
top: 0;
left: 0;
width: 100%;
&-one {
position: absolute;
top: -1600rpx;
right: 128rpx;
width: 2012rpx;
height: 2012rpx;
opacity: 0.3;
background: #fff;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
border-radius: 50% / 25%;
z-index: 2;
&::before {
position: absolute;
width: 856.56rpx;
height: 153.54rpx;
right: 150rpx;
top: 0;
opacity: 0.6;
background: #ebfdff;
filter: blur(36rpx);
content: "";
}
}
&::before {
position: absolute;
content: ""; content: "";
right: 0;
top: 0;
width: 890.36rpx;
height: 174.84rpx;
opacity: 0.2;
background: #3582ee;
filter: blur(100rpx);
}
&::after {
width: 274.32rpx;
height: 410.02rpx;
opacity: 0.16;
background-image: linear-gradient(125deg, #65b8f7 36%, #3582ee 79%);
filter: blur(74rpx);
position: absolute;
content: "";
right: 0;
top: 24rpx;
}
}
.bottom {
position: absolute;
width: 1291.3rpx;
height: 316rpx;
left: 0;
bottom: 0;
z-index: 2;
&::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
opacity: 0.11;
background: #3582ee;
filter: blur(100rpx);
}
&::after {
width: 1484.32rpx;
height: 160.02rpx;
opacity: 0.12;
background-image: linear-gradient(125deg, #65b8f8 36%, #3582ee 79%);
filter: blur(74rpx);
position: absolute;
left: 480rpx;
bottom: 0;
content: "";
}
&-one {
position: absolute;
left: 0;
bottom: 44rpx;
width: 643.02rpx;
height: 258.78rpx;
opacity: 0.4;
background: #ebfffd;
filter: blur(36rpx);
}
&-two {
position: absolute;
width: 450rpx;
height: 450rpx;
opacity: 0.24;
background: #ffffff;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
border: 100%;
left: -225rpx;
bottom: -225rpx;
border-radius: 100%;
}
&-three {
width: 762.7rpx;
height: 210.92rpx;
opacity: 0.16;
background: #fff;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
background-color: #fff;
position: fixed;
left: 0;
top: 0;
border-radius: 50%;
transition: all 2s;
z-index: 2;
}
}
}
@keyframes bottom-move {
0% {
transform: translate(0);
}
100% {
transform: translate(300%, -50%);
}
} }
.home, .home,
.detail { .detail {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!