- 从 main 获取 single_uniapp22miao 子项目 - dart-sass: /deep/ -> ::v-deep,calc 运算符加空格 - DEPLOY.md 采用 shccd159 版本(4 子项目架构说明) Made-with: Cursor
71 lines
1.3 KiB
Vue
71 lines
1.3 KiB
Vue
<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>
|
||
|