Files
integral-shop/single_uniapp22miao/pages/sub-pages/setting/404.vue

71 lines
1.3 KiB
Vue
Raw Normal View History

<template>
<view class="error-page">
<view class="error-content">
<text class="error-icon">404</text>
<text class="error-title">页面不存在</text>
<text class="error-desc">抱歉您访问的页面找不到了</text>
<button class="back-btn" @click="goBack">返回首页</button>
</view>
</view>
</template>
<script>
export default {
methods: {
goBack() {
uni.switchTab({
url: '/pages/index/index'
});
}
}
}
</script>
<style lang="scss" scoped>
.error-page {
min-height: 100vh;
background-color: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
}
.error-content {
display: flex;
flex-direction: column;
align-items: center;
.error-icon {
font-size: 120rpx;
font-weight: bold;
color: #ccc;
margin-bottom: 40rpx;
}
.error-title {
font-size: 36rpx;
font-weight: bold;
color: #333;
margin-bottom: 20rpx;
}
.error-desc {
font-size: 26rpx;
color: #999;
margin-bottom: 60rpx;
}
.back-btn {
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
background: linear-gradient(90deg, #FF6B6B, #FF4757);
color: #fff;
border-radius: 40rpx;
font-size: 28rpx;
border: none;
}
}
</style>