123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <template>
- <div class="null">
- <div>
- <div @click="$router.push('/')">返 回 首 页</div>
- <div class="back" @click="$router.go(-1)">返 回 上 一 页</div>
- </div>
- </div>
- </template>
- <script>
- //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
- //例如:import 《组件名称》 from '《组件路径》';
- export default {
- name: "null",
- components: {},
- data() {
- //这里存放数据
- return {};
- },
- //监听属性 类似于data概念
- computed: {},
- //监控data中的数据变化
- watch: {},
- //方法集合
- methods: {},
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {},
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {},
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style lang='less' scoped>
- .null {
- background-color: #f5feff;
- width: 100vw;
- height: 100vh;
- & > div {
- width: 100%;
- height: 100%;
- background: url('../../assets/images/null.png') no-repeat center 100px;
- &>div{
- font-size: 24px;
- cursor: pointer;
- text-align: center;
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- bottom: 200px;
- border-radius: 35px;
- border: 2px solid aqua;
- font-weight: 700;
- width: 210px;
- height: 70px;
- line-height: 66px;
- }
- .back{
- bottom: 300px;
- }
- }
- }
- </style>
|