post-step.html 23 KB

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