manage-base-baiduapp.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. {template 'common/header'}
  2. {template 'account/account-header'}
  3. <div id="js-account-manage-base" ng-controller="AccountManageBase" ng-cloak>
  4. <table class="table we7-table table-hover table-form">
  5. <col width="160px" />
  6. <col />
  7. <col width="100px" />
  8. <tr>
  9. <th class="text-left" colspan="3">{php echo $account->typeName}应用设置</th>
  10. </tr>
  11. <tr>
  12. <td class="table-label">头像</td>
  13. <td><img ng-src="{{other.headimgsrc}}" class="account-img" /></td>
  14. <td class="text-right">
  15. <div class="link-group">
  16. <a href="javascript:;" ng-click="changeImage('headimgsrc','{$uniacid}')">修改</a>
  17. </div>
  18. </td>
  19. </tr>
  20. <tr>
  21. <td class="table-label">二维码</td>
  22. <td><img src="{{other.qrcodeimgsrc}}" ng-if="other" width="75px" height="75px"></td>
  23. <td class="text-right"><div class="link-group"><a href="javascript:;" ng-click="changeImage('qrcodeimgsrc','{$uniacid}')">修改</a></div></td>
  24. </tr>
  25. <tr>
  26. <td class="table-label">支付宝小程序名称</td>
  27. <td ng-bind="account.name"></td>
  28. <td class="text-right"><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#name" ng-click="editInfo('name', account.name)">修改</a></div></td>
  29. </tr>
  30. <tr>
  31. <td class="table-label">到期时间</td>
  32. <td><span ng-bind="account.end"></span><span class="color-gray">(随该公众号主管理员的到期时间,未设置主管理员时默认为创始人)</span></td>
  33. <td class="text-right">
  34. <div class="link-group" ng-if="founder || owner">
  35. <a href="javascript:;" data-toggle="modal" data-target="#endtime" ng-click="editInfo('endtype', account.endtype)">修改</a>
  36. </div>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="table-label">月访问总次数</td>
  41. <td ng-if="account.highest_visit"><span ng-bind="account.highest_visit"></span><span class="color-gray"> 次 / 月</span></td>
  42. <td ng-if="!account.highest_visit">不限次数</span></td>
  43. <td class="text-right">
  44. {if user_is_founder($_W['uid'])}
  45. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#visit" ng-click="editInfo('highest_visit', account.highest_visit)">修改</a></div>
  46. {/if}
  47. </td>
  48. </tr>
  49. <tr>
  50. <td class="table-label">附件空间</td>
  51. <td>
  52. <span ng-if="account.attachment_limit != -1">{{account.attachment_limit}}M</span>
  53. <span ng-if="account.attachment_limit == -1">不限</span>
  54. </td>
  55. <td class="text-right">
  56. <div class="link-group" ng-if="founder || owner">
  57. <a href="javascript:;" data-toggle="modal" data-target="#attachment_limit" ng-click="editInfo('attachment_limit', account.attachment_limit)">修改</a>
  58. </div>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="table-label">已用附件空间</td>
  63. <td><span ng-bind="account.attachment_size"></span><span>M</span></td>
  64. <td></td>
  65. </tr>
  66. </table>
  67. <div class="modal fade" id="attachment_limit" tabindex="-1" role="dialog" aria-hidden="true">
  68. <div class="we7-modal-dialog modal-dialog we7-form">
  69. <div class="modal-content">
  70. <div class="modal-header">
  71. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  72. <div class="modal-title">修改公众号附件空间大小</div>
  73. </div>
  74. <div class="modal-body">
  75. <div class="form-group">
  76. <input type="number" ng-model="middleAccount.attachment_limit" class="form-control"/>
  77. <span class="help-block">请输入单位为 M 的内存值,设置为 -1 时不限空间。</span>
  78. </div>
  79. </div>
  80. <div class="modal-footer">
  81. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('attachment_limit')">确定</button>
  82. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="modal fade" id="name" tabindex="-1" role="dialog" aria-hidden="true">
  88. <div class="we7-modal-dialog modal-dialog">
  89. <div class="modal-content">
  90. <div class="modal-header">
  91. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  92. <div class="modal-title">修改支付宝小程序名称</div>
  93. </div>
  94. <div class="modal-body">
  95. <div class="form-group">
  96. <input type="text" ng-model="middleAccount.name" class="form-control" placeholder="名称" />
  97. <span class="help-block"></span>
  98. </div>
  99. </div>
  100. <div class="modal-footer">
  101. <button type="button" class="btn btn-primary" ng-click="httpChange('name')">确定</button>
  102. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="modal fade" id="visit" tabindex="-1" role="dialog" aria-hidden="true">
  108. <div class="we7-modal-dialog modal-dialog we7-form">
  109. <div class="modal-content">
  110. <div class="modal-header">
  111. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  112. <div class="modal-title">修改访问总次数(单位:月)</div>
  113. </div>
  114. <div class="modal-body">
  115. <div class="form-group">
  116. <input type="number" step="1" ng-model="middleAccount.highest_visit" class="form-control" placeholder="每月访问总次数" />
  117. <span class="help-block">设置为0,表示无任何限制</span>
  118. </div>
  119. </div>
  120. <div class="modal-footer">
  121. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('highest_visit')">确定</button>
  122. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <table class="table we7-table table-hover table-form wechat-menu">
  128. <col width="140px " />
  129. <col />
  130. <col width="100px" />
  131. <tr><th class="text-left" colspan="3">开发者ID</th></tr>
  132. <tr>
  133. <td class="table-label">AppId</td>
  134. <td ng-bind="account.appid"></td>
  135. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#appid" ng-click="editInfo('appid', account.appid)">修改</a></div></td>
  136. </tr>
  137. </table>
  138. <div class="modal fade" id="appid" tabindex="-1" role="dialog" aria-hidden="true">
  139. <div class="we7-modal-dialog modal-dialog">
  140. <div class="modal-content">
  141. <div class="modal-header">
  142. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  143. <div class="modal-title">修改AppId</div>
  144. </div>
  145. <div class="modal-body">
  146. <div class="form-group">
  147. <input type="text" ng-model="middleAccount.appid" class="form-control" placeholder="AppId" />
  148. <span class="help-block"></span>
  149. </div>
  150. </div>
  151. <div class="modal-footer">
  152. <button type="button" class="btn btn-primary" ng-click="httpChange('appid')">确定</button>
  153. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="modal fade" id="endtime" role="dialog">
  159. <div class="we7-modal-dialog modal-dialog we7-form">
  160. <div class="modal-content">
  161. <div class="modal-header">
  162. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  163. <div class="modal-title">设置到期时间</div>
  164. </div>
  165. <div class="modal-body">
  166. <div class="form-group" ng-if="middleAccount.endtype == 1 || founder">
  167. <input id="endtype-1" type="radio" name="endtype" value="2" ng-model="middleAccount.endtype" ng-checked="middleAccount.endtype == 2"><label for="endtype-1">设置期限</label>
  168. <input id="endtype-2" type="radio" name="endtype" value="1" ng-model="middleAccount.endtype" ng-checked="middleAccount.endtype == 1"><label for="endtype-2" class="hidden">永久</label>
  169. </div>
  170. <div class="form-group" ng-show="middleAccount.endtype == 2">
  171. {php echo tpl_form_field_date('endtime', $account['endtime']);}
  172. </div>
  173. </div>
  174. <div class="modal-footer">
  175. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('endtime')">确定</button>
  176. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <table class="table we7-table table-hover table-form ">
  182. <col width="140px " />
  183. <col />
  184. <col width="100px" />
  185. <tr><th class="text-left" colspan="3">自定义菜单通讯设置</th></tr>
  186. <tr>
  187. <td class="table-label">AppId</td>
  188. <td ng-bind="account.key"></td>
  189. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#key" ng-click="editInfo('key', account.key)">修改</a></div></td>
  190. </tr>
  191. <tr>
  192. <td class="table-label">AppSecret</td>
  193. <td ng-bind="account.secret"></td>
  194. <td><div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#secret" ng-click="editInfo('secret', account.secret)">修改</a></div></td>
  195. </tr>
  196. </table>
  197. <div class="modal fade" id="key" tabindex="-1" role="dialog" aria-hidden="true">
  198. <div class="we7-modal-dialog modal-dialog we7-form">
  199. <div class="modal-content">
  200. <div class="modal-header">
  201. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  202. <div class="modal-title">修改公众号AppId</div>
  203. </div>
  204. <div class="modal-body">
  205. <div class="form-group">
  206. <input type="text" ng-model="middleAccount.key" class="form-control" placeholder="公众号AppId" />
  207. <span class="help-block"></span>
  208. </div>
  209. </div>
  210. <div class="modal-footer">
  211. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('key')">确定</button>
  212. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="modal fade" id="secret" tabindex="-1" role="dialog" aria-hidden="true">
  218. <div class="we7-modal-dialog modal-dialog we7-form">
  219. <div class="modal-content">
  220. <div class="modal-header">
  221. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  222. <div class="modal-title">修改公众号AppSecret</div>
  223. </div>
  224. <div class="modal-body">
  225. <div class="form-group">
  226. <input type="text" ng-model="middleAccount.secret" class="form-control" placeholder="公众号AppSecret" />
  227. <span class="help-block"></span>
  228. </div>
  229. </div>
  230. <div class="modal-footer">
  231. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('secret')">确定</button>
  232. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <script>
  239. angular.module('accountApp').value('config', {
  240. founder : {if $_W['isfounder']}true{else}false{/if},
  241. owner : {if $state == 'owner'}true{else}false{/if},
  242. account: {php echo !empty($account) ? json_encode($account) : 'null'},
  243. uniaccount: {php echo !empty($uniaccount) ? json_encode($uniaccount) : 'null'},
  244. headimgsrc: "{php echo $headimgsrc}",
  245. qrcodeimgsrc: "{php echo $qrcodeimgsrc}",
  246. links: {
  247. basePost: "{php echo url('account/post/base', array('acid' => $acid, 'uniacid' => $uniacid, 'account_type' => ACCOUNT_TYPE))}",
  248. siteroot: "{php echo str_replace('http://', 'https://', $_W['siteroot'])}",
  249. },
  250. });
  251. angular.bootstrap($('#js-account-manage-base'), ['accountApp']);
  252. </script>
  253. {template 'common/footer'}