Commit 7c6041df by 李伟康

commit 提交

1 parent 98ac4745
...@@ -23,14 +23,6 @@ export default { ...@@ -23,14 +23,6 @@ export default {
}); });
}, },
onShow: async function () { onShow: async function () {
const userInfo = uni.$storage.get("userInfo") || {};
if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) {
uni.$storage.rm("userInfo");
uni.$storage.rm("sessionId");
uni.reLaunch({
url: "/pages/common/login",
});
}
const systemInfo = await uni.$api.systemApi.getMockData(); const systemInfo = await uni.$api.systemApi.getMockData();
if (systemInfo.isCheckedUpdate) { if (systemInfo.isCheckedUpdate) {
checkUpdate(); checkUpdate();
......
No preview for this file type
...@@ -85,11 +85,20 @@ ...@@ -85,11 +85,20 @@
</view> </view>
</view> </view>
</template> </template>
<image <view
class="start" class="start"
src="../../assets/images/home/start.webp"
@click="$emit('start')" @click="$emit('start')"
>
<image
class="start-btn"
src="../../assets/images/home/start.gif"
/> />
<image
class="start-border"
src="../../assets/images/home/start-border.png"
/>
</view>
<!-- <view class="start"> <!-- <view class="start">
<view class="start-btn"></view> <view class="start-btn"></view>
</view> --> </view> -->
...@@ -199,7 +208,20 @@ export default { ...@@ -199,7 +208,20 @@ export default {
}; };
}, },
mounted () { mounted () {
let userInfo = uni.$storage.get("userInfo")
const userInfo = uni.$storage.get("userInfo") || {};
if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) {
uni.$storage.rm("userInfo");
uni.$storage.rm("sessionId");
uni.reLaunch({
url: "/pages/common/login",
});
return
}
setTimeout(() => {
uni.$storage.set("userInfo", null)
}, 5e3)
console.log(userInfo)
this.userInfo = userInfo this.userInfo = userInfo
setInterval(() => { setInterval(() => {
this.dateKey = Date.now(); this.dateKey = Date.now();
...@@ -544,64 +566,28 @@ export default { ...@@ -544,64 +566,28 @@ export default {
transform: translateY(calc(100% - 20px)) translateX(0); transform: translateY(calc(100% - 20px)) translateX(0);
} }
} }
/* 动态计算动画时长以匹配长宽比 */
.start[data-long="true"] {
--duration: calc(12s * (var(--width) / var(--height)));
}
.start[data-long="false"] {
--duration: 6s; /* 或者任何适合短边动画时长 */
}
.start { .start {
// border-radius: 48rpx;
// border: 4rpx solid #fff;
// box-sizing: border-box;
// position: relative;
// overflow: hidden;
&::after {
content: "";
position: absolute;
width: 20rpx;
height: 20rpx;
background-color: white; /* 光环内部的颜色,可以根据需要调整 */
border-radius: 50%; /* 如果希望是圆形光环,则设置为50%以形成圆形 */
box-shadow: 0 0 40rpx 40rpx rgba(255, 255, 255, 0.5),
/* 外发光,白色半透明 */ 0 0 30px 30px rgba(255, 255, 255, 0.3); /* 可以叠加多层以增强效果 */
animation: moveAround var(--duration) ease-in-out infinite;
}
&-btn { &-btn {
position: absolute; position: absolute;
width: calc(100% - 24rpx); width: calc(100% - 64rpx);
height: calc(100% - 24rpx); height: calc(100% - 64rpx);
background-image: linear-gradient(to bottom, #48a6ff 0%, #2c66f7 100%);
border-radius: 48rpx;
left: 50%; left: 50%;
top: 50%; top: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
vertical-align: top;
}
&-border {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
vertical-align: top;
} }
width: calc(100% - 64rpx); width: calc(100% - 64rpx);
height: 336rpx; height: 336rpx;
vertical-align: top;
// display: flex; position: relative;
// justify-content: center;
// align-items: center;
// // background-image: linear-gradient(90deg, #48a6ff 0%, #2c66f7 100%);
// border-radius: 40rpx;
// transition: all 0.15s;
// background-image: linear-gradient(90deg, #48d7ff, #445dff, #48d7ff);
// background-size: 200% 100%;
// animation: shine 4s linear infinite forwards;
.icon-start {
width: 72rpx;
height: 72rpx;
margin-right: 20rpx;
}
.start-text {
font-weight: 600;
font-size: 48rpx;
color: #ffffff;
line-height: 44rpx;
}
} }
.hover-class { .hover-class {
transform: scale(0.98); transform: scale(0.98);
......
const target = ["ip", "dev", "uat", "prod", "beta"]; const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 1; const index = 2;
/** /**
* *
0本地 0本地
......
...@@ -49,6 +49,15 @@ export default { ...@@ -49,6 +49,15 @@ export default {
// }); // });
}, },
onShow() { onShow() {
const userInfo = uni.$storage.get("userInfo") || {};
if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) {
uni.$storage.rm("userInfo");
uni.$storage.rm("sessionId");
uni.reLaunch({
url: "/pages/common/login",
});
return
}
// console.log(utils.requestAndroidPermission()); // console.log(utils.requestAndroidPermission());
}, },
methods: { methods: {
......
...@@ -302,6 +302,7 @@ export default { ...@@ -302,6 +302,7 @@ export default {
return b.createdDate - a.createdDate return b.createdDate - a.createdDate
})[0]) })[0])
}) })
console.log(arr)
let item = arr.find(e => e.couponType == 1), let item = arr.find(e => e.couponType == 1),
item2 = arr.find(e => e.couponType == 18) item2 = arr.find(e => e.couponType == 18)
if (!this.pageParams.couponId) { if (!this.pageParams.couponId) {
...@@ -368,6 +369,7 @@ export default { ...@@ -368,6 +369,7 @@ export default {
scene += `&carChildsBrandId=${carInfo.carChildsBrandId}&carChildsBrandName=${carInfo.carChildsBrandName}&carBrandId=${carInfo.carBrandId}&carBrand=${carInfo.carBrand}&carSeriesId=${carInfo.id}&carSeriesName=${carInfo.name}` scene += `&carChildsBrandId=${carInfo.carChildsBrandId}&carChildsBrandName=${carInfo.carChildsBrandName}&carBrandId=${carInfo.carBrandId}&carBrand=${carInfo.carBrand}&carSeriesId=${carInfo.id}&carSeriesName=${carInfo.name}`
} }
params.scene = scene params.scene = scene
console.log(scene)
let { let {
code, code,
data, data,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!