作者 吴孟雨

首页添加公告栏

@@ -22,7 +22,13 @@ Page({ @@ -22,7 +22,13 @@ Page({
22 banner: [{image: '../../images/banner.png'}, {image: '../../images/b1@2x (1).png'}, {image: '../../images/b1@2x (2).png'}, {image: '../../images/banner.png'}], 22 banner: [{image: '../../images/banner.png'}, {image: '../../images/b1@2x (1).png'}, {image: '../../images/b1@2x (2).png'}, {image: '../../images/banner.png'}],
23 currentBannerIndex:0, 23 currentBannerIndex:0,
24 tabcurrent: {tab: 0,bubble: ''}, 24 tabcurrent: {tab: 0,bubble: ''},
25 - noticeList:[{url:'',name:'奥拉维尔·埃利亚松北京首展 https://github.com/wux-weapp/wux-weapp'}], 25 + noticeList:[{url:'',name:'https://github.com/wux-weapp/wux-weapp'},
  26 + {url:'',name:'北京首展11奥拉维尔·埃利亚松北京首展北京首展11奥拉维尔·埃利亚松北京首展'},
  27 + {url:'',name:'https://github.com/wux-weapp/wux-weapphttps://github.com/wux-weapp/wux-weapp'},
  28 + {url:'',name:'奥拉维尔'},
  29 + {url:'',name:'奥拉维尔https://github.com/wux-weapp/wux-weapp'},
  30 + {url:'',name:'奥拉维尔·埃利亚松北京首展https://github.com/wux-weapp/wux-weapp'},
  31 + ],
26 32
27 motto: 'Hello World', 33 motto: 'Hello World',
28 userInfo: {}, 34 userInfo: {},
@@ -38,11 +38,23 @@ @@ -38,11 +38,23 @@
38 <view class="area-box"> 38 <view class="area-box">
39 <image src="../../images/haowai@2x.png"></image> 39 <image src="../../images/haowai@2x.png"></image>
40 <!--<text>奥拉维尔·埃利亚松北京首展</text>--> 40 <!--<text>奥拉维尔·埃利亚松北京首展</text>-->
41 - <view wx:for="{{noticeList}}" wx:key="index">  
42 - <wux-notice-bar mode="link" icon="" action="" content="{{item.name}}" bind:click="onClick"> 41 + <!--<view wx:for="{{noticeList}}" wx:key="index">-->
  42 + <!--<wux-notice-bar mode="link" icon="" action="" content="{{item.name}}" bind:click="onClick">-->
43 <!--<text slot="footer" style="color: #a1a1a1; margin-left: 10px;">去看看</text>--> 43 <!--<text slot="footer" style="color: #a1a1a1; margin-left: 10px;">去看看</text>-->
44 - </wux-notice-bar>  
45 - </view> 44 + <!--</wux-notice-bar>-->
  45 + <!--</view>-->
  46 + <swiper class="tab-right" style='' vertical="true" autoplay="true" circular="true" interval="3000" display-multiple-items='1'>
  47 + <view class="right-item">
  48 + <block wx:for-index="idx" wx:for='{{noticeList}}' wx:key="index" >
  49 + <swiper-item>
  50 + <view class='content-item' bindtap="onClick">
  51 + <text>{{item.name}}</text>
  52 + </view>
  53 + </swiper-item>
  54 + </block>
  55 +
  56 + </view>
  57 + </swiper>
46 </view> 58 </view>
47 59
48 <view class="tandian-box"> 60 <view class="tandian-box">
@@ -394,4 +394,82 @@ swiper { @@ -394,4 +394,82 @@ swiper {
394 -webkit-box-sizing: border-box; 394 -webkit-box-sizing: border-box;
395 -moz-box-sizing: border-box; 395 -moz-box-sizing: border-box;
396 box-sizing: border-box; 396 box-sizing: border-box;
397 -}  
  397 +}
  398 +
  399 +
  400 +
  401 +/* 底部滚动列表 */
  402 +.contentBottom {
  403 + padding: 20rpx 0;
  404 + display: flex;
  405 + flex-direction: column;
  406 + justify-content: center;
  407 + background: #ffffff;
  408 +}
  409 +.BottomFirst {
  410 + width: 90%;
  411 + display: flex;
  412 + justify-content: space-around;
  413 + border: 1px solid #663a83;
  414 + box-sizing: border-box;
  415 + margin: 0 auto;
  416 +}
  417 +.BottomFirst text {
  418 + width: 100%;
  419 + text-align: center;
  420 + font-size: 30rpx;
  421 + color: #663a83;
  422 + line-height: 60rpx;
  423 + border-right: 1px solid #663a83;
  424 + box-sizing: border-box;
  425 +}
  426 +.BottomFirst text:nth-child(1){
  427 + border: none;
  428 +}
  429 +.tab-right {
  430 + width: 90%;
  431 + /* margin: 20rpx auto; */
  432 + height: 70rpx;
  433 +}
  434 +.right-item {
  435 + padding: 0 20rpx;
  436 + background: #ffffff;
  437 + height: 100%;
  438 + width: 100%;
  439 + box-sizing: border-box;
  440 +}
  441 +.content-item {
  442 + height: 70rpx;
  443 + line-height: 70rpx;
  444 + /* border-bottom: 1px solid #ede1d4; */
  445 + width: 95%;
  446 +}
  447 +.content-item text{
  448 + overflow : hidden;
  449 + display: -webkit-box;
  450 + -webkit-line-clamp: 1;
  451 + -webkit-box-orient: vertical;
  452 +}
  453 +.avater {
  454 + height: 50rpx;
  455 + width: 50rpx;
  456 + border-radius: 100rpx;
  457 + margin-top: 25rpx;
  458 + float: left;
  459 +}
  460 +.name {
  461 + font-size: 26rpx;
  462 + float: left;
  463 + line-height: 100rpx;
  464 + color: #b0aaa9;
  465 + margin-left: 20rpx;
  466 + width: 40%;
  467 + height:100%;
  468 + overflow: hidden;
  469 +}
  470 +.wawa {
  471 + font-size: 26rpx;
  472 + float: right;
  473 + line-height: 100rpx;
  474 + color: #999;
  475 +}