Browse Source

优化

master
zhaoyongnian 5 years ago
parent
commit
74f60a6706
  1. 2
      subpages/associationNew/components/membersListNew/membersListNew.wxml
  2. 4
      subpages/associationNew/components/membersListNew/membersListNew.wxss
  3. 11
      subpages/associationNew/pages/associationlist/associationlist.js
  4. 3
      subpages/associationNew/pages/associationlist/associationlist.wxml
  5. 11
      subpages/associationNew/pages/associationlist/associationlist.wxss
  6. 6
      subpages/associationNew/utils/api.js

2
subpages/associationNew/components/membersListNew/membersListNew.wxml

@ -8,6 +8,8 @@
<view class="name">{{item.name}}</view>
<view class="autograph">{{item.motto}}</view>
<view class="autograph">{{item.areaResponsibility}}</view>
<view bindtap="onPhone" data-number="{{item.mobile}}" class="autograph">{{item.mobile}}</view>
</view>
</view>

4
subpages/associationNew/components/membersListNew/membersListNew.wxss

@ -1,7 +1,7 @@
.item {
width: 320rpx;
height: 318rpx;
height: 354rpx;
margin-top: 20rpx;
background: #fff;
border-radius: 20rpx;
@ -25,7 +25,7 @@
}
.item .autograph {
margin-top: 10rpx;
margin-top: 8rpx;
font-size:26rpx;
font-weight:500;
color:rgba(193,193,193,1);

11
subpages/associationNew/pages/associationlist/associationlist.js

@ -1,7 +1,8 @@
// subpages/associationNew/pages/associationlist/associationlist.js
import {
getPartyGroupList,
getJoinGroup
getJoinGroup,
getImageUrl2
} from '../../utils/api'
Page({
@ -13,7 +14,8 @@ Page({
loadMoreVisible: false,
loadMoreType: 'none',
pageNo: 1,
pageSize: 10
pageSize: 10,
imageUrlList: [],
},
/**
@ -21,6 +23,11 @@ Page({
*/
onLoad: function () {
// this.getPartyGroupList();
getImageUrl2().then(res => {
this.setData({
imageUrlList: [...res.data]
})
})
},
/**

3
subpages/associationNew/pages/associationlist/associationlist.wxml

@ -1,4 +1,7 @@
<!--subpages/associationNew/pages/associationlist/associationlist.wxml-->
<view class="title_bg">
<image src="{{imageUrlList[0].imgUrl}}"></image>
</view>
<view class="association-list">
<community-list
associationList="{{associationList}}"

11
subpages/associationNew/pages/associationlist/associationlist.wxss

@ -1,7 +1,16 @@
/* subpages/associationNew/pages/associationlist/associationlist.wxss */
page {
width:100%;
width: 100%;
height: auto;
overflow-y: auto;
background: #f7f7f7;
}
.title_bg {
width: 100%;
height: 150rpx;
}
.title_bg image{
width: 100%;
height: 150rpx;
}

6
subpages/associationNew/utils/api.js

@ -5,6 +5,12 @@ const request = require('../../../utils/request')
export function getImageUrl() {
return request.get('imgConfig/getImgUrl/1')
}
/**
*获取图片党群列表首页
*/
export function getImageUrl2() {
return request.get('imgConfig/getImgUrl/2')
}
/**
*进入党群
*/

Loading…
Cancel
Save