提交 b28c8e3f 编写于 作者: guojing.hao's avatar guojing.hao

home 优化

上级 9d13ebb0
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="header"> <div class="header">
<div class="white gxy fs50">{{resourceData.title}}</div> <div class="white gxy fs50">{{resourceData.title}}</div>
<div> <div>
<span class="white fs30 gxyStudy">{{resourceData.studyCount}}人学习</span> <span class="white fs30 gxyStudy">{{resourceData.studyCount.toLocaleString()}}人学习</span>
<span class="white fs30">{{resourceData.follower}}人关注</span> <span class="white fs30">{{resourceData.follower.toLocaleString()}}人关注</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
default:()=>{ default:()=>{
return { return {
title: '高血压', title: '高血压',
studyCount: 27, studyCount: 270000,
follower: 1 follower: 1
} }
} }
......
<template> <template>
<div class="hello"> <div class="hello">
<div class="banner"> <div class="banner space-between">
<div class="bannerItem" :key="index" v-for="(item,index) in resourceData"> <div class="bannerItem" :key="index" v-for="(item,index) in resourceData">
<!-- <img class="bannerImg" :src="item.img"/> --> <!-- <img class="bannerImg" :src="item.img"/> -->
<img class="bannerImg" src="../../images/Shape@2x.png"/> <img class="bannerImg" src="../../images/Shape@2x.png"/>
...@@ -69,12 +69,13 @@ html,body{ ...@@ -69,12 +69,13 @@ html,body{
width: px2rem(50px); width: px2rem(50px);
display: inline; display: inline;
position: relative; position: relative;
margin-right: px2rem(18px); // margin-right: px2rem(18px);
} }
.bannerImg{ .bannerImg{
min-width: px2rem(22px); min-width: px2rem(22px);
max-height: px2rem(20px); max-height: px2rem(20px);
margin: 0 10px; margin: 0 auto;
display: block;
} }
.bannerText{ .bannerText{
position: absolute; position: absolute;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<!-- <select v-model="selected"> <!-- <select v-model="selected">
<option :key="index" v-for="(option,index) in teacherData.selectOptions" v-bind:value="option.value"> <option :key="index" v-for="(option,index) in teacherData.selectOptions" v-bind:value="option.value">
{{ option.text }} {{ option.text }}
</option> </option>needLeft
</select> --> </select> -->
<span @click="firstOption" :class="!isStudy?'titlegGreen':'gray'" class="fs26">{{teacherData.firstOption}}</span> <span @click="firstOption" :class="!isStudy?'titlegGreen':'gray'" class="fs26">{{teacherData.firstOption}}</span>
<span :key="index" v-for="(item,index) in teacherData.options"> <span :key="index" v-for="(item,index) in teacherData.options">
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
</div> </div>
<div class="content"> <div class="content">
<div class="needLeft white" :key="index" v-for="(item,index) in cource"> <div class="needLeft bgWhite white" :key="index" v-for="(item,index) in cource">
<img class="courceImg" src=""/> <img class="courceImg" src=""/>
<div v-if="courceData.hasType" :style="{'color':item.color}" :class="[item.isLeft?'flex-start':'flex-end']" class="courceType fs22 bgWhite">{{item.type}} <div v-if="courceData.hasType" :style="{'color':item.color}" :class="[item.isLeft?'flex-start':'flex-end']" class="courceType fs22 bgWhite">{{item.type}}
</div> </div>
......
...@@ -61,8 +61,8 @@ export default { ...@@ -61,8 +61,8 @@ export default {
return { return {
header: { header: {
title: '糖尿病', title: '糖尿病',
studyCount: 27, studyCount: 2700000,
follower: 1 follower: 10000
}, },
resourceData: [ resourceData: [
{img: '../../images/Shape@2x.png', {img: '../../images/Shape@2x.png',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册