profile.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  1. {template 'common/header'}
  2. <div id="js-user-profile" ng-controller="UserProfileDisplay" ng-cloak>
  3. {if $_W['highest_role'] != 'founder'}
  4. <div class="user-head-info we7-padding-bottom" >
  5. <img ng-src="{{profile.avatar}}" class="img-circle user-avatar ">
  6. <div class="info">
  7. <h3 class="title" ng-bind="user.username"></h3>
  8. </div>
  9. </div>
  10. {/if}
  11. <div class="btn-group we7-btn-group we7-padding-bottom">
  12. <a href="{php echo url('user/profile/base', array('uid' => $user['uid'], 'user_type' => PERSONAL_BASE_TYPE))}" class="btn btn-default {if $user_type == '' || $user_type == PERSONAL_BASE_TYPE}active{/if}">基础信息</a>
  13. {if $_W['highest_role'] != ACCOUNT_MANAGE_NAME_CLERK}
  14. {if $_W['highest_role'] != 'founder'}
  15. <a href="{php echo url('user/profile/base', array('uid' => $user['uid'], 'user_type' => PERSONAL_AUTH_TYPE))}" class="btn btn-default {if $user_type == PERSONAL_AUTH_TYPE}active{/if}">应用模板权限</a>
  16. <a href="{php echo url('user/profile/base', array('uid' => $user['uid'], 'user_type' => PERSONAL_LIST_TYPE))}" class="btn btn-default {if $user_type == PERSONAL_LIST_TYPE}active{/if}">使用账号列表</a>
  17. <a href="{php echo url('user/profile/base', array('uid' => $user['uid'], 'user_type' => PERSONAL_LIMIT_TYPE))}" class="btn btn-default {if $user_type == PERSONAL_LIMIT_TYPE}active{/if}">账号使用期限</a>
  18. {/if}
  19. {/if}
  20. <a href="{php echo url('user/profile/base', array('uid' => $user['uid'], 'user_type' => PERSONAL_BIND_TYPE))}" class="btn btn-default {if $user_type == PERSONAL_BIND_TYPE}active{/if}">账号绑定</a>
  21. </div>
  22. {if $user_type=='' || $user_type == PERSONAL_BASE_TYPE}
  23. <div class="base">
  24. <table class="table we7-table table-hover table-form">
  25. <col width="140px " />
  26. <col />
  27. <col width="120px" />
  28. <tr>
  29. <th class="text-left" colspan="3">账户设置</th>
  30. </tr>
  31. <tr>
  32. <td class="table-label">头像</td>
  33. <td><img ng-src="{{profile.avatar}}" class="img-circle user-avatar" width="65px" height="65px" /></td>
  34. <td><div class="link-group"><a href="javascript:;" ng-click="changeAvatar()">修改</a></div></td>
  35. </tr>
  36. <tr>
  37. <td class="table-label">用户</td>
  38. <td ng-bind="user.username"></td>
  39. <td>{if permission_check_account_user('see_user_profile_edit_username')}<div class="link-group"><a href="#name" data-toggle="modal" data-target="" ng-click="editInfo('username', user.username)">修改</a></div>{/if}</td>
  40. </tr>
  41. <tr>
  42. <td class="table-label">密码</td>
  43. <td>******</td>
  44. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#pass">修改</a></div></td>
  45. </tr>
  46. {if !empty($user['founder_groupid'])}
  47. <tr>
  48. <td class="table-label">注册链接</td>
  49. <td>{$user['url']}</td>
  50. <td><div class="link-group"><a href="javascript:;" data-url="{$user['url']}" class="js-clip">复制链接</a></div></td>
  51. </tr>
  52. {/if}
  53. </table>
  54. <div class="modal fade" id="name" role="dialog">
  55. <div class="we7-modal-dialog modal-dialog">
  56. <div class="modal-content">
  57. <div class="modal-header">
  58. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  59. <div class="modal-title">修改用户名</div>
  60. </div>
  61. <div class="modal-body">
  62. <div class="form-group">
  63. <input type="text" ng-model="userOriginal.username" class="form-control" placeholder="用户名" />
  64. <span class="help-block"></span>
  65. </div>
  66. </div>
  67. <div class="modal-footer">
  68. <button type="button" class="btn btn-primary" ng-click="httpChange('username')">确定</button>
  69. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="modal fade" id="pass" role="dialog">
  75. <div class="we7-modal-dialog modal-dialog">
  76. <div class="modal-content">
  77. <div class="modal-header">
  78. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  79. <div class="modal-title">修改密码</div>
  80. </div>
  81. <div class="modal-body text-center">
  82. <div class="we7-form" style="width: 450px; margin: 0 auto;">
  83. {if empty($user['register_type'])}
  84. <div class="form-group">
  85. <label for="" class="control-label col-sm-2">原密码</label>
  86. <div class="form-controls col-sm-10">
  87. <input type="password" value="" class="form-control old-password">
  88. </div>
  89. </div>
  90. {/if}
  91. <div class="form-group">
  92. <label for="" class="control-label col-sm-2">新密码</label>
  93. <div class="form-controls col-sm-10">
  94. <input type="password" value="" class="form-control new-password">
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <label for="" class="control-label col-sm-2">确认新密码</label>
  99. <div class="form-controls col-sm-10">
  100. <input type="password" value="" class="form-control renew-password">
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="modal-footer">
  106. <button type="button" class="btn btn-primary" ng-click="httpChange('password')">确定</button>
  107. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <table class="table we7-table table-hover table-form">
  113. <col width="140px " />
  114. <col />
  115. <col width="100px" />
  116. <tr>
  117. <th class="text-left" colspan="3">基础信息</th>
  118. </tr>
  119. <tr>
  120. <td class="table-label">真实姓名</td>
  121. <td ng-bind="profile.realname"></td>
  122. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#realname" ng-click="editInfo('realname', profile.realname)">修改</a></div></td>
  123. </tr>
  124. <tr>
  125. <td class="table-label">出生年月日</td>
  126. <td ng-bind="profile.births"></td>
  127. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#birth">修改</a></div></td>
  128. </tr>
  129. <tr>
  130. <td class="table-label">邮寄地址</td>
  131. <td ng-bind="profile.address"></td>
  132. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#address" ng-click="editInfo('address', profile.address)">修改</a></div></td>
  133. </tr>
  134. <tr>
  135. <td class="table-label">居住地址</td>
  136. <td ng-bind="profile.resides"></td>
  137. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#reside">修改</a></div></td>
  138. </tr>
  139. <tr ng-repeat="field in extra_fields">
  140. <td class="table-label" ng-bind="field.title"></td>
  141. <td ng-bind="profile[field.field]"></td>
  142. <td></td>
  143. </tr>
  144. <tr>
  145. <td class="table-label">上次登录时间</td>
  146. <td ng-bind="user.last_visit"></td>
  147. <td></td>
  148. </tr>
  149. <tr>
  150. <td class="table-label">上次登录IP</td>
  151. <td ng-bind="user.lastip"></td>
  152. <td></td>
  153. </tr>
  154. <tr>
  155. <td class="table-label">注册时间</td>
  156. <td ng-bind="user.joindate"></td>
  157. <td></td>
  158. </tr>
  159. <tr>
  160. <td class="table-label">到期时间</td>
  161. <td >{$endtime}</td>
  162. <td></td>
  163. </tr>
  164. {if $_W['isfounder'] && !user_is_vice_founder()}
  165. <tr>
  166. <td class="table-label">备注</td>
  167. <td ng-bind="user.remark"></td>
  168. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#remark" ng-click="editInfo('remark', user.remark)">修改</a></div></td>
  169. </tr>
  170. {/if}
  171. </table>
  172. {if permission_check_account_user('see_user_add_welcome_account')}
  173. <table class="table we7-table table-hover table-form">
  174. <col width="160px " />
  175. <col />
  176. <col width="100px" />
  177. <tr>
  178. <th class="text-left" colspan="3">用户首页设置</th>
  179. </tr>
  180. <tr>
  181. <td class="table-label">登陆后跳转链接</td>
  182. <td class="table-label">
  183. <span ng-show="user_welcome_link">{{user_welcome_link.name}}</span>
  184. <span ng-show="user_welcome_link.name == null">用户欢迎页</span>
  185. </td>
  186. <td>
  187. <we7-modal-form type="'select'" label="'跳转链接'" key="'name'" value="user_welcome_link" on-confirm="saveSetting(formValue, 'welcome_link')" options="redirect_urls"></we7-modal-form>
  188. </td>
  189. </tr>
  190. </table>
  191. {/if}
  192. {if permission_check_account_user('see_user_profile_account_num')}
  193. <table class="table we7-table table-hover table-form">
  194. <col />
  195. <col />
  196. <col />
  197. <tr>
  198. <th class="text-left" colspan="3">公众号使用权限</th>
  199. </tr>
  200. <tr>
  201. <td class="table-label">可创建总数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.maxaccount || 0"></strong></td>
  202. <td class="table-label">已创建个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.account_num || 0"></strong></td>
  203. <td class="table-label">可创建剩余个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.account_limit || 0"></strong></td>
  204. </tr>
  205. </table>
  206. <table class="table we7-table table-hover table-form">
  207. <col />
  208. <col />
  209. <col />
  210. <tr>
  211. <th class="text-left" colspan="3">小程序使用权限</th>
  212. </tr>
  213. <tr>
  214. <td class="table-label">可创建总数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.maxwxapp || 0"></strong></td>
  215. <td class="table-label">已创建个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.wxapp_num || 0"></strong></td>
  216. <td class="table-label">可创建剩余个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.wxapp_limit || 0"></strong></td>
  217. </tr>
  218. </table>
  219. <table class="table we7-table table-hover table-form">
  220. <col />
  221. <col />
  222. <col />
  223. <tr>
  224. <th class="text-left" colspan="3">PC使用权限</th>
  225. </tr>
  226. <tr>
  227. <td class="table-label">可创建总数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.maxwebapp || 0"></strong></td>
  228. <td class="table-label">已创建个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.webapp_num || 0"></strong></td>
  229. <td class="table-label">可创建剩余个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.webapp_limit || 0"></strong></td>
  230. </tr>
  231. </table>
  232. <table class="table we7-table table-hover table-form">
  233. <col />
  234. <col />
  235. <col />
  236. <tr>
  237. <th class="text-left" colspan="3">APP使用权限</th>
  238. </tr>
  239. <tr>
  240. <td class="table-label">可创建总数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.maxphoneapp || 0"></strong></td>
  241. <td class="table-label">已创建个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.phoneapp_num || 0"></strong></td>
  242. <td class="table-label">可创建剩余个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.phoneapp_limit || 0"></strong></td>
  243. </tr>
  244. </table>
  245. {/if}
  246. <div class="modal fade" id="realname" role="dialog">
  247. <div class="we7-modal-dialog modal-dialog">
  248. <div class="modal-content">
  249. <div class="modal-header">
  250. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  251. <div class="modal-title">修改真实姓名</div>
  252. </div>
  253. <div class="modal-body">
  254. <div class="form-group">
  255. <input type="text" class="form-control" ng-model="userOriginal.realname">
  256. <span class="help-block">请填写真实姓名</span>
  257. </div>
  258. </div>
  259. <div class="modal-footer">
  260. <button type="button" class="btn btn-primary" ng-click="httpChange('realname')">确定</button>
  261. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. <div class="modal fade" id="birth" role="dialog">
  267. <div class="we7-modal-dialog modal-dialog">
  268. <div class="modal-content">
  269. <div class="modal-header">
  270. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  271. <div class="modal-title">修改出生年月日</div>
  272. </div>
  273. <div class="modal-body">
  274. <div class="form-group">
  275. {php echo tpl_fans_form('birth',$profile['birth']);}
  276. </div>
  277. </div>
  278. <div class="modal-footer">
  279. <button type="button" class="btn btn-primary" ng-click="httpChange('birth')">确定</button>
  280. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. <div class="modal fade" id="address" role="dialog">
  286. <div class="we7-modal-dialog modal-dialog">
  287. <div class="modal-content">
  288. <div class="modal-header">
  289. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  290. <div class="modal-title">修改邮寄地址</div>
  291. </div>
  292. <div class="modal-body">
  293. <div class="form-group">
  294. <input class="form-control" type="text" ng-model="userOriginal.address">
  295. <span class="help-block">请填写详细地址</span>
  296. </div>
  297. </div>
  298. <div class="modal-footer">
  299. <button type="button" class="btn btn-primary" ng-click="httpChange('address')">确定</button>
  300. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. <div class="modal fade" id="reside" role="dialog">
  306. <div class="we7-modal-dialog modal-dialog">
  307. <div class="modal-content">
  308. <div class="modal-header">
  309. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  310. <div class="modal-title">修改居住地址</div>
  311. </div>
  312. <div class="modal-body">
  313. <div class="form-group">
  314. {php echo tpl_fans_form('reside',$profile['reside']);}
  315. </div>
  316. </div>
  317. <div class="modal-footer">
  318. <button type="button" class="btn btn-primary" ng-click="httpChange('reside')">确定</button>
  319. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="modal fade" id="qq" role="dialog">
  325. <div class="we7-modal-dialog modal-dialog">
  326. <div class="modal-content">
  327. <div class="modal-header">
  328. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  329. <div class="modal-title">修改QQ</div>
  330. </div>
  331. <div class="modal-body">
  332. <div class="form-group">
  333. <input type="text" ng-model="userOriginal.qq" class="form-control" placeholder="qq" />
  334. <span class="help-block"></span>
  335. </div>
  336. </div>
  337. <div class="modal-footer">
  338. <button type="button" class="btn btn-primary" ng-click="httpChange('qq')">确定</button>
  339. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. <div class="modal fade" id="remark" role="dialog">
  345. <div class="we7-modal-dialog modal-dialog">
  346. <div class="modal-content">
  347. <div class="modal-header">
  348. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  349. <div class="modal-title">修改备注</div>
  350. </div>
  351. <div class="modal-body">
  352. <div class="form-group">
  353. <input type="text" ng-model="userOriginal.remark" class="form-control" placeholder="备注" />
  354. <span class="help-block"></span>
  355. </div>
  356. </div>
  357. <div class="modal-footer">
  358. <button type="button" class="btn btn-primary" ng-click="httpChange('remark')" ng-click="editInfo('remark', user.remark)">确定</button>
  359. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. {/if}
  366. <div class="modal fade" id="mobile" role="dialog">
  367. <div class="we7-modal-dialog modal-dialog">
  368. <div class="modal-content">
  369. <div class="modal-header">
  370. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  371. <div class="modal-title">修改手机号</div>
  372. </div>
  373. <div class="modal-body">
  374. <div class="form-group">
  375. <input type="text" ng-model="userOriginal.mobile" class="form-control" placeholder="mobile" />
  376. <span class="help-block"></span>
  377. </div>
  378. </div>
  379. <div class="modal-footer">
  380. <button type="button" class="btn btn-primary" ng-click="httpChange('mobile')">确定</button>
  381. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  382. </div>
  383. </div>
  384. </div>
  385. </div>
  386. {if $_W['highest_role'] != 'founder'}
  387. {if $user_type == PERSONAL_AUTH_TYPE}
  388. <div class="modules_tpl">
  389. <div class="panel we7-panel user-permission">
  390. <div class="panel-heading">
  391. <span>所属用户组:<span ng-bind="group_info.name"></span></span>
  392. </div>
  393. <div class="we7-group-show we7-padding" ng-repeat="(packid, pack) in group_info.package_detail">
  394. <div class="name">
  395. {{pack.id == '-1' ? '所有服务' : pack.name}}
  396. </div>
  397. <div class="group-app-list" ng-if="pack.id != -1">
  398. <div class="group-app-item" ng-repeat="module in pack.modules_all">
  399. <img ng-src="{{module.logo}}" class="module-img" alt="">
  400. <div class="info">
  401. <div class="title text-over">
  402. {{module.title}}
  403. </div>
  404. <div class="type-list">
  405. <i ng-repeat="item in module.group_support | moduleInfo" ng-class="item.icon"></i>
  406. </div>
  407. </div>
  408. </div>
  409. <div class="group-app-item" ng-repeat="module in pack.templates">
  410. <img ng-src="{{module.logo}}" class="template-img" alt="">
  411. <div class="info">
  412. <div class="title">
  413. {{module.title}}
  414. </div>
  415. <div class="type-list">
  416. <i class="wi wi-template"></i>
  417. </div>
  418. </div>
  419. </div>
  420. </div>
  421. <div class="group-app-list" ng-if="pack.id == -1">
  422. <div class="group-app-item">所有服务</div>
  423. </div>
  424. <a class="action" ng-if="pack.id != -1"></a>
  425. </div>
  426. <div class="we7-empty-block" ng-if="group_info.package_detail | we7IsEmpty">
  427. 无服务
  428. </div>
  429. </div>
  430. {if empty($_W['isfounder'])}
  431. <div class="panel we7-panel user-permission">
  432. <div class="panel-heading">
  433. <span>应用权限组</span>
  434. </div>
  435. <div class="we7-group-show we7-padding" ng-repeat="(packid, pack) in user_extra_groups">
  436. <div class="name">
  437. {{pack.name}}
  438. </div>
  439. <div class="group-app-list">
  440. <div class="group-app-item" ng-repeat="module in pack.modules_all">
  441. <img ng-src="{{module.logo}}" class="module-img" alt="">
  442. <div class="info">
  443. <div class="title text-over">
  444. {{module.title}}
  445. </div>
  446. <div class="type-list">
  447. <i ng-repeat="item in module.group_support | moduleInfo" ng-class="item.icon"></i>
  448. </div>
  449. </div>
  450. </div>
  451. <div class="group-app-item" ng-repeat="module in pack.templates">
  452. <img ng-src="{{module.logo}}" class="template-img" alt="">
  453. <div class="info">
  454. <div class="title">
  455. {{module.title}}
  456. </div>
  457. <div class="type-list">
  458. <i class="wi wi-template"></i>
  459. </div>
  460. </div>
  461. </div>
  462. </div>
  463. <a class="action"></a>
  464. </div>
  465. <div class="we7-empty-block" ng-if="!user_extra_groups">
  466. 无应用权限组
  467. </div>
  468. </div>
  469. <div class="panel we7-panel user-permission">
  470. <div class="panel-heading">
  471. <span>附加权限</span>
  472. </div>
  473. <div class="we7-group-show we7-padding" ng-if="!(extend.modules | we7IsEmpty)">
  474. <div class="name">
  475. 附加应用
  476. </div>
  477. <div class="group-app-list">
  478. <div class="group-app-item" ng-repeat="module in extend.modules">
  479. <img ng-src="{{module.logo}}" class="module-img" alt="">
  480. <div class="info">
  481. <div class="title text-over">
  482. {{module.title}}
  483. </div>
  484. <div class="type-list">
  485. <i ng-class="module.support | moduleInfo:'icon'" ></i>
  486. </div>
  487. </div>
  488. </div>
  489. <div class="group-app-item" ng-repeat="module in extend.templates">
  490. <img ng-src="{{module.logo}}" class="template-img" alt="">
  491. <div class="info">
  492. <div class="title">
  493. {{module.title}}
  494. </div>
  495. <div class="type-list">
  496. <i class="wi wi-template"></i>
  497. </div>
  498. </div>
  499. </div>
  500. </div>
  501. <a class="action"></a>
  502. </div>
  503. <div class="we7-empty-block" ng-if="extend.modules | we7IsEmpty">
  504. 无应用权限组
  505. </div>
  506. </div>
  507. {/if}
  508. </div>
  509. {/if}
  510. {if $user_type == PERSONAL_LIST_TYPE}
  511. <div class="account">
  512. <table class="table we7-table table-hover vertical-middle">
  513. <col width="70px"/>
  514. <col/>
  515. <col width="100px"/>
  516. <col width="240px"/>
  517. <tr>
  518. <th colspan="2" class="text-left">可使用的帐号</th>
  519. <th>角色</th>
  520. <th class="text-right">操作</th>
  521. </tr>
  522. <tr ng-repeat="wechat in wechats" ng-if="wechats">
  523. <td class="text-left"><img ng-src="{{wechat.thumb}}" class="img-responsive account-img__list"/></td>
  524. <td class="text-left">
  525. <p ng-bind="wechat.name"></p>
  526. <span class="color-gray">类型:
  527. <span ng-if="wechat.level == 1">普通订阅号</span>
  528. <span ng-if="wechat.level == 2">普通服务号</span>
  529. <span ng-if="wechat.level == 3">认证订阅号</span>
  530. <span ng-if="wechat.level == 4">认证服务号/认证媒体/政府订阅号</span>
  531. </span>
  532. </td>
  533. <td>
  534. <span ng-if="wechat.role == 'founder'">创始人</span>
  535. <span ng-if="wechat.role == 'owner'">主管理员</span>
  536. <span ng-if="wechat.role == 'manager'">管理员</span>
  537. <span ng-if="wechat.role == 'operator'">操作员</span>
  538. <span ng-if="wechat.role == 'clerk'">店员</span>
  539. </td>
  540. <td>
  541. <div class="link-group" ng-if="wechat.role == 'owner'">
  542. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{wechat.uniacid}}&acid={{wechat.acid}}&account_type={ACCOUNT_TYPE_OFFCIAL_NORMAL}" class="color-default">公众号设置</a>
  543. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{wechat.uniacid}}&acid={{wechat.acid}}&account_type={ACCOUNT_TYPE_OFFCIAL_NORMAL}" class="color-default">操作员设置</a>
  544. </div>
  545. </td>
  546. </tr>
  547. <tr ng-repeat="wxapp in wxapps" ng-if="wxapp">
  548. <td class="text-left"><img ng-src="{{wxapp.thumb}}" class="img-responsive account-img__list"/></td>
  549. <td class="text-left">
  550. <p ng-bind="wxapp.name"></p>
  551. <span class="color-gray">类型:
  552. <span>小程序</span>
  553. </span>
  554. </td>
  555. <td>
  556. <span ng-if="wxapp.role == 'founder'">创始人</span>
  557. <span ng-if="wxapp.role == 'vice_founder'">副创始人</span>
  558. <span ng-if="wxapp.role == 'owner'">主管理员</span>
  559. <span ng-if="wxapp.role == 'manager'">管理员</span>
  560. <span ng-if="wxapp.role == 'operator'">操作员</span>
  561. <span ng-if="wxapp.role == 'clerk'">店员</span>
  562. </td>
  563. <td>
  564. <div class="link-group" ng-if="wxapp.role == 'owner'">
  565. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{wxapp.uniacid}}&acid={{wxapp.acid}}&account_type={ACCOUNT_TYPE_APP_NORMAL}" class="color-default">小程序设置</a>
  566. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{wxapp.uniacid}}&acid={{wxapp.acid}}&account_type={ACCOUNT_TYPE_APP_NORMAL}" class="color-default">操作员设置</a>
  567. </div>
  568. </td>
  569. </tr>
  570. <tr ng-if="!wechats && !wxapps">
  571. <td colspan="4" class="text-center">暂无数据</td>
  572. </tr>
  573. </table>
  574. </div>
  575. {/if}
  576. {if $user_type == PERSONAL_LIMIT_TYPE}
  577. <div class="account">
  578. <table class="table we7-table table-hover vertical-middle">
  579. <tr>
  580. <th class="text-left">账户使用期限</th>
  581. <th>总有效天数:{$total_timelimit}</th>
  582. <th class="text-right">有效期至:{$endtime}</th>
  583. </tr>
  584. <tr>
  585. <td>所属用户组:{$group_info['name']}</td>
  586. <td class="text-left">有 效 天 数:{if $group_info['timelimit'] == 0 || !$group_info} 永久 {else} {$group_info['timelimit']} {/if} </td>
  587. <td class="text-right"></td>
  588. </tr>
  589. <tr>
  590. <td>附加权限</td>
  591. <td class="text-left">有 效 天 数:{$extra_limit_info['timelimit']} </td>
  592. <td class="text-right"></td>
  593. </tr>
  594. </table>
  595. </div>
  596. {/if}
  597. {/if}
  598. </div>
  599. <script>
  600. require(['underscore'], function(){
  601. angular.module('userProfile').value('config', {
  602. user: {php echo !empty($user) ? json_encode($user) : 'null'},
  603. profile: {php echo !empty($profile) ? json_encode($profile) : 'null'},
  604. group_info: {php echo !empty($group_info) ? json_encode($group_info) : 'null'},
  605. groups: {php echo !empty($groups) ? json_encode($groups) : 'null'},
  606. wechats: {php echo !empty($account_detail['wechats']) ? json_encode($account_detail['wechats']) : 'null'},
  607. wxapps: {php echo !empty($account_detail['wxapp']) ? json_encode($account_detail['wxapp']) : 'null'},
  608. account_num: {php echo !empty($account_num) ? json_encode($account_num) : 'null'},
  609. extra_fields: {php echo !empty($extra_fields) ? json_encode($extra_fields) : 'null'},
  610. redirect_urls: {php echo !empty($redirect_urls) ? json_encode($redirect_urls) : 'null'},
  611. user_extra_groups: {php echo !empty($user_extra_groups) ? json_encode($user_extra_groups) : 'null'},
  612. extend: {php echo !empty($extend) ? json_encode($extend) : 'null'},
  613. links: {
  614. userPost: "{php echo url('user/profile/post')}",
  615. },
  616. });
  617. angular.bootstrap($('#js-user-profile'), ['userProfile']);
  618. });
  619. </script>
  620. {if $user_type == PERSONAL_BIND_TYPE}
  621. <!--账号绑定-->
  622. <div class="bind-account" ng-controller="userBindCtrl" ng-cloak>
  623. <table class="table we7-table table-hover table-form" >
  624. <col width="140px " />
  625. <col />
  626. <col width="160px" />
  627. <tr>
  628. <th class="text-left" colspan="3">账号绑定</th>
  629. </tr>
  630. <tr>
  631. <td class="table-label"><span class="wi wi-iphone color-default" style="font-size: 32px;"></span></td>
  632. <td>{{bindmobile.third_nickname}}</td>
  633. <td>
  634. <div class="link-group">
  635. <a href="javascript:;" data-toggle="modal" data-target="#myModal" ng-if="bindmobile.third_type == 3">解绑手机号</a>
  636. <a href="javascript:;" data-toggle="modal" data-target="#myModal" ng-if="bindmobile.third_type != 3">绑定手机号</a>
  637. </div>
  638. </td>
  639. </tr>
  640. <tr ng-if="thirdlogin.qq.authstate == 1">
  641. <td class="table-label"><span class="wi wi-qq color-default" style="font-size: 32px;"></span></td>
  642. <td>{{bindqq.third_nickname}}</td>
  643. <td>
  644. <div class="link-group">
  645. <a href="javascript:;" ng-if="bindqq.third_type == 1" ng-click="unbind(bindqq.third_type)">解除绑定</a>
  646. <a href="{{login_urls.qq}}" ng-if="bindqq.third_type != 1">绑定QQ</a>
  647. </div>
  648. </td>
  649. </tr>
  650. <tr ng-if="thirdlogin.wechat.authstate == 1">
  651. <td class="table-label"><span class="wi wi-account" style="font-size: 32px; color: #00bb00;"></span></td>
  652. <td>{{bindwechat.third_nickname}}</td>
  653. <td>
  654. <div class="link-group">
  655. <a href="javascript:;" ng-if="bindwechat.third_type == 2" ng-click="unbind(bindwechat.third_type)">解除绑定</a>
  656. <a href="{{login_urls.wechat}}" ng-if="bindwechat.third_type != 2">绑定微信</a>
  657. </div>
  658. </td>
  659. </tr>
  660. <div class="modal fade basic" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  661. <div class="modal-dialog">
  662. <div class="modal-content">
  663. <div class="modal-header">
  664. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  665. <h4 class="modal-title" id="myModalLabel">
  666. <span ng-if="bindmobile.third_type != 3">绑定手机号</span>
  667. <span ng-if="bindmobile.third_type == 3">解绑手机号</span>
  668. </h4>
  669. </div>
  670. <div class="modal-body material-content clearfix">
  671. <div class="form-group input-group">
  672. <input type="text" class="form-control" placeholder="输入手机号" ng-model="mobile" ng-disabled="bindmobile">
  673. <span class="input-group-btn">
  674. <button class="btn btn-primary send-code" ng-disabled="isDisable" ng-click="sendMessage(bindmobile.third_nickname)">{{text}}</button>
  675. </span>
  676. </div>
  677. <div class="form-group input-group">
  678. <input type="text" ng-model='imagecode' class="form-control" placeholder="输入图形验证码">
  679. <a href="javascript:;" class="input-group-btn imgverify" style="" ng-click="changeVerify()"><img ng-src="{{image}}" style="width: 127px; height: 32px;"/></a>
  680. </div>
  681. <div class="form-group">
  682. <input type="text" ng-model='smscode' class="form-control" placeholder="输入手机验证码">
  683. </div>
  684. </div>
  685. <div class="modal-footer">
  686. <button type="button" class="btn btn-primary" ng-click="mobileBind(bindmobile.third_nickname, 3)">确定</button>
  687. <button type="button" class="btn smscodebtn-default" data-dismiss="modal">取消</button>
  688. </div>
  689. </div>
  690. </div>
  691. </div>
  692. <!--end 账号绑定-->
  693. </table>
  694. </div>
  695. <script>
  696. angular.module('userProfile').value('config',{
  697. 'bindqq': {php echo !empty($bind_qq) ? json_encode($bind_qq) : 'null'},
  698. 'bindwechat': {php echo !empty($bind_wechat) ? json_encode($bind_wechat) : 'null'},
  699. 'bindmobile': {php echo !empty($bind_mobile) ? json_encode($bind_mobile) : 'null'},
  700. 'login_urls': {php echo !empty($support_login_urls) ? json_encode($support_login_urls) : 'null'},
  701. 'thirdlogin' : {php echo !empty($_W['setting']['thirdlogin']) ? json_encode($_W['setting']['thirdlogin']) : 'null'},
  702. 'bind_sign': "{php echo !empty($bind_sign) ? $bind_sign : 'null'}",
  703. 'image' : "{php echo url('utility/code')}",
  704. 'links':{
  705. 'img_verify_link': "{php echo url('utility/code')}",
  706. 'send_code_link': "{php echo url('utility/verifycode')}",
  707. 'valid_mobile_link' : "{php echo url('user/profile/validate_mobile')}",
  708. 'bind_mobile_link' : "{php echo url('user/profile/bind_mobile')}",
  709. 'unbind_third_link' : "{php echo url('user/profile/unbind')}",
  710. },
  711. });
  712. angular.bootstrap($('.bind-account'), ['userProfile']);
  713. </script>
  714. {/if}
  715. {template 'common/footer'}