作者 liaolinfeng

开发完成

... ... @@ -12,6 +12,18 @@
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>http://volunteer.w.bronet.cn</find>
</findStrings>
<replaceStrings>
<replace />
<replace>https://volunteer.cnpu.org</replace>
</replaceStrings>
<dirStrings>
<dir>E:\wxproject\03志愿者小程序效果图\volunteer\zhiyuanzhe\pages</dir>
</dirStrings>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
... ... @@ -21,15 +33,39 @@
<component name="NodePackageJsonFileManager">
<packageJsonPaths />
</component>
<component name="ProjectFrameBounds" extendedState="7">
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="121" />
<option name="y" value="19" />
<option name="width" value="1400" />
<option name="height" value="1000" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="zhiyuanzhe" type="b2602c69:ProjectViewProjectNode" />
<item name="zhiyuanzhe" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="zhiyuanzhe" type="b2602c69:ProjectViewProjectNode" />
<item name="zhiyuanzhe" type="462c0819:PsiDirectoryNode" />
<item name="pages" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="E:/project/trusteeship" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="node.js.detected.package.prettier" value="true" />
<property name="node.js.path.for.package.prettier" value="project" />
<property name="node.js.selected.package.prettier" value="" />
... ... @@ -60,30 +96,31 @@
<option name="presentableId" value="Default" />
<updated>1546648168340</updated>
<workItem from="1546648170160" duration="644000" />
<workItem from="1547097879598" duration="899000" />
<workItem from="1547268145045" duration="628000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="644000" />
<option name="totallyTimeSpent" value="2171000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="7" />
<editor active="true" />
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
<layout>
<window_info content_ui="combo" id="Project" order="0" weight="0.25" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24973656" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Terminal" />
<window_info id="Favorites" side_tool="true" />
<window_info anchor="bottom" id="Terminal" order="7" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
... ...
... ... @@ -19,7 +19,7 @@ App({
var promise = new Promise((resolve, reject) => {
let that = this;
let postData = data;
let baseUrl = 'http://volunteer.w.bronet.cn/api/';
let baseUrl = 'https://volunteer.cnpu.org/api/';
//网络请求
let header = {
'content-type': 'application/x-www-form-urlencoded'
... ...
{
"pages": [
"pages/start/start",
"pages/index/index",
"pages/start/start",
"pages/my/my",
"pages/more/more",
"pages/admin/admin",
"pages/apply/apply",
"pages/img_txt/img_txt",
"pages/result/result"
"pages/result/result",
"pages/close_apply/close_apply"
],
"window": {
"backgroundTextStyle": "light",
... ...
... ... @@ -12,37 +12,73 @@
height: 16rpx;
background: #F0F0F0;
}
.wxParse-img{
width: 100% !important;
}
.wxParse-strong{
font-weight: bold !important;
}
@font-face {font-family: "iconfont";
src: url('//at.alicdn.com/t/font_993764_m7evnd0l8pf.eot?t=1546393889667'); /* IE9*/
src: url('//at.alicdn.com/t/font_993764_m7evnd0l8pf.eot?t=1546393889667#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAkIAAsAAAAADPwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8eEkhY21hcAAAAYAAAACaAAACGDU5aPxnbHlmAAACHAAABIEAAAXAzBw75mhlYWQAAAagAAAAMQAAADYU0bg/aGhlYQAABtQAAAAeAAAAJAjtBJhobXR4AAAG9AAAABUAAAAoKQ7//2xvY2EAAAcMAAAAFgAAABYG/AWebWF4cAAAByQAAAAdAAAAIAEcAJRuYW1lAAAHRAAAAUUAAAJtPlT+fXBvc3QAAAiMAAAAeQAAAJ8w1lf+eJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkkWacwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeMT0XYW7438AQw9zA0AAUZg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q30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicbcrRDoIwDIXhFsXBDCY+ik9EmrG01djFwRLg6Z16659zdz5o4JeH/3ls8IBHbPGEDjvs0eMZhhxtK2SrUtpLS7qqXTUkG+sWiWNWlqWrt/GWyjBF44l0lmgSXaBnzHTrORnvUon7wrtegtCD7MNeagzwBlAoJ0EAAAA=') format('woff'),
url('//at.alicdn.com/t/font_993764_m7evnd0l8pf.ttf?t=1546393889667') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('//at.alicdn.com/t/font_993764_m7evnd0l8pf.svg?t=1546393889667#iconfont') format('svg'); /* iOS 4.1- */
src: url('//at.alicdn.com/t/font_993764_h8nvryxiew7.eot?t=1546995651844'); /* IE9 */
src: url('//at.alicdn.com/t/font_993764_h8nvryxiew7.eot?t=1546995651844#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAjwAAsAAAAAEAAAAAijAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCESgqQXI1dATYCJAM0CxwABCAFhG0HgUEbmg1RlFBSE9kX2DbsSQlzW45j42Js5+BAgBkLAAAAnIAXKJDyz+Lhv/3+t8/M3OvvqyXEIhlfnYRH0UQiiidf3aQUSiUkz+S/OU11jIl8PD/ho66FJv1TEtlWhpz9g5fh4uLiAtgC1uHp1H931xQXYinsVApLTU7b4fLV5LI5mp0J1f9uOx8+7LT5//nAHiAo+PnX2q+qh2jWfkjUtu+4+awys+guppbIlEhIe4hqskRoEnIihIyB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UPehOp0xCA/CnH3snWcujCl2XIzfvfDv/can6ct9/umH4atBJRFNy3dMXZRn7F/XEjZ1K+pqatVhOm03uImXiirU/o5SLuWaVz/sYRi7Xt26RYDOOSxmZc1trhWXwPxFUGB0md53s4rrff7f6DeYU5UTrs84G4MOMzLpnynWT4/pAC39+4ypJ/XCM0clzvVAiPONgV11ZLC8KKQuVPFAdOtMqrVr2ez2TqBAviZhu9U1GyE9Vrd/9abkmo6GObsjH9qtJKFy5VN48tKEmcygoXUVC1LZqzQaej39u2A5fCquMKBFU2aUjxTVxZwBF66cpq6uefEaOWQEXJhN+u70ihxMtXetq6NTxvmdSacC79Sw2jryJaU3p4wUkpN0STRDY6Spa/WoQEKm22RX1moEMW0nVZe3yRXnPm8k0qnnUSKXKUqKKOJtrooo8hxpjElMktkkmNMmZ003pxKBjo80IPj1l2DokMlUNlaViwsdVyjS5iJq5eepl7GxdJTIhcWhJSvtSH6Wn2661ccWKmthpbqtwQ8foS7l6lyOEA3OyzGKPU75CzGAA=') format('woff2'),
url('//at.alicdn.com/t/font_993764_h8nvryxiew7.woff?t=1546995651844') format('woff'),
url('//at.alicdn.com/t/font_993764_h8nvryxiew7.ttf?t=1546995651844') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('//at.alicdn.com/t/font_993764_h8nvryxiew7.svg?t=1546995651844#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
font-family:"iconfont" !important;
font-size:16px;
font-style:normal;
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-renyuanxiaozu:before { content: "\e691"; }
.icon-renyuanxiaozu:before {
content: "\e691";
}
.icon-guanbi:before {
content: "\e612";
}
.icon-aixin:before {
content: "\e602";
}
.icon-icon_on_the_right:before {
content: "\e625";
}
.icon-aixin:before { content: "\e602"; }
.icon-xiangyou:before {
content: "\e60c";
}
.icon-icon_on_the_right:before { content: "\e625"; }
.icon-guanbi1:before {
content: "\e61c";
}
.icon-xiangyou:before { content: "\e60c"; }
.icon-dengdaishenhe:before {
content: "\e61b";
}
.icon-dengdaishenhe:before { content: "\e61b"; }
.icon-camera1:before {
content: "\e61a";
}
.icon-camera1:before { content: "\e61a"; }
.icon-gongzhang:before {
content: "\e714";
}
.icon-gongzhang:before { content: "\e714"; }
.icon-xiangji:before {
content: "\e609";
}
.icon-xiangji:before { content: "\e609"; }
.icon-lianximaijia:before {
content: "\e60d";
}
.icon-chakanshenqing:before { content: "\e6a6"; }
\ No newline at end of file
.icon-chakanshenqing:before {
content: "\e6a6";
}
... ...
... ... @@ -2,15 +2,15 @@
<scroll-view scroll-y='true' bindscrolltolower='getdatalist' style='height:{{scroll_height}}rpx'>
<block wx:for='{{datalist}}' wx:key>
<view class='adminitem'>
<view class='admin_left'>
<navigator class='admin_left' url='/pages/close_apply/close_apply?id={{item.user_id}}' hover-class="none">
<view class='admin_img'>
<image src='{{item.photo?item.photo:"http://volunteer.w.bronet.cn/imgs/wode_02@2x.png"}}'></image>
<image src='{{item.photo?item.photo:"https://volunteer.cnpu.org/imgs/wode_02@2x.png"}}'></image>
</view>
<view class='admin_txt'>
<view class='admin_txttitle'>{{item.nane}}</view>
<view>{{item.duty}}</view>
</view>
</view>
</navigator>
<view class='admin_rigth'>
<view class='admin_buttom {{item.status=="3"?"admin_active":""}}' id='{{item.id}}' data-idi='{{item.status}}' data-status='3' data-index='{{index}}' bindtap='update_status'>不通过</view>
<view class='admin_buttom {{item.status !="3"?"admin_active":""}}' id='{{item.id}}' data-status='2' data-index='{{index}}' bindtap='update_status'>通过</view>
... ...
... ... @@ -6,11 +6,18 @@ Page({
* 页面的初始数据
*/
data: {
//
ifempower:true,//是否授权
showapply:false,
provincearr:[],
cityarr:[],
countryarr:[],
confirmvalarr:[0,0,0],
valarr:[0,0,0],
photo: '',
name: '',
enddata:'',
arraysex: ['男', '女'],
region:['天津市','天津市','西青区'],
sex: '',
birthday: '', //生日
nation: '', //民族
... ... @@ -19,7 +26,7 @@ Page({
"土族", "达斡尔族", "仫佬族", "羌族", "布朗族", "撒拉族", "毛南族", "仡佬族", "锡伯族", "阿昌族", "普米族", "塔吉克族", "怒族", "乌孜别克族",
"俄罗斯族", "鄂温克族", "德昂族", "保安族", "裕固族", "京族", "塔塔尔族", "独龙族", "鄂伦春族", "赫哲族", "门巴族", "珞巴族", "基诺族"
],
politics: '', //政治面貌
politicsarr: ['共青团员', '中共预备党员', '中共党员', '群众', '无党派人士', '其他'], //
education: '', //学历
... ... @@ -30,7 +37,6 @@ Page({
postcode: '', //邮编
school: '', //
card_number: '', //身份证号码
fixed_phone: '', //固定电话
move_phone: '', //
email: '', //
urgency_phone: '', //
... ... @@ -43,32 +49,33 @@ Page({
typearr: ['医院志愿者', '社会志愿者', '办事处志愿者'],
apply_nav: 0, //0为履历1,1为履历2,2为履历3,
record: [{
start_time: '',
end_time: '',
unit: '',
duty: '',
name: '',
phone: ''
record_start_time: '',
record_end_time: '',
record_unit: '',
record_duty: '',
record_name: '',
record_phone: ''
},
{
start_time: '',
end_time: '',
unit: '',
duty: '',
name: '',
phone: ''
record_start_time: '',
record_end_time: '',
record_unit: '',
record_duty: '',
record_name: '',
record_phone: ''
},
{
start_time: '',
end_time: '',
unit: '',
duty: '',
name: '',
phone: ''
record_start_time: '',
record_end_time: '',
record_unit: '',
record_duty: '',
record_name: '',
record_phone: ''
}
],
front_card: '', //身份证正面照
reverse_card: '' //身份证反面照
reverse_card: '', //身份证反面照
id:'',//用户id,
},
setname(e) {
this.setData({
... ... @@ -125,11 +132,7 @@ Page({
sex: parseInt(e.detail.value) + 1
})
},
setfixed_phone(e) {
this.setData({
fixed_phone: e.detail.value
})
},
setmove_phone(e) {
this.setData({
move_phone: e.detail.value
... ... @@ -167,6 +170,205 @@ Page({
type: parseInt(e.detail.value) +1
})
},
start(e) {
let that = this;
let tem = e.currentTarget.dataset.tem;
app.globalData.userInfo = e.detail.userInfo;
wx.login({
success: function (s) {
let url = 'wxapp/public/getSessionKey';
if (s.code) {
var code = s.code;
var param = {
code: code
}
app.post(url, param).then((res) => {
that.login(res.openid, res.session_key, e.detail.encryptedData, e.detail.iv,tem);
}).catch((errMsg) => {
console.log(errMsg);
})
}
}
});
},
login(openid, session_key, encrypted_data, iv,tem) {
let that = this;
let param = {
openid: openid,
session_key: session_key,
encrypted_data: encrypted_data,
iv: iv
}
let url = 'wxapp/public/login';
app.post(url, param).then((res) => {
wx.setStorageSync('token', res.token);
that.setData({
ifempower:true
})
that.uploadImage(tem);
}).catch((errMsg) => {
console.log(errMsg);
})
},
//选择省市区
getarea(){
let that=this;
let url ='index/area/index';
app.post(url,{}).then((res)=>{
let country = res.country;
let tem = {
id: 0,
city_id: res.country[0].city_id,
country_id: 0,
country_name: ''
}
country.push(tem);
let temcountry = country.reverse();
let cityarr = res.city;
let countryarr = res.country;
let provincearr = res.province;
that.setData({
cityarr: cityarr,
countryarr: temcountry,
provincearr: provincearr
})
if (that.data.is_submit==undefined){
that.setData({
ifempower:false
})
}else if (that.data.is_submit=='1'){
that.getdatalist();
}
}).catch((err)=>{
console.log(err)
})
},
//切换省份获取市和区/县
get_city(province_id=0){
let that=this;
let url ='index/area/get_city';
let params={
'province_id': province_id
}
app.post(url, params).then((res)=>{
console.log('切换省份获取市和区/县',res);
let country = res.country;
let tem = {
id: 0,
city_id: res.country[0].city_id,
country_id: 0,
country_name: ' '
}
country.push(tem);
let temcountry = country.reverse();
that.setData({
cityarr: res.city,
countryarr: temcountry
})
}).catch((err)=>{
console.log(err)
})
},
//切换市获取区/县
get_country(city_id=0){
let that=this;
let url ='index/area/get_country';
let params={
'city_id': city_id
}
app.post(url, params).then((res) => {
console.log('切换市获取区/县', res);
let country = res.country;
let tem={
id:0,
city_id: res.country[0].city_id,
country_id:0,
country_name:' '
}
country.push(tem);
let temcountry = country.reverse();
that.setData({
countryarr: temcountry
})
}).catch((err) => {
console.log(err)
})
},
bindChange: function (e) {
let that=this;
let valarr = that.data.valarr;
let provincearr = that.data.provincearr;
let cityarr = that.data.cityarr;
const val = e.detail.value;
if (valarr[0] != val[0] ){//改变省
let i = val[0];
that.get_city(provincearr[i].province_id);
valarr[0] = val[0];
valarr[1] = 0;
valarr[2] = 0;
that.setData({
valarr: valarr
})
} else if (valarr[1] != val[1]){//改变市
let j = val[1];
that.get_country(cityarr[j].city_id);
valarr[1] = val[1];
valarr[2] = 0;
that.setData({
valarr: valarr
})
}else {//改变区
valarr[2] = val[2];
that.setData({
valarr: valarr
})
}
},
//取消地区选择
setno(){
let that=this;
that.setData({
valarr: that.data.confirmvalarr,
showapply: false
})
},
//确定选择区域
setyes(){
let that=this;
let valarr = that.data.valarr;
let i = valarr[0];
let j = valarr[1];
let k = valarr[2];
let provincearr = that.data.provincearr;
let cityarr = that.data.cityarr;
let countryarr = that.data.countryarr;
that.setData({
confirmvalarr: valarr,
province: provincearr[i].province_name,
city: cityarr[j].city_name,
county: countryarr[k].country_name,
address: provincearr[i].province_name + cityarr[j].city_name + countryarr[k].country_name,
showapply:false
})
},
setshowapply(){
let that=this;
that.setData({
showapply:true
})
},
setshowapply_no() {
let that = this;
that.setData({
showapply: false
})
},
void_fun(){
},
bindRegionChange(e){
let that=this;
console.log(e);
... ... @@ -178,24 +380,11 @@ Page({
address: e.detail.value[0] + e.detail.value[1] + e.detail.value[2]
})
},
chooseaddress() {
let that = this;
// wx.chooseAddress({
// success: function(res) {
// that.setData({
// province: res.provinceName,
// city: res.cityName,
// county: res.countyName,
// address: res.provinceName + res.cityName + res.countyName + res.detailInfo
// })
// }
// })
},
bindstartChange(e) {
let that = this;
let apply_nav = parseInt(that.data.apply_nav);
let record = that.data.record;
record[apply_nav].start_time = e.detail.value;
record[apply_nav].record_start_time = e.detail.value;
that.setData({
record: record
})
... ... @@ -204,7 +393,7 @@ Page({
let that = this;
let apply_nav = that.data.apply_nav;
let record = that.data.record;
record[apply_nav].end_time = e.detail.value;
record[apply_nav].record_end_time = e.detail.value;
that.setData({
record: record
})
... ... @@ -213,7 +402,7 @@ Page({
let that = this;
let apply_nav = that.data.apply_nav;
let record = that.data.record;
record[apply_nav].unit = e.detail.value;
record[apply_nav].record_unit = e.detail.value;
that.setData({
record: record
})
... ... @@ -222,7 +411,7 @@ Page({
let that = this;
let apply_nav = that.data.apply_nav;
let record = that.data.record;
record[apply_nav].name = e.detail.value;
record[apply_nav].record_name = e.detail.value;
that.setData({
record: record
})
... ... @@ -231,7 +420,7 @@ Page({
let that = this;
let apply_nav = that.data.apply_nav;
let record = that.data.record;
record[apply_nav].duty = e.detail.value;
record[apply_nav].record_duty = e.detail.value;
that.setData({
record: record
})
... ... @@ -240,14 +429,19 @@ Page({
let that = this;
let apply_nav = that.data.apply_nav;
let record = that.data.record;
record[apply_nav].phone = e.detail.value;
record[apply_nav].record_phone = e.detail.value;
that.setData({
record: record
})
},
//上传头像1为头像,2为省份证正面,3为省份证反面
uploadImages(e) {
uploadImages(e){
let that=this;
let tem = e.currentTarget.dataset.tem;
that.uploadImage(tem);
},
//上传头像1为头像,2为省份证正面,3为省份证反面
uploadImage(tem) {
let that = this;
wx.chooseImage({
count: 1,
... ... @@ -258,7 +452,7 @@ Page({
'XX-Token': wx.getStorageSync('token'),
'XX-Device-Type': ''
}
let url = 'http://volunteer.w.bronet.cn/api/user/upload/one';
let url = 'https://volunteer.cnpu.org/api/user/upload/one';
wx.uploadFile({
url: url, //仅为示例,非真实的接口地址
filePath: tempFilePaths[0],
... ... @@ -300,7 +494,6 @@ Page({
submit() {
let that = this;
let err='';
//匹配中国邮政编码
// var AuglyTest_PostalCode = /^[0-9]\\d{5}$/;
//匹配身份证
... ... @@ -341,10 +534,6 @@ Page({
err = '请输入您的身份证号!';
} else if (!AuglyTest_ID.test(that.data.card_number)){
err = '请输入正确的身份证号!';
}else if (that.data.fixed_phone==''){
err = '请输入您的固定电话!';
} else if (!AuglyTest_tel.test(that.data.fixed_phone)){
err = '请输入正确的固定电话!';
}else if (that.data.move_phone==''){
err = '请输入您的移动电话!';
} else if (!AuglyTest_phone.test(that.data.move_phone)){
... ... @@ -378,12 +567,12 @@ Page({
let record_name = [];
let record_phone = [];
for (let obj of record) {
record_start_time.push(obj.start_time);
record_end_time.push(obj.end_time);
record_unit.push(obj.unit);
record_duty.push(obj.duty);
record_name.push(obj.name);
record_phone.push(obj.phone);
record_start_time.push(obj.record_start_time);
record_end_time.push(obj.record_end_time);
record_unit.push(obj.record_unit);
record_duty.push(obj.record_duty);
record_name.push(obj.record_name);
record_phone.push(obj.record_phone);
}
let url = 'index/member_center/submit_form';
let head = {
... ... @@ -401,7 +590,7 @@ Page({
addr: that.data.addr,
school: that.data.school,
card_number: that.data.card_number,
fixed_phone: that.data.fixed_phone,
move_phone: that.data.move_phone,
postcode: that.data.postcode,
email: that.data.email,
... ... @@ -428,6 +617,7 @@ Page({
icon: 'none',
duration: 2000
})
setTimeout(function(){
wx.switchTab({
url: '/pages/my/my'
... ... @@ -444,15 +634,83 @@ Page({
})
}
},
getdatalist(){
let that=this;
let url ='/index/member_center/edit';
let params={
'id':that.data.id
};
let head={
'XX-Token':wx.getStorageSync('token')
}
app.post(url, params, head).then((res)=>{
let provincearr = that.data.provincearr;
let cityarr = that.data.cityarr;
let countryarr = that.data.countryarr;
let val=[0,0,0];
for (let i=0; i<provincearr.length;i++ ){
if (provincearr[i].province_name == res.province){
val[0]=i;
}
}
for (let i = 0; i < cityarr.length; i++) {
if (cityarr[i].city_name == res.city) {
val[1] = i;
}
}
for (let i = 0; i < countryarr.length; i++) {
if (countryarr[i].country_name == res.county) {
val[2] = i;
}
}
that.setData({
valarr: val,
confirmvalarr: val,
addr: res.addr,
address: res.address,
birthday: res.birthday,
card_number: res.card_number,
city: res.city,
county: res.county,
duty: res.duty,
education: res.education,
email: res.email,
front_card: res.front_card,
move_phone: res.move_phone,
name: res.name,
nation: res.nation,
photo: res.photo,
politics: res.politics,
postcode:res.postcode,
province: res.province,
qq: res.qq,
record: res.record,
reverse_card: res.reverse_card,
school: res.school,
sex: res.sex,
unit: res.unit,
urgency_phone: res.urgency_phone,
type: res.type
})
}).catch((err)=>{
console.log(err)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
let that=this;
that.setData({
is_submit: options.is_submit,
id: options.id
})
let now = new Date();
let time = now.getFullYear() + "-" + ((now.getMonth() + 1) < 10 ? "0" : "") + (now.getMonth() + 1) + "-" + (now.getDate() < 10 ? "0" : "") + now.getDate();
this.setData({
enddata: time
})
that.getarea();
},
/**
... ... @@ -467,12 +725,15 @@ Page({
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
... ... @@ -480,7 +741,7 @@ Page({
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
... ...
<!--pages/apply/apply.wxml-->
<view class='upimg' bindtap='uploadImages' data-tem='1'>
<image src='{{photo}}' wx:if='{{photo}}'></image>
<view class='iconfont icon-xiangji' wx:if='{{photo==""}}'></view>
<view class='upimg' bindtap='{{ifempower?"uploadImages":""}}' data-tem='1'>
<button open-type='getUserInfo' bindgetuserinfo='start' class='inofbtn' if='{{!ifempower}}' data-tem='1'></button>
<image src='{{photo}}' wx:if='{{photo}}'></image>
<view class='iconfont icon-xiangji' wx:if='{{!photo}}' ></view>
</view>
<view class='apply_item'>
<view>姓名</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setname'></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setname' value='{{name}}' ></input>
</view>
</view>
<picker bindchange="bindsex" range="{{arraysex}}">
... ... @@ -57,78 +58,80 @@
<view class='apply_item'>
<view>工作单位</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setunit'></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setunit' value='{{unit}}'></input>
</view>
</view>
<view class='apply_item'>
<view>职务</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setduty'></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setduty' value='{{duty}}'></input>
</view>
</view>
<view class='apply_item'>
<view>通讯地址</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setaddr'></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setaddr' value='{{addr}}'></input>
</view>
</view>
<view class='apply_item'>
<view>邮编</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setpostcode'></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setpostcode' value='{{postcode}}'></input>
</view>
</view>
<view class='apply_item'>
<view>就读/毕业院校</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setschool'></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setschool' value='{{school}}'></input>
</view>
</view>
<view class='apply_item'>
<view>身份证号</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setcard_number'></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setcard_number' value='{{card_number}}'></input>
</view>
</view>
<view class='apply_item'>
<!-- <view class='apply_item'>
<view>固定电话</view>
<view class='apply_item_input'>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setfixed_phone'></input>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setfixed_phone' value='{{fixed_phone}}'></input>
</view>
</view>
</view> -->
<view class='apply_item'>
<view>移动电话</view>
<view class='apply_item_input'>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setmove_phone'></input>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setmove_phone' value='{{move_phone}}'></input>
</view>
</view>
<view class='apply_item'>
<view>电子邮箱</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setemail'></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setemail' value='{{email}}'></input>
</view>
</view>
<view class='apply_item big_item'>
<view>紧急联系人及电话</view>
<view class='apply_item_input'>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='seturgency_phone'></input>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='seturgency_phone' value='{{urgency_phone}}'></input>
</view>
</view>
<view class='apply_item'>
<view>QQ号码</view>
<view class='apply_item_input'>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setqq'></input>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setqq' value='{{qq}}'></input>
</view>
</view>
<picker mode ='region' bindchange='bindRegionChange' value="{{region}}">
<view class='apply_item' >
<view class='apply_item' bindtap='setshowapply'>
<view>服务区域</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{address?"color333":""}}'>{{address?address:'请选择'}}</view>
</view>
</view>
</picker>
<picker range='{{typearr}}' bindchange="bindtypeChange">
<view class='apply_item'>
<view>志愿类别</view>
... ... @@ -151,7 +154,7 @@
<view>开始时间</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{record[apply_nav].start_time?"color333":""}}'>{{record[apply_nav].start_time?record[apply_nav].start_time:'请选择'}}</view>
<view class='apply_itemtxt {{record[apply_nav].record_start_time?"color333":""}}'>{{record[apply_nav].record_start_time?record[apply_nav].record_start_time:'请选择'}}</view>
</view>
</view>
</picker>
... ... @@ -160,32 +163,32 @@
<view>结束时间</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{record[apply_nav].end_time?"color333":""}}'>{{record[apply_nav].end_time?record[apply_nav].end_time:'请选择'}}</view>
<view class='apply_itemtxt {{record[apply_nav].record_end_time?"color333":""}}'>{{record[apply_nav].record_end_time?record[apply_nav].record_end_time:'请选择'}}</view>
</view>
</view>
</picker>
<view class='apply_item'>
<view>单位名称</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].unit}}' bindinput='setrecordunit'></input>
<input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_unit}}' bindinput='setrecordunit'></input>
</view>
</view>
<view class='apply_item'>
<view>职务</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].duty}}' bindinput='setrecordduty'></input>
<input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_duty}}' bindinput='setrecordduty'></input>
</view>
</view>
<view class='apply_item'>
<view>证明人</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].name}}' bindinput='setrecordname'></input>
<input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_name}}' bindinput='setrecordname'></input>
</view>
</view>
<view class='apply_item'>
<view>证明人电话</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].phone}}' bindinput='setrecordphone'></input>
<input placeholder='未填写' placeholder-class='input_p' value='{{record[apply_nav].record_phone}}' bindinput='setrecordphone'></input>
</view>
</view>
</view>
... ... @@ -198,7 +201,7 @@
</view>
<view>上传身份证正面</view>
</view>
<image src='{{front_card?front_card:"http://volunteer.w.bronet.cn/imgs/renzhengxinxi_fanmian_bg@2x.png"}}'></image>
<image src='{{front_card?front_card:"https://volunteer.cnpu.org/imgs/renzhengxinxi_fanmian_bg@2x.png"}}'></image>
</view>
<view class='apply_idimg' bindtap='uploadImages' data-tem='3'>
<view class='apply_idimgmain' wx:if='{{!reverse_card}}' >
... ... @@ -207,7 +210,7 @@
</view>
<view>上传身份证反面</view>
</view>
<image src='{{reverse_card?reverse_card:"http://volunteer.w.bronet.cn/imgs/renzhengxinxi_zhengmian_bg@2x.png"}}'></image>
<image src='{{reverse_card?reverse_card:"https://volunteer.cnpu.org/imgs/renzhengxinxi_zhengmian_bg@2x.png"}}'></image>
</view>
</view>
<view class='apply_bottomtitle'>志愿者申请书
... ... @@ -216,4 +219,29 @@
为继承和弘扬国际主义战士白求恩的伟大风范和高尚情操,传承和弘扬白求恩的伟大精神,本人自愿申请加入白求恩志愿者队伍。
本人愿尽己所能,以“志愿服务”为宗旨,不计报酬、帮助他人、服务社会,恪守国家法律、法规,遵守白求恩志愿者各项规章制度,努力工作,尽职尽责,力争为公益事业做出贡献。
</view>
<view class='apply_btn' bindtap='submit'>提交</view>
\ No newline at end of file
<view class='apply_btn' bindtap='submit' >
提交
</view>
<!-- 服务区域 -->
<view class='apply_vold' wx:if='{{showapply}}' >
<view class='pickerview'>
<picker-view indicator-style="height: 40px;" class='pickerview_top' value="{{confirmvalarr}}" bindchange="bindChange">
<view class='iconfont icon-guanbi1' catchtap='setshowapply_no'></view>
<picker-view-column>
<view wx:for="{{provincearr}}" wx:key style="line-height: 40px" class='column_view'>{{ item.province_name}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{cityarr}}" wx:key style="line-height: 40px" class='column_view'>{{item.city_name}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{countryarr}}" wx:key style="line-height: 40px" class='column_view'>{{item.country_name}}</view>
</picker-view-column>
</picker-view>
<view class='apply_vold_btn'>
<view class='applybtn' catchtap='setno'>取消</view>
<view class='applybtn yes_applybtn' catchtap='setyes'>确定</view>
</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -160,6 +160,7 @@ z-index:10;
line-height: 50rpx;
}
.apply_btn{
position: relative;
margin: 0 32rpx 32rpx 32rpx;
height: 88rpx;
line-height: 88rpx;
... ... @@ -176,4 +177,79 @@ z-index:10;
}
.color333{
color:#333;
}
.apply_vold{
position: fixed;
top:0;
left:0;
width:100%;
height: 100%;
background: rgba(0,0,0,0.2);
z-index: 10;
display: flex;
/* display: none; */
justify-content: center;
align-items: center;
}
.pickerview{
position: relative;
background: #fff;
width:100%;
margin: 0 auto;
overflow: hidden;
}
.pickerview .icon-guanbi1{
position: absolute;
font-weight: bold;
font-size: 40rpx;
top:20rpx;
right: 50rpx;
color:#333;
z-index:100;
}
.pickerview_top{
width:100%;
padding:0 30rpx;
height: 400rpx;
}
.apply_vold_btn{
display: flex;
align-items: center;
justify-content: space-between;
}
.applybtn{
position: relative;
border:1rpx solid #f6f6f6;
color:#333;
font-size: 40rpx;
height: 80rpx;
width:50%;
display: flex;
align-items: center;
justify-content: center;
}
.inofbtn{
position: absolute;
top:0;
left:0;
width:100%;
height: 100%;
z-index:10;
opacity: 0;
}
.applybtn:active{
opacity: 0.7;
}
.yes_applybtn{
background-color: #04be02;
color:#fff;
border:1rpx solid #04be02;
}
.column_view{
display: flex;
justify-content: center;
align-items: center;
}
\ No newline at end of file
... ...
// pages/close_apply/close_apply.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
//
showapply: false,
provincearr: [],
cityarr: [],
countryarr: [],
confirmvalarr: [0, 0, 0],
valarr: [0, 0, 0],
photo: '',
name: '',
enddata: '',
arraysex: ['男', '女'],
sex: '',
birthday: '', //生日
nation: '', //民族
nationarr: ["汉族", "蒙古族", "回族", "藏族", "维吾尔族", "苗族", "彝族", "壮族", "布依族", "朝鲜族", "满族", "侗族", "瑶族", "白族", "土家族",
"哈尼族", "哈萨克族", "傣族", "黎族", "傈僳族", "佤族", "畲族", "高山族", "拉祜族", "水族", "东乡族", "纳西族", "景颇族", "柯尔克孜族",
"土族", "达斡尔族", "仫佬族", "羌族", "布朗族", "撒拉族", "毛南族", "仡佬族", "锡伯族", "阿昌族", "普米族", "塔吉克族", "怒族", "乌孜别克族",
"俄罗斯族", "鄂温克族", "德昂族", "保安族", "裕固族", "京族", "塔塔尔族", "独龙族", "鄂伦春族", "赫哲族", "门巴族", "珞巴族", "基诺族"
],
politics: '', //政治面貌
politicsarr: ['共青团员', '中共预备党员', '中共党员', '群众', '无党派人士', '其他'], //
education: '', //学历
educationarr: ['小学', '中学', '专科', '本科', '硕士研究生', '博士研究生', '其他'], //
unit: '', //工作单位
duty: '', //职务
addr: '', //通讯地址,
postcode: '', //邮编
school: '', //
card_number: '', //身份证号码
fixed_phone: '', //固定电话
move_phone: '', //
email: '', //
urgency_phone: '', //
qq: '',
province: '',
city: '',
county: '',
address: '', //详细地址,
type: '', //1医院志愿者,2社会志愿者,3办事处志愿者
typearr: ['医院志愿者', '社会志愿者', '办事处志愿者'],
apply_nav: 0, //0为履历1,1为履历2,2为履历3,
record: [{
record_start_time: '',
record_end_time: '',
record_unit: '',
record_duty: '',
record_name: '',
record_phone: ''
},
{
record_start_time: '',
record_end_time: '',
record_unit: '',
record_duty: '',
record_name: '',
record_phone: ''
},
{
record_start_time: '',
record_end_time: '',
record_unit: '',
record_duty: '',
record_name: '',
record_phone: ''
}
],
front_card: '', //身份证正面照
reverse_card: '', //身份证反面照
id: '',//用户id,
},
getdatalist() {
let that = this;
let url = '/index/member_center/edit';
let params = {
'id': that.data.id
};
let head = {
'XX-Token': wx.getStorageSync('token')
}
app.post(url, params, head).then((res) => {
let provincearr = that.data.provincearr;
let cityarr = that.data.cityarr;
let countryarr = that.data.countryarr;
let val = [0, 0, 0];
for (let i = 0; i < provincearr.length; i++) {
if (provincearr[i].province_name == res.province) {
val[0] = i;
}
}
for (let i = 0; i < cityarr.length; i++) {
if (cityarr[i].city_name == res.city) {
val[1] = i;
}
}
for (let i = 0; i < countryarr.length; i++) {
if (countryarr[i].country_name == res.county) {
val[2] = i;
}
}
that.setData({
valarr: val,
confirmvalarr: val,
addr: res.addr,
address: res.address,
birthday: res.birthday,
card_number: res.card_number,
city: res.city,
county: res.county,
duty: res.duty,
education: res.education,
email: res.email,
fixed_phone: res.fixed_phone,
front_card: res.front_card,
move_phone: res.move_phone,
name: res.name,
nation: res.nation,
photo: res.photo,
politics: res.politics,
postcode: res.postcode,
province: res.province,
qq: res.qq,
record: res.record,
reverse_card: res.reverse_card,
school: res.school,
sex: res.sex,
unit: res.unit,
urgency_phone: res.urgency_phone,
type: res.type
})
}).catch((err) => {
console.log(err)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let that = this;
that.setData({
id: options.id
})
that.getdatalist();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
{}
\ No newline at end of file
... ...
<!--pages/close_apply/close_apply.wxml-->
<view class='upimg' >
<image src='{{photo}}' wx:if='{{photo}}'></image>
<view class='iconfont icon-xiangji' wx:if='{{photo==""}}' ></view>
</view>
<view class='apply_item'>
<view>姓名</view>
<view class='apply_item_input'>
{{name}}
<!-- <input placeholder='未填写' placeholder-class='input_p' bindinput='setname' value='{{}}' ></input> -->
</view>
</view>
<view class='apply_item'>
<view >姓别</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{arraysex[sex-1]?"color333":""}}'>{{arraysex[sex-1]?arraysex[sex-1]:'请选择'}}</view>
</view>
</view>
<view class='apply_item'>
<view>出生日期</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{birthday?"color333":""}}'>{{birthday?birthday:'请选择'}}</view>
</view>
</view>
<view class='apply_item' >
<view>民族</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{nation?"color333":""}}'>{{nation?nation:'请选择'}}</view>
</view>
</view>
<view class='apply_item'>
<view>学历</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{education?"color333":""}}'>{{education?education:'请选择'}}</view>
</view>
</view>
<view class='apply_item'>
<view>政治面貌</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{politics?"color333":""}} '>{{politics?politics:'请选择'}}</view>
</view>
</view>
<view class='apply_item'>
<view>工作单位</view>
<view class='apply_item_input'>
{{unit}}
</view>
</view>
<view class='apply_item'>
<view>职务</view>
<view class='apply_item_input'>
{{duty}}
</view>
</view>
<view class='apply_item'>
<view>通讯地址</view>
<view class='apply_item_input'>
{{addr}}
</view>
</view>
<view class='apply_item'>
<view>邮编</view>
<view class='apply_item_input'>
{{postcode}}
</view>
</view>
<view class='apply_item'>
<view>就读/毕业院校</view>
<view class='apply_item_input'>
{{school}}
</view>
</view>
<view class='apply_item'>
<view>身份证号</view>
<view class='apply_item_input'>
{{card_number}}
</view>
</view>
<view class='apply_item'>
<view>固定电话</view>
<view class='apply_item_input'>
{{fixed_phone}}
</view>
</view>
<view class='apply_item'>
<view>移动电话</view>
<view class='apply_item_input'>
{{move_phone}}
</view>
</view>
<view class='apply_item'>
<view>电子邮箱</view>
<view class='apply_item_input'>
{{email}}
</view>
</view>
<view class='apply_item big_item'>
<view>紧急联系人及电话</view>
<view class='apply_item_input'>
{{urgency_phone}}
</view>
</view>
<view class='apply_item'>
<view>QQ号码</view>
<view class='apply_item_input'>
{{qq}}
</view>
</view>
<view class='apply_item' >
<view>服务区域</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{address?"color333":""}}'>{{address?address:'请选择'}}</view>
</view>
</view>
<view class='apply_item'>
<view>志愿类别</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{typearr[type-1]?"color333":""}}'>{{typearr[type-1]?typearr[type-1]:'请选择'}}</view>
</view>
</view>
<view class='apply_nav'>
<view class='apply_cell {{apply_nav==0?"apply_active":""}}' data-apply_nav='0' bindtap='setapply_nav'>个人履历1</view>
<view class='apply_cell {{apply_nav==1?"apply_active":""}}' data-apply_nav='1' bindtap='setapply_nav'>个人履历2</view>
<view class='apply_cell {{apply_nav==2?"apply_active":""}}' data-apply_nav='2' bindtap='setapply_nav'>个人履历3</view>
</view>
<view class='navbox'>
<picker mode='date' bindchange="bindstartChange">
<view class='apply_item'>
<view>开始时间</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{record[apply_nav].record_start_time?"color333":""}}'>{{record[apply_nav].record_start_time?record[apply_nav].record_start_time:'请选择'}}</view>
</view>
</view>
</picker>
<picker mode='date' bindchange="bindendChange">
<view class='apply_item'>
<view>结束时间</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{record[apply_nav].record_end_time?"color333":""}}'>{{record[apply_nav].record_end_time?record[apply_nav].record_end_time:'请选择'}}</view>
</view>
</view>
</picker>
<view class='apply_item'>
<view>单位名称</view>
<view class='apply_item_input'>
{{record[apply_nav].record_unit}}
</view>
</view>
<view class='apply_item'>
<view>职务</view>
<view class='apply_item_input'>
{{record[apply_nav].record_duty}}
</view>
</view>
<view class='apply_item'>
<view>证明人</view>
<view class='apply_item_input'>
{{record[apply_nav].record_name}}
</view>
</view>
<view class='apply_item'>
<view>证明人电话</view>
<view class='apply_item_input'>
{{record[apply_nav].record_phone}}
</view>
</view>
</view>
<view class='apply_title'>上传身份证照片</view>
<view class='apply_idbox'>
<view class='apply_idimg' data-tem='2'>
<view class='apply_idimgmain' wx:if='{{!front_card}}' >
<view class='apply_idupimg'>
<text class='iconfont icon-camera1'></text>
</view>
<view>上传身份证正面</view>
</view>
<image src='{{front_card?front_card:"https://volunteer.cnpu.org/imgs/renzhengxinxi_fanmian_bg@2x.png"}}'></image>
</view>
<view class='apply_idimg' data-tem='3'>
<view class='apply_idimgmain' wx:if='{{!reverse_card}}' >
<view class='apply_idupimg'>
<text class='iconfont icon-camera1'></text>
</view>
<view>上传身份证反面</view>
</view>
<image src='{{reverse_card?reverse_card:"https://volunteer.cnpu.org/imgs/renzhengxinxi_zhengmian_bg@2x.png"}}'></image>
</view>
</view>
<view class='apply_bottomtitle'>志愿者申请书
</view>
<view class='apply_bottom'>
为继承和弘扬国际主义战士白求恩的伟大风范和高尚情操,传承和弘扬白求恩的伟大精神,本人自愿申请加入白求恩志愿者队伍。
本人愿尽己所能,以“志愿服务”为宗旨,不计报酬、帮助他人、服务社会,恪守国家法律、法规,遵守白求恩志愿者各项规章制度,努力工作,尽职尽责,力争为公益事业做出贡献。
</view>
... ...
/* pages/close_apply/close_apply.wxss */
@import '/pages/apply/apply.wxss'
\ No newline at end of file
... ...
// pages/img_txt/img_txt.js
const app=getApp();
var wxParse = require('../../wxParse/wxParse.js');
//wxParse.wxParse('content', 'html', res.content, that, 5);
Page({
/**
... ... @@ -23,9 +23,12 @@ Page({
params = {
id: that.data.id
}
}else{
} else if (that.data.status == '2'){
url = 'index/member_center/about';
params = {};
} else if (that.data.status == '3'){
url = 'index/member_center/contact';
params = {};
}
app.post(url, params,head).then((res)=>{
console.log(res.content);
... ... @@ -48,7 +51,6 @@ Page({
id: options.id,
status: options.status
})
wx.setNavigationBarTitle({
title: '活动详情'
})
... ... @@ -61,6 +63,14 @@ Page({
title: '关于我们'
})
that.getdatalist();
} else if (options.status == '3'){
that.setData({
status: options.status
})
wx.setNavigationBarTitle({
title: '联系我们'
})
that.getdatalist();
}
... ...
... ... @@ -6,6 +6,7 @@
<view class='text_title'>{{datalist.activity_name}}</view>
<view class='text_time' wx:if='{{status=="1"}}'>{{datalist.time}}</view>
<view class='text_content'>
<!-- <rich-text nodes="{{datalist.content}}" bindtap="tap"></rich-text> -->
<import src="../../wxParse/wxParse.wxml" />
<template is='wxParse' data='{{wxParseData:content.nodes}}' />
</view>
... ...
... ... @@ -19,10 +19,10 @@
padding:24rpx 0 10rpx 0;
}
.text_content{
text-indent: 50rpx;
/* text-indent: 50rpx; */
/* color:#666666;
font-size:26rpx; */
line-height: 46rpx;
/* line-height: 46rpx; */
}
.text_time{
color:#999;
... ...
... ... @@ -22,7 +22,6 @@ Page({
activity_pageNum:4
}
app.post(url, params, head).then((res)=>{
let activity = res.activity;
let tem = [];
let temactivity = [];
... ... @@ -51,6 +50,47 @@ Page({
console.log(err)
})
},
//判断是否登陆
get_token(){
let that=this;
wx.login({
success: function (s) {
let url = 'wxapp/public/getSessionKey';
if (s.code) {
var code = s.code;
var param = {
code: code
}
app.post(url, param).then((res) => {
let url ='wxapp/public/get_token';
let params={
openid: res.openid
}
app.post(url, params).then((res)=>{
console.log(res);
if(res.data){
wx.setStorageSync('token', res.data);
that.setData({
datalist: [],
activity_page: 0,
activity: []
})
that.getdatalist();
}else{
wx.redirectTo({
url: '/pages/start/start'
})
}
}).catch((err)=>{
console.log(err);
})
}).catch((errMsg) => {
console.log(errMsg);
})
}
}
});
},
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -58,8 +98,9 @@ Page({
let windowHeight = wx.getSystemInfoSync().windowHeight;// 屏幕的高度
let windowWidth = wx.getSystemInfoSync().windowWidth // 屏幕的宽度
this.setData({
scroll_height: windowHeight * 750 / windowWidth-570
scroll_height: windowHeight * 750 / windowWidth
})
},
/**
... ... @@ -73,13 +114,10 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
let that=this;
that.setData({
datalist: [],
activity_page: 0,
activity: []
})
that.getdatalist();
let that = this;
that.get_token();
},
/**
... ...
<!--index.wxml-->
<scroll-view scroll-y='true' bindscrolltolower='getdatalist' style='height:{{scroll_height}}rpx'>
<swiper indicator-dots="true" autoplay="true" indicator-color='#8C9194' indicator-active-color='#ffffff' class="slide-image">
<navigator wx:for="{{datalist.slide}}" wx:key hover-class="none" url='/pages/img_txt/img_txt?id={{item.id}}&status=1' >
<navigator wx:for="{{datalist.slide}}" wx:key hover-class="none" url='/pages/img_txt/img_txt?id={{item.activity_id}}&status=1' >
<swiper-item>
<image src="{{item.image}}" />
</swiper-item>
... ... @@ -15,7 +16,7 @@
<view class='volunteercell' wx:for='{{datalist.volunteer}}' wx:key id='{{item.id}}'>
<view class='cell_top'>
<view class='cellimg'>
<image src='{{item.photo?item.photo:"http://volunteer.w.bronet.cn/imgs/wode_02@2x.png"}}'></image>
<image src='{{item.photo?item.photo:"https://volunteer.cnpu.org/imgs/wode_02@2x.png"}}'></image>
</view>
<view>{{item.name}}</view>
</view>
... ... @@ -26,7 +27,7 @@
<view class='vold_line'></view>
<view class='index_newbox'>
<view class='title activity_title'>活动快讯</view>
<scroll-view scroll-y='true' bindscrolltolower='getdatalist' style='height:{{scroll_height}}rpx'>
<view>
<view class='new_box' wx:for='{{activity}}' wx:key >
<navigator class='new_cell' wx:for='{{item}}' wx:key url='/pages/img_txt/img_txt?id={{item.id}}&status=1' hover-class="none">
<view class='new_cellmain'>
... ... @@ -38,5 +39,6 @@
</view>
</navigator>
</view>
</scroll-view>
</view>
\ No newline at end of file
</view>
</view>
</scroll-view>
\ No newline at end of file
... ...
... ... @@ -96,6 +96,7 @@ padding:0 32rpx;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.new_img image{
... ...
// pages/mao/mao.js
Page({
/**
* 页面的初始数据
*/
data: {
navList: ['navList1', 'navList2','navList3']
},
getStatus(e) {
this.setData({ status: e.currentTarget.dataset.index })
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
{}
\ No newline at end of file
... ...
<!--pages/mao/mao.wxml-->
<scroll-view class="tui-city-scroll" scroll-x="true" scroll-into-view="NAV{{status}}" scroll-with-animation="true">
<text bindtap="getStatus" id="NAV{{index}}" class="tui-nav-li {{index === status ? 'tui-nav-active' : ''}}" data-index="{{index}}" wx:for="{{navList}}" wx:key="">{{item}}</text>
</scroll-view>
<view class="tui-fixed-y">
<scroll-view class="tui-city-scroll-y" scroll-y="true" scroll-into-view="NAV{{status}}" scroll-with-animation="true">
<view wx:for="{{navList}}" wx:key="">
<view id="NAV{{index}}" class="tui-list-head">{{item}}</view>
<view class="tui-list-li">{{item}} 列表 {{index}}</view>
</view>
</scroll-view>
</view>
... ...
/* pages/mao/mao.wxss */
.tui-fixed-x{
width: 100%;
position: fixed;
top: 0;
left: 0;
}
.tui-city-scroll{
height: 220rpx;
line-height: 80rpx;
width: 100%;
white-space: nowrap;
}
.tui-city-scroll text{
height: 120rpx;
line-height: 80rpx;
width: 100%;
white-space: nowrap;
}
.tui-nav-li{
font-size: 33rpx;
padding: 0 10rpx;
}
.tui-nav-li:first-child{padding-left: 16rpx;}
.tui-nav-li:last-child{padding-right: 16rpx;}
.tui-nav-active{
color: red;
border-bottom: 3rpx solid red;
}
.tui-fixed-y{
width: 100%;
height: calc(100% - 80rpx);
position: fixed;
bottom: 0;
left: 0;
}
.tui-city-scroll-y{
padding: 0 20rpx;
height: 100%;
box-sizing: border-box;
}
.tui-list-head{
height: 50px;
line-height: 50px;
text-align: center;
font-size: 30rpx;
color: blue;
}
.tui-list-li{
height: 400px;
padding: 10rpx;
color: #fff;
font-size: 50rpx;
background-color: #2EB3FF;
}
\ No newline at end of file
... ...
... ... @@ -5,7 +5,7 @@
<view class='volunteercell' wx:for='{{item}}' wx:key >
<view class='cell_top'>
<view class='cellimg'>
<image src='{{item.photo?item.photo:"http://volunteer.w.bronet.cn/imgs/wode_02@2x.png"}}'></image>
<image src='{{item.photo?item.photo:"https://volunteer.cnpu.org/imgs/wode_02@2x.png"}}'></image>
</view>
<view>{{item.name}}</view>
</view>
... ...
<!--pages/my/my.wxml-->
<view class='my_head'>
<image src='http://volunteer.w.bronet.cn/imgs/gerenzhongxin_bg@2x.png'></image>
<image src='https://volunteer.cnpu.org/imgs/gerenzhongxin_bg@2x.png'></image>
<view class='my_headitem'>
<view class='my_headitemimg'>
<image src='{{datalist.avatar}}'></image>
... ... @@ -9,7 +9,7 @@
</view>
</view>
<view class='my_itembox'>
<navigator class='my_item' url='/pages/apply/apply' hover-class="none" wx:if='{{datalist.is_submit=="0"}}'>
<navigator class='my_item' url='/pages/apply/apply?id={{datalist.id}}&is_submit={{datalist.is_submit}}' hover-class="none" >
<view class='my_itemletf'>
<view class='iconfont icon-aixin'></view>成为志愿者
</view>
... ... @@ -21,6 +21,12 @@
</view>
<view class='iconfont icon-xiangyou'></view>
</navigator>
<navigator class='my_item' url='/pages/img_txt/img_txt' hover-class="none" url='/pages/img_txt/img_txt?status=3'>
<view class='my_itemletf'>
<view class='iconfont icon-lianximaijia'></view>联系我们
</view>
<view class='iconfont icon-xiangyou'></view>
</navigator>
<navigator class='my_item' url='/pages/img_txt/img_txt' hover-class="none" url='/pages/img_txt/img_txt?status=2'>
<view class='my_itemletf'>
<view class='iconfont icon-renyuanxiaozu'></view>关于我们
... ...
<!--pages/result/result.wxml-->
<view wx:if='{{datalist==""}}'>
<view class='resultimg'>
<image src='http://volunteer.w.bronet.cn/imgs/dengdaishenhe@2x.png'></image>
<image src='https://volunteer.cnpu.org/imgs/dengdaishenhe@2x.png'></image>
</view>
<view class='result_txt'>待提交</view>
<navigator class='start_btn' url='/pages/apply/apply' hover-class="none">成为志愿者</navigator>
... ... @@ -9,19 +9,19 @@
<view wx:else>
<view wx:if='{{datalist.status=="3"}}'>
<view class='resultimg'>
<image src='http://volunteer.w.bronet.cn/imgs/kulian@2x.png'></image>
<image src='https://volunteer.cnpu.org/imgs/kulian@2x.png'></image>
</view>
<view class='result_txt'>审核未通过</view>
</view>
<view wx:elif='{{datalist.status=="2"}}'>
<view class='resultimg'>
<image src='http://volunteer.w.bronet.cn/imgs/tongguo@2x.png'></image>
<image src='https://volunteer.cnpu.org/imgs/tongguo@2x.png'></image>
</view>
<view class='result_txt'>审核已通过</view>
</view>
<view wx:else>
<view class='resultimg'>
<image src='http://volunteer.w.bronet.cn/imgs/dengdaishenhe@2x.png'></image>
<image src='https://volunteer.cnpu.org/imgs/dengdaishenhe@2x.png'></image>
</view>
<view class='result_txt'>待审核</view>
</view>
... ...
... ... @@ -28,7 +28,7 @@ Page({
console.log(errMsg);
})
}
}
}
});
},
login(openid, session_key, encrypted_data, iv) {
... ...
<!--pages/start/start.wxml-->
<view class='start'>
<view class='start_main'>
<view class='start_mainimg'>
<image src='../../imgs/renwu@2x.png'></image>
</view>
<view class='start_bigtxt'>白求恩志愿者服务队</view>
<view class='start_minitxt'>Bethune Volunteer Service Team</view>
</view>
<button class='start_btn' open-type='getUserInfo' bindgetuserinfo='start'>立即开启</button>
<image src='http://volunteer.w.bronet.cn/imgs/qidongye_bg@2x.png'></image>
<image src='../../imgs/qidongye_bg@2x.png'></image>
</view>
... ...
... ... @@ -7,12 +7,49 @@
width:100%;
height: 100%;
z-index:10;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.start image{
width:100%;
height: 100%;
display: block;
}
.start_main{
position: absolute;
width:100%;
top:12%;
left:50%;
transform: translateX(-50%);
}
.start_bigtxt{
margin: 50rpx 0 12rpx 0;
color:rgba(33,174,89,1);
font-weight: bold;
font-size:44rpx;
text-align: center;
}
.start_minitxt{
color:rgba(33,174,89,0.5);
font-size:30rpx;
text-align: center;
font-weight: bold;
}
.start_mainimg{
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
width:256rpx;
height: 360rpx;
}
.start_mainimg image{
width:100%;
height: 100%;
display: block;
}
.start_btn{
position: absolute;
bottom:28%;
... ... @@ -24,7 +61,7 @@
color:#21AE59;
font-size:34rpx;
font-weight: bold;
border:1rpx solid #21AE59;
border:1rpx solid rgba(33,174,89,0.9);
z-index:20rpx;
display: flex;
align-items: center;
... ...
... ... @@ -4,7 +4,7 @@
"ignore": []
},
"setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
... ... @@ -12,8 +12,8 @@
},
"compileType": "miniprogram",
"libVersion": "2.4.3",
"appid": "wx6149ccc056174103",
"projectname": "zhiyuanzhe",
"appid": "wx7a3bf4e0796c070a",
"projectname": "zhiyuanzhe1",
"debugOptions": {
"hidedInDevtools": []
},
... ... @@ -51,10 +51,40 @@
"query": ""
},
{
"id": -1,
"id": 2,
"name": "apply",
"pathName": "pages/apply/apply",
"query": ""
},
{
"id": -1,
"name": "index",
"pathName": "pages/close_apply/close_apply",
"query": "id=2"
},
{
"id": -1,
"name": "mao",
"pathName": "pages/mao/mao",
"query": ""
},
{
"id": -1,
"name": "start",
"pathName": "pages/start/start",
"query": ""
},
{
"id": -1,
"name": "my",
"pathName": "pages/my/my",
"query": ""
},
{
"id": -1,
"name": "o_my",
"pathName": "pages/start/start",
"query": ""
}
]
}
... ...