人人商城

member-information.tpl.php 61KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376
  1. <?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
  2. <ol class="breadcrumb we7-breadcrumb">
  3. <a href="<?php echo url('mc/member')?>"><i class="wi wi-back-circle"></i> </a>
  4. <li>
  5. <a href="<?php echo url('mc/member')?>">会员列表</a>
  6. </li>
  7. <li>
  8. <?php if($do == 'credit_statistics') { ?>
  9. 数据统计
  10. <?php } else if($do == 'member_credits') { ?>
  11. 积分/余额
  12. <?php } else { ?>
  13. 基本信息
  14. <?php } ?>
  15. </li>
  16. </ol>
  17. <div class="btn-group we7-btn-group">
  18. <a href="<?php echo url('mc/member/base_information', array('uid' => $uid))?>" class="btn <?php if($do == 'base_information') { ?>active<?php } ?>">基本信息</a>
  19. <a href="<?php echo url('mc/member/member_credits', array('uid' => $uid))?>" class="btn <?php if($do == 'member_credits') { ?>active<?php } ?>"><?php echo $creditnames['credit1']['title'];?>/<?php echo $creditnames['credit2']['title'];?></a>
  20. <a href="<?php echo url('mc/member/credit_statistics', array('uid' => $uid, 'type' => 1))?>" class="btn <?php if($do == 'credit_statistics') { ?>active<?php } ?>">数据统计</a>
  21. </div>
  22. <?php if($do == 'credit_statistics') { ?>
  23. <style>
  24. .account-stat{overflow:hidden; color:#666;}
  25. .account-stat .account-stat-btn{width:100%; overflow:hidden;}
  26. .account-stat .account-stat-btn > div{text-align:center; margin-bottom:5px;margin-right:2%; float:left;width:48%; padding-top:10px;font-size:16px; border-left:1px #DDD solid;}
  27. .account-stat .account-stat-btn > div:first-child{border-left:0;}
  28. .account-stat .account-stat-btn .stat{width:80%;margin:10px auto;font-size:15px}
  29. </style>
  30. <div class="panel panel-default" style="padding:1em;margin-top:2em">
  31. <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin: -1em -1em 1em -1em;">
  32. <div class="navbar-header">
  33. <a class="navbar-brand" href="javascript:;">数据统计</a>
  34. <ul class="nav navbar-nav navbar-right">
  35. <li <?php if($_GPC['type'] == 1) { ?>class="active"<?php } ?>><a href="<?php echo url('mc/member/credit_statistics', array('uid' => $uid, type => 1));?>">今日</a></li>
  36. <li <?php if($_GPC['type'] == -1) { ?>class="active"<?php } ?>><a href="<?php echo url('mc/member/credit_statistics', array('uid' => $uid, type => -1));?>">昨日</a></li>
  37. <form class="navbar-form navbar-left" role="search" id="form1">
  38. <input name="c" value="mc" type="hidden" />
  39. <input name="a" value="member" type="hidden" />
  40. <input name="do" value="credit_statistics" type="hidden" />
  41. <input name="uid" value="<?php echo $uid;?>" type="hidden" />
  42. <?php echo tpl_form_field_daterange('datelimit', array('start' => date('Y-m-d', $starttime),'end' => date('Y-m-d', $endtime)), '')?>
  43. </form>
  44. </ul>
  45. </div>
  46. </nav>
  47. <div class="account-stat">
  48. <div class="account-stat-btn">
  49. <?php if(is_array($credits)) { foreach($credits as $key => $li) { ?>
  50. <div>
  51. <strong><?php echo $li;?></strong>
  52. <div id="rule" class="stat">
  53. <div>增加 <strong><span class="text-success"><?php echo $data[$key]['add'];?></span></strong></div>
  54. <div>减少 <strong><span class="text-danger"><?php echo $data[$key]['del'];?></span></strong></div>
  55. </div>
  56. </div>
  57. <?php } } ?>
  58. </div>
  59. </div>
  60. </div>
  61. <script>
  62. require(['jquery', 'daterangepicker'], function($,c) {
  63. $(function() {
  64. $('.daterange').on('apply.daterangepicker', function(ev, picker) {
  65. $('#form1')[0].submit();
  66. });
  67. })
  68. });
  69. </script>
  70. <?php } ?>
  71. <?php if($do == 'member_credits') { ?>
  72. <div class="main">
  73. <form action="" class="we7-form form" method="post" enctype="multipart/form-data">
  74. <?php if(!empty($credits)) { ?>
  75. <!--积分、余额-->
  76. <table class="table we7-table table-hover table-form">
  77. <col width="140px">
  78. <col />
  79. <col width="100px">
  80. <tr>
  81. <th class="text-left" colspan="3">会员<?php echo $creditnames['credit1']['title'];?>/<?php echo $creditnames['credit2']['title'];?>操作</th>
  82. </tr>
  83. <tr>
  84. <td class="table-label"><?php echo $creditnames['credit1']['title'];?></td>
  85. <td><?php echo $credits['credit1'];?></td>
  86. <td class="text-right">
  87. <div class="link-group"><a href="javascript:;" title="<?php echo $creditnames['credit1']['title'];?>" class="modal-trade-credit1" data-type="credit1" data-uid="<?php echo $uid;?>" data-title="<?php echo $creditnames['credit1']['title'];?>
  88. ">修改</a></div>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td class="table-label"><?php echo $creditnames['credit2']['title'];?></td>
  93. <td><?php echo $credits['credit2'];?></td>
  94. <td class="text-right">
  95. <div class="link-group"><a href="javascript:;" title="<?php echo $creditnames['credit2']['title'];?>" class="modal-trade-credit2" data-type="credit2" data-uid="<?php echo $uid;?>" data-title="<?php echo $creditnames['credit2']['title'];?>
  96. ">修改</a></div>
  97. </td>
  98. </tr>
  99. </table>
  100. <table class="table we7-table table-hover table-form">
  101. <col width="140px">
  102. <col />
  103. <col width="100px">
  104. <col />
  105. <col />
  106. <col />
  107. <tr>
  108. <th colspan="6">
  109. <div class="btn-group we7-btn-group">
  110. <a href="<?php echo url('mc/member/member_credits', array('uid' => $uid, 'type' => 'credit1'))?>" class="btn <?php if($type == 'credit1') { ?>active<?php } ?>"><?php echo $creditnames['credit1']['title'];?>记录</a>
  111. <a href="<?php echo url('mc/member/member_credits', array('uid' => $uid, 'type' => 'credit2'))?>" class="btn <?php if($type == 'credit2') { ?>active<?php } ?>"><?php echo $creditnames['credit2']['title'];?>记录</a>
  112. </div>
  113. </th>
  114. </tr>
  115. <tr>
  116. <th>账户类型</th>
  117. <th class="text-center">操作员</th>
  118. <th class="text-center"><?php echo $creditnames[$type]['title'];?>增减</th>
  119. <th class="text-center">模块</th>
  120. <th class="text-center">操作时间</th>
  121. <th class="text-center">备注</th>
  122. </tr>
  123. <?php if(!empty($records)) { ?>
  124. <?php if(is_array($records)) { foreach($records as $record) { ?>
  125. <tr>
  126. <td class="text-center"><?php if($record['credittype'] == 'credit2') { ?><?php echo $creditnames['credit2']['title'];?><?php } else { ?><?php echo $creditnames['credit1']['title'];?><?php } ?></td>
  127. <td class="text-center"><?php echo $record['username'];?></td>
  128. <td class="text-center"><?php echo $record['num'];?></td>
  129. <td class="text-center"><?php echo $record['system'];?></td>
  130. <td class="text-center"><?php echo date("Y-m-d H:i:s", $record['createtime'])?></td>
  131. <td class="text-center"><?php echo $record['remark'];?></td>
  132. </tr>
  133. <?php } } ?>
  134. <?php } ?>
  135. </table>
  136. <div class="text-right">
  137. <?php echo $pager;?>
  138. </div>
  139. <!--end积分、余额-->
  140. <?php } ?>
  141. </form>
  142. </div>
  143. <script type="text/javascript">
  144. require(['trade'], function(trade){
  145. trade.init();
  146. });
  147. </script>
  148. <?php } ?>
  149. <?php if($do == 'base_information') { ?>
  150. <div class="main" id="js-base-information" ng-controller="baseInformation" ng-cloak>
  151. <form action="" class="we7-form form" method="post" enctype="multipart/form-data">
  152. <?php if(!empty($profile)) { ?>
  153. <!--基本信息-->
  154. <table class="table we7-table table-hover table-form">
  155. <col width="140px">
  156. <col width="500px">
  157. <tr>
  158. <th class="text-left" colspan="3">会员信息</th>
  159. </tr>
  160. <tr>
  161. <td class="table-label"><?php echo $uniacid_fields['nickname']['title'];?></td>
  162. <td ng-bind="profile.nickname"></td>
  163. <td class="text-right">
  164. <div class="link-group"><a href="javascript:;"></a></div>
  165. </td>
  166. </tr>
  167. <tr>
  168. <td class="table-label">密码</td>
  169. <td>*****</td>
  170. <td class="text-right">
  171. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#password">修改</a></div>
  172. </td>
  173. </tr>
  174. </table>
  175. <table class="table we7-table table-hover table-form">
  176. <col width="140px">
  177. <col />
  178. <col width="100px">
  179. <tr>
  180. <th class="text-left" colspan="3">基本信息</th>
  181. </tr>
  182. <tr>
  183. <td class="table-label"><?php echo $uniacid_fields['avatar']['title'];?></td>
  184. <td><img ng-src="{{profile.avatarUrl}}" alt="" class="img-circle" style="width: 65px; height: 65px;"/></td>
  185. <td class="text-right">
  186. <div class="link-group"><a href="javascript:;" ng-click="changeImage('avatar')">修改</a></div>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td class="table-label">用户UID</td>
  191. <td colspan="2"><?php echo $uid;?></td>
  192. </tr>
  193. <tr>
  194. <td class="table-label">所在会员组</td>
  195. <td ng-bind="groups[profile.groupid].title"></td>
  196. <td class="text-right">
  197. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#groupid" ng-click="editInfo('groupid', profile.groupid)">修改</a></div>
  198. </td>
  199. </tr>
  200. <tr>
  201. <td class="table-label"><?php echo $uniacid_fields['nickname']['title'];?></td>
  202. <td ng-bind="profile.nickname"></td>
  203. <td class="text-right">
  204. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#nickname" ng-click="editInfo('nickname', profile.nickname)">修改</a></div>
  205. </td>
  206. </tr>
  207. <tr>
  208. <td class="table-label"><?php echo $uniacid_fields['realname']['title'];?></td>
  209. <td ng-bind="profile.realname"></td>
  210. <td class="text-right">
  211. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#realname" ng-click="editInfo('realname', profile.realname)">修改</a></div>
  212. </td>
  213. </tr>
  214. <tr>
  215. <td class="table-label"><?php echo $uniacid_fields['gender']['title'];?></td>
  216. <td ng-bind="sexes[profile.gender].name"></td>
  217. <td class="text-right">
  218. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#gender" ng-click="editInfo('gender', profile.gender)">修改</a></div>
  219. </td>
  220. </tr>
  221. <tr>
  222. <td class="table-label"><?php echo $uniacid_fields['birthyear']['title'];?></td>
  223. <td ng-bind="profile.births"></td>
  224. <td class="text-right">
  225. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#births" ng-click="editInfo('births', profile.births)">修改</a></div>
  226. </td>
  227. </tr>
  228. <tr>
  229. <td class="table-label"><?php echo $uniacid_fields['nationality']['title'];?></td>
  230. <td ng-bind="profile.resides"></td>
  231. <td class="text-right">
  232. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#resides" ng-click="editInfo('resides', profile.resides)">修改</a></div>
  233. </td>
  234. </tr>
  235. <tr>
  236. <td class="table-label"><?php echo $uniacid_fields['resideprovince']['title'];?></td>
  237. <td ng-bind="profile.address"></td>
  238. <td class="text-right">
  239. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#address" ng-click="editInfo('address', profile.address)">修改</a></div>
  240. </td>
  241. </tr>
  242. <tr>
  243. <td class="table-label"><?php echo $uniacid_fields['mobile']['title'];?></td>
  244. <td ng-bind="profile.mobile"></td>
  245. <td class="text-right">
  246. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#mobile" ng-click="editInfo('mobile', profile.mobile)">修改</a></div>
  247. </td>
  248. </tr>
  249. <tr>
  250. <td class="table-label"><?php echo $uniacid_fields['qq']['title'];?></td>
  251. <td ng-bind="profile.qq"></td>
  252. <td class="text-right">
  253. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#qq" ng-click="editInfo('qq', profile.qq)">修改</a></div>
  254. </td>
  255. </tr>
  256. <tr>
  257. <td class="table-label"><?php echo $uniacid_fields['email']['title'];?></td>
  258. <td ng-bind="profile.email"></td>
  259. <td class="text-right">
  260. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#email" ng-click="editInfo('email', profile.email)">修改</a></div>
  261. </td>
  262. </tr>
  263. </table>
  264. <table class="table we7-table table-hover table-form">
  265. <col width="140px">
  266. <col />
  267. <col width="100px">
  268. <tr>
  269. <th class="text-left" colspan="3">联系方式</th>
  270. </tr>
  271. <tr>
  272. <td class="table-label"><?php echo $uniacid_fields['telephone']['title'];?></td>
  273. <td ng-bind="profile.telephone"></td>
  274. <td class="text-right">
  275. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#telephone" ng-click="editInfo('telephone', profile.telephone)">修改</a></div>
  276. </td>
  277. </tr>
  278. <tr>
  279. <td class="table-label"><?php echo $uniacid_fields['msn']['title'];?></td>
  280. <td ng-bind="profile.msn"></td>
  281. <td class="text-right">
  282. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#msn" ng-click="editInfo('msn', profile.msn)">修改</a></div>
  283. </td>
  284. </tr>
  285. <tr>
  286. <td class="table-label"><?php echo $uniacid_fields['taobao']['title'];?></td>
  287. <td ng-bind="profile.taobao"></td>
  288. <td class="text-right">
  289. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#taobao" ng-click="editInfo('taobao', profile.taobao)">修改</a></div>
  290. </td>
  291. </tr>
  292. <tr>
  293. <td class="table-label"><?php echo $uniacid_fields['alipay']['title'];?></td>
  294. <td ng-bind="profile.alipay"></td>
  295. <td class="text-right">
  296. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#alipay" ng-click="editInfo('alipay', profile.alipay)">修改</a></div>
  297. </td>
  298. </tr>
  299. </table>
  300. <table class="table we7-table table-hover table-form">
  301. <col width="140px">
  302. <col width="100px">
  303. <tr>
  304. <th class="text-left"><?php echo $uniacid_fields['address']['title'];?></th>
  305. <th class="text-right">
  306. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#address-add">添加收货地址</a></div>
  307. </th>
  308. </tr>
  309. <tr ng-repeat="address in addresses track by address.id">
  310. <td class="table-label" ng-bind="address.pcda">
  311. </td>
  312. <td class="text-right">
  313. <div class="link-group">
  314. <a href="javascript:;" ng-if="!address.isdefault" ng-click="setDefaultAdd(address.id)">设为默认</a>
  315. <a href="javascript:;" data-toggle="modal" data-target="#address-edit" ng-click="choseEditAdd(address.id)">编辑</a>
  316. <a href="javascript:;" class="del" ng-click="delAdd(address.id)">删除</a>
  317. </div>
  318. </td>
  319. </tr>
  320. </table>
  321. <table class="table we7-table table-hover table-form">
  322. <col width="140px">
  323. <col />
  324. <col width="100px">
  325. <tr>
  326. <th class="text-left" colspan="3">教育情况</th>
  327. </tr>
  328. <tr>
  329. <td class="table-label"><?php echo $uniacid_fields['studentid']['title'];?></td>
  330. <td ng-bind="profile.studentid"></td>
  331. <td class="text-right">
  332. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#studentid" ng-click="editInfo('studentid', profile.studentid)">修改</a></div>
  333. </td>
  334. </tr>
  335. <tr>
  336. <td class="table-label"><?php echo $uniacid_fields['grade']['title'];?></td>
  337. <td ng-bind="profile.grade"></td>
  338. <td class="text-right">
  339. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#grade" ng-click="editInfo('grade', profile.grade)">修改</a></div>
  340. </td>
  341. </tr>
  342. <tr>
  343. <td class="table-label"><?php echo $uniacid_fields['graduateschool']['title'];?></td>
  344. <td ng-bind="profile.graduateschool"></td>
  345. <td class="text-right">
  346. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#graduateschool" ng-click="editInfo('graduateschool', profile.graduateschool)">修改</a></div>
  347. </td>
  348. </tr>
  349. <tr>
  350. <td class="table-label"><?php echo $uniacid_fields['education']['title'];?></td>
  351. <td ng-bind="profile.education"></td>
  352. <td class="text-right">
  353. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#education" ng-click="editInfo('education', profile.education)">修改</a></div>
  354. </td>
  355. </tr>
  356. </table>
  357. <table class="table we7-table table-hover table-form">
  358. <col width="140px">
  359. <col />
  360. <col width="100px">
  361. <tr>
  362. <th class="text-left" colspan="3">工作情况</th>
  363. </tr>
  364. <tr>
  365. <td class="table-label"><?php echo $uniacid_fields['company']['title'];?></td>
  366. <td ng-bind="profile.company"></td>
  367. <td class="text-right">
  368. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#company" ng-click="editInfo('company', profile.company)">修改</a></div>
  369. </td>
  370. </tr>
  371. <tr>
  372. <td class="table-label"><?php echo $uniacid_fields['occupation']['title'];?></td>
  373. <td ng-bind="profile.occupation"></td>
  374. <td class="text-right">
  375. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#occupation" ng-click="editInfo('occupation', profile.occupation)">修改</a></div>
  376. </td>
  377. </tr>
  378. <tr>
  379. <td class="table-label"><?php echo $uniacid_fields['position']['title'];?></td>
  380. <td ng-bind="profile.position"></td>
  381. <td class="text-right">
  382. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#position" ng-click="editInfo('position', profile.position)">修改</a></div>
  383. </td>
  384. </tr>
  385. <tr>
  386. <td class="table-label"><?php echo $uniacid_fields['revenue']['title'];?></td>
  387. <td ng-bind="profile.revenue"></td>
  388. <td class="text-right">
  389. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#revenue" ng-click="editInfo('revenue', profile.revenue)">修改</a></div>
  390. </td>
  391. </tr>
  392. </table>
  393. <table class="table we7-table table-hover table-form">
  394. <col width="140px">
  395. <col />
  396. <col width="100px">
  397. <tr>
  398. <th class="text-left" colspan="3">个人情况</th>
  399. </tr>
  400. <tr>
  401. <td class="table-label"><?php echo $uniacid_fields['constellation']['title'];?></td>
  402. <td ng-bind="profile.constellation"></td>
  403. <td class="text-right">
  404. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#constellation" ng-click="editInfo('constellation', profile.constellation)">修改</a></div>
  405. </td>
  406. </tr>
  407. <tr>
  408. <td class="table-label"><?php echo $uniacid_fields['zodiac']['title'];?></td>
  409. <td ng-bind="profile.zodiac"></td>
  410. <td class="text-right">
  411. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#zodiac" ng-click="editInfo('zodiac', profile.zodiac)">修改</a></div>
  412. </td>
  413. </tr>
  414. <tr>
  415. <td class="table-label"><?php echo $uniacid_fields['nationality']['title'];?></td>
  416. <td ng-bind="profile.nationality"></td>
  417. <td class="text-right">
  418. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#nationality" ng-click="editInfo('nationality', profile.nationality)">修改</a></div>
  419. </td>
  420. </tr>
  421. <tr>
  422. <td class="table-label"><?php echo $uniacid_fields['height']['title'];?></td>
  423. <td ng-bind="profile.height"></td>
  424. <td class="text-right">
  425. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#height" ng-click="editInfo('height', profile.height)">修改</a></div>
  426. </td>
  427. </tr>
  428. <tr>
  429. <td class="table-label"><?php echo $uniacid_fields['weight']['title'];?></td>
  430. <td ng-bind="profile.weight"></td>
  431. <td class="text-right">
  432. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#weight" ng-click="editInfo('weight', profile.weight)">修改</a></div>
  433. </td>
  434. </tr>
  435. <tr>
  436. <td class="table-label"><?php echo $uniacid_fields['bloodtype']['title'];?></td>
  437. <td ng-bind="profile.bloodtype"></td>
  438. <td class="text-right">
  439. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#bloodtype" ng-click="editInfo('bloodtype', profile.bloodtype)">修改</a></div>
  440. </td>
  441. </tr>
  442. <tr>
  443. <td class="table-label"><?php echo $uniacid_fields['idcard']['title'];?></td>
  444. <td ng-bind="profile.idcard"></td>
  445. <td class="text-right">
  446. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#idcard" ng-click="editInfo('idcard', profile.idcard)">修改</a></div>
  447. </td>
  448. </tr>
  449. <tr>
  450. <td class="table-label"><?php echo $uniacid_fields['zipcode']['title'];?></td>
  451. <td ng-bind="profile.zipcode"></td>
  452. <td class="text-right">
  453. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#zipcode" ng-click="editInfo('zipcode', profile.zipcode)">修改</a></div>
  454. </td>
  455. </tr>
  456. <tr>
  457. <td class="table-label"><?php echo $uniacid_fields['site']['title'];?></td>
  458. <td ng-bind="profile.site"></td>
  459. <td class="text-right">
  460. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#site" ng-click="editInfo('site', profile.site)">修改</a></div>
  461. </td>
  462. </tr>
  463. <tr>
  464. <td class="table-label"><?php echo $uniacid_fields['affectivestatus']['title'];?></td>
  465. <td ng-bind="profile.affectivestatus"><?php echo $profile['affectivestatus'];?></td>
  466. <td class="text-right">
  467. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#affectivestatus" ng-click="editInfo('affectivestatus', profile.affectivestatus)">修改</a></div>
  468. </td>
  469. </tr>
  470. <tr>
  471. <td class="table-label"><?php echo $uniacid_fields['lookingfor']['title'];?></td>
  472. <td ng-bind="profile.lookingfor"></td>
  473. <td class="text-right">
  474. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#lookingfor" ng-click="editInfo('lookingfor', profile.lookingfor)">修改</a></div>
  475. </td>
  476. </tr>
  477. <tr>
  478. <td class="table-label"><?php echo $uniacid_fields['bio']['title'];?></td>
  479. <td ng-bind="profile.bio"></td>
  480. <td class="text-right">
  481. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#bio" ng-click="editInfo('bio', profile.bio)">修改</a></div>
  482. </td>
  483. </tr>
  484. <tr>
  485. <td class="table-label"><?php echo $uniacid_fields['interest']['title'];?></td>
  486. <td ng-bind="profile.interest"></td>
  487. <td class="text-right">
  488. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#interest" ng-click="editInfo('interest', profile.interest)">修改</a></div>
  489. </td>
  490. </tr>
  491. </table>
  492. <table class="table we7-table table-hover table-form">
  493. <col width="140px">
  494. <col />
  495. <col width="100px">
  496. <tr>
  497. <th class="text-left" colspan="3">其他信息</th>
  498. </tr>
  499. <tr ng-repeat="field in custom_fields">
  500. <td class="table-label" ng-bind="uniacid_fields[field]['title']"></td>
  501. <td ng-bind="profile[field]"></td>
  502. <td class="text-right">
  503. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#other_field" ng-click="editInfo('other_field', field)">修改</a></div>
  504. </td>
  505. </tr>
  506. </table>
  507. <!-- 模态框开始 -->
  508. <div class="modal fade" id="groupid" tabindex="-1" role="dialog" aria-hidden="true">
  509. <div class="we7-modal-dialog modal-dialog we7-form">
  510. <div class="modal-content">
  511. <div class="modal-header">
  512. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  513. <div class="modal-title">修改会员组</div>
  514. </div>
  515. <div class="modal-body">
  516. <div class="form-group">
  517. <select class="we7-select" ng-model="userOriginal.groupid" ng-options="group.groupid as group.title for group in groups"></select>
  518. </div>
  519. </div>
  520. <div class="modal-footer">
  521. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('groupid')">确定</button>
  522. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  523. </div>
  524. </div>
  525. </div>
  526. </div>
  527. <div class="modal fade" id="gender" tabindex="-1" role="dialog" aria-hidden="true">
  528. <div class="we7-modal-dialog modal-dialog we7-form">
  529. <div class="modal-content">
  530. <div class="modal-header">
  531. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  532. <div class="modal-title">修改性别</div>
  533. </div>
  534. <div class="modal-body">
  535. <div class="form-group">
  536. <select class="we7-select" ng-model="userOriginal.gender" ng-options="sex.id as sex.name for sex in sexes"></select>
  537. </div>
  538. </div>
  539. <div class="modal-footer">
  540. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('gender')">确定</button>
  541. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  542. </div>
  543. </div>
  544. </div>
  545. </div>
  546. <div class="modal fade" id="nickname" tabindex="-1" role="dialog" aria-hidden="true">
  547. <div class="we7-modal-dialog modal-dialog we7-form">
  548. <div class="modal-content">
  549. <div class="modal-header">
  550. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  551. <div class="modal-title">修改昵称</div>
  552. </div>
  553. <div class="modal-body">
  554. <div class="form-group">
  555. <input type="text" ng-model="userOriginal.nickname" class="form-control" placeholder="昵称" />
  556. <span class="help-block"></span>
  557. </div>
  558. </div>
  559. <div class="modal-footer">
  560. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('nickname')">确定</button>
  561. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  562. </div>
  563. </div>
  564. </div>
  565. </div>
  566. <div class="modal fade" id="realname" tabindex="-1" role="dialog" aria-hidden="true">
  567. <div class="we7-modal-dialog modal-dialog we7-form">
  568. <div class="modal-content">
  569. <div class="modal-header">
  570. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  571. <div class="modal-title">修改真实姓名</div>
  572. </div>
  573. <div class="modal-body">
  574. <div class="form-group">
  575. <input type="text" ng-model="userOriginal.realname" class="form-control" placeholder="真实姓名" />
  576. <span class="help-block"></span>
  577. </div>
  578. </div>
  579. <div class="modal-footer">
  580. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('realname')">确定</button>
  581. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  582. </div>
  583. </div>
  584. </div>
  585. </div>
  586. <div class="modal fade" id="births" role="dialog">
  587. <div class="we7-modal-dialog modal-dialog">
  588. <div class="modal-content">
  589. <div class="modal-header">
  590. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  591. <div class="modal-title">修改出生年月日</div>
  592. </div>
  593. <div class="modal-body">
  594. <div class="form-group">
  595. <?php echo tpl_fans_form('birth',$profile['birth']);?>
  596. </div>
  597. </div>
  598. <div class="modal-footer">
  599. <button type="button" class="btn btn-primary" ng-click="httpChange('births')">确定</button>
  600. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  601. </div>
  602. </div>
  603. </div>
  604. </div>
  605. <div class="modal fade" id="resides" role="dialog">
  606. <div class="we7-modal-dialog modal-dialog">
  607. <div class="modal-content">
  608. <div class="modal-header">
  609. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  610. <div class="modal-title">修改户籍</div>
  611. </div>
  612. <div class="modal-body">
  613. <div class="form-group">
  614. <?php echo tpl_fans_form('reside',$profile['resides']);?>
  615. </div>
  616. </div>
  617. <div class="modal-footer">
  618. <button type="button" class="btn btn-primary" ng-click="httpChange('resides')">确定</button>
  619. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  620. </div>
  621. </div>
  622. </div>
  623. </div>
  624. <div class="modal fade" id="address" tabindex="-1" role="dialog" aria-hidden="true">
  625. <div class="we7-modal-dialog modal-dialog we7-form">
  626. <div class="modal-content">
  627. <div class="modal-header">
  628. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  629. <div class="modal-title">修改详细地址</div>
  630. </div>
  631. <div class="modal-body">
  632. <div class="form-group">
  633. <input type="text" ng-model="userOriginal.address" class="form-control" placeholder="详细地址" />
  634. <span class="help-block"></span>
  635. </div>
  636. </div>
  637. <div class="modal-footer">
  638. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('address')">确定</button>
  639. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  640. </div>
  641. </div>
  642. </div>
  643. </div>
  644. <div class="modal fade" id="mobile" tabindex="-1" role="dialog" aria-hidden="true">
  645. <div class="we7-modal-dialog modal-dialog we7-form">
  646. <div class="modal-content">
  647. <div class="modal-header">
  648. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  649. <div class="modal-title">修改手机号</div>
  650. </div>
  651. <div class="modal-body">
  652. <div class="form-group">
  653. <input type="text" ng-model="userOriginal.mobile" class="form-control" placeholder="手机号码" />
  654. <span class="help-block"></span>
  655. </div>
  656. </div>
  657. <div class="modal-footer">
  658. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('mobile')">确定</button>
  659. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  660. </div>
  661. </div>
  662. </div>
  663. </div>
  664. <div class="modal fade" id="qq" tabindex="-1" role="dialog" aria-hidden="true">
  665. <div class="we7-modal-dialog modal-dialog we7-form">
  666. <div class="modal-content">
  667. <div class="modal-header">
  668. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  669. <div class="modal-title">修改QQ号</div>
  670. </div>
  671. <div class="modal-body">
  672. <div class="form-group">
  673. <input type="text" ng-model="userOriginal.qq" class="form-control" placeholder="QQ号" />
  674. <span class="help-block"></span>
  675. </div>
  676. </div>
  677. <div class="modal-footer">
  678. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('qq')">确定</button>
  679. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  680. </div>
  681. </div>
  682. </div>
  683. </div>
  684. <div class="modal fade" id="email" tabindex="-1" role="dialog" aria-hidden="true">
  685. <div class="we7-modal-dialog modal-dialog we7-form">
  686. <div class="modal-content">
  687. <div class="modal-header">
  688. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  689. <div class="modal-title">修改Email</div>
  690. </div>
  691. <div class="modal-body">
  692. <div class="form-group">
  693. <input type="text" ng-model="userOriginal.email" class="form-control" placeholder="email" />
  694. <span class="help-block"></span>
  695. </div>
  696. </div>
  697. <div class="modal-footer">
  698. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('email')">确定</button>
  699. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  700. </div>
  701. </div>
  702. </div>
  703. </div>
  704. <div class="modal fade" id="password" role="dialog">
  705. <div class="we7-modal-dialog modal-dialog">
  706. <div class="modal-content">
  707. <div class="modal-header">
  708. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  709. <div class="modal-title">修改密码</div>
  710. </div>
  711. <div class="modal-body text-center">
  712. <div class="we7-form" style="width: 450px; margin: 0 auto;">
  713. <div class="form-group">
  714. <label for="" class="control-label col-sm-2">新密码</label>
  715. <div class="form-controls col-sm-10">
  716. <input type="password" value="" class="form-control new-password">
  717. </div>
  718. </div>
  719. <div class="form-group">
  720. <label for="" class="control-label col-sm-2">确认新密码</label>
  721. <div class="form-controls col-sm-10">
  722. <input type="password" value="" class="form-control renew-password">
  723. </div>
  724. </div>
  725. </div>
  726. </div>
  727. <div class="modal-footer">
  728. <button type="button" class="btn btn-primary" ng-click="httpChange('password')">确定</button>
  729. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  730. </div>
  731. </div>
  732. </div>
  733. </div>
  734. <div class="modal fade" id="telephone" tabindex="-1" role="dialog" aria-hidden="true">
  735. <div class="we7-modal-dialog modal-dialog we7-form">
  736. <div class="modal-content">
  737. <div class="modal-header">
  738. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  739. <div class="modal-title">修改固定电话</div>
  740. </div>
  741. <div class="modal-body">
  742. <div class="form-group">
  743. <input type="text" ng-model="userOriginal.telephone" class="form-control" placeholder="固定电话" />
  744. <span class="help-block"></span>
  745. </div>
  746. </div>
  747. <div class="modal-footer">
  748. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('telephone')">确定</button>
  749. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  750. </div>
  751. </div>
  752. </div>
  753. </div>
  754. <div class="modal fade" id="msn" tabindex="-1" role="dialog" aria-hidden="true">
  755. <div class="we7-modal-dialog modal-dialog we7-form">
  756. <div class="modal-content">
  757. <div class="modal-header">
  758. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  759. <div class="modal-title">MSN</div>
  760. </div>
  761. <div class="modal-body">
  762. <div class="form-group">
  763. <input type="text" ng-model="userOriginal.msn" class="form-control" placeholder="MSN" />
  764. <span class="help-block"></span>
  765. </div>
  766. </div>
  767. <div class="modal-footer">
  768. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('msn')">确定</button>
  769. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  770. </div>
  771. </div>
  772. </div>
  773. </div>
  774. <div class="modal fade" id="taobao" tabindex="-1" role="dialog" aria-hidden="true">
  775. <div class="we7-modal-dialog modal-dialog we7-form">
  776. <div class="modal-content">
  777. <div class="modal-header">
  778. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  779. <div class="modal-title">阿里旺旺</div>
  780. </div>
  781. <div class="modal-body">
  782. <div class="form-group">
  783. <input type="text" ng-model="userOriginal.taobao" class="form-control" placeholder="淘宝账号" />
  784. <span class="help-block"></span>
  785. </div>
  786. </div>
  787. <div class="modal-footer">
  788. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('taobao')">确定</button>
  789. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  790. </div>
  791. </div>
  792. </div>
  793. </div>
  794. <div class="modal fade" id="alipay" tabindex="-1" role="dialog" aria-hidden="true">
  795. <div class="we7-modal-dialog modal-dialog we7-form">
  796. <div class="modal-content">
  797. <div class="modal-header">
  798. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  799. <div class="modal-title">支付宝账号</div>
  800. </div>
  801. <div class="modal-body">
  802. <div class="form-group">
  803. <input type="text" ng-model="userOriginal.alipay" class="form-control" placeholder="淘宝账号" />
  804. <span class="help-block"></span>
  805. </div>
  806. </div>
  807. <div class="modal-footer">
  808. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('alipay')">确定</button>
  809. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  810. </div>
  811. </div>
  812. </div>
  813. </div>
  814. <div class="modal fade" id="studentid" tabindex="-1" role="dialog" aria-hidden="true">
  815. <div class="we7-modal-dialog modal-dialog we7-form">
  816. <div class="modal-content">
  817. <div class="modal-header">
  818. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  819. <div class="modal-title">学号</div>
  820. </div>
  821. <div class="modal-body">
  822. <div class="form-group">
  823. <input type="text" ng-model="userOriginal.studentid" class="form-control" placeholder="学号" />
  824. <span class="help-block"></span>
  825. </div>
  826. </div>
  827. <div class="modal-footer">
  828. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('studentid')">确定</button>
  829. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. <div class="modal fade" id="grade" tabindex="-1" role="dialog" aria-hidden="true">
  835. <div class="we7-modal-dialog modal-dialog we7-form">
  836. <div class="modal-content">
  837. <div class="modal-header">
  838. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  839. <div class="modal-title">班级</div>
  840. </div>
  841. <div class="modal-body">
  842. <div class="form-group">
  843. <input type="text" ng-model="userOriginal.grade" class="form-control" placeholder="班级" />
  844. <span class="help-block"></span>
  845. </div>
  846. </div>
  847. <div class="modal-footer">
  848. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('grade')">确定</button>
  849. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  850. </div>
  851. </div>
  852. </div>
  853. </div>
  854. <div class="modal fade" id="graduateschool" tabindex="-1" role="dialog" aria-hidden="true">
  855. <div class="we7-modal-dialog modal-dialog we7-form">
  856. <div class="modal-content">
  857. <div class="modal-header">
  858. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  859. <div class="modal-title">毕业院校</div>
  860. </div>
  861. <div class="modal-body">
  862. <div class="form-group">
  863. <input type="text" ng-model="userOriginal.graduateschool" class="form-control" placeholder="毕业院校" />
  864. <span class="help-block"></span>
  865. </div>
  866. </div>
  867. <div class="modal-footer">
  868. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('graduateschool')">确定</button>
  869. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  870. </div>
  871. </div>
  872. </div>
  873. </div>
  874. <div class="modal fade" id="education" tabindex="-1" role="dialog" aria-hidden="true">
  875. <div class="we7-modal-dialog modal-dialog we7-form">
  876. <div class="modal-content">
  877. <div class="modal-header">
  878. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  879. <div class="modal-title">学历</div>
  880. </div>
  881. <div class="modal-body">
  882. <div class="form-group">
  883. <select class="we7-select" ng-model="userOriginal.education" ng-options="education for education in educations"></select>
  884. </div>
  885. </div>
  886. <div class="modal-footer">
  887. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('education')">确定</button>
  888. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  889. </div>
  890. </div>
  891. </div>
  892. </div>
  893. <div class="modal fade" id="company" tabindex="-1" role="dialog" aria-hidden="true">
  894. <div class="we7-modal-dialog modal-dialog we7-form">
  895. <div class="modal-content">
  896. <div class="modal-header">
  897. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  898. <div class="modal-title">公司</div>
  899. </div>
  900. <div class="modal-body">
  901. <div class="form-group">
  902. <input type="text" ng-model="userOriginal.company" class="form-control" placeholder="公司" />
  903. <span class="help-block"></span>
  904. </div>
  905. </div>
  906. <div class="modal-footer">
  907. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('company')">确定</button>
  908. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  909. </div>
  910. </div>
  911. </div>
  912. </div>
  913. <div class="modal fade" id="occupation" tabindex="-1" role="dialog" aria-hidden="true">
  914. <div class="we7-modal-dialog modal-dialog we7-form">
  915. <div class="modal-content">
  916. <div class="modal-header">
  917. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  918. <div class="modal-title">职业</div>
  919. </div>
  920. <div class="modal-body">
  921. <div class="form-group">
  922. <input type="text" ng-model="userOriginal.occupation" class="form-control" placeholder="职业" />
  923. <span class="help-block"></span>
  924. </div>
  925. </div>
  926. <div class="modal-footer">
  927. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('occupation')">确定</button>
  928. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  929. </div>
  930. </div>
  931. </div>
  932. </div>
  933. <div class="modal fade" id="position" tabindex="-1" role="dialog" aria-hidden="true">
  934. <div class="we7-modal-dialog modal-dialog we7-form">
  935. <div class="modal-content">
  936. <div class="modal-header">
  937. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  938. <div class="modal-title">职位</div>
  939. </div>
  940. <div class="modal-body">
  941. <div class="form-group">
  942. <input type="text" ng-model="userOriginal.position" class="form-control" placeholder="职位" />
  943. <span class="help-block"></span>
  944. </div>
  945. </div>
  946. <div class="modal-footer">
  947. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('position')">确定</button>
  948. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  949. </div>
  950. </div>
  951. </div>
  952. </div>
  953. <div class="modal fade" id="revenue" tabindex="-1" role="dialog" aria-hidden="true">
  954. <div class="we7-modal-dialog modal-dialog we7-form">
  955. <div class="modal-content">
  956. <div class="modal-header">
  957. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  958. <div class="modal-title">年收入</div>
  959. </div>
  960. <div class="modal-body">
  961. <div class="form-group">
  962. <input type="text" ng-model="userOriginal.revenue" class="form-control" placeholder="年收入" />
  963. <span class="help-block"></span>
  964. </div>
  965. </div>
  966. <div class="modal-footer">
  967. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('revenue')">确定</button>
  968. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  969. </div>
  970. </div>
  971. </div>
  972. </div>
  973. <div class="modal fade" id="interest" tabindex="-1" role="dialog" aria-hidden="true">
  974. <div class="we7-modal-dialog modal-dialog we7-form">
  975. <div class="modal-content">
  976. <div class="modal-header">
  977. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  978. <div class="modal-title">兴趣爱好</div>
  979. </div>
  980. <div class="modal-body">
  981. <div class="form-group">
  982. <input type="text" ng-model="userOriginal.interest" class="form-control" placeholder="兴趣爱好" />
  983. <span class="help-block"></span>
  984. </div>
  985. </div>
  986. <div class="modal-footer">
  987. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('interest')">确定</button>
  988. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  989. </div>
  990. </div>
  991. </div>
  992. </div>
  993. <div class="modal fade" id="bio" tabindex="-1" role="dialog" aria-hidden="true">
  994. <div class="we7-modal-dialog modal-dialog we7-form">
  995. <div class="modal-content">
  996. <div class="modal-header">
  997. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  998. <div class="modal-title">自我介绍</div>
  999. </div>
  1000. <div class="modal-body">
  1001. <div class="form-group">
  1002. <input type="text" ng-model="userOriginal.bio" class="form-control" placeholder="自我介绍" />
  1003. <span class="help-block"></span>
  1004. </div>
  1005. </div>
  1006. <div class="modal-footer">
  1007. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('bio')">确定</button>
  1008. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1009. </div>
  1010. </div>
  1011. </div>
  1012. </div>
  1013. <div class="modal fade" id="lookingfor" tabindex="-1" role="dialog" aria-hidden="true">
  1014. <div class="we7-modal-dialog modal-dialog we7-form">
  1015. <div class="modal-content">
  1016. <div class="modal-header">
  1017. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1018. <div class="modal-title">交友目的</div>
  1019. </div>
  1020. <div class="modal-body">
  1021. <div class="form-group">
  1022. <input type="text" ng-model="userOriginal.lookingfor" class="form-control" placeholder="交友目的" />
  1023. <span class="help-block"></span>
  1024. </div>
  1025. </div>
  1026. <div class="modal-footer">
  1027. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('lookingfor')">确定</button>
  1028. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1029. </div>
  1030. </div>
  1031. </div>
  1032. </div>
  1033. <div class="modal fade" id="affectivestatus" tabindex="-1" role="dialog" aria-hidden="true">
  1034. <div class="we7-modal-dialog modal-dialog we7-form">
  1035. <div class="modal-content">
  1036. <div class="modal-header">
  1037. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1038. <div class="modal-title">情感状态</div>
  1039. </div>
  1040. <div class="modal-body">
  1041. <div class="form-group">
  1042. <input type="text" ng-model="userOriginal.affectivestatus" class="form-control" placeholder="情感状态" />
  1043. <span class="help-block"></span>
  1044. </div>
  1045. </div>
  1046. <div class="modal-footer">
  1047. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('affectivestatus')">确定</button>
  1048. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1049. </div>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. <div class="modal fade" id="site" tabindex="-1" role="dialog" aria-hidden="true">
  1054. <div class="we7-modal-dialog modal-dialog we7-form">
  1055. <div class="modal-content">
  1056. <div class="modal-header">
  1057. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1058. <div class="modal-title">个人主页</div>
  1059. </div>
  1060. <div class="modal-body">
  1061. <div class="form-group">
  1062. <input type="text" ng-model="userOriginal.site" class="form-control" placeholder="个人主页" />
  1063. <span class="help-block"></span>
  1064. </div>
  1065. </div>
  1066. <div class="modal-footer">
  1067. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('site')">确定</button>
  1068. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. </div>
  1073. <div class="modal fade" id="zipcode" tabindex="-1" role="dialog" aria-hidden="true">
  1074. <div class="we7-modal-dialog modal-dialog we7-form">
  1075. <div class="modal-content">
  1076. <div class="modal-header">
  1077. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1078. <div class="modal-title">邮编</div>
  1079. </div>
  1080. <div class="modal-body">
  1081. <div class="form-group">
  1082. <input type="text" ng-model="userOriginal.zipcode" class="form-control" placeholder="邮编" />
  1083. <span class="help-block"></span>
  1084. </div>
  1085. </div>
  1086. <div class="modal-footer">
  1087. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('zipcode')">确定</button>
  1088. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1089. </div>
  1090. </div>
  1091. </div>
  1092. </div>
  1093. <div class="modal fade" id="idcard" tabindex="-1" role="dialog" aria-hidden="true">
  1094. <div class="we7-modal-dialog modal-dialog we7-form">
  1095. <div class="modal-content">
  1096. <div class="modal-header">
  1097. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1098. <div class="modal-title">身份证号</div>
  1099. </div>
  1100. <div class="modal-body">
  1101. <div class="form-group">
  1102. <input type="text" ng-model="userOriginal.idcard" class="form-control" placeholder="身份证号" />
  1103. <span class="help-block"></span>
  1104. </div>
  1105. </div>
  1106. <div class="modal-footer">
  1107. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('idcard')">确定</button>
  1108. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1109. </div>
  1110. </div>
  1111. </div>
  1112. </div>
  1113. <div class="modal fade" id="weight" tabindex="-1" role="dialog" aria-hidden="true">
  1114. <div class="we7-modal-dialog modal-dialog we7-form">
  1115. <div class="modal-content">
  1116. <div class="modal-header">
  1117. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1118. <div class="modal-title">体重</div>
  1119. </div>
  1120. <div class="modal-body">
  1121. <div class="form-group">
  1122. <input type="text" ng-model="userOriginal.weight" class="form-control" placeholder="体重" />
  1123. <span class="help-block"></span>
  1124. </div>
  1125. </div>
  1126. <div class="modal-footer">
  1127. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('weight')">确定</button>
  1128. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1129. </div>
  1130. </div>
  1131. </div>
  1132. </div>
  1133. <div class="modal fade" id="height" tabindex="-1" role="dialog" aria-hidden="true">
  1134. <div class="we7-modal-dialog modal-dialog we7-form">
  1135. <div class="modal-content">
  1136. <div class="modal-header">
  1137. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1138. <div class="modal-title">身高</div>
  1139. </div>
  1140. <div class="modal-body">
  1141. <div class="form-group">
  1142. <input type="text" ng-model="userOriginal.height" class="form-control" placeholder="身高" />
  1143. <span class="help-block"></span>
  1144. </div>
  1145. </div>
  1146. <div class="modal-footer">
  1147. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('height')">确定</button>
  1148. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1149. </div>
  1150. </div>
  1151. </div>
  1152. </div>
  1153. <div class="modal fade" id="nationality" tabindex="-1" role="dialog" aria-hidden="true">
  1154. <div class="we7-modal-dialog modal-dialog we7-form">
  1155. <div class="modal-content">
  1156. <div class="modal-header">
  1157. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1158. <div class="modal-title">国籍</div>
  1159. </div>
  1160. <div class="modal-body">
  1161. <div class="form-group">
  1162. <input type="text" ng-model="userOriginal.nationality" class="form-control" placeholder="国籍" />
  1163. <span class="help-block"></span>
  1164. </div>
  1165. </div>
  1166. <div class="modal-footer">
  1167. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('nationality')">确定</button>
  1168. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1169. </div>
  1170. </div>
  1171. </div>
  1172. </div>
  1173. <div class="modal fade" id="constellation" tabindex="-1" role="dialog" aria-hidden="true">
  1174. <div class="we7-modal-dialog modal-dialog we7-form">
  1175. <div class="modal-content">
  1176. <div class="modal-header">
  1177. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1178. <div class="modal-title">星座</div>
  1179. </div>
  1180. <div class="modal-body">
  1181. <div class="form-group">
  1182. <select class="we7-select" ng-model="userOriginal.constellation" ng-options="constellation for constellation in constellations"></select>
  1183. </div>
  1184. </div>
  1185. <div class="modal-footer">
  1186. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('constellation')">确定</button>
  1187. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1188. </div>
  1189. </div>
  1190. </div>
  1191. </div>
  1192. <div class="modal fade" id="zodiac" tabindex="-1" role="dialog" aria-hidden="true">
  1193. <div class="we7-modal-dialog modal-dialog we7-form">
  1194. <div class="modal-content">
  1195. <div class="modal-header">
  1196. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1197. <div class="modal-title">生肖</div>
  1198. </div>
  1199. <div class="modal-body">
  1200. <div class="form-group">
  1201. <select class="we7-select" ng-model="userOriginal.zodiac" ng-options="zodiac for zodiac in zodiacs"></select>
  1202. </div>
  1203. </div>
  1204. <div class="modal-footer">
  1205. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('zodiac')">确定</button>
  1206. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1207. </div>
  1208. </div>
  1209. </div>
  1210. </div>
  1211. <div class="modal fade" id="bloodtype" tabindex="-1" role="dialog" aria-hidden="true">
  1212. <div class="we7-modal-dialog modal-dialog we7-form">
  1213. <div class="modal-content">
  1214. <div class="modal-header">
  1215. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1216. <div class="modal-title">血型</div>
  1217. </div>
  1218. <div class="modal-body">
  1219. <div class="form-group">
  1220. <select class="we7-select" ng-model="userOriginal.bloodtype" ng-options="bloodtype for bloodtype in bloodtypes"></select>
  1221. </div>
  1222. </div>
  1223. <div class="modal-footer">
  1224. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('bloodtype')">确定</button>
  1225. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1226. </div>
  1227. </div>
  1228. </div>
  1229. </div>
  1230. <div class="modal fade" id="other_field" tabindex="-1" role="dialog" aria-hidden="true">
  1231. <div class="we7-modal-dialog modal-dialog we7-form">
  1232. <div class="modal-content">
  1233. <div class="modal-header">
  1234. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  1235. <div class="modal-title" ng-bind="other_field_name"></div>
  1236. </div>
  1237. <div class="modal-body">
  1238. <div class="form-group">
  1239. <input type="text" ng-model="userOriginal[other_field_title]" class="form-control" placeholder="{{other_field_name}}" />
  1240. <span class="help-block"></span>
  1241. </div>
  1242. </div>
  1243. <div class="modal-footer">
  1244. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('other_field')">确定</button>
  1245. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  1246. </div>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. <div class="modal fade" id="address-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  1251. <div class="modal-dialog" role="document">
  1252. <div class="modal-content">
  1253. <div class="modal-header">
  1254. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  1255. <h4 class="modal-title" id="address-add">添加收货地址</h4>
  1256. </div>
  1257. <div class="modal-body">
  1258. <div class="addaddress">
  1259. <div class="form-group">
  1260. <label class="col-sm-2 control-label">姓名</label>
  1261. <div class="col-sm-9 col-xs-12">
  1262. <input class="form-control" type="text" ng-model="addAddress.name" value="">
  1263. </div>
  1264. </div>
  1265. <div class="form-group">
  1266. <label class="col-sm-2 control-label">手机号</label>
  1267. <div class="col-sm-9 col-xs-12">
  1268. <input class="form-control" type="text" ng-model="addAddress.phone" value="">
  1269. </div>
  1270. </div>
  1271. <div class="form-group">
  1272. <label class="col-sm-2 control-label">邮编</label>
  1273. <div class="col-sm-9 col-xs-12">
  1274. <input class="form-control" type="text" ng-model="addAddress.code" value="">
  1275. </div>
  1276. </div>
  1277. <div class="form-group">
  1278. <label class="col-sm-2 control-label">收货地址</label>
  1279. <div class="col-sm-9 col-xs-12">
  1280. <?php echo tpl_form_field_district("addaddress");?>
  1281. </div>
  1282. </div>
  1283. <div class="form-group">
  1284. <label class="col-sm-2 control-label">详细地址</label>
  1285. <div class="col-sm-9 col-xs-12">
  1286. <input class="form-control" type="text" ng-model="addAddress.detail" value="">
  1287. </div>
  1288. </div>
  1289. <div class="form-group">
  1290. <label class="col-sm-2 control-label"></label>
  1291. <div class="col-sm-9 col-xs-12">
  1292. <a href="javascript:" ng-click="addAdd()" class="btn btn-default btn-primary">提交</a>
  1293. </div>
  1294. </div>
  1295. </div>
  1296. </div>
  1297. </div>
  1298. </div>
  1299. </div>
  1300. <div class="modal fade" id="address-edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  1301. <div class="modal-dialog" role="document">
  1302. <div class="modal-content">
  1303. <div class="modal-header">
  1304. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  1305. <h4 class="modal-title" id="address-edit">修改收货地址</h4>
  1306. </div>
  1307. <div class="modal-body">
  1308. <div class="addaddress">
  1309. <div class="form-group">
  1310. <label class="col-sm-2 control-label">姓名</label>
  1311. <div class="col-sm-9 col-xs-12">
  1312. <input class="form-control" type="text" ng-model="editAddress.name" value="">
  1313. </div>
  1314. </div>
  1315. <div class="form-group">
  1316. <label class="col-sm-2 control-label">手机号</label>
  1317. <div class="col-sm-9 col-xs-12">
  1318. <input class="form-control" type="text" ng-model="editAddress.phone" value="">
  1319. </div>
  1320. </div>
  1321. <div class="form-group">
  1322. <label class="col-sm-2 control-label">邮编</label>
  1323. <div class="col-sm-9 col-xs-12">
  1324. <input class="form-control" type="text" ng-model="editAddress.code" value="">
  1325. </div>
  1326. </div>
  1327. <div class="form-group">
  1328. <label class="col-sm-2 control-label">收货地址</label>
  1329. <div class="col-sm-9 col-xs-12">
  1330. <?php echo tpl_form_field_district("addaddress");?>
  1331. </div>
  1332. </div>
  1333. <div class="form-group">
  1334. <label class="col-sm-2 control-label">详细地址</label>
  1335. <div class="col-sm-9 col-xs-12">
  1336. <input class="form-control" type="text" ng-model="editAddress.detail" value="">
  1337. </div>
  1338. </div>
  1339. <div class="form-group">
  1340. <label class="col-sm-2 control-label"></label>
  1341. <div class="col-sm-9 col-xs-12">
  1342. <a href="javascript:" ng-click="editAdd(editAddress.id)" class="btn btn-default btn-primary">提交</a>
  1343. </div>
  1344. </div>
  1345. </div>
  1346. </div>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. <!-- 模态框结束 -->
  1351. <!--end编辑会员-->
  1352. <?php } ?>
  1353. </form>
  1354. </div>
  1355. <script type="text/javascript">
  1356. angular.module('memberAPP').value('config', {
  1357. profile:<?php echo !empty($profile) ? json_encode($profile) : 'null'?>,
  1358. custom_fields:<?php echo !empty($custom_fields) ? json_encode($custom_fields) : 'null'?>,
  1359. all_fields:<?php echo !empty($all_fields) ? json_encode($all_fields) : 'null'?>,
  1360. uniacid_fields:<?php echo !empty($uniacid_fields) ? json_encode($uniacid_fields) : 'null'?>,
  1361. groups:<?php echo !empty($groups) ? json_encode($groups) : 'null'?>,
  1362. addresses:<?php echo json_encode($addresses)?>,
  1363. uid:<?php echo $uid;?>,
  1364. links: {
  1365. basePost: "<?php echo url('mc/member/base_information', array('uid' => $uid))?>",
  1366. addAddressUrl: "<?php echo url('mc/member/address', array('op' =>'addaddress', 'uid' => $uid))?>",
  1367. editAddressUrl: "<?php echo url('mc/member/address', array('op' =>'editaddress', 'uid' => $uid))?>",
  1368. delAddressUrl: "<?php echo url('mc/member/address', array('op' =>'deladdress','uid' => $uid))?>",
  1369. setDefaultAddressUrl: "<?php echo url('mc/member/address', array('op' => 'isdefault', 'uid' => $uid))?>",
  1370. },
  1371. });
  1372. angular.bootstrap($('#js-base-information'), ['memberAPP']);
  1373. </script>
  1374. <?php } ?>
  1375. <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>