14 changed files with 150 additions and 93 deletions
@ -1,5 +1,5 @@ |
|||||
const config = { |
const config = { |
||||
// api_url: 'http://192.168.42.44:8083/fqsb', // 服务器地址
|
// api_url: 'http://192.168.42.44:8083/fqsb', // 服务器地址
|
||||
api_url: 'https://shibeirencai.elinkit.com.cn:8083/fqsb' |
api_url: 'https://shibeirencai.elinkit.com.cn:7101/fqsb' |
||||
} |
} |
||||
export { config } |
export { config } |
After Width: | Height: | Size: 234 B |
@ -1,14 +1,25 @@ |
|||||
<!--pages/billboards/policy/policy-list/index.wxml--> |
<!--pages/billboards/policy/policy-list/index.wxml--> |
||||
<view class="container"> |
<view class="container"> |
||||
<view class="page_hd"> |
<view class="page_hd"> |
||||
<e-segment |
<view class="page_segment"> |
||||
headerTitles="{{navs}}" |
<e-segment |
||||
defaultSelectIndex="{{navSelectIndex}}" |
headerTitles="{{navs}}" |
||||
bind:tapSegment="tapSegemnt" |
defaultSelectIndex="{{navSelectIndex}}" |
||||
/> |
bind:tapSegment="tapSegemnt" |
||||
|
/> |
||||
|
</view> |
||||
|
<view class="page_btn_all" bindtap="onShowAllButton"> |
||||
|
<image class="arrow_btn" src="/images/billboard/arrow-down.png"></image> |
||||
|
</view> |
||||
</view> |
</view> |
||||
<view class="page_bd"> |
<view class="page_bd"> |
||||
<rich-text nodes="{{nodes}}"></rich-text> |
<rich-text nodes="{{nodes}}"></rich-text> |
||||
</view> |
</view> |
||||
<e-empty empty="{{nodes.length <= 0}}" message="暂无数据"/> |
<e-empty empty="{{nodes.length <= 0}}" message="暂无数据"/> |
||||
|
|
||||
|
<view class="pop_view pop_view_layout {{show ? 'pop_show': 'pop_hidden'}}"> |
||||
|
<block wx:for="{{navs}}" wx:key="pop_{{index}}"> |
||||
|
<text bindtap="onClickAllBtnItem" data-index="{{index}}" class="pop_item">{{item}}</text> |
||||
|
</block> |
||||
|
</view> |
||||
</view> |
</view> |
||||
|
@ -1,15 +1,70 @@ |
|||||
/* pages/billboards/policy/policy-list/index.wxss */ |
/* pages/billboards/policy/policy-list/index.wxss */ |
||||
|
.container { |
||||
|
position: relative; |
||||
|
} |
||||
.page_hd { |
.page_hd { |
||||
position: fixed; |
position: fixed; |
||||
border-bottom: 1px solid #f7f7f7; |
border-bottom: 1px solid #f7f7f7; |
||||
top: 0; |
top: 0; |
||||
height: 48px; |
height: 40px; |
||||
width: 100%; |
right: 0; |
||||
left: 0; |
left: 0; |
||||
z-index: 10; |
z-index: 10; |
||||
background-color: white; |
background-color: white; |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
} |
||||
|
|
||||
|
.page_segment { |
||||
|
width: 90vw; |
||||
|
} |
||||
|
|
||||
|
.page_btn_all { |
||||
|
width: 10vw; |
||||
|
background-color: white; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
} |
||||
|
.arrow_btn { |
||||
|
width: 30px; |
||||
|
height: 30px; |
||||
} |
} |
||||
.page_bd { |
.page_bd { |
||||
padding: 10px 10px 0 10px; |
padding: 10px 10px 0 10px; |
||||
margin-top: 48px; |
margin-top: 40px; |
||||
|
} |
||||
|
/* 弹出视图 */ |
||||
|
.pop_view { |
||||
|
position: absolute; |
||||
|
left: 0; |
||||
|
right: 0; |
||||
|
top: 0px; |
||||
|
height: 150px; |
||||
|
overflow: scroll; |
||||
|
background-color: white; |
||||
|
transition: 0.2s all ease-in-out; |
||||
|
} |
||||
|
.pop_show { |
||||
|
top: 0; |
||||
|
} |
||||
|
.pop_hidden { |
||||
|
top: -150px; |
||||
|
} |
||||
|
.pop_view_layout { |
||||
|
/* 布局 */ |
||||
|
padding: 0 10px; |
||||
|
border-bottom: 2px solid #f7f7f7; |
||||
|
} |
||||
|
.pop_item { |
||||
|
color: #999999; |
||||
|
font-size: 14px; |
||||
|
margin-top: 10px; |
||||
|
display: inline-block; |
||||
|
height: 20px; |
||||
|
margin-right: 10px; |
||||
|
white-space: nowrap; |
||||
|
padding: 8rpx 15rpx; |
||||
|
border-radius: 14px; |
||||
|
border: 1px solid #999999; |
||||
} |
} |
Loading…
Reference in new issue