提交 e361e44d 编写于 作者: jingqi.liu's avatar jingqi.liu

修改样式

上级 a95c3d5c
<template>
<section v-if="!isWeb" :class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" :style="'height:' + navHeight">
<!-- v-if="!isWeb" -->
<section :class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" :style="'height:' + navHeight">
<div
class="nav-part"
:style="'background:' + bgColor + ';'
......@@ -105,7 +106,12 @@ export default {
isInMergeDetail: {
type: Boolean,
default: true
},
isCustomBack: {
type: Boolean,
default: false
}
},
computed: {
...mapGetters(["userInfo"]),
......@@ -129,11 +135,16 @@ export default {
methods: {
//返回
goBack() {
if(this.isWeb) {
window.history.back();
} else {
rocNative.goBack();
if(this.isCustomBack){
this.$emit("customBack");
}else{
if(this.isWeb) {
window.history.back();
} else {
rocNative.goBack();
}
}
},
// 生成分享的url
......
<template>
<section class="coupon-list-wrapper" :class="{ 'no-pt': isWeb,'pt-88':isWeb }">
<section
class="coupon-list-wrapper"
:class="{ 'no-pt': isWeb, 'pt-88': isWeb }"
>
<div class="page-wrapper">
<!-- <common-header
:bg-color="bgColor"
......@@ -17,6 +20,8 @@
:title="navTitle"
:isFixNavbar="isFixNavbar"
:isInMergeDetail="isInMergeDetail"
:isCustomBack="true"
@customBack="goBack"
>
</CommonNavbar>
<div class="page-content">
......@@ -179,6 +184,10 @@ export default {
console.log(this.show, item);
},
close() {},
goBack() {
console.log('back')
window.history.back();
},
},
};
</script>
......@@ -194,7 +203,7 @@ export default {
}
}
.page-wrapper {
padding-top: 64px;
padding-top: 74px;
height: auto;
display: flex;
flex-direction: column;
......
......@@ -225,7 +225,7 @@ export default {
}
}
.page-wrapper {
padding-top: 114px;
padding-top: 124px;
height: 100vh;
background-color: #f5f6f8;
display: flex;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册