tovolApply.vue 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  1. <template>
  2. <view class="content">
  3. <!-- <view class="top">
  4. <image src="../../static/img/activity.png" mode=""></image>
  5. </view>
  6. -->
  7. <view class="box">
  8. <!-- <view class="red-box">
  9. 申请登记表
  10. </view> -->
  11. <view class="box-1">
  12. <view class="box-left">
  13. 姓名
  14. <text class="imp">*</text>
  15. </view>
  16. <input type="text" placeholder="请填写您的姓名" value="" class="list-input" v-model="name" />
  17. </view>
  18. <view class="box-1">
  19. <view class="box-left">
  20. 性别
  21. <text class="imp">*</text>
  22. </view>
  23. <picker @change="bindPickerSex" :value="index" :range="array">
  24. <view class="box-right">{{ sex == '0'? '男' : sex == '1'? '女' : sex }}</view>
  25. </picker>
  26. </view>
  27. <view class="box-1">
  28. <view class="box-left">
  29. 出生年月
  30. <text class="imp">*</text>
  31. </view>
  32. <picker mode="date" :value="birth" :start="startDate" :end="endDate" @change="bindDateChange">
  33. <view class="box-right">{{ birth }}</view>
  34. </picker>
  35. </view>
  36. <!-- <view class="upload-box">
  37. <view class="upload-left">
  38. 照片
  39. <text class="imp">*</text>
  40. </view>
  41. <view class="upload-right">
  42. <image :src="cardimg" mode="" class="upload-img" @click.stop="imgsub" v-if="cardimg"></image>
  43. <image src="../../static/images/upload.png" class="upload-img" mode="" v-if="!cardimg" @click.stop="imgsub"></image>
  44. </view>
  45. </view> -->
  46. <view class="box-1">
  47. <view class="box-left">
  48. 联系方式
  49. <text class="imp">*</text>
  50. </view>
  51. <input type="text" placeholder="请填写联系方式" value="" class="list-input" v-model="phone" />
  52. </view>
  53. </view>
  54. <view class="" class="tcc" :style="{'height':height}">
  55. <view class="buttom" :class="{ action: loding }" @click="!loding ? join() : ''">下一步</view>
  56. </view>
  57. <uni-popup ref="tishi" type="center" :maskClick="false">
  58. <view class="ts-wrap">
  59. <view class="ts-tit">
  60. 志愿者条例
  61. </view>
  62. <scroll-view scroll-y="true" class="ts-content" @scrolltolower="isbtm = true">
  63. <view class="tit">第一章 总 则</view>
  64. <view class="xq">
  65.  第一条 为了保障志愿者、志愿服务组织、志愿服务对象的合法权益,鼓励和规范志愿服务,发展志愿服务事业,培育和践行社会主义核心价值观,促进社会文明进步,制定本条例。
  66. </view>
  67. <view class="xq">
  68.  第二条 本条例适用于在中华人民共和国境内开展的志愿服务以及与志愿服务有关的活动。
  69. </view>
  70. <view class="xq">
  71.  本条例所称志愿服务,是指志愿者、志愿服务组织和其他组织自愿、无偿向社会或者他人提供的公益服务。
  72. </view>
  73. <view class="xq">
  74.  第三条 开展志愿服务,应当遵循自愿、无偿、平等、诚信、合法的原则,不得违背社会公德、损害社会公共利益和他人合法权益,不得危害国家安全。
  75. </view>
  76. <view class="xq">
  77. 第四条 县级以上人民政府应当将志愿服务事业纳入国民经济和社会发展规划,合理安排志愿服务所需资金,促进广覆盖、多层次、宽领域开展志愿服务。
  78. </view>
  79. <view class="xq">
  80. 第五条 国家和地方精神文明建设指导机构建立志愿服务工作协调机制,加强对志愿服务工作的统筹规划、协调指导、督促检查和经验推广。
  81. </view>
  82. <view class="xq">
  83. 国务院民政部门负责全国志愿服务行政管理工作;县级以上地方人民政府民政部门负责本行政区域内志愿服务行政管理工作。
  84. </view>
  85. <view class="xq">
  86. 县级以上人民政府有关部门按照各自职责,负责与志愿服务有关的工作。
  87. </view>
  88. <view class="xq">
  89. 工会、共产主义青年团、妇女联合会等有关人民团体和群众团体应当在各自的工作范围内做好相应的志愿服务工作。
  90. </view>
  91. <view class="tit">
  92. 第二章 志愿者和志愿服务组织
  93. </view>
  94. <view class="xq">
  95. 第六条 本条例所称志愿者,是指以自己的时间、知识、技能、体力等从事志愿服务的自然人。
  96. </view>
  97. <view class="xq">
  98. 本条例所称志愿服务组织,是指依法成立,以开展志愿服务为宗旨的非营利性组织。
  99. </view>
  100. <view class="xq">
  101. 第七条 志愿者可以将其身份信息、服务技能、服务时间、联系方式等个人基本信息,通过国务院民政部门指定的志愿服务信息系统自行注册,也可以通过志愿服务组织进行注册。
  102. </view>
  103. <view class="xq">
  104. 志愿者提供的个人基本信息应当真实、准确、完整。
  105. </view>
  106. <view class="xq">
  107. 第八条 志愿服务组织可以采取社会团体、社会服务机构、基金会等组织形式。志愿服务组织的登记管理按照有关法律、行政法规的规定执行。
  108. </view>
  109. <view class="xq">
  110. 第九条 志愿服务组织可以依法成立行业组织,反映行业诉求,推动行业交流,促进志愿服务事业发展。
  111. </view>
  112. <view class="xq">
  113. 第十条 在志愿服务组织中,根据中国共产党章程的规定,设立中国共产党的组织,开展党的活动。志愿服务组织应当为党组织的活动提供必要条件。
  114. </view>
  115. <view class="tit">
  116. 第三章 志愿服务活动
  117. </view>
  118. <view class="">
  119. 第十一条 志愿者可以参与志愿服务组织开展的志愿服务活动,也可以自行依法开展志愿服务活动。
  120. </view>
  121. <view class="">
  122. 第十二条 志愿服务组织可以招募志愿者开展志愿服务活动;招募时,应当说明与志愿服务有关的真实、准确、完整的信息以及在志愿服务过程中可能发生的风险。
  123. </view>
  124. <view class="">
  125. 第十三条 需要志愿服务的组织或者个人可以向志愿服务组织提出申请,并提供与志愿服务有关的真实、准确、完整的信息,说明在志愿服务过程中可能发生的风险。志愿服务组织应当对有关信息进行核实,并及时予以答复。
  126. </view>
  127. <view class="">
  128. 第十四条 志愿者、志愿服务组织、志愿服务对象可以根据需要签订协议,明确当事人的权利和义务,约定志愿服务的内容、方式、时间、地点、工作条件和安全保障措施等。
  129. </view>
  130. <view class="">
  131. 第十五条 志愿服务组织安排志愿者参与志愿服务活动,应当与志愿者的年龄、知识、技能和身体状况相适应,不得要求志愿者提供超出其能力的志愿服务。
  132. </view>
  133. <view class="">
  134. 第十六条 志愿服务组织安排志愿者参与的志愿服务活动需要专门知识、技能的,应当对志愿者开展相关培训。
  135. </view>
  136. <view class="">
  137. 开展专业志愿服务活动,应当执行国家或者行业组织制定的标准和规程。法律、行政法规对开展志愿服务活动有职业资格要求的,志愿者应当依法取得相应的资格。
  138. </view>
  139. <view class="">
  140. 第十七条 志愿服务组织应当为志愿者参与志愿服务活动提供必要条件,解决志愿者在志愿服务过程中遇到的困难,维护志愿者的合法权益。
  141. </view>
  142. <view class="">
  143. 志愿服务组织安排志愿者参与可能发生人身危险的志愿服务活动前,应当为志愿者购买相应的人身意外伤害保险。
  144. </view>
  145. <view class="">
  146. 第十八条 志愿服务组织开展志愿服务活动,可以使用志愿服务标志。
  147. </view>
  148. <view class="">
  149. 第十九条 志愿服务组织安排志愿者参与志愿服务活动,应当如实记录志愿者个人基本信息、志愿服务情况、培训情况、表彰奖励情况、评价情况等信息,按照统一的信息数据标准录入国务院民政部门指定的志愿服务信息系统,实现数据互联互通。
  150. </view>
  151. <view class="">
  152. 志愿者需要志愿服务记录证明的,志愿服务组织应当依据志愿服务记录无偿、如实出具。
  153. </view>
  154. <view class="">
  155. 记录志愿服务信息和出具志愿服务记录证明的办法,由国务院民政部门会同有关单位制定。
  156. </view>
  157. <view class="">
  158. 第二十条 志愿服务组织、志愿服务对象应当尊重志愿者的人格尊严;未经志愿者本人同意,不得公开或者泄露其有关信息。
  159. </view>
  160. <view class="">
  161. 第二十一条 志愿服务组织、志愿者应当尊重志愿服务对象人格尊严,不得侵害志愿服务对象个人隐私,不得向志愿服务对象收取或者变相收取报酬。
  162. </view>
  163. <view class="">
  164. 第二十二条 志愿者接受志愿服务组织安排参与志愿服务活动的,应当服从管理,接受必要的培训。
  165. </view>
  166. <view class="">
  167. 志愿者应当按照约定提供志愿服务。志愿者因故不能按照约定提供志愿服务的,应当及时告知志愿服务组织或者志愿服务对象。
  168. </view>
  169. <view class="">
  170. 第二十三条 国家鼓励和支持国家机关、企业事业单位、人民团体、社会组织等成立志愿服务队伍开展专业志愿服务活动,鼓励和支持具备专业知识、技能的志愿者提供专业志愿服务。
  171. </view>
  172. <view class="">
  173. 国家鼓励和支持公共服务机构招募志愿者提供志愿服务。
  174. </view>
  175. <view class="">
  176. 第二十四条 发生重大自然灾害、事故灾难和公共卫生事件等突发事件,需要迅速开展救助的,有关人民政府应当建立协调机制,提供需求信息,引导志愿服务组织和志愿者及时有序开展志愿服务活动。
  177. </view>
  178. <view class="">
  179. 志愿服务组织、志愿者开展应对突发事件的志愿服务活动,应当接受有关人民政府设立的应急指挥机构的统一指挥、协调。
  180. </view>
  181. <view class="">
  182. 第二十五条 任何组织和个人不得强行指派志愿者、志愿服务组织提供服务,不得以志愿服务名义进行营利性活动。
  183. </view>
  184. <view class="">
  185. 第二十六条 任何组织和个人发现志愿服务组织有违法行为,可以向民政部门、其他有关部门或者志愿服务行业组织投诉、举报。民政部门、其他有关部门或者志愿服务行业组织接到投诉、举报,应当及时调查处理;对无权处理的,应当告知投诉人、举报人向有权处理的部门或者行业组织投诉、举报。
  186. </view>
  187. <view class="tit">
  188. 第四章 促进措施
  189. </view>
  190. <view class="">
  191. 第二十七条 县级以上人民政府应当根据经济社会发展情况,制定促进志愿服务事业发展的政策和措施。
  192. </view>
  193. <view class="">
  194. 县级以上人民政府及其有关部门应当在各自职责范围内,为志愿服务提供指导和帮助。
  195. </view>
  196. <view class="">
  197. 第二十八条 国家鼓励企业事业单位、基层群众性自治组织和其他组织为开展志愿服务提供场所和其他便利条件。
  198. </view>
  199. <view class="">
  200. 第二十九条 学校、家庭和社会应当培养青少年的志愿服务意识和能力。
  201. </view>
  202. <view class="">
  203. 高等学校、中等职业学校可以将学生参与志愿服务活动纳入实践学分管理。
  204. </view>
  205. <view class="">
  206. 第三十条 各级人民政府及其有关部门可以依法通过购买服务等方式,支持志愿服务运营管理,并依照国家有关规定向社会公开购买服务的项目目录、服务标准、资金预算等相关情况。
  207. </view>
  208. <view class="">
  209. 第三十一条 自然人、法人和其他组织捐赠财产用于志愿服务的,依法享受税收优惠。
  210. </view>
  211. <view class="">
  212. 第三十二条 对在志愿服务事业发展中做出突出贡献的志愿者、志愿服务组织,由县级以上人民政府或者有关部门按照法律、法规和国家有关规定予以表彰、奖励。
  213. </view>
  214. <view class="">
  215. 国家鼓励企业和其他组织在同等条件下优先招用有良好志愿服务记录的志愿者。公务员考录、事业单位招聘可以将志愿服务情况纳入考察内容。
  216. </view>
  217. <view class="">
  218. 第三十三条 县级以上地方人民政府可以根据实际情况采取措施,鼓励公共服务机构等对有良好志愿服务记录的志愿者给予优待。
  219. </view>
  220. <view class="">
  221. 第三十四条 县级以上人民政府应当建立健全志愿服务统计和发布制度。
  222. </view>
  223. <view class="">
  224. 第三十五条 广播、电视、报刊、网络等媒体应当积极开展志愿服务宣传活动,传播志愿服务文化,弘扬志愿服务精神。
  225. </view>
  226. <view class="tit">
  227. 第五章 法律责任
  228. </view>
  229. <view class="">
  230. 第三十六条 志愿服务组织泄露志愿者有关信息、侵害志愿服务对象个人隐私的,由民政部门予以警告,责令限期改正;逾期不改正的,责令限期停止活动并进行整改;情节严重的,吊销登记证书并予以公告。
  231. </view>
  232. <view class="">
  233. 第三十七条 志愿服务组织、志愿者向志愿服务对象收取或者变相收取报酬的,由民政部门予以警告,责令退还收取的报酬;情节严重的,对有关组织或者个人并处所收取报酬一倍以上五倍以下的罚款。
  234. </view>
  235. <view class="">
  236. 第三十八条 志愿服务组织不依法记录志愿服务信息或者出具志愿服务记录证明的,由民政部门予以警告,责令限期改正;逾期不改正的,责令限期停止活动,并可以向社会和有关单位通报。
  237. </view>
  238. <view class="">
  239. 第三十九条 对以志愿服务名义进行营利性活动的组织和个人,由民政、工商等部门依法查处。
  240. </view>
  241. <view class="">
  242. 第四十条 县级以上人民政府民政部门和其他有关部门及其工作人员有下列情形之一的,由上级机关或者监察机关责令改正;依法应当给予处分的,由任免机关或者监察机关对直接负责的主管人员和其他直接责任人员给予处分:
  243. </view>
  244. <view class="">
  245. (一)强行指派志愿者、志愿服务组织提供服务;
  246. </view>
  247. <view class="">
  248. (二)未依法履行监督管理职责;
  249. </view>
  250. <view class="">
  251. (三)其他滥用职权、玩忽职守、徇私舞弊的行为。
  252. </view>
  253. <view class="tit">
  254. 第六章 附  则
  255. </view>
  256. <view class="">
  257.  第四十一条 基层群众性自治组织、公益活动举办单位和公共服务机构开展公益活动,需要志愿者提供志愿服务的,可以与志愿服务组织合作,由志愿服务组织招募志愿者,也可以自行招募志愿者。自行招募志愿者提供志愿服务的,参照本条例关于志愿服务组织开展志愿服务活动的规定执行。
  258. </view>
  259. <view class="">
  260. 第四十二条 志愿服务组织以外的其他组织可以开展力所能及的志愿服务活动。
  261. </view>
  262. <view class="">
  263. 城乡社区、单位内部经基层群众性自治组织或者本单位同意成立的团体,可以在本社区、本单位内部开展志愿服务活动。
  264. </view>
  265. <view class="">
  266. 第四十三条 境外志愿服务组织和志愿者在境内开展志愿服务,应当遵守本条例和中华人民共和国有关法律、行政法规以及国家有关规定。
  267. </view>
  268. <view class="">
  269.  组织境内志愿者到境外开展志愿服务,在境内的有关事宜,适用本条例和中华人民共和国有关法律、行政法规以及国家有关规定;在境外开展志愿服务,应当遵守所在国家或者地区的法律。
  270. </view>
  271. <view class="">
  272. 第四十四条 本条例自2017年12月1日起施行。
  273. </view>
  274. </scroll-view>
  275. <view class="ts-btn" @click="agreen()"
  276. :style="{'background': isbtm?'#FF4C4C':'#eee','color':isbtm?'#fff':'#999'}">
  277. 我已阅读并同意
  278. </view>
  279. </view>
  280. </uni-popup>
  281. <uni-popup ref="tcqr" type="center">
  282. <view class="tc-wrap">
  283. <image src="../../static/img/zyztc.png" mode="widthFix" class="tc-img"></image>
  284. <view class="qr-wrap">
  285. </view>
  286. </view>
  287. </uni-popup>
  288. </view>
  289. </template>
  290. <script>
  291. import {
  292. saveUrl,
  293. interceptor
  294. } from '@/utils/loginUtils.js';
  295. import {
  296. mapState,
  297. mapMutations
  298. } from 'vuex';
  299. import {
  300. add_volunteers
  301. } from '@/api/index.js';
  302. import {
  303. upload
  304. } from '@/api/ask.js';
  305. export default {
  306. data() {
  307. const currentDate = this.getDate({
  308. format: true
  309. });
  310. return {
  311. height: '',
  312. isRead: false, //是否同意
  313. isbtm: false, //是否滑动到底部
  314. otherjob: '',
  315. otherspe: '',
  316. loding: false, //是否提交中
  317. array: ['男', '女'],
  318. chooseEdu: ['小学以下', '小学', '初中', '高中/中专', '大专/高职', '本科', '研究生', '硕士', '博士', '博士后'],
  319. chooseVol: ['有', '无'],
  320. is_experience: [{
  321. id: '1',
  322. name: '有'
  323. },
  324. {
  325. id: '2',
  326. name: '无'
  327. }
  328. ],
  329. // is_experience: '',
  330. chooseExp: ['是', '否'],
  331. start_hour: '选择开始时间', //开始时间
  332. end_hour: '选择结束时间', //
  333. quantum: '',
  334. //日期
  335. items: [{
  336. value: '2',
  337. name: '星期一'
  338. },
  339. {
  340. value: '3',
  341. name: '星期二'
  342. },
  343. {
  344. value: '4',
  345. name: '星期三'
  346. },
  347. {
  348. value: '5',
  349. name: '星期四'
  350. },
  351. {
  352. value: '6',
  353. name: '星期五'
  354. },
  355. {
  356. value: '7',
  357. name: '星期六'
  358. },
  359. {
  360. value: '1',
  361. name: '星期日'
  362. }
  363. ],
  364. dates: '',
  365. //有兴趣参与的工作
  366. works: [{
  367. value: '1',
  368. name: '赈灾工作'
  369. },
  370. {
  371. value: '2',
  372. name: '救护培训'
  373. },
  374. {
  375. value: '3',
  376. name: '护送服务'
  377. },
  378. {
  379. value: '4',
  380. name: '编辑及出版'
  381. },
  382. {
  383. value: '5',
  384. name: '医疗护理服务'
  385. },
  386. {
  387. value: '6',
  388. name: '探访服务'
  389. },
  390. {
  391. value: '7',
  392. name: '外语翻译'
  393. },
  394. {
  395. value: '8',
  396. name: '调查服务'
  397. },
  398. {
  399. value: '9',
  400. name: '联络服务'
  401. },
  402. {
  403. value: '10',
  404. name: '宣传及推广'
  405. },
  406. {
  407. value: '11',
  408. name: '文书档案工作'
  409. },
  410. {
  411. value: '12',
  412. name: '其它(请注明)'
  413. }
  414. ],
  415. taste: '',
  416. worksText: '', //工作其他
  417. //专长
  418. expertise: [{
  419. value: '1',
  420. name: '医疗护理'
  421. },
  422. {
  423. value: '2',
  424. name: '紧急救护'
  425. },
  426. {
  427. value: '3',
  428. name: '出版/美术设计'
  429. },
  430. {
  431. value: '4',
  432. name: '影音制作'
  433. },
  434. {
  435. value: '5',
  436. name: '文艺演出'
  437. },
  438. {
  439. value: '6',
  440. name: '网络软件'
  441. },
  442. {
  443. value: '7',
  444. name: '摄影摄像'
  445. },
  446. {
  447. value: '8',
  448. name: '电脑中文打字'
  449. },
  450. {
  451. value: '9',
  452. name: '汽车驾驶'
  453. },
  454. {
  455. value: '10',
  456. name: '外语翻译'
  457. },
  458. {
  459. value: '11',
  460. name: '法律咨询'
  461. },
  462. {
  463. value: '12',
  464. name: '文案策划'
  465. },
  466. {
  467. value: '13',
  468. name: '其它(请注明)'
  469. }
  470. ],
  471. speciali: '',
  472. current: '',
  473. is_vol: [{
  474. id: '1',
  475. name: '有'
  476. },
  477. {
  478. id: '0',
  479. name: '无'
  480. }
  481. ],
  482. index: 0,
  483. // mz: '',
  484. email: '',
  485. cardimg: '', //证件照
  486. // card: '',
  487. // checklist: [],
  488. name: '',
  489. sex: '请选择你的性别',
  490. birth: '请选择你的生日',
  491. fillingDate: '',
  492. phone: '',
  493. address: '',
  494. work: '',
  495. specialty: '',
  496. education: '请选择教育程度',
  497. educationid: '',
  498. checked1: '',
  499. checked: '',
  500. expertiseText: '', //专长其他
  501. Getchecked: false //个人声明
  502. };
  503. },
  504. onShow() {
  505. if (this.hasLogin) {
  506. // this.loadBaseData();
  507. // this.$refs.tishi.open()
  508. } else {
  509. saveUrl();
  510. uni.showModal({
  511. title: '登录',
  512. content: '您未登录,是否马上登陆?',
  513. success: e => {
  514. if (e.confirm) {
  515. interceptor();
  516. }
  517. },
  518. fail: e => {
  519. console.log(e);
  520. }
  521. });
  522. }
  523. },
  524. onReady() {
  525. if (this.hasLogin) {
  526. this.$refs.tishi.open()
  527. } else {
  528. // this.$refs.tishi.open()
  529. }
  530. var obj = this;
  531. uni.getSystemInfo({
  532. success: resu => {
  533. const query = uni.createSelectorQuery();
  534. query.select('.tcc').boundingClientRect();
  535. query.exec(function(res) {
  536. obj.height = resu.windowHeight - res[0].top + 'px';
  537. });
  538. },
  539. fail: res => {}
  540. });
  541. },
  542. computed: {
  543. ...mapState('user', ['userInfo', 'baseURL', 'hasLogin']),
  544. startDate() {
  545. return this.getDate('start');
  546. },
  547. endDate() {
  548. return this.getDate('end');
  549. }
  550. },
  551. methods: {
  552. // 同意提示
  553. agreen() {
  554. if (this.isbtm) {
  555. this.isRead = true
  556. this.$refs.tishi.close()
  557. }
  558. },
  559. async join() {
  560. let obj = this;
  561. if (obj.name == '') {
  562. obj.$api.msg('请输入您的姓名');
  563. return;
  564. }
  565. if (obj.sex === '') {
  566. obj.$api.msg('请输入您的性别');
  567. return;
  568. }
  569. if (obj.birth == '' || obj.birth == '请选择你的生日') {
  570. obj.$api.msg('请填写您的生日');
  571. return;
  572. }
  573. const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
  574. if (obj.phone == '') {
  575. obj.$api.msg('请填写您的联系方式');
  576. return;
  577. }
  578. if (!reg.test(obj.phone)) {
  579. obj.$api.msg('请填写正确的联系方式');
  580. return;
  581. }
  582. add_volunteers({
  583. name: obj.name, //姓名
  584. phone: obj.phone, //手机号
  585. sex: obj.sex, //性别
  586. birth: obj.birth, //生日
  587. image: obj.cardimg, //照片
  588. email: obj.email, //邮件
  589. address: obj.address, //地址
  590. work: obj.work, //工作单位
  591. specialty: obj.specialty, //职业/职务/专业
  592. education: obj.educationid, //教育程度
  593. is_vol: obj.checked, //是否受过志愿者服务
  594. is_experience: obj.checked1 == 1 ? 0 : 1, //有无工作经验
  595. start_hour: obj.start_hour,
  596. end_hour: obj.end_hour,
  597. work_week: obj.dates, //星期几
  598. taste: obj.taste, //有兴趣参与的工作
  599. taste_title: obj.worksText, //工作其他
  600. speciali: obj.speciali, //专长
  601. speciali_title: obj.expertiseText, //其他专长
  602. })
  603. .then(e => {
  604. obj.loding = false;
  605. // obj.sex = '请选择你的性别';
  606. // obj.education = '请选择教育程度';
  607. // obj.birth = '请选择你的生日';
  608. this.$refs.tcqr.open()
  609. // uni.navigateTo({
  610. // url: '../joinSuc/joinNow'
  611. // });
  612. })
  613. .catch(function(e) {
  614. console.log('出错了');
  615. console.log(e);
  616. obj.loding = false;
  617. });
  618. },
  619. imgsub() {
  620. console.log('imgsub');
  621. upload({
  622. filename: ''
  623. }).then(data => {
  624. console.log(data, '2222')
  625. this.cardimg = data[0].fullurl;
  626. });
  627. },
  628. // 选择性别
  629. bindPickerSex: function(e) {
  630. this.sex = e.target.value
  631. this.index = e.target.value + 1;
  632. },
  633. // 选择教育程度
  634. bindPickerEdu: function(e) {
  635. this.education = this.chooseEdu[e.target.value];
  636. this.educationid = e.target.value;
  637. console.log(this.educationid)
  638. },
  639. // 选择日期
  640. bindDateChange: function(e) {
  641. this.birth = e.target.value;
  642. },
  643. // 选择开始时间
  644. startTimeChange: function(e) {
  645. console.log(e, '开始时间')
  646. this.start_hour = e.target.value;
  647. },
  648. // 选择结束时间
  649. endTimeChange: function(e) {
  650. this.end_hour = e.target.value;
  651. },
  652. //选择填写日期
  653. fillingDateChange: function(e) {
  654. this.fillingDate = e.target.value;
  655. },
  656. // 是否参加志愿活动
  657. bindPickerVol: function(e) {
  658. this.is_vol = this.chooseVol[e.target.value];
  659. this.index = e.target.value + 1;
  660. },
  661. // 有无服务经验
  662. radioChange1(evt) {
  663. this.checked1 = evt.detail.value;
  664. console.log(this.checked1, '有无服务经验');
  665. },
  666. //是否受过志愿服务
  667. radioChange(evt) {
  668. this.checked = evt.detail.value;
  669. console.log(this.checked, '是否受过志愿服务');
  670. },
  671. Getcheckbox() {
  672. let obj = this;
  673. obj.Getchecked = !obj.Getchecked;
  674. },
  675. getDate(type) {
  676. const date = new Date();
  677. let year = date.getFullYear();
  678. let month = date.getMonth() + 1;
  679. let day = date.getDate();
  680. if (type === 'start') {
  681. year = year - 60;
  682. } else if (type === 'end') {
  683. year = year + 2;
  684. }
  685. month = month > 9 ? month : '0' + month;
  686. day = day > 9 ? day : '0' + day;
  687. return `${year}-${month}-${day}`;
  688. },
  689. //时间段
  690. checkboxChange: function(e) {
  691. var items = this.days,
  692. values = e.detail.value;
  693. for (var i = 0, lenI = items.length; i < lenI; ++i) {
  694. const item = items[i];
  695. if (values.includes(item.value)) {
  696. this.$set(item, 'checked', true);
  697. } else {
  698. this.$set(item, 'checked', false);
  699. }
  700. }
  701. this.quantum = values.join(',');
  702. console.log(this.quantum, '时间段');
  703. },
  704. //日期
  705. checkboxChange1: function(e) {
  706. var items = this.items,
  707. values = e.detail.value;
  708. for (var i = 0, lenI = items.length; i < lenI; ++i) {
  709. const item = items[i];
  710. if (values.includes(item.value)) {
  711. this.$set(item, 'checked', true);
  712. } else {
  713. this.$set(item, 'checked', false);
  714. }
  715. }
  716. this.dates = values.join(',');
  717. console.log(this.dates, '日期');
  718. },
  719. //有兴趣参与的工作
  720. checkboxChange2: function(e) {
  721. var items = this.works,
  722. values = e.detail.value;
  723. for (var i = 0, lenI = items.length; i < lenI; ++i) {
  724. const item = items[i];
  725. if (values.includes(item.value)) {
  726. this.$set(item, 'checked', true);
  727. } else {
  728. this.$set(item, 'checked', false);
  729. }
  730. }
  731. this.taste = values.join(',');
  732. console.log(this.taste, '有兴趣参与的工作');
  733. },
  734. //专长
  735. checkboxChange3: function(e) {
  736. var items = this.expertise,
  737. values = e.detail.value;
  738. for (var i = 0, lenI = items.length; i < lenI; ++i) {
  739. const item = items[i];
  740. if (values.includes(item.value)) {
  741. this.$set(item, 'checked', true);
  742. } else {
  743. this.$set(item, 'checked', false);
  744. }
  745. }
  746. this.speciali = values.join(',');
  747. console.log(this.speciali, '专长');
  748. }
  749. }
  750. };
  751. </script>
  752. <style lang="scss">
  753. page {
  754. background-color: #ffffff;
  755. }
  756. .content {
  757. // padding-top: 64rpx;
  758. // background-color: #f3afad;
  759. .top {
  760. width: 100%;
  761. height: 368rpx;
  762. image {
  763. width: 100%;
  764. height: 368rpx;
  765. }
  766. }
  767. .info-box {
  768. text-indent: 64rpx;
  769. margin: 12rpx 0 54rpx;
  770. padding: 0 32rpx 20rpx;
  771. // border: 3rpx solid #009100;
  772. width: 100%;
  773. display: flex;
  774. flex-direction: column;
  775. border-radius: 25rpx;
  776. color: #e63931;
  777. }
  778. .statement {
  779. // margin: 32rpx;
  780. background-color: #ffffff;
  781. // padding: 32rpx 23rpx;
  782. border-radius: 12rpx;
  783. .title {
  784. height: 84rpx;
  785. display: flex;
  786. justify-content: center;
  787. align-items: center;
  788. font-size: 32rpx;
  789. border-bottom: 2rpx dotted #f3f3f3;
  790. }
  791. .main {
  792. padding: 24rpx;
  793. text-indent: 48rpx;
  794. color: #666;
  795. font-weight: 400;
  796. }
  797. }
  798. .buttom {
  799. width: 100%;
  800. height: 100rpx;
  801. background: #df2412;
  802. margin: 50rpx auto 0;
  803. font-size: 36rpx;
  804. font-weight: 400;
  805. color: #ffffff;
  806. line-height: 100rpx;
  807. text-align: center;
  808. &.action {
  809. background: #999999;
  810. }
  811. position: absolute;
  812. bottom: 0pt;
  813. }
  814. .box {
  815. // margin-top: 44rpx;
  816. // width: 690rpx;
  817. // margin: 32rpx auto 0;
  818. background-color: #ffffff;
  819. border-radius: 10rpx;
  820. // padding: 28rpx 32rpx 84rpx 32rpx;
  821. padding: 20rpx;
  822. position: relative;
  823. // .red-box {
  824. // width: 405rpx;
  825. // line-height: 66rpx;
  826. // text-align: center;
  827. // background: linear-gradient(0deg, #C90F1B, #F14D33);
  828. // border-radius: 10rpx;
  829. // font-size: 30rpx;
  830. // font-weight: 500;
  831. // color: #FFFFFF;
  832. // // position: relative;
  833. // position: absolute;
  834. // top: -36rpx;
  835. // left: 50%;
  836. // transform: translateX(-50%);
  837. // z-index: 1;
  838. // }
  839. .box-check {
  840. font-size: 28rpx;
  841. font-weight: 500;
  842. color: #666666;
  843. line-height: 100rpx;
  844. }
  845. .imp {
  846. color: red;
  847. margin-left: 5rpx;
  848. }
  849. .check-box {
  850. margin: 44rpx 0rpx;
  851. padding: 25rpx 25rpx;
  852. border: 3rpx solid #e9b2af;
  853. width: 100%;
  854. display: flex;
  855. flex-direction: column;
  856. border-radius: 25rpx;
  857. color: #e63931;
  858. .info {
  859. margin-bottom: 32rpx;
  860. text-align: center;
  861. }
  862. .chooseTim {
  863. text-align: center;
  864. font-size: 42rpx;
  865. }
  866. .choose-job {
  867. color: #666666;
  868. // height: 45rpx; 爱心捐赠
  869. .goods_check {
  870. display: flex;
  871. flex-direction: column;
  872. .uni-label-pointer {
  873. // width: 50%;
  874. // display: flex;
  875. }
  876. }
  877. .other {
  878. width: 100%;
  879. border-bottom: 2rpx solid #f3f3f3;
  880. }
  881. }
  882. .box-cent {
  883. font-size: 28rpx;
  884. font-weight: 500;
  885. color: #666666;
  886. display: flex;
  887. .cent-left {
  888. margin-right: 28rpx;
  889. .left-txt {
  890. line-height: 100rpx;
  891. }
  892. }
  893. .cent-right {
  894. flex: 1;
  895. display: flex;
  896. justify-content: space-around;
  897. .right-check {
  898. line-height: 100rpx;
  899. }
  900. }
  901. }
  902. }
  903. .box-1 {
  904. display: flex;
  905. justify-content: space-between;
  906. align-items: center;
  907. width: 100%;
  908. margin-top: 42rpx;
  909. // height: 133rpx;
  910. .box-left {
  911. padding-left: 2rpx;
  912. width: 50%;
  913. text-align: left;
  914. color: #000000;
  915. }
  916. input {
  917. height: 66rpx;
  918. line-height: 66rpx;
  919. // height: 88rpx;
  920. }
  921. .list-input {
  922. padding-left: 24rpx;
  923. // margin: 12rpx 0 ;
  924. font-size: 28rpx;
  925. // line-height: 66rpx;
  926. display: flex;
  927. align-items: center;
  928. width: 50%;
  929. flex: 1;
  930. color: #000000;
  931. text-align: right;
  932. padding-right: 24rpx;
  933. .input-placeholder {
  934. height: 70rpx;
  935. color: #959595;
  936. }
  937. }
  938. .box-right {
  939. display: flex;
  940. padding-left: 24rpx;
  941. height: 66rpx;
  942. line-height: 66rpx;
  943. border-radius: 22rpx;
  944. // margin: 32rpx 36rpx 0 36rpx;
  945. width: 100%;
  946. padding-right: 24rpx;
  947. font-size: 28rpx;
  948. color: #959595;
  949. text-align: right !important;
  950. // line-height: 1;
  951. }
  952. }
  953. .upload-box {
  954. width: 100%;
  955. height: 247rpx;
  956. background: #ffffff;
  957. // border: 1px solid #E63931;
  958. border-radius: 27rpx;
  959. display: flex;
  960. flex-direction: column;
  961. padding: 30rpx 40rpx 30rpx 0;
  962. margin: 42rpx auto 30rpx;
  963. .upload-left {
  964. font-weight: 400;
  965. color: #000000;
  966. }
  967. .upload-right {
  968. flex: 1;
  969. display: flex;
  970. align-items: center;
  971. justify-content: center;
  972. .upload-img {
  973. width: 150rpx;
  974. height: 150rpx;
  975. margin-top: 24rpx;
  976. }
  977. }
  978. }
  979. }
  980. .flex_item {
  981. display: flex;
  982. align-items: center;
  983. }
  984. .radio-list {
  985. display: flex;
  986. flex-wrap: wrap;
  987. font-size: 28rpx;
  988. padding-top: 30rpx;
  989. color: #000000;
  990. .uni-label-pointer {
  991. padding-right: 25rpx;
  992. padding-bottom: 30rpx;
  993. }
  994. }
  995. .check_box {
  996. padding: 25rpx 25rpx;
  997. font-size: 28rpx;
  998. }
  999. .list-box {
  1000. background-color: #ffffff;
  1001. font-size: 28rpx;
  1002. width: 100%;
  1003. height: 100%;
  1004. border-top: 15rpx solid #f2f2f2;
  1005. color: #222222;
  1006. .worksInput {
  1007. margin-bottom: 35rpx;
  1008. border: 2rpx solid #979797;
  1009. width: 100%;
  1010. height: 70rpx;
  1011. line-height: 70rpx;
  1012. padding: 0rpx 25rpx;
  1013. border-radius: 15rpx;
  1014. }
  1015. .list-title {
  1016. color: #000000;
  1017. text-align: center;
  1018. padding: 30rpx 0rpx;
  1019. font-size: 34rpx;
  1020. font-weight: 500;
  1021. border-bottom: 2rpx dashed #b5b5b5;
  1022. }
  1023. .tip {
  1024. color: #000000;
  1025. padding-top: 25rpx;
  1026. width: 100%;
  1027. text-align: center;
  1028. }
  1029. .icon {
  1030. color: red;
  1031. margin-left: 5rpx;
  1032. }
  1033. }
  1034. }
  1035. .ts-wrap {
  1036. width: 673rpx;
  1037. height: 1134rpx;
  1038. background: #FFFFFF;
  1039. border-radius: 20rpx;
  1040. position: relative;
  1041. .ts-tit {
  1042. height: 103rpx;
  1043. padding-top: 40rpx;
  1044. text-align: center;
  1045. font-size: 36rpx;
  1046. font-weight: bold;
  1047. color: #000000;
  1048. width: 588rpx;
  1049. margin: auto;
  1050. border-bottom: 1px solid #a1a1a1;
  1051. }
  1052. .ts-content {
  1053. height: 882rpx;
  1054. margin: 30rpx 0;
  1055. text-align: justify;
  1056. font-size: 28rpx;
  1057. font-weight: 500;
  1058. color: #666666;
  1059. .xq {
  1060. width: 600rpx;
  1061. margin: auto;
  1062. text-indent:2em;
  1063. }
  1064. view {
  1065. width: 600rpx;
  1066. margin: auto;
  1067. text-indent:2em;
  1068. }
  1069. .tit {
  1070. font-weight: bold;
  1071. text-align: center;
  1072. text-indent:0em;
  1073. // color: ;
  1074. }
  1075. }
  1076. .ts-btn {
  1077. width: 673rpx;
  1078. line-height: 90rpx;
  1079. font-size: 32rpx;
  1080. font-weight: 500;
  1081. color: #FFFFFF;
  1082. text-align: center;
  1083. background: #FF4C4C;
  1084. border-radius: 0px 0px 20rpx 20rpx;
  1085. position: absolute;
  1086. bottom: 0;
  1087. }
  1088. }
  1089. .tcc {
  1090. position: relative;
  1091. background-color: #f8f8f8;
  1092. }
  1093. .tc-wrap {
  1094. width: 500rpx;
  1095. position: relative;
  1096. .tc-img {
  1097. width: 500rpx;
  1098. }
  1099. .qr-wrap {
  1100. width: 254rpx;
  1101. height: 254rpx;
  1102. padding: 2rpx;
  1103. position: absolute;
  1104. top: 152rpx;
  1105. // left: 132rpx;
  1106. left: 0;
  1107. right: 0;
  1108. margin: auto;
  1109. background: #fff;
  1110. border: 1rpx solid #000;
  1111. border-radius: 10rpx;
  1112. }
  1113. }
  1114. </style>