resume_edit_basis.blade.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. @extends('mobile.module.layouts.content')
  2. @push('meta')
  3. <meta name="csrf-token" content="{{ csrf_token() }}">
  4. @endpush
  5. @push('css')
  6. <link href="{{ theme_asset('mobile/css/personal.css') }}" rel="stylesheet">
  7. <link href="{{ theme_asset('mobile/css/nprogress.css') }}" rel="stylesheet">
  8. @endpush
  9. @section('content')
  10. <div class="list_height plist-txt qs-relative">
  11. <div class="pic"></div>
  12. <div class="tit font14">简历照片</div>
  13. <div class="describe font13">
  14. <div class="avatar">
  15. @if($content)
  16. @if($content->images)
  17. <img id="avatars" src="{{ upload_asset($content->images) }}">
  18. @else
  19. @if($content->sex==1)
  20. <img id="avatars" src="/data/upload/resource/no_photo_male.png">
  21. @else
  22. <img id="avatars" src="/data/upload/resource/no_photo_female.png">
  23. @endif
  24. @endif
  25. @else
  26. <img id="avatars" src="/data/upload/resource/no_photo_male.png">
  27. @endif
  28. </div>
  29. </div>
  30. <div class="arrow"></div>
  31. <div class="clear"></div>
  32. <input type="file" id="browseFile" class="browseFile">
  33. </div>
  34. <div class="list_height plist-txt notarrow">
  35. <div class="pic"></div>
  36. <div class="tit font14">姓名<span class="font_red_light">*</span></div>
  37. <div class="describe font13">
  38. <input type="text" id="fullname" placeholder="请输入姓名" value="{{ $content->realname or '' }}">
  39. </div>
  40. <div class="arrow"></div>
  41. <div class="clear"></div>
  42. </div>
  43. <div class="list_height plist-txt notarrow">
  44. <div class="pic"></div>
  45. <div class="tit font14">性别<span class="font_red_light">*</span></div>
  46. <div id="sex" class="describe font13">
  47. <div class="radio-group x2">
  48. @if($content)
  49. @if($content->sex==1)
  50. <div class="radio-cell">
  51. <label for="radio4">男</label>
  52. <input id="radio4" name="sex" type="radio" value="1" title="男" checked="checked">
  53. </div>
  54. <div class="radio-cell">
  55. <label for="radio5">女</label>
  56. <input id="radio5" name="sex" type="radio" value="2" title="女">
  57. </div>
  58. @else
  59. <div class="radio-cell">
  60. <label for="radio4">男</label>
  61. <input id="radio4" name="sex" type="radio" value="1" title="男">
  62. </div>
  63. <div class="radio-cell">
  64. <label for="radio5">女</label>
  65. <input id="radio5" name="sex" type="radio" value="2" title="女" checked="checked">
  66. </div>
  67. @endif
  68. @else
  69. <div class="radio-cell">
  70. <label for="radio4">男</label>
  71. <input id="radio4" name="sex" type="radio" value="1" title="男" checked="checked">
  72. </div>
  73. <div class="radio-cell">
  74. <label for="radio5">女</label>
  75. <input id="radio5" name="sex" type="radio" value="2" title="女">
  76. </div>
  77. @endif
  78. <div class="clear"></div>
  79. </div>
  80. </div>
  81. <div class="arrow"></div>
  82. <div class="clear"></div>
  83. </div>
  84. <div class="list_height plist-txt">
  85. <div class="pic"></div>
  86. <div class="tit font14">出生年份<span class="font_red_light">*</span></div>
  87. <div class="describe font13">
  88. <span class="for-select"></span>
  89. <select id="birthdate" name="birthdate">
  90. <option value="">请选择</option>
  91. <option value="2003" @if($content) @if($content->birthday==2003) selected @endif @endif>2003年</option><option value="2002" @if($content) @if($content->birthday==2002) selected @endif @endif>2002年</option><option value="2001" @if($content) @if($content->birthday==2001) selected @endif @endif>2001年</option><option value="2000" @if($content) @if($content->birthday==2000) selected @endif @endif>2000年</option><option value="1999" @if($content) @if($content->birthday==1999) selected @endif @endif>1999年</option><option value="1998" @if($content) @if($content->birthday==1998) selected @endif @endif>1998年</option><option value="1997" @if($content) @if($content->birthday==1997) selected @endif @endif>1997年</option><option value="1996" @if($content) @if($content->birthday==1996) selected @endif @endif>1996年</option><option value="1995" @if($content) @if($content->birthday==1995) selected @endif @endif>1995年</option><option value="1994" @if($content) @if($content->birthday==1994) selected @endif @endif>1994年</option><option value="1993" @if($content) @if($content->birthday==1993) selected @endif @endif>1993年</option><option value="1992" @if($content) @if($content->birthday==1992) selected @endif @endif>1992年</option><option value="1991" @if($content) @if($content->birthday==1991) selected @endif @endif>1991年</option><option value="1990" @if($content) @if($content->birthday==1990) selected @endif @endif>1990年</option><option value="1989" @if($content) @if($content->birthday==1989) selected @endif @endif>1989年</option><option value="1988" @if($content) @if($content->birthday==1988) selected @endif @endif>1988年</option><option value="1987" @if($content) @if($content->birthday==1987) selected @endif @endif>1987年</option><option value="1986" @if($content) @if($content->birthday==1986) selected @endif @endif>1986年</option><option value="1985" @if($content) @if($content->birthday==1985) selected @endif @endif>1985年</option><option value="1984" @if($content) @if($content->birthday==1984) selected @endif @endif>1984年</option><option value="1983" @if($content) @if($content->birthday==1983) selected @endif @endif>1983年</option><option value="1982" @if($content) @if($content->birthday==1982) selected @endif @endif>1982年</option><option value="1981" @if($content) @if($content->birthday==1981) selected @endif @endif>1981年</option><option value="1980" @if($content) @if($content->birthday==1980) selected @endif @endif>1980年</option><option value="1979" @if($content) @if($content->birthday==1979) selected @endif @endif>1979年</option><option value="1978" @if($content) @if($content->birthday==1978) selected @endif @endif>1978年</option><option value="1977" @if($content) @if($content->birthday==1977) selected @endif @endif>1977年</option><option value="1976" @if($content) @if($content->birthday==1976) selected @endif @endif>1976年</option><option value="1975" @if($content) @if($content->birthday==1975) selected @endif @endif>1975年</option><option value="1974" @if($content) @if($content->birthday==1974) selected @endif @endif>1974年</option><option value="1973" @if($content) @if($content->birthday==1973) selected @endif @endif>1973年</option><option value="1972" @if($content) @if($content->birthday==1972) selected @endif @endif>1972年</option><option value="1971" @if($content) @if($content->birthday==1971) selected @endif @endif>1971年</option><option value="1970" @if($content) @if($content->birthday==1970) selected @endif @endif>1970年</option><option value="1969" @if($content) @if($content->birthday==1969) selected @endif @endif>1969年</option><option value="1968" @if($content) @if($content->birthday==1968) selected @endif @endif>1968年</option><option value="1967" @if($content) @if($content->birthday==1967) selected @endif @endif>1967年</option><option value="1966" @if($content) @if($content->birthday==1966) selected @endif @endif>1966年</option><option value="1965" @if($content) @if($content->birthday==1965) selected @endif @endif>1965年</option><option value="1964" @if($content) @if($content->birthday==1964) selected @endif @endif>1964年</option><option value="1963" @if($content) @if($content->birthday==1963) selected @endif @endif>1963年</option><option value="1962" @if($content) @if($content->birthday==1962) selected @endif @endif>1962年</option><option value="1961" @if($content) @if($content->birthday==1961) selected @endif @endif>1961年</option><option value="1960" @if($content) @if($content->birthday==1960) selected @endif @endif>1960年</option><option value="1959" @if($content) @if($content->birthday==1959) selected @endif @endif>1959年</option><option value="1958" @if($content) @if($content->birthday==1958) selected @endif @endif>1958年</option><option value="1957" @if($content) @if($content->birthday==1957) selected @endif @endif>1957年</option><option value="1956" @if($content) @if($content->birthday==1956) selected @endif @endif>1956年</option><option value="1955" @if($content) @if($content->birthday==1955) selected @endif @endif>1955年</option><option value="1954" @if($content) @if($content->birthday==1954) selected @endif @endif>1954年</option>
  92. </select>
  93. </div>
  94. <div class="arrow"></div>
  95. <div class="clear"></div>
  96. </div>
  97. <div class="list_height plist-txt js-actionParent">
  98. <div class="pic"></div>
  99. <div class="tit font14">现居住地<span class="font_red_light">*</span></div>
  100. <div class="describe font13 qs-temp js-showActionSheet" data-type="city1" data-base="QS_city_parent" data-source="QS_city" data-multiple="false" data-num="0" data-link="false" data-level="3" data-addjob="true">
  101. <span class="qs-temp-txt-city1" data-otxt="@if($content){{ $content->residence_cn }}@endif">@if($content){{ $content->residence_cn }}@else请选择@endif</span>
  102. <input class="qs-temp-code-city1" name="residence" id="residence" type="hidden" value="@if($content){{ $content->residence }}@endif">
  103. </div>
  104. <div class="arrow"></div>
  105. <div class="clear"></div>
  106. <!--BEGIN actionSheet-->
  107. <div>
  108. <div class="qs-mask" style="display: none"></div>
  109. <div class="qs-actionsheet js-actionsheet">
  110. <div class="qs-actionsheet-menu">
  111. <div class="con-filter">
  112. <div class="f-selected-group f-selected-group-city1">
  113. <div class="s-bar">
  114. <div class="qs-btn qs-btn-inline qs-btn-small qs-btn-border-gray qs-left js-cancelActionSheet">取消</div>
  115. <div class="clear"></div>
  116. </div>
  117. <div class="s-list qs-hidden"></div>
  118. </div>
  119. <div class="f-box f-box-city1"></div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. {{-- <div class="list_height plist-txt">--}}
  126. {{-- <div class="pic"></div>--}}
  127. {{-- <div class="tit font14">证件类型<span class="font_red_light">*</span></div>--}}
  128. {{-- <div class="describe font13">--}}
  129. {{-- <span class="for-select">请选择</span>--}}
  130. {{-- <select id="card_t_cn" name="card_t_cn">--}}
  131. {{-- <option value="">请选择</option>--}}
  132. {{-- @if(isset($category['other']['AIX_card_type']))--}}
  133. {{-- @foreach($category['other']['AIX_card_type'] as $key => $val )--}}
  134. {{-- <option value="{{ explode(',',$val)[0] }}" @if($content) @if($content->card_t_cn==explode(',',$val)[0]) selected @endif @endif>{{ explode(',',$val)[1] }}</option>--}}
  135. {{-- @endforeach--}}
  136. {{-- @endif--}}
  137. {{-- </select>--}}
  138. {{-- </div>--}}
  139. {{-- <div class="arrow"></div>--}}
  140. {{-- <div class="clear"></div>--}}
  141. {{-- </div>--}}
  142. <div class="list_height plist-txt notarrow">
  143. <div class="pic"></div>
  144. <div class="tit font14">证件号<span class="font_red_light">*</span></div>
  145. <div class="describe font13">
  146. <input type="text" id="id_card" name="id_card" placeholder="请输入证件号" @if($content)@if($content->card_t_cn==306 && $content->id_card) readonly @endif @endif value="@if($content){{ $content->id_card }}@endif">
  147. </div>
  148. <div class="arrow"></div>
  149. <div class="clear"></div>
  150. </div>
  151. <div class="list_height plist-txt">
  152. <div class="pic"></div>
  153. <div class="tit font14">最高学历<span class="font_red_light">*</span></div>
  154. <div class="describe font13">
  155. <span class="for-select"></span>
  156. <select id="education" name="education">
  157. <option value="">请选择</option>
  158. @foreach($category['other']['AIX_education'] as $key => $val )
  159. <option value="{{ explode(',',$val)[0] }}" @if($content) @if($content->education==explode(',',$val)[0]) selected @endif @endif>{{ explode(',',$val)[1] }}</option>
  160. @endforeach
  161. </select>
  162. </div>
  163. <div class="arrow"></div>
  164. <div class="clear"></div>
  165. </div>
  166. <div class="list_height plist-txt js-actionParent">
  167. <div class="pic"></div>
  168. <div class="tit font14">专业</div>
  169. <div class="describe font13 qs-temp-level-major js-showActionSheet" data-type="major" data-base="QS_major_parent" data-source="QS_major" data-multiple="false" data-num="0" data-link="false">
  170. <span class="qs-temp-txt-major" data-otxt="{{ $content->major_cn or '请选择' }}">{{ $content->major_cn or '请选择' }}</span>
  171. <input class="qs-temp-code-major" name="major" id="major" type="hidden" value="{{ $content->major or '' }}" />
  172. </div>
  173. <div class="arrow"></div>
  174. <div class="clear"></div>
  175. <!--BEGIN actionSheet-->
  176. <div>
  177. <div class="qs-mask" style="display: none"></div>
  178. <div class="qs-actionsheet js-actionsheet">
  179. <div class="qs-actionsheet-menu">
  180. <div class="con-filter">
  181. <div class="f-selected-group f-selected-group-major">
  182. <div class="s-bar">
  183. <div class="qs-btn qs-btn-inline qs-btn-small qs-btn-border-gray qs-left js-cancelActionSheet">取消</div>
  184. <div class="clear"></div>
  185. </div>
  186. <div class="s-list qs-hidden"></div>
  187. </div>
  188. <div class="f-box f-box-major"></div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="list_height plist-txt">
  195. <div class="pic"></div>
  196. <div class="tit font14">工作经验<span class="font_red_light">*</span></div>
  197. <div class="describe font13">
  198. <span class="for-select"></span>
  199. <select id="experience" name="experience">
  200. <option value="">请选择</option>
  201. @foreach($category['other']['AIX_experience'] as $key => $val )
  202. <option value="{{ explode(',',$val)[0] }}" @if($content) @if($content->experience==explode(',',$val)[0]) selected @endif @endif>{{ explode(',',$val)[1] }}</option>
  203. @endforeach
  204. </select>
  205. </div>
  206. <div class="arrow"></div>
  207. <div class="clear"></div>
  208. </div>
  209. <div class="list_height plist-txt js-actionParent">
  210. <div class="pic"></div>
  211. <div class="tit font14">籍贯<span class="font_red_light">*</span></div>
  212. <div class="describe font13 qs-temp js-showActionSheet" data-type="city2" data-base="QS_city_parent" data-source="QS_city" data-multiple="false" data-num="0" data-link="false" data-level="3" data-addjob="true">
  213. <span class="qs-temp-txt-city2" data-otxt="@if($content){{ $content->householdaddress_cn }}@endif">@if($content){{ $content->householdaddress_cn }}@else请选择@endif</span>
  214. <input class="qs-temp-code-city2" name="householdaddress" id="householdaddress" type="hidden" value="@if($content){{ $content->householdaddress }}@endif">
  215. </div>
  216. <div class="arrow"></div>
  217. <div class="clear"></div>
  218. <!--BEGIN actionSheet-->
  219. <div>
  220. <div class="qs-mask" style="display: none"></div>
  221. <div class="qs-actionsheet js-actionsheet">
  222. <div class="qs-actionsheet-menu">
  223. <div class="con-filter">
  224. <div class="f-selected-group f-selected-group-city2">
  225. <div class="s-bar">
  226. <div class="qs-btn qs-btn-inline qs-btn-small qs-btn-border-gray qs-left js-cancelActionSheet">取消</div>
  227. <div class="clear"></div>
  228. </div>
  229. <div class="s-list qs-hidden"></div>
  230. </div>
  231. <div class="f-box f-box-city2"></div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <div class="split-block"></div>
  238. <div class="list_height plist-txt notarrow">
  239. <div class="pic"></div>
  240. <div class="tit font14">手机号码<span class="font_red_light">*</span></div>
  241. <div class="describe font13">
  242. @if(auth('web-member')->user()->mobile_audit)
  243. <a class="mui-navigate-right">
  244. <i class="mui-pull-right update font14">{{ auth('web-member')->user()->mobile }}</i>
  245. </a>
  246. <input type="hidden" id="telephone" name="telephone" value="{{ auth('web-member')->user()->mobile }}">
  247. @else
  248. <input type="text" id="telephone" name="telephone" placeholder="请输入手机号码" value="{{ auth('web-member')->user()->mobile }}">
  249. @endif
  250. </div>
  251. <div class="arrow"></div>
  252. <div class="clear"></div>
  253. </div>
  254. <div class="list_height plist-txt notarrow">
  255. <div class="pic"></div>
  256. <div class="tit font14">邮箱<span class="font_red_light">*</span></div>
  257. <div class="describe font13">
  258. @if(auth('web-member')->user()->email_audit)
  259. <a class="mui-navigate-right">
  260. <i class="mui-pull-right update font14">{{ auth('web-member')->user()->email }}</i>
  261. </a>
  262. <input id="email" name="email" type="hidden" value="{{ auth('web-member')->user()->email }}">
  263. @else
  264. <input id="email" name="email" type="text" placeholder="请输入邮箱" value="{{ auth('web-member')->user()->email }}">
  265. @endif
  266. </div>
  267. <div class="arrow"></div>
  268. <div class="clear"></div>
  269. </div>
  270. <div class="split-block"></div>
  271. <div class="J_more list_height plist-txt">
  272. <div class="pic"></div>
  273. <div class="tit font14">选填信息</div>
  274. <div class="describe font13">
  275. 点开选填信息,填写更加分
  276. </div>
  277. <div class="arrow arrow_bottom"></div>
  278. <div class="clear"></div>
  279. </div>
  280. <div class="J_select qs-hidden">
  281. <div class="list_height plist-txt notarrow">
  282. <div class="pic"></div>
  283. <div class="tit font14">身高</div>
  284. <div class="describe font13">
  285. <input id="height" name="height" type="text" placeholder="请输入身高,单位CM" value="{{ $content->height or '' }}">
  286. </div>
  287. <div class="arrow"></div>
  288. <div class="clear"></div>
  289. </div>
  290. <div class="list_height plist-txt notarrow">
  291. <div class="pic"></div>
  292. <div class="tit font14">婚姻状况</div>
  293. <div class="describe font13">
  294. <div class="radio-group x3">
  295. <div class="radio-cell">
  296. <label for="radio1">未婚</label>
  297. <input id="radio1" name="marriage" type="radio" value="1" title="未婚" @if($content) @if($content->marriage==1) checked="checked" @endif @else checked="checked" @endif>
  298. </div>
  299. <div class="radio-cell">
  300. <label for="radio2">已婚</label>
  301. <input id="radio2" name="marriage" type="radio" value="2" title="已婚" @if($content) @if($content->marriage==2) checked="checked" @endif @endif>
  302. </div>
  303. <div class="radio-cell">
  304. <label for="radio3">保密</label>
  305. <input id="radio3" name="marriage" type="radio" value="3" title="保密" @if($content) @if($content->marriage==3) checked="checked" @endif @endif>
  306. </div>
  307. <div class="clear"></div>
  308. </div>
  309. </div>
  310. <div class="arrow"></div>
  311. <div class="clear"></div>
  312. </div>
  313. <div class="list_height plist-txt notarrow">
  314. <div class="pic"></div>
  315. <div class="tit font14">QQ</div>
  316. <div class="describe font13">
  317. <input id="qq" name="qq" type="text" placeholder="请输入QQ" value="{{ $content->qq or '' }}">
  318. </div>
  319. <div class="arrow"></div>
  320. <div class="clear"></div>
  321. </div>
  322. <div class="list_height plist-txt notarrow">
  323. <div class="pic"></div>
  324. <div class="tit font14">微信号</div>
  325. <div class="describe font13">
  326. <input id="weixin" name="weixin" type="text" placeholder="请输入微信号" value="{{ $content->weixin or '' }}">
  327. </div>
  328. <div class="arrow"></div>
  329. <div class="clear"></div>
  330. </div>
  331. <input type="hidden" id="member_id" value="{{ $content->id or '' }}">
  332. <input type="hidden" id="resume_id" value="{{ $resume_id or '' }}">
  333. </div>
  334. <div class="split-block"></div>
  335. <div class="btn-spacing">
  336. <a id="J_saveresume" href="javascript:;" class="qs-btn qs-btn-blue font18">保存</a>
  337. </div>
  338. <div class="split-block"></div>
  339. @endsection
  340. @section('script')
  341. <script src="{{ theme_asset('mobile/js/mobileBUGFix.mini.js') }}"></script>
  342. <script src="{{ theme_asset('mobile/js/qsCategory.js') }}"></script>
  343. <script src="{{ theme_asset('mobile/js/LocalResizeIMG.js') }}"></script>
  344. <script src="{{ theme_asset('mobile/js/nprogress.js') }}"></script>
  345. <script type="text/javascript">
  346. var default_district = '<?php echo $defaultCity;?>';
  347. var str_major = '<?php echo json_encode($category['major']['first']);?>';
  348. var QS_major_parent = eval(str_major);
  349. for(var i = 0;i <QS_major_parent.length;i ++){
  350. QS_major_parent[i].step_size = 0;
  351. }
  352. var major = '<?php echo json_encode($category['major']['sec']);?>';
  353. var QS_major = eval('('+major+')');
  354. for(var i = 0;i <QS_major.length;i ++){
  355. QS_major[i].step_size = 0;
  356. }
  357. var str = '<?php echo json_encode($category['jobs']['first']);?>';
  358. var QS_jobs_parent = eval(str);
  359. for(var i = 0;i <QS_jobs_parent.length;i ++){
  360. QS_jobs_parent[i].step_size = 0;
  361. }
  362. var jobs = '<?php echo json_encode($category['jobs']['sec']);?>';
  363. var QS_jobs = eval('('+jobs+')');
  364. for(var i = 0;i <QS_jobs.length;i ++){
  365. QS_jobs[i].step_size = 0;
  366. }
  367. var district = '<?php echo json_encode($category['district']['first']);?>';
  368. var QS_city_parent = eval(district);
  369. for(var i = 0;i <QS_city_parent.length;i ++){
  370. QS_city_parent[i].step_size = 0;
  371. }
  372. var districts = '<?php echo json_encode($category['district']['person']);?>';
  373. var QS_city = eval('('+districts+')');
  374. for(var i = 0;i <QS_city.length;i ++){
  375. QS_city[i].step_size = 0;
  376. }
  377. var other = '<?php echo json_encode($category['other']['AIX_trade']);?>';
  378. var QS_trade = eval(other);
  379. for(var i = 0;i <QS_trade.length;i ++){
  380. QS_trade[i].step_size = 0;
  381. }
  382. $(function(){
  383. $(".js-showActionSheet").on("click", function(){
  384. var $iosActionsheet = $(this).closest('.js-actionParent').find('.js-actionsheet');
  385. var $iosMask = $(this).closest('.js-actionParent').find('.qs-mask');
  386. $iosActionsheet.removeClass('qs-actionsheet-toggle');
  387. $iosActionsheet.addClass('qs-actionsheet-toggle');
  388. $iosMask.fadeIn(200);
  389. $iosMask.on('click', hideActionSheet);
  390. $(this).closest('.js-actionParent').find('.js-cancelActionSheet').on('click', hideActionSheet);
  391. $(this).closest('.js-actionParent').find('.qs-actionsheet-cell').on('click', hideActionSheet);
  392. function hideActionSheet() {
  393. $(this).closest('.js-actionParent').find('.js-actionsheet').removeClass('qs-actionsheet-toggle');
  394. $(this).closest('.js-actionParent').find('.qs-mask').fadeOut(200);
  395. }
  396. });
  397. });
  398. // 验证表单并提交
  399. $('#J_saveresume').die().live('click', function() {
  400. var member_id = $.trim($('#member_id').val());
  401. var resume_id = $.trim($('#resume_id').val());
  402. var fullnameValue = $.trim($('#fullname').val());
  403. var sexValue = $.trim($('#sex input[name="sex"]:checked').val());
  404. var birthdateValue = $.trim($('#birthdate').val());
  405. var experienceValue = $.trim($('#experience').val());
  406. var id_cardValue = $.trim($('#id_card').val());
  407. var card_t_cn = 306;
  408. var residenceValue = $.trim($('#residence').val());
  409. var telephoneValue = $.trim($('#telephone').val());
  410. var educationValue = $.trim($('#education').val());
  411. var emailValue = $.trim($('#email').val());
  412. var majorValue = $.trim($('#major').val());
  413. var heightValue = $.trim($('#height').val());
  414. var householdaddressValue = $.trim($('#householdaddress').val());
  415. var marriageValue = $.trim($('input[name="marriage"]:checked').val());
  416. var qq = $.trim($('#qq').val());
  417. var weixin = $.trim($('#weixin').val());
  418. $.ajax({
  419. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  420. url: "{{ url('mobile/person/memberInfo/updateInfo') }}",
  421. type: 'POST',
  422. dataType: 'json',
  423. data: {id:member_id,card_t_cn:card_t_cn,realname: fullnameValue,sex: sexValue, birthday: birthdateValue,residence: residenceValue,education: educationValue, experience: experienceValue, phone: telephoneValue, email: emailValue, major: majorValue,height: heightValue, householdaddress: householdaddressValue,marriage: marriageValue,qq:qq,weixin:weixin,id_card:id_cardValue},
  424. success : function(result){
  425. if(resume_id){
  426. window.location.href = '{{ url('mobile/person/resumeUpdate') }}/'+resume_id;
  427. } else {
  428. qsToast({type:1,context:'保存成功!'});
  429. }
  430. },
  431. error: function (errorData) {
  432. if (errorData.status==422) {//验证错误
  433. $.each(JSON.parse(errorData.response).errors,function (key,val) {
  434. qsToast({type:2,context: val[0]});
  435. return false;
  436. });
  437. }
  438. else if(errorData.status==400) {//业务错误
  439. qsToast({type:2,context: JSON.parse(errorData.response).message});
  440. return false;
  441. }
  442. }
  443. })
  444. });
  445. $('.J_more').on('click',function(){
  446. $(this).toggleClass('select');
  447. if($(this).hasClass('select')){
  448. $('.J_select').show();
  449. }else{
  450. $('.J_select').hide();
  451. }
  452. });
  453. $('#browseFile').localResizeIMG({
  454. width: 400,
  455. quality: 1,
  456. success: function (result) {
  457. var submitData={
  458. pic1:result.clearBase64,
  459. };
  460. NProgress.start();
  461. $.ajax({
  462. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  463. type: "POST",
  464. url: "{{ route($sub_site.'mobile.person.upload.head') }}",
  465. data: submitData,
  466. dataType:"json",
  467. success: function(result){
  468. if(result.status == 1){
  469. $('#avatars').attr('src','/storage/'+result.data);
  470. }else{
  471. qsToast({type:2,context:'上传失败!'});
  472. }
  473. NProgress.done();
  474. },
  475. complete :function(XMLHttpRequest, textStatus){},
  476. error:function(XMLHttpRequest, textStatus, errorThrown){ //上传失败
  477. qsToast({type:2,context: '头像上传失败!'});
  478. }
  479. });
  480. }
  481. });
  482. </script>
  483. @endsection