Browse Source

修改问题;微调界面

master
lqq 6 years ago
parent
commit
9f85ad8111
  1. BIN
      images/temp_1.png
  2. 3
      pages/article/index.js
  3. 1
      pages/article/index.json
  4. 2
      pages/billboards/firm/index.json
  5. 11
      pages/billboards/policy/index.js
  6. 4
      pages/billboards/policy/policy-list/index.js
  7. 1
      pages/billboards/policy/policy-list/index.wxml
  8. 14
      pages/billboards/policy/policy-list/index.wxss

BIN
images/temp_1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

3
pages/article/index.js

@ -59,6 +59,9 @@ Page({
console.log(res) console.log(res)
const data = res.result const data = res.result
const date = dayjs(data.createTime).format('MM月DD日') const date = dayjs(data.createTime).format('MM月DD日')
wx.setNavigationBarTitle({
title: data.title,
})
this.setData({ this.setData({
nodes: data.content, nodes: data.content,
title: data.title, title: data.title,

1
pages/article/index.json

@ -1,4 +1,5 @@
{ {
"navigationBarTitleText": "详情",
"usingComponents": { "usingComponents": {
"e-ibutton": "/components/image-button/index" "e-ibutton": "/components/image-button/index"
} }

2
pages/billboards/firm/index.json

@ -1,5 +1,5 @@
{ {
"navigationBarTitleText": "重点业", "navigationBarTitleText": "重点业",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"usingComponents": { "usingComponents": {
"e-card": "/components/card/index", "e-card": "/components/card/index",

11
pages/billboards/policy/index.js

@ -29,7 +29,8 @@ Page({
onSearchClear (e) { onSearchClear (e) {
this.setData({ this.setData({
currPage: 1, currPage: 1,
searchKey: '' searchKey: '',
// list: []
}) })
//console.log(e) //console.log(e)
this.fetchPolicyList() this.fetchPolicyList()
@ -39,6 +40,7 @@ Page({
this.setData({ this.setData({
searchKey: key, searchKey: key,
currPage: 1, currPage: 1,
// list: []
}) })
//console.log(e) //console.log(e)
this.fetchPolicyList() this.fetchPolicyList()
@ -77,8 +79,13 @@ Page({
fetchPolicyList () { fetchPolicyList () {
const {searchKey} = this.data const {searchKey} = this.data
const page = this.data.currPage const page = this.data.currPage
if (searchKey.length > 0 && page == 1 ) {
this.setData({
list: []
})
}
policy.fetchPolicyList(page, searchKey, res => { policy.fetchPolicyList(page, searchKey, res => {
//console.log(res) console.log(res)
const datas = res.list const datas = res.list
let tempDatas = [] let tempDatas = []
datas.forEach(item => { datas.forEach(item => {

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

@ -75,5 +75,9 @@ Page({
}) })
} }
}) })
},
maskTouchMove () {
return
} }
}) })

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

@ -22,4 +22,5 @@
<text bindtap="onClickAllBtnItem" data-index="{{index}}" class="pop_item">{{item}}</text> <text bindtap="onClickAllBtnItem" data-index="{{index}}" class="pop_item">{{item}}</text>
</block> </block>
</view> </view>
<view bindtap="onHiddenPopView" class="mark" wx:if="{{show}}" catchtouchmove="maskTouchMove"></view>
</view> </view>

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

@ -53,12 +53,13 @@
transform: scaleY(0); transform: scaleY(0);
} }
.pop_view_layout { .pop_view_layout {
z-index: 10;
/* 布局 */ /* 布局 */
padding: 0 10px; padding: 10px 10px;
border-bottom: 2px solid #f7f7f7; border-bottom: 2px solid #f7f7f7;
} }
.pop_item { .pop_item {
color: #999999; color: #333;
font-size: 14px; font-size: 14px;
margin-top: 10px; margin-top: 10px;
display: inline-block; display: inline-block;
@ -68,4 +69,13 @@
padding: 8rpx 15rpx; padding: 8rpx 15rpx;
border-radius: 14px; border-radius: 14px;
border: 1px solid #999999; border: 1px solid #999999;
}
.mark {
position: fixed;
transition: 0.5 all ease-in-out;
top: 0;
height: 100vh;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.6);
} }
Loading…
Cancel
Save