|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<div class="main-bg">
|
|
|
+ <div v-if="showGoBack" class="icon go-back" @click="handleClick"><</div>
|
|
|
<div class="bg-top" :style="{height:(topHeight||4)+'rem'}">
|
|
|
|
|
|
</div>
|
|
@@ -14,7 +15,12 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
name: "multiColorBackground",
|
|
|
- props:['topHeight']
|
|
|
+ props:['topHeight','showGoBack'],
|
|
|
+ methods:{
|
|
|
+ handleClick(){
|
|
|
+ this.$router.go(-1);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -29,6 +35,18 @@
|
|
|
height: 100vh;
|
|
|
background-color: #e8eff5;
|
|
|
}
|
|
|
+ .icon{
|
|
|
+ position: fixed;
|
|
|
+ display: inline-block;
|
|
|
+ top:0.6rem;
|
|
|
+ left: 0.5rem;
|
|
|
+ font-size: 0.4rem;
|
|
|
+ height: 0.4rem;
|
|
|
+ width: 0.2rem;
|
|
|
+ color: white;
|
|
|
+ z-index: 6;
|
|
|
+ }
|
|
|
+
|
|
|
.content{
|
|
|
position: absolute;
|
|
|
width: 100%;
|