人人商城

post-step.html 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. {template 'common/header'}
  2. {if $_GPC['step'] == 1 || $_GPC['step'] == ''}
  3. <div class="account-list-add" id="js-account-post-step1" ng-controller="XzappPostStepOne" ng-cloak>
  4. <ol class="breadcrumb we7-breadcrumb">
  5. <a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}"><i class="wi wi-back-circle"></i></a>
  6. <li><a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}">熊掌号列表</a></li>
  7. <li>新建熊掌号</li>
  8. </ol>
  9. <div class="panel we7-panel">
  10. {if !$_W['isfounder']}
  11. <div class="alert alert-warning hidden">
  12. 温馨提示:
  13. <i class="fa fa-info-circle"></i>
  14. Hi,<span class="text-strong">{$_W['username']}</span>,您所在的会员组: <span class="text-strong">{$account_info['group_name']}</span>,
  15. 账号有效期限:<span class="text-strong">{php echo date('Y-m-d', $_W['user']['starttime'])} ~~ {if empty($_W['user']['endtime'])}无限制{else}{php echo date('Y-m-d', $_W['user']['endtime'])}{/if}</span>,
  16. 可创建 <span class="text-strong">{$account_info['maxxzapp']} </span>个熊掌号,已创建<span class="text-strong"> {$account_info['xzapp_num']} </span>个,还可创建 <span class="text-strong">{$account_info['xzapp_limit']} </span>个熊掌号。
  17. </div>
  18. {/if}
  19. <div class="panel-body we7-padding">
  20. <div class="col-lg-6">
  21. <div class="title">
  22. <span class="img img-pen"></span>
  23. <a href="javascript:;">手动添加熊掌号</a>
  24. </div>
  25. <div class="con">
  26. 手动绑定需同步熊掌号接口,在熊掌号后台,基本设置可以获取ClientId和ClientSecret,绑定成功后,将获取的服务器配置接口绑定到熊掌号后台(切记:绑定过程中,一定要注意保持接口参数一致)
  27. </div>
  28. <div>
  29. <a href="{php echo url('xzapp/post-step', array('step' => 2))}" class="btn btn-primary">手动添加熊掌号</a>
  30. </div>
  31. </div>
  32. <div class="col-lg-6">
  33. <div class="title">
  34. <span class="img img-tel"></span>
  35. 授权添加熊掌号
  36. </div>
  37. <div class="con">
  38. 熊掌号开发者平台-第三方平台开发 <a href="https://xiongzhang.baidu.com/open/thirdparty" class="color-default">熊掌号开发者平台</a>
  39. </div>
  40. <div>
  41. <a href="{$authurl}" class="btn btn-primary">授权添加熊掌号</a>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <script type="text/javascript">
  48. angular.module('xzApp').value('config', {});
  49. angular.bootstrap($('#js-account-post-step1'),['xzApp']);
  50. </script>
  51. {elseif $_GPC['step'] == 2}
  52. <div class="account-list-add-step">
  53. <ol class="breadcrumb we7-breadcrumb">
  54. <a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}"><i class="wi wi-back-circle"></i> </a>
  55. <li><a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}}">熊掌号列表</a></li>
  56. <li>新建熊掌号</li>
  57. </ol>
  58. <div class="we7-step">
  59. <ul>
  60. <li class="active">1 设置熊掌号信息</li>
  61. {if !empty($_W['isfounder'])}
  62. <li>2 设置权限</li>
  63. <li>3 引导页面</li>
  64. {else}
  65. <li>2 引导页面</li>
  66. {/if}
  67. </ul>
  68. </div>
  69. <form action="" method="post" class="we7-form" enctype="multipart/form-data" id="js-account-post-step2" ng-controller="XzappPostStepTwo" ng-cloak>
  70. <input type="hidden" name="step" value="2">
  71. <!--第二步:基本信息-->
  72. <div class="form-group">
  73. <label for="" class="control-label col-sm-2">熊掌号名称</label>
  74. <div class="form-controls col-sm-8">
  75. <input type="text" name="cname" class="form-control" ng-model="account.name" autocomplete="off" />
  76. <span class="help-block">填写熊掌号的账号名称</span>
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <label for="" class="control-label col-sm-2">描述(签名)</label>
  81. <div class="form-controls col-sm-8">
  82. <textarea style="height: 80px;" class="form-control" name="description" ng-bind="account.description"></textarea>
  83. <span class="help-block"></span>
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label for="" class="control-label col-sm-2">熊掌号ID</label>
  88. <div class="form-controls col-sm-8">
  89. <input type="text" name="original" class="form-control" ng-model="account.original" autocomplete="off" />
  90. <span class="help-block">熊掌号ID不能修改,请谨慎填写</span>
  91. </div>
  92. </div>
  93. <div class="form-group">
  94. <label for="" class="control-label col-sm-2">类型</label>
  95. <div class="form-controls col-sm-8">
  96. <select name="level" class="we7-select">
  97. <option value="1" ng-selected="account.level == 1">个人</option>
  98. <option value="2" ng-selected="account.level == 2">媒体</option>
  99. <option value="3" ng-selected="account.level == 3">企业</option>
  100. <option value="4" ng-selected="account.level == 4">政府</option>
  101. <option value="4" ng-selected="account.level == 5">其他组织</option>
  102. </select>
  103. </div>
  104. </div>
  105. <div class="form-group">
  106. <label for="" class="control-label col-sm-2">ClientId</label>
  107. <div class="form-controls col-sm-8">
  108. <input type="text" name="key" class="form-control" ng-model="account.key" autocomplete="off"/>
  109. <span class="help-block">请填写熊掌号后台的ClientId</span>
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label for="" class="control-label col-sm-2">ClientSecret</label>
  114. <div class="form-controls col-sm-8">
  115. <input type="text" name="secret" class="form-control" ng-model="account.secret" autocomplete="off"/>
  116. <span class="help-block">请填写熊掌号后台的ClientSecret</span>
  117. </div>
  118. </div>
  119. <div class="form-group">
  120. <label class="control-label col-sm-2">Oauth 2.0</label>
  121. <div class="form-controls col-sm-8">
  122. <p class="form-control-static">在熊掌号请求用户网页授权之前,开发者需要先到熊掌号后台的【开发设置】<b>基本设置</b>中配置授权回调域名。{if $_W['isfounder']}{/if}</p>
  123. </div>
  124. </div>
  125. <div class="form-group">
  126. <label for="" class="control-label col-sm-2">头像</label>
  127. <div class="form-controls col-sm-8">
  128. <div class="input-more we7-input-img" ng-class="{'active': account.headimg}">
  129. <img ng-src="{{account.headimg}}" width="150px" ng-if="account.headimg" ng-style="{'height': 'auto'}">
  130. <a href="javascript:;" class="input-addon" ng-click="uploadMultiImage('headimg')" ng-hide="account.headimg"><span>+</span></a>
  131. <input type="text" name="headimg" ng-model="account.headimg" ng-style="{'display' : 'none'}">
  132. <div class="cover-dark">
  133. <a href="javascript:;" class="cut" ng-click="uploadMultiImage('headimg')">更换</a>
  134. <a href="javascript:;" class="del" ng-click="delMultiImage('headimg')"><i class="fa fa-times text-danger"></i></a>
  135. </div>
  136. </div>
  137. <span class="help-block"></span>
  138. </div>
  139. </div>
  140. <div class="form-group">
  141. <input type="submit" name="submit" class="btn btn-primary btn-submit" value="下一步"/>
  142. <input type="hidden" name="token" value="{$_W['token']}">
  143. </div>
  144. </form>
  145. </div>
  146. <script type="text/javascript">
  147. angular.module('xzApp').value('config', {
  148. });
  149. angular.bootstrap($('#js-account-post-step2'),['xzApp']);
  150. </script>
  151. {elseif $_GPC['step'] == 3}
  152. <div class="account-list-add-step">
  153. <ol class="breadcrumb we7-breadcrumb">
  154. <a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}"><i class="wi wi-back-circle"></i> </a>
  155. <li><a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}">熊掌号列表</a></li>
  156. <li>新建熊掌号</li>
  157. </ol>
  158. <div class="we7-step">
  159. <ul>
  160. <li>1 设置熊掌号信息</li>
  161. {if !empty($_W['isfounder'])}
  162. <li class="active">2 设置权限</li>
  163. <li>3 引导页面</li>
  164. {else}
  165. <li class="active">2 引导页面</li>
  166. {/if}
  167. </ul>
  168. </div>
  169. <form action="" method="post" class="we7-form" id="js-account-post-step3" ng-controller="XzappPostStepThree" ng-cloak>
  170. <input type="hidden" name="step" value="3">
  171. <input type="hidden" name="uniacid" value="{$_GPC['uniacid']}">
  172. <input type="hidden" name="acid" value="{$_GPC['acid']}">
  173. <!--第三步:设置权限-->
  174. <div class="form-group">
  175. <label for="" class="control-label col-sm-2">熊掌号过期时间</label>
  176. <div class="form-controls col-sm-8">
  177. <div class="form-group">
  178. <input id="istop-1" type="radio" name="is-set-endtime" ng-model="owner.endtime" value="1">
  179. <label for="istop-1">设置</label>
  180. <input id="istop-2" type="radio" name="is-set-endtime" ng-model="owner.endtime" value="0" ng-checked="1">
  181. <label for="istop-2">不限</label>
  182. </div>
  183. <div class="form-group" ng-show="owner.endtime == 1">
  184. {php echo tpl_form_field_date('endtime', $owner['endtime']);}
  185. <span class="help-block">用户的使用时间过期时,将来无法登录,熊掌号权限也暂停使用,不设置为永久可用</span>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="panel we7-panel">
  190. <div class="panel-heading">主管理员设置</div>
  191. <div class="panel-body we7-padding-top">
  192. <div class="form-group">
  193. <label for="" class="control-label col-sm-2">主管理员</label>
  194. <div class="form-controls col-sm-8">
  195. <div class="input-group">
  196. <input type="hidden" name="uid" value="{$owner['uid']}" id="manager">
  197. <input type="text" class="form-control" value="{$owner['username']}" id="showname">
  198. <span class="input-group-btn">
  199. <button class="btn btn-default" ng-click="selectOwner($event)">选择管理员</button>
  200. </span>
  201. </div>
  202. <span class="help-block">如果是新用户,请先 <a href="{url 'user/create'}" target="_blank" class="color-default">添加用户</a></span>
  203. </div>
  204. </div>
  205. <div class="form-group">
  206. <label for="" class="control-label col-sm-2">修改管理员用户权限组</label>
  207. <div class="form-controls col-sm-8">
  208. <select name="groupid" class="we7-select col-sm-3" id="groupid" ng-model="owner.groupid" ng-change="changeGroup()">
  209. <option value="0">不设置</option>
  210. {loop $groups $row}
  211. {php $package = $row['package'] ? implode(',', iunserializer($row['package'])) : '';}
  212. <option value="{$row['id']}" {if $row['id'] == $owner['groupid']}selected{/if} data-package="[{$package}]">{$row['name']}</option>
  213. {/loop}
  214. </select>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. <table class="table we7-table table-hover">
  220. <tr>
  221. <td colspan="2" class="text-left bg-light-gray">熊掌号可使用应用权限组(各权限组均包含系统模块和微站默认模板)</td>
  222. </tr>
  223. <tr>
  224. <th class="text-left bg-light-gray">应用权限组</th>
  225. <th class="text-right bg-light-gray">操作</th>
  226. </tr>
  227. {if permission_check_account_user('see_account_manage_module_tpl_all_permission')}
  228. <tr>
  229. <td class="text-left">
  230. <input id="check-0" type="checkbox" name="package[]" autocomplete="off" value="-1" {if is_array($owner['group']['package']) && in_array('-1', $owner['group']['package'])}checked disabled{/if}{if is_array($extend['package']) && !empty($extend['package'][-1])}checked {/if} />
  231. <label for="check-0" class="we7-padding-left we7-margin-horizontal-none">所有服务</label>
  232. </td>
  233. <td>
  234. <div class="link-group">
  235. <a href="javascript:void(0);" class="js-unfold" data-toggle="collapse" data-target="#extend0" ng-click="changeText($event)">展开</a>
  236. </div>
  237. </td>
  238. </tr>
  239. <tr class="collapse bg-light-gray" aria-expanded="true" id="extend0">
  240. <td colspan="2">
  241. <div class="col-sm-1 color-gray text-left we7-padding-none">应用权限</div>
  242. <div class="col-sm-11">
  243. <div class="col-sm-3 text-left">
  244. <span class="label label-danger">系统所有模块</span>
  245. </div>
  246. </div>
  247. <div class="col-sm-1 color-gray text-left we7-padding-none">模板权限</div>
  248. <div class="col-sm-11">
  249. <div class="col-sm-3 text-left">
  250. <span class="label label-danger">系统所有模板</span>
  251. </div>
  252. </div>
  253. </td>
  254. </tr>
  255. {/if}
  256. {loop $unigroups $package}
  257. <tr>
  258. <td class="text-left">
  259. <input id="check-{$package['id']}" type="checkbox" name="package[]" autocomplete="off" {if is_array($owner['group']['package']) && in_array($package['id'], $owner['group']['package'])}checked disabled{/if} {if is_array($extend['package']) && !empty($extend['package'][$package['id']])}checked {/if} value="{$package['id']}" />
  260. <label for="check-{$package['id']}" class="we7-padding-left we7-margin-horizontal-none">{$package['name']}</label>
  261. </td>
  262. <td class="text-left">
  263. <div class="link-group">
  264. <a href="javascript:void(0);" class="color-default js-unfold" data-toggle="collapse" data-target="#extend{$package['id']}" ng-click="changeText($event)">展开</a>
  265. </div>
  266. </td>
  267. </tr>
  268. <tr class="collapse bg-light-gray" aria-expanded="true" id="extend{$package['id']}">
  269. <td colspan="2">
  270. <div>
  271. <div class="col-sm-1 color-gray text-left we7-padding-none">应用权限</div>
  272. <div class="col-sm-11">
  273. {if !empty($package['modules'])}
  274. {loop $package['modules'] $module}
  275. <div class="col-sm-3 text-left">
  276. <img src="{$module['logo']}" style="width:50px;height:50px;">
  277. <a href="javascript:void(0);">{$module['title']}</a>
  278. </div>
  279. {/loop}
  280. {else}
  281. <div class="col-sm-3 text-left">---</div>
  282. {/if}
  283. </div>
  284. </div>
  285. <div>
  286. <div class="col-sm-1 color-gray text-left we7-padding-none">模板权限</div>
  287. <div class="col-sm-11">
  288. {if !empty($package['templates']) && $package['templates'] != 'N;'}
  289. {loop $package['templates'] $template}
  290. <div class="col-sm-3 text-left">
  291. <i class="glyphicon glyphicon-th-large"></i>
  292. <a href="javascript:void(0);">{$template['title']}</a>
  293. </div>
  294. {/loop}
  295. {else}
  296. <div class="col-sm-3 text-left">
  297. <a href="">---</a>
  298. </div>
  299. {/if}
  300. </div>
  301. </div>
  302. </td>
  303. </tr>
  304. {/loop}
  305. <tr class="account-package-extra" {if empty($owner['extend'])}style="display:none;"{/if}>
  306. <td class="text-left bg-light-gray" colspan="2">添加其他应用权限</td>
  307. </tr>
  308. <tr class="account-package-extra" {if empty($owner['extend'])}style="display:none;"{/if}>
  309. <td class="text-left">
  310. 应用权限:
  311. <span class="js-extra-modules">
  312. {loop $owner['extend']['modules'] $module}
  313. <span class="label label-info">{$module['title']}</span>
  314. <input type="hidden" value="{$module['name']}" name="extra[modules][]">
  315. {/loop}
  316. </span>
  317. </td>
  318. <td class="text-left">
  319. 模板权限:
  320. <span class="js-extra-templates">
  321. {loop $owner['extend']['templates'] $template}
  322. <span class="label label-info">{$template['title']}</span>
  323. <input type="hidden" value="{$template['id']}" name="extra[templates][]">
  324. {/loop}
  325. </span>
  326. </td>
  327. </tr>
  328. <tr>
  329. <td class="text-center" colspan="2">
  330. <span class="btn btn-primary" data-toggle="modal" data-target="#jurisdiction-add">添加权限</span>
  331. </td>
  332. </tr>
  333. </table>
  334. <div class="form-group">
  335. <input type="submit" name="submit" value="下一步" class="btn btn-primary btn-submit"/>
  336. <input type="hidden" name="token" value="{$_W['token']}">
  337. </div>
  338. <div class="modal" id="jurisdiction-add">
  339. <div class="modal-dialog we7-modal-dialog">
  340. <div class="modal-content">
  341. <div class="modal-header">
  342. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  343. <ul role="tablist" class="nav nav-pills">
  344. <li class="active"><a class="we7-padding-horizontal" data-toggle="tab" role="tab" aria-controls="content-modules" href="#content-modules">模块</a></li>
  345. <li><a class="we7-padding-horizontal" data-toggle="tab" role="tab" aria-controls="content-templates" href="#content-templates">模板</a></li>
  346. </ul>
  347. </div>
  348. <div class="modal-body">
  349. <div class="tab-content">
  350. <div id="content-modules" class="tab-pane active" role="tabpanel">
  351. <table class="table we7-table table-hover vertical-middle">
  352. <col width="280px">
  353. <col width="220px">
  354. <col />
  355. <tr>
  356. <th>模块名称</th>
  357. <th>模块标识</th>
  358. <th></th>
  359. </tr>
  360. {loop $modules $module}
  361. <tr>
  362. <td>{$module['title']}{if $module['issystem']}<span class="label label-success">系统模块</span>{/if}</td>
  363. <td>{$module['name']}</td>
  364. <td><a class="btn btn-default js-btn-select {if is_array($extend['modules']) && in_array($module['name'], $extend['modules'])}btn-primary{/if}" data-title="{$module['title']}" data-name="{$module['name']}" onclick="$(this).toggleClass('btn-primary')">选取</a></td>
  365. </tr>
  366. {/loop}
  367. </table>
  368. </div>
  369. <div id="content-templates" class="tab-pane" role="tabpanel">
  370. <table class="table we7-table table-hover vertical-middle">
  371. <col width="280px">
  372. <col width="220px">
  373. <col />
  374. <tr>
  375. <th>模板名称</th>
  376. <th>模板标识</th>
  377. <th></th>
  378. </tr>
  379. {loop $templates $temp}
  380. <tr>
  381. <td>{$temp['title']}</td>
  382. <td>{$temp['name']}</td>
  383. <td><a class="btn btn-default js-btn-select {if is_array($extend['templates']) && in_array($temp['id'], $extend['templates'])}btn-primary{/if}" data-title="{$temp['title']}" data-name="{$temp['id']}" onclick="$(this).toggleClass('btn-primary')">选取</a></td>
  384. </tr>
  385. {/loop}
  386. </table>
  387. </div>
  388. </div>
  389. </div>
  390. <div class="modal-footer">
  391. <button type="button" class="btn btn-primary" ng-click="addPermission()">确定</button>
  392. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  393. </div>
  394. </div>
  395. </div>
  396. </div>
  397. </form>
  398. </div>
  399. <script type="text/javascript">
  400. angular.module('xzApp').value('config', {
  401. notify: {php echo !empty($notify) ? json_encode($notify) : 'null'},
  402. owner: {php echo !empty($owner) ? json_encode($owner) : 'null'},
  403. links: {
  404. userinfo: "{php echo url('xzapp/post-step', array('step' => 3, 'get_type' => 'userinfo'))}",
  405. }
  406. });
  407. angular.bootstrap($('#js-account-post-step3'),['xzApp']);
  408. </script>
  409. {elseif $_GPC['step'] == 4}
  410. <div class="account-list-add-step">
  411. <ol class="breadcrumb we7-breadcrumb">
  412. <a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}"><i class="wi wi-back-circle"></i> </a>
  413. <li><a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_XZAPP_NORMAL))}">熊掌号列表</a></li>
  414. <li>新建熊掌号</li>
  415. </ol>
  416. <div class="we7-step">
  417. <ul>
  418. <li>1 设置熊掌号信息</li>
  419. {if !empty($_W['isfounder'])}
  420. <li>2 设置权限</li>
  421. <li class="active">3 引导页面</li>
  422. {else}
  423. <li class="active">2 引导页面</li>
  424. {/if}
  425. </ul>
  426. </div>
  427. <div class="we7-form" id="js-account-post-step4" ng-controller="XzappPostStepFour" ng-cloak>
  428. <!--第四步:引导页面-->
  429. <p class="alert alert-info">您绑定的熊掌号:<strong ng-bind="account.name"></strong>,请按照下列引导完成配置。</p>
  430. <div class="panel we7-panel" ng-if="account.isconnect == 0">
  431. <div class="panel-heading">
  432. 第一步
  433. </div>
  434. <div class="panel-body">
  435. <div class="alert">
  436. <i class="wi wi-info-sign"></i>
  437. <span>登录 <a href="https://xiongzhang.baidu.com" class="color-default" target="_blank">熊掌号后台</a>,点击左侧菜单开发-开发设置,进入 [ <em class=" color-red">基本设置</em> ]</span>
  438. </div>
  439. <div class="form-group">
  440. <div class="img"><img src="./resource/images/xz-guide-01.png"></div>
  441. </div>
  442. </div>
  443. </div>
  444. <div class="panel we7-panel" ng-if="account.isconnect == 0">
  445. <div class="panel-heading">
  446. 第二步
  447. </div>
  448. <div class="panel-body">
  449. <div class="alert">
  450. <i class="wi wi-info-sign"></i>
  451. <span>开发设置-基本设置中,找到[<em class="color-red"> 服务器配置</em> ]栏目下URL和Token设置</span>
  452. </div>
  453. <div class="form-group">
  454. <div class="img"><img src="./resource/images/xz-guide-02.png"/></div>
  455. <p># 将以下链接链接填入对应输入框:</p>
  456. <div class="form-group clip">
  457. <label class="col-sm-1 control-label">URL:</label>
  458. <div class="col-sm-11 input-group">
  459. <p class="form-control-static">
  460. <a href="javascript:;">{$_W['siteroot']}api.php?id={$account['acid']}</a>
  461. <a href="javascript:;" id="copy-0" class="color-default" clipboard supported="supported" text="url" on-copied="success('0')">&nbsp;&nbsp;点击复制</a>
  462. </p>
  463. </div>
  464. </div>
  465. <div class="form-group clip">
  466. <label class="col-sm-1 control-label">Token:</label>
  467. <div class="col-sm-11 input-group">
  468. <p class="form-control-static">
  469. <a href="javascript:;" ng-bind="account.token"></a>
  470. <a href="javascript:;" id="copy-1" class="color-default" clipboard supported="supported" text="account.token" on-copied="success('1')">&nbsp;&nbsp;点击复制</a>
  471. </p>
  472. </div>
  473. </div>
  474. <div class="form-group clip">
  475. <label class="col-sm-2 control-label">EncodingAESKey:</label>
  476. <div class="col-sm-10 input-group">
  477. <p class="form-control-static">
  478. <a href="javascript:;" title="点击复制EncodingAESKey" ng-bind="account.encodingaeskey"></a>
  479. <a href="javascript:;" id="copy-2" class="color-default" clipboard supported="supported" text="account.encodingaeskey" on-copied="success('2')">&nbsp;&nbsp;点击复制</a>
  480. </p>
  481. </div>
  482. </div>
  483. <p># 如果以前已填写过URL和Token,请点击[<em class=" color-red"> 修改配置 </em>] ,再填写上述链接</p>
  484. </div>
  485. </div>
  486. </div>
  487. <div class="panel we7-panel">
  488. <div class="panel-heading">
  489. 第三步
  490. </div>
  491. <div class="panel-body">
  492. <div class="alert">
  493. <i class="wi wi-info-sign"></i>
  494. <span class="color-red" ng-if="account.isconnect == 1">熊掌号 <span ng-bind="account.name"></span> 接入成功</span>
  495. <span class="color-red" ng-if="account.isconnect == 0">熊掌号 <span ng-bind="account.name"></span> 正在等待接入……请及时按照以上步骤操作接入熊掌号</span>
  496. </div>
  497. <div class="form-group">
  498. <div ng-if="account.isconnect == 0">
  499. <p># 检查熊掌号配置</p>
  500. <p># 编辑熊掌号 <a ng-href="{{links.post}}acid={{account.acid}}&uniacid={{account.uniacid}}">{$account['name']}</a></p>
  501. <a href="javascript:window.location.reload();" class="btn btn-success">检测是否接入成功</a>&nbsp;
  502. <a ng-href="{{links.switch}}uniacid={{account.uniacid}}" class="btn btn-primary">暂不接入,先去查看熊掌号功能</a>&nbsp;
  503. <a ng-href="{{links.manage}}&account_type={{account.type}}" class="btn btn-info">返回熊掌号列表</a>
  504. </div>
  505. <div ng-if="account.isconnect == 1">
  506. <a ng-href="{{links.post}}acid={{account.acid}}&uniacid={{account.uniacid}}&account_type={{account.type}}" class="btn btn-primary">管理熊掌号</a>
  507. </div>
  508. </div>
  509. </div>
  510. </div>
  511. </div>
  512. </div>
  513. <script type="text/javascript">
  514. angular.module('xzApp').value('config', {
  515. account: {php echo !empty($account) ? json_encode($account) : 'null'},
  516. links: {
  517. siteroot: "{$_W['siteroot']}",
  518. post: "{php echo url('account/post')}",
  519. manage: "{php echo url('account/manage')}",
  520. switch: "{php echo url('account/display/switch')}",
  521. }
  522. });
  523. angular.bootstrap($('#js-account-post-step4'),['xzApp']);
  524. </script>
  525. {/if}
  526. {template 'common/footer'}