fanp 6 years ago
parent
commit
01da14d1ef
  1. 5
      pages/billboards/policy/policy-list/index.js
  2. 2
      pages/billboards/policy/policy-list/index.wxml
  3. 9
      pages/billboards/policy/policy-list/index.wxss

5
pages/billboards/policy/policy-list/index.js

@ -32,6 +32,11 @@ Page({
})
this.fetchPolicyArtice()
},
onHiddenPopView () {
this.setData({
show:false,
})
},
onShowAllButton () {
console.log('show All tbn')
const show = this.data.show

2
pages/billboards/policy/policy-list/index.wxml

@ -12,7 +12,7 @@
<image class="arrow_btn" src="/images/billboard/arrow-down.png"></image>
</view>
</view>
<view class="page_bd">
<view class="page_bd" bindtap="onHiddenPopView">
<rich-text nodes="{{nodes}}"></rich-text>
</view>
<e-empty empty="{{nodes.length <= 0}}" message="暂无数据"/>

9
pages/billboards/policy/policy-list/index.wxss

@ -36,20 +36,21 @@
}
/* 弹出视图 */
.pop_view {
position: absolute;
position: fixed;
left: 0;
right: 0;
top: 0px;
top: 40px;
height: 150px;
overflow: scroll;
background-color: white;
transform-origin: 0 0;
transition: 0.2s all ease-in-out;
}
.pop_show {
top: 0;
transform: scaleY(1);
}
.pop_hidden {
top: -150px;
transform: scaleY(0);
}
.pop_view_layout {
/* 布局 */

Loading…
Cancel
Save