main
liudan 1 year ago
parent 310eaa8617
commit edbeaa9fdd
  1. 36
      pages/index/searchPage.vue
  2. BIN
      static/xiaohui.png

@ -60,8 +60,12 @@
<view v-if="contentList.length>0" :class="noSearch?'nosearchListContent marginTop':'nosearchListContent'"> <view v-if="contentList.length>0" :class="noSearch?'nosearchListContent marginTop':'nosearchListContent'">
<view class="firstItem" v-for="item in contentList" <view class="firstItem" v-for="item in contentList"
:key="item.id" @click="goNextSection(item)"> :key="item.id" @click="goNextSection(item)">
<text>{{item.name}}</text> <image src="../../static/xiaohui.png" mode=""></image>
<text>{{item.subName}}</text> <view class="schoolInfo">
<view class="schoolName">{{item.name}}</view>
<view class="schoolSubName">Massachusetts Institute of Technology</view>
<view class="schoolSubName">{{item.subName}}</view>
</view>
</view> </view>
</view> </view>
<view class="nodata" v-if="contentList.length==0"> <view class="nodata" v-if="contentList.length==0">
@ -279,12 +283,28 @@ export default{
background: #FFFFFF; background: #FFFFFF;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; // justify-content: space-between;
&>text{ .schoolInfo{
font-size: 30upx; flex:1;
font-family: PingFang SC; margin-left:20rpx;
font-weight: 500; .schoolName{
color: #333333; font-size: 30upx;
font-family: PingFang SC;
font-weight: 500;
color: #333333;
}
.schoolSubName{
font-size: 24upx;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
margin-top:14upx;
}
}
image{
width:110upx;
height:110upx;
} }
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 KiB

Loading…
Cancel
Save