This commit is contained in:
A1300399510
2023-07-04 19:16:34 +08:00
commit 732184b18e
57 changed files with 28156 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<p>
For a guide and recipes on how to configure / customize this project,<br>
check out the
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
</p>
<h3>Installed CLI Plugins</h3>
<ul>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router" target="_blank" rel="noopener">router</a></li>
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex" target="_blank" rel="noopener">vuex</a></li>
</ul>
<h3>Essential Links</h3>
<ul>
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
</ul>
<h3>Ecosystem</h3>
<ul>
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
</ul>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
props: {
msg: String
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>

View File

@@ -0,0 +1,171 @@
<template>
<!-- 关于发布弹窗 -->
<div class="flexcenter pop-mask" v-if="popState">
<div class="pop about-pop shadow">
<div class="about-title">关于发布</div>
<div class="about-tab flexacenter">
<div class="about-tab-item flexcenter" :class="{ 'pitch': key === tab }" v-for="(value, key) in tabList"
:key="key" @click="cutTab(key)">
{{ value }}
</div>
</div>
<div class="about-list flexflex">
<div class="about-list-item" v-for="(item, index) in cutTabArray[tab]" :key="index">
<div v-html="item"></div>
</div>
</div>
<div class="close flexcenter" @click="$emit('close')">关闭</div>
</div>
</div>
</template>
<script>
import { ref, reactive, onMounted, getCurrentInstance, watch, computed } from 'vue';
export default {
name: 'GterFangAboutPop',
props: ['popState', "intermediary"],
setup(props) {
const { proxy } = getCurrentInstance()
const tabList = {
person: "个人账号",
intermediary: "中介账号",
more: "更多说明",
};
const tab = ref("person"); // person intermediary more
computed(() => {
if (props['intermediary'] == 1) tab = "intermediary"
else tab = "person"
})
const cutTabArray = reactive({});
// 监听 prop 变化
watch(() => props.popState, (newValue) => {
if (newValue && Object.keys(cutTabArray).length === 0) init();
});
onMounted(() => {
});
const init = () => {
proxy.$post("/tenement/forum/about").then((res) => {
cutTabArray['person'] = res.data['person']
cutTabArray['intermediary'] = res.data['intermediary']
cutTabArray['more'] = res.data['more']
});
};
const cutTab = (tabvalue) => {
tab.value = tabvalue;
};
console.log("cutTabArray", cutTabArray);
return {
tabList,
tab,
cutTabArray,
init,
cutTab,
// popState,
};
},
};
</script>
<style lang="less" scoped>
.close {
height: 50px;
width: 180px;
border: 1px solid rgba(215, 215, 215, 1);
border-radius: 55px;
margin: 0 auto;
cursor: pointer;
}
.pop-mask {
position: fixed;
top: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.698039215686274);
z-index: 1000;
}
.pop {
&.about-pop {
width: 600px;
height: 627px;
background: inherit;
background-color: rgba(255, 255, 255, 1);
border-radius: 20px;
.about-title {
color: #000;
font-size: 24px;
font-weight: 650;
margin: 0 auto;
text-align: center;
padding: 30px 0;
}
.about-tab {
height: 70px;
background-color: rgba(246, 246, 246, 1);
justify-content: space-around;
.about-tab-item {
width: 120px;
height: 40px;
border-radius: 60px;
font-size: 18px;
color: #555;
cursor: pointer;
&.pitch {
background: rgba(98, 177, 255, 1);
font-weight: 650;
color: #fff;
}
}
}
.about-list {
flex-direction: column;
color: #555;
font-size: 16px;
line-height: 30px;
padding: 0 30px 0 53px;
height: 374px;
.about-list-item {
padding: 30px 0;
&:not(:last-of-type) {
border-bottom: 1px dashed #ebebeb;
}
b {
color: #000;
}
}
}
}
}
</style>

View File

@@ -0,0 +1,130 @@
<template>
<header class="container-header">
<nav class="header-nav flexacenter">
<div class="header-nav-item" :class="{ pitch: index == 3 }" v-for="(item, index) in navList" :key="index">
{{ item }}</div>
<img class="header-nav-item header-user-img"
src="https://oss.gter.net/avatar/97KwEWIDY-QTHTXcpEbnWQxaRv6Xz0ll1wRhYWNh/middle?random=1687145465">
</nav>
<div class="logo-box flexacenter">
<img class="logo-icon" src="@/assets/img/edit/logo.png" />
<img class="logo-text" src="@/assets/img/edit/logo-text.png" />
</div>
<div class="container-header-bj"></div>
</header>
</template>
<script>
export default {
name: 'ZufangHead',
data() {
return {
navList: ["寄托首页", "论坛", "Offer榜", "港校租房", "院校库", "兑换店", "搜索", "招生官", "中外合办院校"],
};
},
mounted() {
},
methods: {
},
};
</script>
<style lang="less">
// 头部是公共的 特殊处理
.container-header {
flex-direction: column;
position: relative;
height: 260px;
margin: 0 auto;
.container-header-bj {
width: 100vw;
height: 260px;
background-image: url('@/assets/img/edit/bj-img1920.png');
background-repeat: no-repeat;
background-position: center;
position: absolute;
top: 0;
&::after {
content: "";
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 100vw;
max-width: 1920px;
height: 100%;
background-color: rgba(0, 0, 0, 0.698039215686274);
}
}
.header-nav {
height: 46px;
max-width: 1200px;
justify-content: flex-end;
margin: 0 auto;
position: relative;
z-index: 1;
cursor: pointer;
.header-nav-item {
color: rgba(215, 215, 215, 0.988235294117647);
font-size: 14px;
font-weight: 400;
margin-left: 24px;
&.pitch {
color: #62B1FF;
font-weight: 650;
position: relative;
&::after {
content: "";
position: absolute;
bottom: -3px;
left: 0;
width: 100%;
height: 3px;
border-radius: 28px;
background-color: rgba(98, 177, 255, 1);
}
}
}
.header-user-img {
width: 32px;
height: 32px;
border-radius: 50%;
}
}
.logo-box {
position: relative;
margin: 21px auto 0;
max-width: 1200px;
z-index: 1;
.logo-icon {
width: 30px;
height: 31px;
}
.logo-text {
width: 173px;
height: 31px;
margin-left: 9px;
}
}
}
</style>