diff --git a/src/api/peopleApi.js b/src/api/peopleApi.js
index 5c77527..9ba367c 100644
--- a/src/api/peopleApi.js
+++ b/src/api/peopleApi.js
@@ -15,7 +15,7 @@ const assemblyHallPageApi = function(data) {
return request({
url: '/admin-api/people/assembly-hall/page',
method: 'get',
- data: data
+ data: data,
});
};
/**
@@ -26,7 +26,7 @@ const mediatorPageApi = function(data) {
return request({
url: '/admin-api/people/mediator/page',
method: 'get',
- data: data
+ data: data,
});
};
/**
@@ -37,7 +37,7 @@ const mediatorGetApi = function(data) {
return request({
url: '/admin-api/people/mediator/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -49,7 +49,7 @@ const seekHelpPageApi = function(data) {
return request({
url: '/admin-api/people/seek-help/page',
method: 'get',
- data: data
+ data: data,
});
};
/**
@@ -60,7 +60,7 @@ const seekHelpCreateApi = function(data) {
return request({
url: '/admin-api/people/seek-help/create',
method: 'post',
- data: data
+ data: data,
});
};
@@ -72,23 +72,25 @@ const seekHelpGetApi = function(data) {
return request({
url: '/admin-api/people/seek-help/get',
method: 'get',
- data: data
+ data: data,
});
};
+
const massesDetailUpdate = function(data) {
// 点单状态变化如:接单
return request({
url: '/admin-api/people/seek-help/update',
method: 'put',
- data: data
+ data: data,
});
};
+
const seekHelpApi = function(data) {
// 点单 进行帮助
return request({
url: `/admin-api/people/seek-help/help/${data.id}`,
method: 'put',
- data: data
+ data: data,
});
};
/**
@@ -99,7 +101,7 @@ const lawsRegulationPageApi = function(data) {
return request({
url: '/admin-api/people/laws-regulation/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -111,7 +113,7 @@ const lawsRegulationGetApi = function(data) {
return request({
url: '/admin-api/people/laws-regulation/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -123,7 +125,7 @@ const casesListApi = function(data) {
return request({
url: '/admin-api/people/cases/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -135,7 +137,7 @@ const getCasesIdApi = function(data) {
return request({
url: '/admin-api/people/cases/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -147,7 +149,7 @@ const createCasesApi = function(data) {
return request({
url: '/admin-api/people/cases/create',
method: 'post',
- data: data
+ data: data,
});
};
@@ -159,7 +161,7 @@ const newsGetApi = function(data) {
return request({
url: '/admin-api/people/news/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -171,7 +173,7 @@ const hospitalPageApi = function(data) {
return request({
url: '/admin-api/people/hospital/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -183,7 +185,7 @@ const hospitalGetApi = function(data) {
return request({
url: '/admin-api/people/hospital/get',
method: 'get',
- data: data
+ data: data,
});
};
/**
@@ -194,7 +196,7 @@ const doctorPageApi = function(data) {
return request({
url: '/admin-api/people/doctor/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -206,7 +208,7 @@ const assemblyIdApi = function(data) {
return request({
url: '/admin-api/people/assemblymen/create',
method: 'post',
- data: data
+ data: data,
});
};
@@ -218,7 +220,7 @@ const assemblyhallIdApi = function(data) {
return request({
url: '/admin-api/people/assembly-hall/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -230,7 +232,7 @@ const commentPageApi = function(data) {
return request({
url: '/admin-api/people/comment/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -242,7 +244,7 @@ const commentCreateApi = function(data) {
return request({
url: '/admin-api/people/comment/create',
method: 'post',
- data: data
+ data: data,
});
};
@@ -254,7 +256,7 @@ const assemblyHallGetApi = function(data) {
return request({
url: '/admin-api/people/assembly-hall/get',
method: 'get',
- data: data
+ data: data,
});
};
/**
@@ -265,7 +267,7 @@ const partyBranchApi = function(data) {
return request({
url: '/admin-api/people/party-branch/page',
method: 'get',
- data: data
+ data: data,
});
};
/**
@@ -277,7 +279,7 @@ const newsPageApi = function(data) {
return request({
url: '/admin-api/people/news/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -289,7 +291,7 @@ const partyBranchGetApi = function(data) {
return request({
url: '/admin-api/people/party-branch/get',
method: 'get',
- data: data
+ data: data,
});
};
/**
@@ -300,7 +302,7 @@ const excellentPartMemberPageApi = function(data) {
return request({
url: '/admin-api/people/excellent-party-member/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -312,7 +314,7 @@ const deptListApi = function(data) {
return request({
url: '/admin-api/system/dept/list',
method: 'get',
- data: data
+ data: data,
});
};
@@ -324,7 +326,7 @@ const excellentPartMemberGetApi = function(data) {
return request({
url: '/admin-api/people/excellent-party-member/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -336,7 +338,7 @@ const agencyPageApi = function(data) {
return request({
url: '/admin-api/people/agency/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -348,7 +350,7 @@ const villageAffairsPageApi = function(data) {
return request({
url: '/admin-api/people/village-affairs/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -360,7 +362,7 @@ const agencyContentPageApi = function(data) {
return request({
url: '/admin-api/people/agency-content/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -372,7 +374,7 @@ const CrateAppraiseApi = function(data) {
return request({
url: '/admin-api/people/seek-help/appraise',
method: 'put',
- data: data
+ data: data,
});
};
@@ -384,7 +386,7 @@ const agencyContentGetApi = function(data) {
return request({
url: '/admin-api/people/agency-content/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -396,7 +398,7 @@ const agencyGetApi = function(data) {
return request({
url: '/admin-api/people/agency/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -408,7 +410,7 @@ const agencyContentGetOrgIdApi = function(data) {
return request({
url: '/admin-api/people/agency-content/getOrgId',
method: 'get',
- data: data
+ data: data,
});
};
@@ -420,7 +422,7 @@ const villageAffairsGetApi = function(data) {
return request({
url: '/admin-api/people/village-affairs/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -432,7 +434,7 @@ const partyEventPageApi = function(data) {
return request({
url: '/admin-api/people/party-event/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -444,7 +446,7 @@ const partyEventGetApi = function(data) {
return request({
url: '/admin-api/people/party-event/get',
method: 'get',
- data: data
+ data: data,
});
};
@@ -456,7 +458,7 @@ const patientCreateApi = function(data) {
return request({
url: '/admin-api/people/patient/create',
method: 'post',
- data: data
+ data: data,
});
};
/**
@@ -467,7 +469,7 @@ const getGridListApi = function(data) {
return request({
url: '/admin-api/people/grid/page',
method: 'get',
- data: data
+ data: data,
});
};
/**
@@ -478,7 +480,7 @@ const getGridMemberListApi = function(data) {
return request({
url: '/admin-api/people/grid-member/page',
method: 'get',
- data: data
+ data: data,
});
};
@@ -487,11 +489,135 @@ const activityPageApi = function(data) {
return request({
url: '/admin-api/people/activity/page',
method: 'get',
- data: data
+ data: data,
});
};
+// 活动风采-详情
+const activityDetailApi = function(data) {
+ return request({
+ url: '/admin-api/people/activity/get',
+ method: 'get',
+ data: data,
+ });
+};
+// 党员注册
+const partyMemberCreate = function(data) {
+ return request({
+ url: '/admin-api/people/party-member/create',
+ method: 'POST',
+ data: data,
+ });
+};
+
+// 党员详情
+const partyMemberInfoApi = function(data) {
+ return request({
+ url: '/admin-api/people/party-member/info',
+ method: 'get',
+ data: data,
+ });
+};
+
+// 党员修改
+const partyMemberUpdate = function(data) {
+ return request({
+ url: '/admin-api/people/party-member/update',
+ method: 'put',
+ data: data,
+ });
+};
+
+// 志愿服务
+const volunteerProjectApi = function(data) {
+ return request({
+ url: '/admin-api/people/volunteer-project/page',
+ method: 'get',
+ data: data,
+ });
+};
+
+// 志愿服务-详情
+const getVolunteerProjectApi = function(data) {
+ return request({
+ url: '/admin-api/people/volunteer-project/get',
+ method: 'get',
+ data: data,
+ });
+};
+
+// 志愿服务-发布
+const getVolunteerProjectCreateApi = function(data) {
+ return request({
+ url: '/admin-api/people/volunteer-project/create',
+ method: 'post',
+ data: data,
+ });
+};
+
+// 志愿服务-详情
+// const getVolunteerProjectApi = function (data) {
+// return request({
+// url: '/admin-api/people/volunteer-project/get',
+// method: 'get',
+// data: data,
+// });
+// };
+
+// 党组织
+const partyOrganizationAllApi = function(data) {
+ return request({
+ url: '/admin-api/people/party-organization/list-all',
+ method: 'get',
+ data: data,
+ });
+};
+
+// 党组织-修改
+const partyOrganizationCreateApi = function(data) {
+ return request({
+ url: '/admin-api/people/party-organization/create',
+ method: 'post',
+ data: data,
+ });
+};
+
+// 党组织-修改
+const partyOrganizationUpdateApi = function(data) {
+ return request({
+ url: '/admin-api/people/party-organization/update',
+ method: 'put',
+ data: data,
+ });
+};
+
+// 党组织-详情
+const partyOrganizationInfoApi = function(data) {
+ return request({
+ url: '/admin-api/people/party-organization/info',
+ method: 'get',
+ data: data,
+ });
+};
+
+// 志愿服务申领列表
+const applyVolunteerProjecPageApi = function(data) {
+ return request({
+ url: '/admin-api/people/apply-volunteer-project/page',
+ method: 'get',
+ data: data,
+ });
+};
+
+// 志愿服务申领列表
+const applyVolunteerProjecCreateApi = function(data) {
+ return request({
+ url: '/admin-api/people/apply-volunteer-project/create',
+ method: 'post',
+ data: data,
+ });
+};
export {
assemblyHallPageApi,
@@ -535,5 +661,18 @@ export {
patientCreateApi,
getGridListApi,
getGridMemberListApi,
- activityPageApi
+ activityPageApi,
+ activityDetailApi,
+ partyMemberCreate,
+ volunteerProjectApi,
+ getVolunteerProjectApi,
+ partyOrganizationAllApi,
+ partyOrganizationCreateApi,
+ partyOrganizationUpdateApi,
+ getVolunteerProjectCreateApi,
+ applyVolunteerProjecPageApi,
+ applyVolunteerProjecCreateApi,
+ partyOrganizationInfoApi,
+ partyMemberInfoApi,
+ partyMemberUpdate,
};
\ No newline at end of file
diff --git a/src/images/member.png b/src/images/member.png
new file mode 100644
index 0000000..de3caf9
Binary files /dev/null and b/src/images/member.png differ
diff --git a/src/images/tissue.png b/src/images/tissue.png
new file mode 100644
index 0000000..6d628c6
Binary files /dev/null and b/src/images/tissue.png differ
diff --git a/src/packages/people/pages/activity-mien/detail.vue b/src/packages/people/pages/activity-mien/detail.vue
new file mode 100644
index 0000000..b9f4ff9
--- /dev/null
+++ b/src/packages/people/pages/activity-mien/detail.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+ {{detailObj.activityTitle}}
+
+ 发布人:{{detailObj.userName}}
+ {{getDateTime(detailObj.createTime,1)}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/packages/people/pages/activity-mien/index.vue b/src/packages/people/pages/activity-mien/index.vue
index f064e07..822a44f 100644
--- a/src/packages/people/pages/activity-mien/index.vue
+++ b/src/packages/people/pages/activity-mien/index.vue
@@ -12,36 +12,49 @@
-
-
+
+
-
+
NO.{{index+1}}
- 惠苑路社区西南角家乐福超市对面xxxxx
- 2023-11-23 周四
+ {{item.activityTitle}}
+ {{getDateTime(item.createTime)}}
- 发布者的名字
-
+ {{item.userName}}
+
-
@@ -128,17 +185,11 @@
height: 180rpx;
}
- .activity-title {
- margin-top: 16rpx;
- font-size: 30rpx;
- font-weight: 400;
- color: #000000;
- }
-
.activity-title {
font-size: 24rpx;
font-weight: 400;
- color: #999999;
+ color: #000000;
+ padding: 0 16rpx;
}
.activity-time {
@@ -146,6 +197,7 @@
font-weight: 400;
margin-top: 8rpx;
color: #999999;
+ padding: 0 16rpx;
}
.activity-rigth {
@@ -182,7 +234,7 @@
}
.activity-type0 {
- background: linear-gradient(291deg, #0A992D 0%, #11D03E 100%);
+ background: linear-gradient(270deg, #E71E00 0%, #FF5E33 100%);
}
.activity-type1 {
@@ -208,7 +260,7 @@
}
.van-empty__image {
- width: 75%;
+ width: 75% !important;
height: 100%;
}
\ No newline at end of file
diff --git a/src/packages/people/pages/party-branch/create.vue b/src/packages/people/pages/party-branch/create.vue
index 0de851a..3bd778d 100644
--- a/src/packages/people/pages/party-branch/create.vue
+++ b/src/packages/people/pages/party-branch/create.vue
@@ -6,23 +6,34 @@
单位名称
- *
+ *
-
+
+
+ {{form.workName}}
支部名称
- *
+ *
-
-
-
-
+
+
+ {{ form.branchName }}
+
+ 请选择支部名称
+
+
+
+
+ {{ form.branchName }}
+
+
@@ -30,59 +41,81 @@
单位地址
- *
+ *
-
+
+
+
+ {{form.workAddress}}
+
支部书记
- *
+ *
-
+
+
+
+ {{form.secretaryName}}
+
联系方式
- *
+ *
-
+
+
+ {{form.secretaryMobile}}
+
党建联系人
- *
+ *
-
+
+
+ {{form.partyBuildName}}
+
联系方式
- *
+ *
-
+
+
+ {{form.partyBuildMobile}}
+
结对共建社区
- *
+ *
-
-
-
-
+
+
+ {{ form.communityName }}
+
+
+
+
+ {{form.communityName}}
+
@@ -91,13 +124,18 @@
结对共建小区
- *
+ *
-
-
-
-
+
+
+ {{ form.villageName }}
+
+
+
+
+ {{form.villageName}}
+
@@ -105,64 +143,251 @@
支部党员人数
- *
+ *
-
+
+
+ {{form.partyMemberNum}}
+
- 提交
- 提交
+
+
+ 提交
+ 提交
+
+
+ 提交
+
+
+
+ 编辑
+
+
+
+
+
diff --git a/src/packages/people/pages/party-newspaper/create.vue b/src/packages/people/pages/party-newspaper/create.vue
index 467bbda..5745265 100644
--- a/src/packages/people/pages/party-newspaper/create.vue
+++ b/src/packages/people/pages/party-newspaper/create.vue
@@ -7,100 +7,144 @@
所属党委
- *
+ *
-
-
-
-
+
+
+ {{ form.partyOrganName }}
+ 请选择所属党委
+
+
+
+
+ {{form.partyOrganName}}
+
-
-
-
- 常住地社区
- *
-
-
-
-
-
-
-
+
+
+ 常住地社区
+ *
+
+
+
+
+ {{ form.communityName }}
+
+
+
+
+ {{ form.communityName }}
+
常住小区
- *
+ *
+
+
+
+ {{ form.villageName }}
+
+
+
+
+ {{form.villageName}}
+
-
楼栋(街)
- *
+ *
-
+
+
+
+
+ {{form.street}}
+
单元(巷)
- *
+ *
-
+
+
+ {{form.lane}}
+
房号
- *
+ *
-
+
+
+ {{form.houseCode}}
+
姓名
- *
+ *
-
+
+
+ {{form.name}}
+
性别
- *
+ *
-
- 男
- 女
-
+
+
+ 男
+ 女
+
+
+
+ {{form.sex=== 1 ? '男' : '女'}}
+
出生年月
- *
+ *
-
-
-
-
+
+
+ {{form.birthDate}}
+ 请选择出生年月
+
+
+
+
+ {{getDateTime(form.birthDate)}}
+
@@ -109,13 +153,22 @@
学历
- *
+ *
-
-
-
-
+
+
+ {{ educationList[form.education].label }}
+
+ 请选择
+
+
+
+
+ {{ educationList[form.education].label }}
+
+
@@ -123,81 +176,308 @@
工作单位
- *
+ *
-
+
+
+ {{form.workAddress}}
+
职务
- *
+ *
-
+
+ {{form.duties}}
联系方式
- *
+ *
-
+
+ {{form.mobile}}
- 提交
- 提交
+
+
+ 提交
+ 提交
+
+
+ 提交
+
+
+
+ 编辑
+
-
+
+
+
@@ -135,7 +223,7 @@
}
}
- .type {
+ .type0 {
position: absolute;
top: 0;
right: 0;
@@ -147,6 +235,19 @@
padding: 12rpx 22rpx 12rpx 36rpx;
}
+
+ .type1 {
+ position: absolute;
+ top: 0;
+ right: 0;
+ background: linear-gradient(270deg, #5B638E 0%, #7B96BF 100%);
+ border-radius: 0px 8rpx 0px 1000rpx;
+ font-size: 24rpx;
+ font-weight: 400;
+ color: #fff;
+ padding: 12rpx 22rpx 12rpx 36rpx;
+ }
+
.title-name {
display: inline-block;
position: relative;
@@ -187,16 +288,18 @@
}
.user {
+ width: 100%;
margin-top: 48rpx;
display: grid;
align-items: center;
grid-template-columns: repeat(4, 1fr);
grid-gap: 12rpx;
+ padding-right: 10rpx;
.user-item {
background: linear-gradient(90deg, #FFD9DA 0%, #FF8C8F 100%);
border-radius: 232132318px;
- padding: 12rpx 16rpx;
+ padding: 12rpx 10rpx 12rpx 16rpx;
display: flex;
align-items: center;
diff --git a/src/packages/people/pages/party-newspaper/index.vue b/src/packages/people/pages/party-newspaper/index.vue
index cee68cd..d580356 100644
--- a/src/packages/people/pages/party-newspaper/index.vue
+++ b/src/packages/people/pages/party-newspaper/index.vue
@@ -7,54 +7,68 @@
-
-
-
- {{item.name}}
-
+
+
+
+
+ {{item.name}}
+
+
+
- 志愿服务
+
+ 志愿服务
+
+ 换一换
+
+
+
-
-
-
+
+
+
-
- 服务中
+
+ {{getStatusText(statusList,item.serviceStatus)}}
-
+
- 创造更好营商环境申报
- 北京经开区政务服务中心联合融媒体中心策划
+ {{item.title}}
+ {{item.content}}
- 申领
+ 申领
+
+
- 活动风采
+ 活动风采
-
-
+
+
-
+
NO.{{index+1}}
- 惠苑路社区西南角家乐福超市对面xxxxx
- 2023-11-23 周四
+ {{item.activityTitle}}
+ {{getDateTime(item.createTime)}}
- 发布者的名字
-
+ {{item.userName}}
+
+
+
@@ -65,13 +79,19 @@
export default {
data() {
return {
+ userRoles: uni.getStorageSync('userRoles'),
option: {},
+ statusList: [],
recursionObj: {},
recursionTwoObj: [],
newsPageList: [],
pageNo: 1,
pageSize: 12,
total: 0,
+ volunteerProjectList: [],
+ volunteerProjectTotal: 0,
+ voluntPageNo: 1,
+
background: ['color1', 'color2', 'color3'],
indicatorDots: true,
autoplay: false,
@@ -81,13 +101,57 @@
},
onLoad(option) {
this.option = option
+ this.userRoles = uni.getStorageSync('userRoles')
+ this.getTypeApi('people_volunteer_project_serviceStatus', 'statusList');
this.recursionApi();
+ this.volunteerProject();
this.newsPageApi(false)
},
methods: {
+ headerUserRoles(item, key) {
+ if (item.remark !== '') {
+ return key === item.remark ? true : false;
+ } else {
+ return true;
+ }
+ },
updateQuery(url, name) {
return utils.updateQuery(url, name);
},
+ getDateTime(time) {
+ return utils.getDateTime(time, 2)
+ },
+ getStatusText(list, key) {
+ return utils.getStatusText(list, key)
+ },
+ // 获取群众点单字典
+ async getTypeApi(dictType, list) {
+ const res = await publicApi.getDictDataApi({
+ dictType: dictType,
+ pageNo: 1,
+ pageSize: 100,
+ });
+ if (res.code === 0) {
+ this[list] = res.data.list;
+ }
+ },
+ // 志愿服务
+ async volunteerProject() {
+ const res = await peopleApi.volunteerProjectApi({
+ pageNo: this.voluntPageNo,
+ pageSize: 10,
+ });
+ if (res.data) {
+ this.volunteerProjectList = res.data.list
+ this.volunteerProjectTotal = res.data.total
+ }
+ },
+ // 志愿服务申领
+ headerApplyFor(item) {
+ wx.navigateTo({
+ url: `./detail?id=${item.id}`,
+ });
+ },
async recursionApi() {
const res = await publicApi.recursionApi({
bannerType: 1,
@@ -134,8 +198,23 @@
},
headerDetail(item) {
uni.navigateTo({
- url: './detail?id=' + item.id
+ url: '../activity-mien/detail?id=' + item.id
})
+ },
+ headerChange() {
+ const {
+ volunteerProjectTotal,
+ voluntPageNo
+ } = this;
+ if (voluntPageNo * 10 < volunteerProjectTotal) {
+ this.voluntPageNo = voluntPageNo + 1,
+ this.volunteerProject();
+ } else {
+ uni.showToast({
+ title: '我到底了',
+ icon: 'none',
+ });
+ }
}
},
onReachBottom() {
@@ -159,13 +238,13 @@
text-align: center;
align-items: center;
grid-gap: 24rpx;
- height: 100%;
+ // height: 100%;
padding: 40rpx 38rpx 0 38rpx;
- margin-bottom: 60rpx;
+ margin-bottom: 38rpx;
.icon {
width: 100%;
- height: 100%;
+ height: 80rpx;
}
.title {
@@ -183,7 +262,7 @@
font-size: 36rpx;
font-weight: 500;
color: #333333;
- padding: 30rpx 30rpx 0 30rpx;
+ padding: 0rpx 30rpx 0 30rpx;
z-index: 3;
&::after {
@@ -219,7 +298,8 @@
margin-top: 38rpx;
display: grid;
align-items: center;
- grid-template-columns: 80% 20%;
+ grid-template-columns: 75% 20%;
+ justify-content: space-between;
.item-title {
font-size: 30rpx;
@@ -262,17 +342,10 @@
height: 180rpx;
}
- .activity-title {
- margin-top: 16rpx;
- font-size: 30rpx;
- font-weight: 400;
- color: #000000;
- }
-
.activity-title {
font-size: 24rpx;
font-weight: 400;
- color: #999999;
+ color: #000000;
}
.activity-time {
@@ -280,6 +353,7 @@
font-weight: 400;
margin-top: 8rpx;
color: #999999;
+ padding: 0 16rpx;
}
.activity-rigth {
@@ -309,7 +383,7 @@
padding: 8rpx 26rpx;
}
- .type {
+ .type0 {
position: absolute;
top: 0;
right: 0;
@@ -321,6 +395,18 @@
padding: 12rpx 22rpx 12rpx 36rpx;
}
+ .type1 {
+ position: absolute;
+ top: 0;
+ right: 0;
+ border-radius: 0px 8rpx 0px 1000rpx;
+ font-size: 24rpx;
+ font-weight: 400;
+ color: #fff;
+ padding: 12rpx 22rpx 12rpx 36rpx;
+ background: linear-gradient(270deg, #5B638E 0%, #7B96BF 100%);
+ }
+
.activity-type {
position: absolute;
top: 0;
@@ -329,11 +415,11 @@
font-size: 24rpx;
font-weight: 400;
color: #fff;
- padding: 12rpx 22rpx 12rpx 36rpx;
+ padding: 12rpx 31rpx 12rpx 15rpx;
}
.activity-type0 {
- background: linear-gradient(291deg, #0A992D 0%, #11D03E 100%);
+ background: linear-gradient(270deg, #E71E00 0%, #FF5E33 100%);
}
.activity-type1 {
@@ -347,4 +433,22 @@
.activity-type3 {
background: linear-gradient(291deg, #4a507b 0%, #6882b1 100%);
}
+
+ .navigator-wrap {
+ width: 100%;
+ height: 100%;
+ }
+
+ .change {
+ font-size: 24rpx;
+ font-weight: 400;
+ color: #999999;
+ padding-right: 30rpx;
+ display: flex;
+ align-items: center;
+
+ text {
+ margin-left: 20rpx;
+ }
+ }
\ No newline at end of file
diff --git a/src/packages/people/pages/volunteering/index.vue b/src/packages/people/pages/volunteering/index.vue
index 5a8a0e2..8e40894 100644
--- a/src/packages/people/pages/volunteering/index.vue
+++ b/src/packages/people/pages/volunteering/index.vue
@@ -10,8 +10,11 @@
*
-
-
+
+ {{form.serviceTypeName }}
+
+ 请选择点单类型
@@ -23,8 +26,8 @@
标题
*
-
+
@@ -49,7 +52,7 @@
所需人数
*
-
@@ -58,8 +61,8 @@
发布者
*
-
+
@@ -67,22 +70,12 @@
申领有效期
*
-
-
-
-
-
-
- 申领有效期
- *
-
-
-
-
-
-
-
+
+
+ {{form.effectDate}}
+ 请选择有效期
+
+
@@ -93,8 +86,12 @@
*
-
-
+
+
+ {{form.serviceStatusName }}
+
+ 请选择点单类型
@@ -102,7 +99,7 @@
- 发布信息
+ 发布信息
发布信息
@@ -110,21 +107,71 @@
diff --git a/src/pages.json b/src/pages.json
index 291b6ec..1183022 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -257,6 +257,11 @@
"name": "people",
"style": {}
},
+ {
+ "path": "pages/activity-mien/detail",
+ "name": "people",
+ "style": {}
+ },
{
"path": "pages/volunteering/index",
"name": "people",
diff --git a/src/pages/my/my.vue b/src/pages/my/my.vue
index 87a314c..86726b4 100644
--- a/src/pages/my/my.vue
+++ b/src/pages/my/my.vue
@@ -33,7 +33,8 @@
-
+
{{ itemName.name }}
@@ -68,7 +69,8 @@
-
+
@@ -145,8 +147,8 @@
this.getUserInfo();
},
methods: {
- updateQuery(url,item){
- return utils.updateQuery(url,item)
+ updateQuery(url, item) {
+ return utils.updateQuery(url, item)
},
async getUserInfoApi() {
const res = await myApi.getUserInfoApi();
@@ -192,6 +194,28 @@
}
];
const recursionList = [{
+ bannerType: 4,
+ clickUrl: '/packages/people/pages/party-branch/create?userid=',
+ cssStyle: wx.getStorageSync('userRoles') === '党组织' ? '' : 'display:none',
+ icon: '/static/images/tissue.png',
+ id: 125,
+ name: '党组织认证',
+ parentId: 96,
+ remark: '党组织认证',
+ sort: 1,
+ },
+ {
+ bannerType: 4,
+ clickUrl: '/packages/people/pages/party-newspaper/create?userid=',
+ cssStyle: null,
+ icon: '/static/images/member.png',
+ id: 123,
+ name: '党员认证',
+ parentId: 96,
+ remark: '党员认证',
+ sort: 1,
+ },
+ {
bannerType: 4,
clickUrl: '/packages/my/pages/my-masses/my-masses?id=',
cssStyle: null,
@@ -295,21 +319,21 @@
*/
async login() {
uni.navigateTo({
- url: '/pages/phone/index'
+ url: '/pages/phone/index'
});
- // 我的诉求
- // const res = await app.globalData.register({
- // code: this.code
- // });
- // if (res) {
- // uni.showToast({
- // title: '登录成功',
- // icon: 'none'
- // });
- // this.getInitData();
- // } else {
-
- // }
+ // 我的诉求
+ // const res = await app.globalData.register({
+ // code: this.code
+ // });
+ // if (res) {
+ // uni.showToast({
+ // title: '登录成功',
+ // icon: 'none'
+ // });
+ // this.getInitData();
+ // } else {
+
+ // }
},
// 获取我的信息
diff --git a/src/static/images/change.png b/src/static/images/change.png
new file mode 100644
index 0000000..0cfc366
Binary files /dev/null and b/src/static/images/change.png differ
diff --git a/src/static/images/member.png b/src/static/images/member.png
new file mode 100644
index 0000000..4305261
Binary files /dev/null and b/src/static/images/member.png differ
diff --git a/src/static/images/tissue.png b/src/static/images/tissue.png
new file mode 100644
index 0000000..6d628c6
Binary files /dev/null and b/src/static/images/tissue.png differ
diff --git a/src/utils/util.js b/src/utils/util.js
index 06b0744..7d5bdb3 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -3,12 +3,12 @@
* @return {*} 校验只要是数字(包含正负整数,0以及正负浮点数)就返回true
*/
function isNumber(val) {
- var regPos = /^\d+(\.\d+)?$/; //非负浮点数
- var regNeg = /^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$/; //负浮点数
- if (regPos.test(val) && regNeg.test(val)) {
- return true;
- }
- return false;
+ var regPos = /^\d+(\.\d+)?$/; //非负浮点数
+ var regNeg = /^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$/; //负浮点数
+ if (regPos.test(val) && regNeg.test(val)) {
+ return true;
+ }
+ return false;
}
/**
@@ -17,17 +17,17 @@ function isNumber(val) {
* @param t 时间
*/
const throttle = (ft, t) => {
- let flag = true;
- const interval = t;
- return function (self, ...args) {
- if (flag) {
- fn.apply(self, args);
- flag = false;
- setTimeout(() => {
- flag = true;
- }, interval);
- }
- };
+ let flag = true;
+ const interval = t;
+ return function(self, ...args) {
+ if (flag) {
+ fn.apply(self, args);
+ flag = false;
+ setTimeout(() => {
+ flag = true;
+ }, interval);
+ }
+ };
};
/**
@@ -36,17 +36,17 @@ const throttle = (ft, t) => {
* @param t 时间
*/
const debounce = (fn, t = 300) => {
- let timeId = null;
- const delay = t;
- return function (self, ...args) {
- if (timeId) {
- clearTimeout(timeId);
- }
- timeId = setTimeout(() => {
- timeId = null;
- fn.apply(self, args);
- }, delay);
- };
+ let timeId = null;
+ const delay = t;
+ return function(self, ...args) {
+ if (timeId) {
+ clearTimeout(timeId);
+ }
+ timeId = setTimeout(() => {
+ timeId = null;
+ fn.apply(self, args);
+ }, delay);
+ };
};
// 防抖示例
@@ -72,13 +72,13 @@ const debounce = (fn, t = 300) => {
* @param {Object} date
*/
function getDateString(date = new Date()) {
- return {
- year: date.getFullYear(),
- month: date.getMonth() + 1,
- day: date.getDate(),
- hour: date.getHours(),
- minute: date.getMinutes()
- };
+ return {
+ year: date.getFullYear(),
+ month: date.getMonth() + 1,
+ day: date.getDate(),
+ hour: date.getHours(),
+ minute: date.getMinutes()
+ };
}
/**
@@ -90,18 +90,18 @@ function getDateString(date = new Date()) {
* @description 可以选择的时候添加 selectable = true,反之, selectable = false
*/
function setSelectTreeLevel(tree, level) {
- if (!Array.isArray(tree)) {
- throw new Error('tree is not array!');
+ if (!Array.isArray(tree)) {
+ throw new Error('tree is not array!');
+ }
+ const list = JSON.parse(JSON.stringify(tree));
+ return list.map((item) => {
+ const itemObj = item;
+ itemObj.selectable = itemObj.code === level;
+ if (Array.isArray(itemObj.children) && itemObj.children.length > 0) {
+ itemObj.children = setSelectTreeLevel(itemObj.children, level);
}
- const list = JSON.parse(JSON.stringify(tree));
- return list.map((item) => {
- const itemObj = item;
- itemObj.selectable = itemObj.code === level;
- if (Array.isArray(itemObj.children) && itemObj.children.length > 0) {
- itemObj.children = setSelectTreeLevel(itemObj.children, level);
- }
- return itemObj;
- });
+ return itemObj;
+ });
}
/**
@@ -111,19 +111,19 @@ function setSelectTreeLevel(tree, level) {
* @returns {Array} 处理完成的树
*/
function handleChildren(tree) {
- if (!Array.isArray(tree)) {
- throw new Error('tree is not array!');
+ if (!Array.isArray(tree)) {
+ throw new Error('tree is not array!');
+ }
+ const list = JSON.parse(JSON.stringify(tree));
+ return list.map((item) => {
+ // eslint-disable-next-line no-param-reassign
+ if (item.children === null) {
+ item.children = [];
+ } else {
+ handleChildren(item.children);
}
- const list = JSON.parse(JSON.stringify(tree));
- return list.map((item) => {
- // eslint-disable-next-line no-param-reassign
- if (item.children === null) {
- item.children = [];
- } else {
- handleChildren(item.children);
- }
- return item;
- });
+ return item;
+ });
}
/**
@@ -132,14 +132,14 @@ function handleChildren(tree) {
* @returns {string} 时间格式,可选。默认yyyy-mm-dd hh:MM:ss,年为"yyyy",月为"mm",日为"dd",时为"hh",分为"MM",秒为"ss",格式可以自由搭配,如: yyyy:mm:dd yyyy-mm-dd yyyy年mm月dd日,yyyy年mm月dd日 hh时MM分ss秒,yyyy/mm/dd/,MM:ss等组合
*/
function timeFormat(dateTime = null, fmt = 'yyyy-mm-dd hh:MM:ss') {
- const time = new Date(dateTime);
- const Y = time.getFullYear();
- const M = time.getMonth() + 1 < 10 ? "0" + (time.getMonth() + 1) : time.getMonth() + 1;
- const D = time.getDate() < 10 ? "0" + time.getDate() : time.getDate();
- const h = time.getHours() < 10 ? "0" + time.getHours() : time.getHours();
- const m = time.getMinutes() < 10 ? "0" + time.getMinutes() : time.getMinutes();
- const s = time.getSeconds() < 10 ? "0" + time.getSeconds() : time.getSeconds();
- return Y + "-" + M + "-" + D + " " + h + ":" + m;
+ const time = new Date(dateTime);
+ const Y = time.getFullYear();
+ const M = time.getMonth() + 1 < 10 ? "0" + (time.getMonth() + 1) : time.getMonth() + 1;
+ const D = time.getDate() < 10 ? "0" + time.getDate() : time.getDate();
+ const h = time.getHours() < 10 ? "0" + time.getHours() : time.getHours();
+ const m = time.getMinutes() < 10 ? "0" + time.getMinutes() : time.getMinutes();
+ const s = time.getSeconds() < 10 ? "0" + time.getSeconds() : time.getSeconds();
+ return Y + "-" + M + "-" + D + " " + h + ":" + m;
}
/**
@@ -147,19 +147,21 @@ function timeFormat(dateTime = null, fmt = 'yyyy-mm-dd hh:MM:ss') {
* @returns {string} url
*/
function getCurrentPageUrlWithArgs() {
- const pages = getCurrentPages(); // 获取加载的页面
- const currentPage = pages[pages.length - 1]; // 获取当前页面的对象
- const url = currentPage.route; // 当前页面url
- const { options } = currentPage; // 如果要获取url中所带的参数可以查看options
+ const pages = getCurrentPages(); // 获取加载的页面
+ const currentPage = pages[pages.length - 1]; // 获取当前页面的对象
+ const url = currentPage.route; // 当前页面url
+ const {
+ options
+ } = currentPage; // 如果要获取url中所带的参数可以查看options
- //拼接url的参数
- let urlWithArgs = `${url}?`;
- for (const key in options) {
- const value = options[key];
- urlWithArgs += `${key}=${value}&`;
- }
- urlWithArgs = urlWithArgs.substring(0, urlWithArgs.length - 1);
- return '/' + urlWithArgs;
+ //拼接url的参数
+ let urlWithArgs = `${url}?`;
+ for (const key in options) {
+ const value = options[key];
+ urlWithArgs += `${key}=${value}&`;
+ }
+ urlWithArgs = urlWithArgs.substring(0, urlWithArgs.length - 1);
+ return '/' + urlWithArgs;
}
/**
@@ -167,35 +169,53 @@ function getCurrentPageUrlWithArgs() {
* @returns {Object} res
*/
function setRichText(res) {
- if (res.data && res.data.createTime) {
- res.data.createTime = timeFormat(res.data.createTime);
- if (res.data.content) {
- res.data.content = res.data.content.replace(/(\
['obj']
+ */
+function filterParams(obj) {
+ const _newPar = {};
+ for (const key in obj) {
+ // 如果对象属性的值不为空,就保存该属性(如果属性的值全部是空格,属于为空。)
+ if (obj[key] && obj[key].toString().replace(/(^\s*)|(\s*$)/g, '') !== '') {
+ // 保存属性
+ _newPar[key] = obj[key];
+ }
+ }
+ return _newPar;
+}
+
export default {
- data() {
- return {};
- },
- getDateString,
- isNumber,
- debounce,
- throttle,
- // pages,
- setSelectTreeLevel,
- handleChildren,
- timeFormat,
- getCurrentPageUrlWithArgs,
- setRichText
-};
+ data() {
+ return {};
+ },
+ getDateString,
+ isNumber,
+ debounce,
+ throttle,
+ // pages,
+ setSelectTreeLevel,
+ handleChildren,
+ timeFormat,
+ getCurrentPageUrlWithArgs,
+ setRichText,
+ filterParams
+};
\ No newline at end of file
diff --git a/src/utils/util.map.js b/src/utils/util.map.js
index 35210f4..9e019a0 100644
--- a/src/utils/util.map.js
+++ b/src/utils/util.map.js
@@ -10,7 +10,7 @@ function log(obj) {
* JSON字符串转JSON对象
* @param str JSON字符串
*/
-var str2Json = function (str) {
+var str2Json = function(str) {
if (!str) return;
var json = JSON.parse(str);
@@ -21,7 +21,7 @@ var str2Json = function (str) {
* 检查字符串是否是null或''
* @param str 字符串
*/
-var isNull = function (str) {
+var isNull = function(str) {
return str ? str : '---';
};
@@ -43,7 +43,7 @@ function getFullUrl(fileHost, url) {
* @param fileHost 静态资源基地址
* @param filesStr 文件数组(JSON字符串)
*/
-var getSingleFullUrl = function (fileHost, filesStr) {
+var getSingleFullUrl = function(fileHost, filesStr) {
if (!filesStr) return false;
var files = str2Json(filesStr);
@@ -60,7 +60,7 @@ var getSingleFullUrl = function (fileHost, filesStr) {
* @param arr 字符串数组
* @param str 检测的字符串
*/
-var isIncluded = function (arr, str) {
+var isIncluded = function(arr, str) {
return arr.indexOf(str) >= 0;
};
@@ -70,7 +70,7 @@ var isIncluded = function (arr, str) {
* @param str 展示的日期司机 默认0
* 0 (年-月-日 时:分:秒) 1 (x年-x月-x日 时:分:秒) 2 (x年-x月-x日) 3 (时:分:秒)
*/
-var getDateTime = function (value, type) {
+var getDateTime = function(value, type) {
//不能使用 new Date()
var time = new Date(value);
var year = time.getFullYear();
@@ -100,6 +100,7 @@ var getDateTime = function (value, type) {
second,
year + '年' + month + '月' + date + '日',
hour + ':' + minute + ':' + second,
+ year + '-' + month + '-' + date + ' ',
];
if (!type) {
return arr[0];
@@ -151,6 +152,20 @@ function formatStr(str) {
return str.substring(0, 1) + new Array(str.length).join('*')
}
+function getStatusText(list, status) {
+ if (!list) {
+ return '状态列表有误';
+ }
+ var item = null;
+ for (var i = 0; i < list.length; i++) {
+ if (list[i].value === status + '') {
+ item = list[i];
+ break;
+ }
+ }
+ return item ? item.label : '未知';
+}
+
export default {
log: log,
str2Json: str2Json,
@@ -161,5 +176,6 @@ export default {
getDateTime: getDateTime,
setMorKm: setMorKm,
updateQuery: updateQuery,
- formatStr: formatStr
+ formatStr: formatStr,
+ getStatusText: getStatusText
};
\ No newline at end of file