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

修改样式

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