This repository has been archived by the owner on Nov 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(setting): 修复 about 页面根据不同的信息响应不同的行为
- Loading branch information
Showing
2 changed files
with
28 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,34 @@ | ||
<template> | ||
<div class="about-us"> | ||
<header class="m-box m-aln-center m-head-top m-pos-f m-main m-bb1"> | ||
<div class="m-box m-aln-center m-flex-grow1 m-flex-base0"> | ||
<svg | ||
class="m-style-svg m-svg-def" | ||
@click="goBack"> | ||
<use | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xlink:href="#base-back"/> | ||
</svg> | ||
</div> | ||
<div class="m-box m-aln-center m-justify-center m-flex-grow1 m-flex-base0 m-head-top-title"> | ||
<span>关于我们</span> | ||
</div> | ||
<div class="m-box m-aln-center m-justify-end m-flex-grow1 m-flex-base0"/> | ||
</header> | ||
<main style="padding-top: 0.9rem; margin-top: -20px"> | ||
<div | ||
class="about-us--content" | ||
v-html="body"/> | ||
|
||
<common-header>关于我们</common-header> | ||
|
||
<main> | ||
<div class="content" v-html="body"/> | ||
</main> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "AboutUs", | ||
data() { | ||
return { | ||
body: "" | ||
}; | ||
}, | ||
mounted() { | ||
this.$http.get("/aboutus").then(({ data }) => { | ||
this.body = data; | ||
}); | ||
computed: { | ||
aboutUs() { | ||
const { aboutUs = {} } = this.$store.state.CONFIG.site; | ||
return aboutUs; | ||
}, | ||
body() { | ||
return this.aboutUs.content || ""; | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style lang='less'> | ||
.about-us--content { | ||
min-height: 100vh; | ||
background: #fff; | ||
<style lang='less' scoped> | ||
.about-us { | ||
.content { | ||
min-height: 100vh; | ||
background: #fff; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters