人人商城

profile.tpl.php 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  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. <ul class="we7-page-tab">
  3. <li <?php if($do == 'base') { ?>class="active"<?php } ?>><a href="<?php echo url('user/profile')?>">我的账户</a></li>
  4. <li <?php if($do == 'bind') { ?>class="active"<?php } ?>><a href="<?php echo url('user/profile/bind')?>">账号绑定</a></li>
  5. </ul>
  6. <div id="js-user-profile" ng-controller="UserProfileDisplay" ng-cloak>
  7. <?php if($_W['role'] != 'founder') { ?>
  8. <div class="user-head-info we7-padding-bottom" >
  9. <span class="icon pull-left"><i class="wi wi-user"></i></span>
  10. <img ng-src="{{profile.avatar}}" class="img-circle user-avatar pull-left">
  11. <h3 class="pull-left" ng-bind="user.username"></h3>
  12. </div>
  13. <div class="btn-group we7-btn-group we7-padding-bottom">
  14. <a href="<?php echo url('user/profile/base', array('uid' => $user['uid'], 'user_type' => PERSONAL_BASE_TYPE))?>" class="btn btn-default <?php if($user_type == '' || $user_type == PERSONAL_BASE_TYPE) { ?>active<?php } ?>">基础信息</a>
  15. <?php if($_W['role'] != ACCOUNT_MANAGE_NAME_CLERK) { ?>
  16. <a href="<?php echo url('user/profile/base', array('uid' => $user['uid'], 'user_type' => PERSONAL_AUTH_TYPE))?>" class="btn btn-default <?php if($user_type == PERSONAL_AUTH_TYPE) { ?>active<?php } ?>">应用模板权限</a>
  17. <a href="<?php echo url('user/profile/base', array('uid' => $user['uid'], 'user_type' => PERSONAL_LIST_TYPE))?>" class="btn btn-default <?php if($user_type == PERSONAL_LIST_TYPE) { ?>active<?php } ?>">使用账号列表</a>
  18. <?php } ?>
  19. </div>
  20. <?php } ?>
  21. <?php if($user_type=='' || $user_type == PERSONAL_BASE_TYPE) { ?>
  22. <div class="base">
  23. <table class="table we7-table table-hover table-form">
  24. <col width="140px " />
  25. <col />
  26. <col width="120px" />
  27. <tr>
  28. <th class="text-left" colspan="3">账户设置</th>
  29. </tr>
  30. <tr>
  31. <td class="table-label">头像</td>
  32. <td><img ng-src="{{profile.avatar}}" class="img-circle" width="65px" height="65px" /></td>
  33. <td><div class="link-group"><a href="javascript:;" ng-click="changeAvatar()">修改</a></div></td>
  34. </tr>
  35. <tr>
  36. <td class="table-label">用户</td>
  37. <td ng-bind="user.username"></td>
  38. <td><?php 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><?php } ?></td>
  39. </tr>
  40. <tr>
  41. <td class="table-label">密码</td>
  42. <td>******</td>
  43. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#pass">修改</a></div></td>
  44. </tr>
  45. <?php if(!empty($user['founder_groupid'])) { ?>
  46. <tr>
  47. <td class="table-label">注册链接</td>
  48. <td><?php echo $user['url'];?></td>
  49. <td><div class="link-group"><a href="javascript:;" data-url="<?php echo $user['url'];?>" class="js-clip">复制链接</a></div></td>
  50. </tr>
  51. <?php } ?>
  52. </table>
  53. <div class="modal fade" id="name" role="dialog">
  54. <div class="we7-modal-dialog modal-dialog">
  55. <div class="modal-content">
  56. <div class="modal-header">
  57. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  58. <div class="modal-title">修改用户名</div>
  59. </div>
  60. <div class="modal-body">
  61. <div class="form-group">
  62. <input type="text" ng-model="userOriginal.username" class="form-control" placeholder="用户名" />
  63. <span class="help-block"></span>
  64. </div>
  65. </div>
  66. <div class="modal-footer">
  67. <button type="button" class="btn btn-primary" ng-click="httpChange('username')">确定</button>
  68. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="modal fade" id="pass" role="dialog">
  74. <div class="we7-modal-dialog modal-dialog">
  75. <div class="modal-content">
  76. <div class="modal-header">
  77. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  78. <div class="modal-title">修改密码</div>
  79. </div>
  80. <div class="modal-body text-center">
  81. <div class="we7-form" style="width: 450px; margin: 0 auto;">
  82. <?php if(empty($user['register_type'])) { ?>
  83. <div class="form-group">
  84. <label for="" class="control-label col-sm-2">原密码</label>
  85. <div class="form-controls col-sm-10">
  86. <input type="password" value="" class="form-control old-password">
  87. </div>
  88. </div>
  89. <?php } ?>
  90. <div class="form-group">
  91. <label for="" class="control-label col-sm-2">新密码</label>
  92. <div class="form-controls col-sm-10">
  93. <input type="password" value="" class="form-control new-password">
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label for="" class="control-label col-sm-2">确认新密码</label>
  98. <div class="form-controls col-sm-10">
  99. <input type="password" value="" class="form-control renew-password">
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="modal-footer">
  105. <button type="button" class="btn btn-primary" ng-click="httpChange('password')">确定</button>
  106. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <table class="table we7-table table-hover table-form">
  112. <col width="140px " />
  113. <col />
  114. <col width="100px" />
  115. <tr>
  116. <th class="text-left" colspan="3">基础信息</th>
  117. </tr>
  118. <tr>
  119. <td class="table-label">真实姓名</td>
  120. <td ng-bind="profile.realname"></td>
  121. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#realname" ng-click="editInfo('realname', profile.realname)">修改</a></div></td>
  122. </tr>
  123. <tr>
  124. <td class="table-label">出生年月日</td>
  125. <td ng-bind="profile.births"></td>
  126. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#birth">修改</a></div></td>
  127. </tr>
  128. <tr>
  129. <td class="table-label">邮寄地址</td>
  130. <td ng-bind="profile.address"></td>
  131. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#address" ng-click="editInfo('address', profile.address)">修改</a></div></td>
  132. </tr>
  133. <tr>
  134. <td class="table-label">居住地址</td>
  135. <td ng-bind="profile.resides"></td>
  136. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#reside">修改</a></div></td>
  137. </tr>
  138. <tr ng-repeat="field in extra_fields">
  139. <td class="table-label" ng-bind="field.title"></td>
  140. <td ng-bind="profile[field.field]"></td>
  141. </tr>
  142. <tr>
  143. <td class="table-label">上次登录时间</td>
  144. <td ng-bind="user.last_visit"></td>
  145. <td></td>
  146. </tr>
  147. <tr>
  148. <td class="table-label">上次登录IP</td>
  149. <td ng-bind="user.lastip"></td>
  150. <td></td>
  151. </tr>
  152. <tr>
  153. <td class="table-label">注册时间</td>
  154. <td ng-bind="user.joindate"></td>
  155. <td></td>
  156. </tr>
  157. <?php if($_W['isfounder'] && !user_is_vice_founder()) { ?>
  158. <tr>
  159. <td class="table-label">备注</td>
  160. <td ng-bind="user.remark"></td>
  161. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#remark" ng-click="editInfo('remark', user.remark)">修改</a></div></td>
  162. </tr>
  163. <?php } ?>
  164. </table>
  165. <?php if(!permission_check_account_user('see_user_add_welcome_account')) { ?>
  166. <?php if($_W['role'] != ACCOUNT_MANAGE_NAME_CLERK) { ?>
  167. <table class="table we7-table table-hover table-form">
  168. <col width="160px " />
  169. <col />
  170. <col width="100px" />
  171. <tr>
  172. <th class="text-left" colspan="3">用户首页设置</th>
  173. </tr>
  174. <tr>
  175. <td class="table-label">登陆后跳转链接</td>
  176. <td class="table-label">
  177. <select class="form-control tpl-category-parent we7-select" id="category_parent" ng-model="user.welcome_link" ng-change="httpChange('welcome_link')">
  178. <option ng-selected ="user.welcome_link == <?php echo WELCOME_DISPLAY_TYPE;?> || user.welcome_link == ''" ng-value="<?php echo WELCOME_DISPLAY_TYPE;?>">用户欢迎页</option>
  179. <option ng-selected ="user.welcome_link == <?php echo PLATFORM_DISPLAY_TYPE;?>" ng-value="<?php echo PLATFORM_DISPLAY_TYPE;?>">平台</option>
  180. <option ng-selected ="user.welcome_link == <?php echo MODULE_DISPLAY_TYPE;?>" ng-value="<?php echo MODULE_DISPLAY_TYPE;?>">应用</option>
  181. </select>
  182. </td>
  183. <td></td>
  184. </tr>
  185. </table>
  186. <?php } ?>
  187. <?php } ?>
  188. <?php if(!permission_check_account_user('see_user_profile_account_num')) { ?>
  189. <table class="table we7-table table-hover table-form">
  190. <col />
  191. <col />
  192. <col />
  193. <tr>
  194. <th class="text-left" colspan="3">公众号使用权限</th>
  195. </tr>
  196. <tr>
  197. <td class="table-label">可创建总数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.maxaccount || 0"></strong></td>
  198. <td class="table-label">已创建个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.uniacid_num || 0"></strong></td>
  199. <td class="table-label">可创建剩余个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.uniacid_limit || 0"></strong></td>
  200. </tr>
  201. </table>
  202. <table class="table we7-table table-hover table-form">
  203. <col />
  204. <col />
  205. <col />
  206. <tr>
  207. <th class="text-left" colspan="3">小程序使用权限</th>
  208. </tr>
  209. <tr>
  210. <td class="table-label">可创建总数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.maxwxapp || 0"></strong></td>
  211. <td class="table-label">已创建个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.wxapp_num || 0"></strong></td>
  212. <td class="table-label">可创建剩余个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.wxapp_limit || 0"></strong></td>
  213. </tr>
  214. </table>
  215. <table class="table we7-table table-hover table-form">
  216. <col />
  217. <col />
  218. <col />
  219. <tr>
  220. <th class="text-left" colspan="3">PC使用权限</th>
  221. </tr>
  222. <tr>
  223. <td class="table-label">可创建总数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.maxwebapp || 0"></strong></td>
  224. <td class="table-label">已创建个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.webapp_num || 0"></strong></td>
  225. <td class="table-label">可创建剩余个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.webapp_limit || 0"></strong></td>
  226. </tr>
  227. </table>
  228. <table class="table we7-table table-hover table-form">
  229. <col />
  230. <col />
  231. <col />
  232. <tr>
  233. <th class="text-left" colspan="3">APP使用权限</th>
  234. </tr>
  235. <tr>
  236. <td class="table-label">可创建总数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.maxphoneapp || 0"></strong></td>
  237. <td class="table-label">已创建个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.phoneapp_num || 0"></strong></td>
  238. <td class="table-label">可创建剩余个数&nbsp;&nbsp;&nbsp;&nbsp;<strong ng-bind="account_num.phoneapp_limit || 0"></strong></td>
  239. </tr>
  240. </table>
  241. <?php } ?>
  242. <div class="modal fade" id="realname" role="dialog">
  243. <div class="we7-modal-dialog modal-dialog">
  244. <div class="modal-content">
  245. <div class="modal-header">
  246. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  247. <div class="modal-title">修改真实姓名</div>
  248. </div>
  249. <div class="modal-body">
  250. <div class="form-group">
  251. <input type="text" class="form-control" ng-model="userOriginal.realname">
  252. <span class="help-block">请填写真实姓名</span>
  253. </div>
  254. </div>
  255. <div class="modal-footer">
  256. <button type="button" class="btn btn-primary" ng-click="httpChange('realname')">确定</button>
  257. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. <div class="modal fade" id="birth" role="dialog">
  263. <div class="we7-modal-dialog modal-dialog">
  264. <div class="modal-content">
  265. <div class="modal-header">
  266. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  267. <div class="modal-title">修改出生年月日</div>
  268. </div>
  269. <div class="modal-body">
  270. <div class="form-group">
  271. <?php echo tpl_fans_form('birth',$profile['birth']);?>
  272. </div>
  273. </div>
  274. <div class="modal-footer">
  275. <button type="button" class="btn btn-primary" ng-click="httpChange('birth')">确定</button>
  276. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. <div class="modal fade" id="address" role="dialog">
  282. <div class="we7-modal-dialog modal-dialog">
  283. <div class="modal-content">
  284. <div class="modal-header">
  285. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  286. <div class="modal-title">修改邮寄地址</div>
  287. </div>
  288. <div class="modal-body">
  289. <div class="form-group">
  290. <input class="form-control" type="text" ng-model="userOriginal.address">
  291. <span class="help-block">请填写详细地址</span>
  292. </div>
  293. </div>
  294. <div class="modal-footer">
  295. <button type="button" class="btn btn-primary" ng-click="httpChange('address')">确定</button>
  296. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="modal fade" id="reside" role="dialog">
  302. <div class="we7-modal-dialog modal-dialog">
  303. <div class="modal-content">
  304. <div class="modal-header">
  305. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  306. <div class="modal-title">修改居住地址</div>
  307. </div>
  308. <div class="modal-body">
  309. <div class="form-group">
  310. <?php echo tpl_fans_form('reside',$profile['reside']);?>
  311. </div>
  312. </div>
  313. <div class="modal-footer">
  314. <button type="button" class="btn btn-primary" ng-click="httpChange('reside')">确定</button>
  315. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. <div class="modal fade" id="qq" role="dialog">
  321. <div class="we7-modal-dialog modal-dialog">
  322. <div class="modal-content">
  323. <div class="modal-header">
  324. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  325. <div class="modal-title">修改QQ</div>
  326. </div>
  327. <div class="modal-body">
  328. <div class="form-group">
  329. <input type="text" ng-model="userOriginal.qq" class="form-control" placeholder="qq" />
  330. <span class="help-block"></span>
  331. </div>
  332. </div>
  333. <div class="modal-footer">
  334. <button type="button" class="btn btn-primary" ng-click="httpChange('qq')">确定</button>
  335. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  336. </div>
  337. </div>
  338. </div>
  339. </div>
  340. <div class="modal fade" id="remark" role="dialog">
  341. <div class="we7-modal-dialog modal-dialog">
  342. <div class="modal-content">
  343. <div class="modal-header">
  344. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  345. <div class="modal-title">修改备注</div>
  346. </div>
  347. <div class="modal-body">
  348. <div class="form-group">
  349. <input type="text" ng-model="userOriginal.remark" class="form-control" placeholder="备注" />
  350. <span class="help-block"></span>
  351. </div>
  352. </div>
  353. <div class="modal-footer">
  354. <button type="button" class="btn btn-primary" ng-click="httpChange('remark')" ng-click="editInfo('remark', user.remark)">确定</button>
  355. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. <?php } ?>
  362. <div class="modal fade" id="mobile" role="dialog">
  363. <div class="we7-modal-dialog modal-dialog">
  364. <div class="modal-content">
  365. <div class="modal-header">
  366. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  367. <div class="modal-title">修改手机号</div>
  368. </div>
  369. <div class="modal-body">
  370. <div class="form-group">
  371. <input type="text" ng-model="userOriginal.mobile" class="form-control" placeholder="mobile" />
  372. <span class="help-block"></span>
  373. </div>
  374. </div>
  375. <div class="modal-footer">
  376. <button type="button" class="btn btn-primary" ng-click="httpChange('mobile')">确定</button>
  377. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. <?php if($_W['role'] != 'founder') { ?>
  383. <?php if($user_type == PERSONAL_AUTH_TYPE) { ?>
  384. <div class="modules_tpl">
  385. <div class="panel we7-panel user-permission">
  386. <div class="panel-heading">
  387. <span>所属用户组:<span ng-bind="group_info.name"></span></span>
  388. </div>
  389. <div class="panel-body" ng-repeat="pack in group_info.package_detail">
  390. <div class="permission-heading">
  391. <span ng-bind="pack.name"></span>
  392. <div class="pull-right permission-edit" ng-style="{'width': 'auto'}">
  393. <a href="javascript:;" class="color-default js-unfold" data-toggle="collapse" data-target="#demo-{{pack.id}}" ng-click="changeText($event)">展开</a>
  394. </div>
  395. </div>
  396. <table id="demo-{{pack.id}}" class="table we7-table table-hover collapse" ng-if="pack.id != '-1'">
  397. <col width="90px" />
  398. <col width="835px" />
  399. <tr class="permission-apply">
  400. <td class="vertical-middle">应用</td>
  401. <td><ul><li><span class="label label-success">系统模块</span></li><li ng-repeat="module in pack.modules"><span class="label label-info" ng-bind="module.title"></span></li></ul></td>
  402. </tr>
  403. <tr class="permission-template">
  404. <td class="vertical-middle">模板</td>
  405. <td><ul><li><span class="label label-success">系统默认模板</span></li><li ng-repeat="tpl in pack.templates"><span class="label label-info" ng-bind="tpl.title"></span></li></ul></td>
  406. </tr>
  407. </table>
  408. <table id="demo-{{pack.id}}" class="table we7-table table-hover collapse" ng-if="pack.id == -1">
  409. <col width="90px" />
  410. <col width="835px" />
  411. <tr class="permission-apply">
  412. <td class="vertical-middle">应用</td>
  413. <td><ul><li><span class="label label-danger">系统所有模块</span></li></ul></td>
  414. </tr>
  415. <tr class="permission-template">
  416. <td class="vertical-middle">模板</td>
  417. <td><ul><li><span class="label label-danger">系统所有模板</span></li></ul></td>
  418. </tr>
  419. </table>
  420. </div>
  421. </div>
  422. </div>
  423. <?php } ?>
  424. <?php if($user_type == PERSONAL_LIST_TYPE) { ?>
  425. <div class="account">
  426. <table class="table we7-table table-hover vertical-middle">
  427. <col width="87px"/>
  428. <col/>
  429. <col width="100px"/>
  430. <col width="240px"/>
  431. <tr>
  432. <th colspan="2" class="text-left">可使用的公众号</th>
  433. <th>角色</th>
  434. <th class="text-right">操作</th>
  435. </tr>
  436. <tr ng-repeat="wechat in wechats" ng-if="wechats">
  437. <td class="text-left"><img ng-src="{{wechat.thumb}}" class="img-responsive"/></td>
  438. <td class="text-left">
  439. <p ng-bind="wechat.name"></p>
  440. <span class="color-gray">类型:
  441. <span ng-if="wechat.level == 1">普通订阅号</span>
  442. <span ng-if="wechat.level == 2">普通服务号</span>
  443. <span ng-if="wechat.level == 3">认证订阅号</span>
  444. <span ng-if="wechat.level == 4">认证服务号/认证媒体/政府订阅号</span>
  445. </span>
  446. </td>
  447. <td>
  448. <span ng-if="wechat.role == 'founder'">创始人</span>
  449. <span ng-if="wechat.role == 'owner'">主管理员</span>
  450. <span ng-if="wechat.role == 'manager'">管理员</span>
  451. <span ng-if="wechat.role == 'operator'">操作员</span>
  452. <span ng-if="wechat.role == 'clerk'">店员</span>
  453. </td>
  454. <td>
  455. <div class="link-group" ng-if="wechat.role == 'owner'">
  456. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{wechat.uniacid}}&acid={{wechat.acid}}&account_type=<?php echo ACCOUNT_TYPE_OFFCIAL_NORMAL;?>" class="color-default">公众号设置</a>
  457. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{wechat.uniacid}}&acid={{wechat.acid}}&account_type=<?php echo ACCOUNT_TYPE_OFFCIAL_NORMAL;?>" class="color-default">操作员设置</a>
  458. </div>
  459. </td>
  460. </tr>
  461. <tr ng-if="!wechats">
  462. <td colspan="4" class="text-center">暂无数据</td>
  463. </tr>
  464. </table>
  465. <table class="table we7-table table-hover">
  466. <col width="87px"/>
  467. <col/>
  468. <col width="100px"/>
  469. <col width="240px"/>
  470. <tr>
  471. <th colspan="2" class="text-left">可使用的小程序</th>
  472. <th>角色</th>
  473. <th class="text-right">操作</th>
  474. </tr>
  475. <tr ng-repeat="wxapp in wxapps" ng-if="wxapp">
  476. <td class="text-left"><img ng-src="{{wxapp.thumb}}" class="img-responsive"/></td>
  477. <td class="text-left">
  478. <p ng-bind="wxapp.name"></p>
  479. <span class="color-gray">类型:
  480. <span>小程序</span>
  481. </span>
  482. </td>
  483. <td>
  484. <span ng-if="wxapp.role == 'founder'">创始人</span>
  485. <span ng-if="wxapp.role == 'vice_founder'">副创始人</span>
  486. <span ng-if="wxapp.role == 'owner'">主管理员</span>
  487. <span ng-if="wxapp.role == 'manager'">管理员</span>
  488. <span ng-if="wxapp.role == 'operator'">操作员</span>
  489. <span ng-if="wxapp.role == 'clerk'">店员</span>
  490. </td>
  491. <td>
  492. <div class="link-group" ng-if="wechat.role == 'owner'">
  493. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{wxapp.uniacid}}&acid={{wxapp.acid}}&account_type=<?php echo ACCOUNT_TYPE_APP_NORMAL;?>" class="color-default">小程序设置</a>
  494. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{wxapp.uniacid}}&acid={{wxapp.acid}}&account_type=<?php echo ACCOUNT_TYPE_APP_NORMAL;?>" class="color-default">操作员设置</a>
  495. </div>
  496. </td>
  497. </tr>
  498. <tr ng-if="!wxapps">
  499. <td colspan="4" class="text-center">暂无数据</td>
  500. </tr>
  501. </table>
  502. </div>
  503. <?php } ?>
  504. <?php } ?>
  505. </div>
  506. <script>
  507. require(['underscore'], function(){
  508. angular.module('userProfile').value('config', {
  509. user: <?php echo !empty($user) ? json_encode($user) : 'null'?>,
  510. profile: <?php echo !empty($profile) ? json_encode($profile) : 'null'?>,
  511. group_info: <?php echo !empty($group_info) ? json_encode($group_info) : 'null'?>,
  512. groups: <?php echo !empty($groups) ? json_encode($groups) : 'null'?>,
  513. wechats: <?php echo !empty($account_detail['wechat']) ? json_encode($account_detail['wechat']) : 'null'?>,
  514. wxapps: <?php echo !empty($account_detail['wxapp']) ? json_encode($account_detail['wxapp']) : 'null'?>,
  515. account_num: <?php echo !empty($account_num) ? json_encode($account_num) : 'null'?>,
  516. extra_fields: <?php echo !empty($extra_fields) ? json_encode($extra_fields) : 'null'?>,
  517. links: {
  518. userPost: "<?php echo url('user/profile/post')?>",
  519. },
  520. });
  521. angular.bootstrap($('#js-user-profile'), ['userProfile']);
  522. });
  523. </script>
  524. <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>