代码拉取完成,页面将自动刷新
<template>
<ZhihuCard></ZhihuCard>
<!-- https://youzan.github.io/vant/#/zh-CN/tabbar-->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o">标签</van-tabbar-item>
<van-tabbar-item icon="search">标签</van-tabbar-item>
<van-tabbar-item icon="friends-o">标签</van-tabbar-item>
<van-tabbar-item icon="setting-o">标签</van-tabbar-item>
</van-tabbar>
<div class="screen">
<div class="content">
<h2>题目</h2>
<div class="mid-box">
<div class="mid-left">
<div class="row nickname-row">
<!-- 为什么这个不显示-->
<!-- flex row 里的图片不显示-->
<img class="avatar-img" src="@/assets/miku.jpg" alt="miku"/>
<!-- <div class="avatar">头像-->
<!-- <!– <img src="src/assets/miku.jpg"/> –>-->
<!-- <!– src 不行 –>-->
<!-- <img class="avatar-img" src="@/assets/miku.jpg"/>-->
<!-- </div>-->
<span class="nickname">昵称</span>
<span class="personal-signature">昵称</span>
</div>
<!-- <img class="avatar-img" src="@/assets/miku.jpg" alt="miku"/>-->
<div class="content-article">内容</div>
</div>
<div class="mid-right">
<img class="mid-right-img" src="@/assets/miku.jpg" alt="miku"/>
</div>
</div>
<div class="brows-cnt">浏览</div>
</div>
</div>
</template>
<!--setup-->
<!--ts 不行啊-->
<script>
// <script setup lang="ts">
// import zhihu-card
// import ZhihuCard from '@/components/zhihu-card/index.vue'
import { onMounted, ref } from "vue";
// import { Sex, fetchUserInfo, updateUserInfo } from "../services";
const name = ref("");
// import ConnectionsList from '@/views/connections/ConnectionsList.vue'
import ZhihuCard from '@/components/zhihu-card/index.vue'
// const sex = ref(Sex.male);
onMounted(() => {
});
// 作者:DylanlZhao
// 链接:https://juejin.cn/post/7001897686567747598
// 来源:稀土掘金
// 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
</script>
<!--其他地方定义的 css 不引入的话 应该不行的吧-->
<!-- <style type="text/css" scoped>-->
<style lang="less" scoped>
.white {
color: white;
}
.center {
text-align: center;
}
.get-issue-btn-row {
margin-top: 10px;
margin-bottom: 10px;
}
.btn-margin {
margin-top: 10px;
margin-bottom: 10px;
}
/* .get-issue-btn-row{
margin-top: 10px;
margin-bottom: 10px;
} */
.time {
display: flex;
flex-direction: row;
font-size: 50%;
margin-top: 10px;
}
.created_at {
margin-right: 10px;
margin-left: 5px;
}
.updated_at {
margin-right: 10px;
margin-left: 5px;
}
/*有头绪了 貌似是这里有padding*/
.row {
background: red;
display: flex;
flex-direction: row;
/* flex-direction: row; */
}
.row * {
padding: 0;
}
.elliptical-background {
width: 200px;
height: 200px;
line-height: 200px;
text-align: center;
font-size: 20px;
border: 1px red solid;
border-radius: 50px;
background-color: bisque;
}
.open-bg {
/* width: 200px;
height: 200px; */
/* width: 100px;
height: 50px; */
width: 80px;
height: 30px;
/* line-height: 200px; */
/* line-height: 100px; */
/* line-height: 50px; */
line-height: 30px;
text-align: center;
/* font-size: 20px; */
font-size: 5px;
border: 1px greenyellow solid;
border-radius: 50px;
background-color: rgb(213, 255, 196);
}
.username {
/* 加粗 */
font-weight: bold;
margin-right: 5px;
}
// @avatar_size:50px;
// @avatar_size:70px;
// @avatar_size:24px;
// @avatar_size:24*2px;
@avatar_size: 24px;
/* @avatar_img_size: 20px;*/
@avatar_img_size: 30px;
/*不是尺寸的原因*/
.avatar {
background: yellow;
// width: 30px;
// height: 30px;
width: @avatar_size;
height: @avatar_size;
border-radius: 50%;
}
@screen_width: 414px;
.nickname {
background: purple;
// width: 300px;
// width: 183*2px;
// height: 22*2px;
/*width: 183px;*/
width: 123px;
height: 22px;
margin-left: 30px;
}
.screen {
background: green;
width: @screen_width;
}
.content {
// padding-left: 10px;
padding-left: 30px;
padding-right: 10px;
}
.avatar-img {
border-radius: 50%;
/*margin-left: 30px;*/
width: @avatar_img_size;
height: @avatar_img_size;
}
.nickname-row {
height: 30px;
}
.personal-signature {
color: #999999;
width: 111px;
}
.content-article {
/*width: 349px;*/
height: 72px;
background: #000dba;
}
.brows-cnt {
color: #999999;
font-size: 80%;
background: #ff9854;
}
.mid-box {
width: 375px;
height: 102px;
display: flex;
/*flex-direction: column;*/
flex-direction: row;
}
.mid-right{
display: flex;
align-content: center;
align-items: center;
/*width: 73px;*/
/*height: 73px;*/
width: 102px;
height: 102px;
justify-content: center;
}
.mid-right-img{
width: 73px;
height: 73px;
}
.mid-left{
width: 274px;
}
</style>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。