create.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. {template 'common/header'}
  2. <div id="js-account-create" ng-controller="commonCreateAccountCtrl" ng-cloak>
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{php echo url('account/manage')}"><i class="wi wi-back-circle"></i> </a>
  5. <li><a href="{php echo url('account/manage')}">平台列表</a></li>
  6. <li>新建{$account_all_type_sign[$sign]['title']}</li>
  7. </ol>
  8. <ul class="we7-step">
  9. <li ng-class="step == 'base_info' ? 'active' : ''"> <span class="content">1. 设置{$account_all_type_sign[$sign]['title']}信息</span> </li>
  10. {if !empty($_W['isfounder'])}
  11. <li ng-class="step == 'account_modules' ? 'active' : ''"> <span class="content">2. 设置权限</span></li>
  12. {/if}
  13. {if in_array($sign, array(ACCOUNT_TYPE_SIGN, XZAPP_TYPE_SIGN))}
  14. <li ng-class="step == 'account_help' ? 'active' : ''"><span class="content">{if empty($_W['isfounder'])}2{else}3{/if} 引导页面</span></li>
  15. {elseif in_array($sign, array(WXAPP_TYPE_SIGN, PHONEAPP_TYPE_SIGN, ALIAPP_TYPE_SIGN, BAIDUAPP_TYPE_SIGN, TOUTIAOAPP_TYPE_SIGN))}
  16. <li ng-class="step == 'account_version' ? 'active' : ''"><span class="content">{if empty($_W['isfounder'])}2{else}3{/if} 新建版本</span></li>
  17. {/if}
  18. </ul>
  19. <div ng-show="step == 'base_info'">
  20. <div class="we7-form">
  21. {if $sign == ACCOUNT_TYPE_SIGN}
  22. <div id="account_base_info">
  23. <div class="form-group">
  24. <label for="" class="control-label col-sm-2">公众号名称</label>
  25. <div class="form-controls col-sm-8">
  26. <input type="text" name="name" class="form-control" ng-model="account.name" autocomplete="off" />
  27. <span class="help-block">填写公众号的账号名称</span>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label for="" class="control-label col-sm-2">描述</label>
  32. <div class="form-controls col-sm-8">
  33. <textarea style="height: 80px;" class="form-control" name="description" ng-bind="account.description"></textarea>
  34. <span class="help-block">用于说明此公众号的功能及用途。</span>
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label for="" class="control-label col-sm-2">公众号账号</label>
  39. <div class="form-controls col-sm-8">
  40. <input type="text" name="account" class="form-control" ng-model="account.account" autocomplete="off" />
  41. <span class="help-block">填写公众号的账号,一般为英文账号</span>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label for="" class="control-label col-sm-2">原始ID</label>
  46. <div class="form-controls col-sm-8">
  47. <input type="text" name="original" class="form-control" ng-model="account.original" autocomplete="off" />
  48. <span class="help-block">原始ID不能修改,请谨慎填写</span>
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label for="" class="control-label col-sm-2">类型</label>
  53. <div class="form-controls col-sm-8">
  54. <select name="level" ng-model="account.level">
  55. <option value="1" ng-selected="account.level == 1">普通订阅号</option>
  56. <option value="2" ng-selected="account.level == 2">普通服务号</option>
  57. <option value="3" ng-selected="account.level == 3">认证订阅号</option>
  58. <option value="4" ng-selected="account.level == 4">认证服务号/认证媒体/政府订阅号</option>
  59. </select>
  60. <span class="help-block">注意:即使公众平台显示为“未认证”, 但只要【公众号设置】/【账号详情】下【认证情况】显示资质审核通过, 即可认定为认证号.</span>
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <label for="" class="control-label col-sm-2">AppId</label>
  65. <div class="form-controls col-sm-8">
  66. <input type="text" name="key" class="form-control" ng-model="account.key" autocomplete="off"/>
  67. <span class="help-block">请填写微信公众平台后台的AppId</span>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label for="" class="control-label col-sm-2">AppSecret</label>
  72. <div class="form-controls col-sm-8">
  73. <input type="text" name="secret" class="form-control" ng-model="account.secret" autocomplete="off"/>
  74. <span class="help-block">请填写微信公众平台后台的AppSecret</span>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="control-label col-sm-2">Oauth 2.0</label>
  79. <div class="form-controls col-sm-8">
  80. <p class="form-control-static">在微信公众号请求用户网页授权之前,开发者需要先到公众平台网站的【开发者中心】<b>网页服务</b>中配置授权回调域名。{if $_W['isfounder']}{/if}</p>
  81. </div>
  82. </div>
  83. <div class="form-group">
  84. <label for="" class="control-label col-sm-2">头像</label>
  85. <div class="form-controls col-sm-8">
  86. <div class="input-more we7-input-img" ng-class="{'active': account.headimg}">
  87. <img ng-src="{{account.headimg}}" width="150px" ng-if="account.headimg" ng-style="{'height': 'auto'}">
  88. <a href="javascript:;" class="input-addon" ng-click="uploadMultiImage('headimg')" ng-hide="account.headimg"><span>+</span></a>
  89. <input type="text" name="headimg" ng-model="account.headimg" ng-style="{'display' : 'none'}">
  90. <div class="cover-dark">
  91. <a href="javascript:;" class="cut" ng-click="uploadMultiImage('headimg')">更换</a>
  92. <a href="javascript:;" class="del" ng-click="delMultiImage('headimg')"><i class="fa fa-times text-danger"></i></a>
  93. </div>
  94. </div>
  95. <span class="help-block"></span>
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label for="" class="control-label col-sm-2">二维码</label>
  100. <div class="form-controls col-sm-8">
  101. <div class="input-more we7-input-img" ng-class="{'active': account.qrcode}">
  102. <img ng-src="{{account.qrcode}}" width="150px" ng-if="account.qrcode" ng-style="{'height': 'auto'}">
  103. <a href="javascript:;" class="input-addon" ng-click="uploadMultiImage('qrcode')" ng-hide="account.qrcode"><span>+</span></a>
  104. <input type="text" name="qrcode" ng-model="account.qrcode" ng-style="{'display' : 'none'}">
  105. <div class="cover-dark">
  106. <a href="javascript:;" class="cut" ng-click="uploadMultiImage('qrcode')">更换</a>
  107. <a href="javascript:;" class="del" ng-click="delMultiImage('qrcode')"><i class="fa fa-times text-danger"></i></a>
  108. </div>
  109. </div>
  110. <span class="help-block"></span>
  111. </div>
  112. </div>
  113. </div>
  114. {elseif $sign == WEBAPP_TYPE_SIGN}
  115. <div id="webapp_base_info">
  116. <div id="js-webapp">
  117. <div class="form-group">
  118. <label for="" class="control-label col-sm-2">PC名称</label>
  119. <div class="form-controls col-sm-8">
  120. <input type="text" name="name" ng-model="account.name" class="form-control" required autocomplete="off" />
  121. <span class="help-block">填写PC名称</span>
  122. </div>
  123. </div>
  124. <div class="form-group">
  125. <label for="" class="control-label col-sm-2">描述</label>
  126. <div class="form-controls col-sm-8">
  127. <textarea class="form-control" name="description" ng-model="account.description" style="height: 80px;"></textarea>
  128. <span class="help-block">用于说明此PC的功能及用途。</span>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. {elseif $sign == PHONEAPP_TYPE_SIGN}
  134. <div id="phoneapp_base_info">
  135. <div id="js-phoneapp">
  136. <div class="form-group">
  137. <label class="control-label col-sm-2">APP名称</label>
  138. <div class="form-controls col-sm-8">
  139. <input type="text" name="name" class="form-control" ng-model="account.name" placeholder="APP名称" required>
  140. </div>
  141. </div>
  142. <div class="form-group">
  143. <label class="control-label col-sm-2">APP描述</label>
  144. <div class="form-controls col-sm-8">
  145. <input type="text" name="description" ng-model="account.description" class="form-control" placeholder="版本描述">
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. {elseif $sign == XZAPP_TYPE_SIGN}
  151. <div id="xzapp_base_info">
  152. <div class="form-group">
  153. <label for="" class="control-label col-sm-2">熊掌号名称</label>
  154. <div class="form-controls col-sm-8">
  155. <input type="text" name="name" class="form-control" ng-model="account.name" autocomplete="off" />
  156. <span class="help-block">填写熊掌号的账号名称</span>
  157. </div>
  158. </div>
  159. <div class="form-group">
  160. <label for="" class="control-label col-sm-2">描述(签名)</label>
  161. <div class="form-controls col-sm-8">
  162. <textarea style="height: 80px;" class="form-control" name="description" ng-bind="account.description"></textarea>
  163. <span class="help-block"></span>
  164. </div>
  165. </div>
  166. <div class="form-group">
  167. <label for="" class="control-label col-sm-2">熊掌号ID</label>
  168. <div class="form-controls col-sm-8">
  169. <input type="text" name="original" class="form-control" ng-model="account.original" autocomplete="off" />
  170. <span class="help-block">熊掌号ID不能修改,请谨慎填写</span>
  171. </div>
  172. </div>
  173. <div class="form-group">
  174. <label for="" class="control-label col-sm-2">类型</label>
  175. <div class="form-controls col-sm-8">
  176. <select name="level" ng-model="account.level">
  177. <option value="1" ng-selected="account.level == 1">个人</option>
  178. <option value="2" ng-selected="account.level == 2">媒体</option>
  179. <option value="3" ng-selected="account.level == 3">企业</option>
  180. <option value="4" ng-selected="account.level == 4">政府</option>
  181. <option value="4" ng-selected="account.level == 5">其他组织</option>
  182. </select>
  183. </div>
  184. </div>
  185. <div class="form-group">
  186. <label for="" class="control-label col-sm-2">ClientId</label>
  187. <div class="form-controls col-sm-8">
  188. <input type="text" name="key" class="form-control" ng-model="account.key" autocomplete="off"/>
  189. <span class="help-block">请填写熊掌号后台的ClientId</span>
  190. </div>
  191. </div>
  192. <div class="form-group">
  193. <label for="" class="control-label col-sm-2">ClientSecret</label>
  194. <div class="form-controls col-sm-8">
  195. <input type="text" name="secret" class="form-control" ng-model="account.secret" autocomplete="off"/>
  196. <span class="help-block">请填写熊掌号后台的ClientSecret</span>
  197. </div>
  198. </div>
  199. <div class="form-group">
  200. <label class="control-label col-sm-2">Oauth 2.0</label>
  201. <div class="form-controls col-sm-8">
  202. <p class="form-control-static">在熊掌号请求用户网页授权之前,开发者需要先到熊掌号后台的【开发设置】<b>基本设置</b>中配置授权回调域名。{if $_W['isfounder']}{/if}</p>
  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. <div class="input-more we7-input-img" ng-class="{'active': account.headimg}">
  209. <img ng-src="{{account.headimg}}" width="150px" ng-if="account.headimg" ng-style="{'height': 'auto'}">
  210. <a href="javascript:;" class="input-addon" ng-click="uploadMultiImage('headimg')" ng-hide="account.headimg"><span>+</span></a>
  211. <input type="text" name="headimg" ng-model="account.headimg" ng-style="{'display' : 'none'}">
  212. <div class="cover-dark">
  213. <a href="javascript:;" class="cut" ng-click="uploadMultiImage('headimg')">更换</a>
  214. <a href="javascript:;" class="del" ng-click="delMultiImage('headimg')"><i class="fa fa-times text-danger"></i></a>
  215. </div>
  216. </div>
  217. <span class="help-block"></span>
  218. </div>
  219. </div>
  220. </div>
  221. {elseif in_array($sign, array(WXAPP_TYPE_SIGN, ALIAPP_TYPE_SIGN, BAIDUAPP_TYPE_SIGN, TOUTIAOAPP_TYPE_SIGN))}
  222. <div id="miniapp_base_info">
  223. <div class="form-defalut we7-form">
  224. <div class="form-group">
  225. <label for="" class="control-label col-sm-2">{$sign_title}名称</label>
  226. <div class="form-controls col-sm-10">
  227. <input type="text" name="name" ng-model="account.name" class="form-control wxapp-name" placeholder="{$account_all_type[$type]['title']}名称" required>
  228. </div>
  229. </div>
  230. <div class="form-group">
  231. <label for="" class="control-label col-sm-2">{$sign_title}描述</label>
  232. <div class="form-controls col-sm-10">
  233. <input type="text" name="description" ng-model="account.description" class="form-control wxapp-name" placeholder="版本描述">
  234. </div>
  235. </div>
  236. <div class="form-group" ng-if="account.sign == 'wxapp'">
  237. <label for="" class="control-label col-sm-2">原始ID</label>
  238. <div class="form-controls col-sm-10">
  239. <input type="text" name="original" ng-model="account.original" value="" class="form-control wxapp-name" placeholder="原始ID">
  240. </div>
  241. </div>
  242. <div class="form-group">
  243. <label for="" class="control-label col-sm-2">AppId</label>
  244. <div class="form-controls col-sm-10">
  245. <input type="text" name="appid" ng-model="account.appid" class="form-control wxapp-name" placeholder="AppId">
  246. </div>
  247. </div>
  248. <div class="form-group" ng-if="account.sign == 'baiduapp' || account.sign == 'toutiaoapp'">
  249. <label for="" class="control-label col-sm-2">AppKey</label>
  250. <div class="form-controls col-sm-10">
  251. <input type="text" name="key" ng-model="account.key" class="form-control wxapp-name" placeholder="AppKey">
  252. </div>
  253. </div>
  254. <div class="form-group" ng-if="account.sign == 'wxapp' || account.sign == 'baiduapp' || account.sign == 'toutiaoapp'">
  255. <label for="" class="control-label col-sm-2">AppSecret</label>
  256. <div class="form-controls col-sm-10">
  257. <input type="text" name="secret" ng-model="account.secret" class="form-control wxapp-name" placeholder="AppSecret">
  258. </div>
  259. </div>
  260. <div class="form-group" ng-hide="newversion">
  261. <label for="" class="control-label col-sm-2">头像</label>
  262. <div class="form-controls col-sm-8">
  263. <div class="input-more we7-input-img" ng-class="{'active': account.headimg}">
  264. <img ng-src="{{account.headimg}}" width="150px" ng-if="account.headimg" ng-style="{'height': 'auto'}">
  265. <a href="javascript:;" class="input-addon" ng-click="uploadMultiImage('headimg')" ng-hide="account.headimg"><span>+</span></a>
  266. <input type="text" name="headimg" ng-model="account.headimg" class="hidden">
  267. <div class="cover-dark">
  268. <a href="javascript:;" class="cut" ng-click="uploadMultiImage('headimg')">更换</a>
  269. <a href="javascript:;" class="del" ng-click="delMultiImage('headimg')"><i class="fa fa-times text-danger"></i></a>
  270. </div>
  271. </div>
  272. <span class="help-block"></span>
  273. </div>
  274. </div>
  275. <div class="form-group" ng-hide="newversion">
  276. <label for="" class="control-label col-sm-2">二维码</label>
  277. <div class="form-controls col-sm-8">
  278. <div class="input-more we7-input-img" ng-class="{'active': account.qrcode}">
  279. <img ng-src="{{account.qrcode}}" width="150px" ng-if="account.qrcode" ng-style="{'height': 'auto'}">
  280. <a href="javascript:;" class="input-addon" ng-click="uploadMultiImage('qrcode')" ng-hide="account.qrcode"><span>+</span></a>
  281. <input type="text" name="qrcode" ng-model="account.qrcode" class="hidden">
  282. <div class="cover-dark">
  283. <a href="javascript:;" class="cut" ng-click="uploadMultiImage('qrcode')">更换</a>
  284. <a href="javascript:;" class="del" ng-click="delMultiImage('qrcode')"><i class="fa fa-times text-danger"></i></a>
  285. </div>
  286. </div>
  287. <span class="help-block"></span>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. {/if}
  293. <div class="col-sm-offset-2">
  294. <input type="submit" name="submit" value="下一步" class="btn btn-primary btn-submit" ng-click="submitBaseinfo()"/>
  295. </div>
  296. </div>
  297. </div>
  298. <div ng-show="step == 'account_modules'">
  299. <div class="we7-form account-create-step">
  300. <div class="we7-page-alert">
  301. 如果不选择主管理员,则默认创始人为该账号的主管理员
  302. </div>
  303. <div class="form-group">
  304. <div class="control-label col-sm-2">主管理员</div>
  305. <div class="form-controls col-sm-8">
  306. <div class="input-group">
  307. <input type="hidden" name="uid" value="" id="manager">
  308. <input type="text" class="form-control" ng-model="owner.username" id="showname">
  309. <span class="input-group-btn">
  310. <a class="btn btn-default" href="javascript:;" ng-click="selectOwner($event)">选择管理员</a>
  311. </span>
  312. </div>
  313. <span class="help-block">如果是新用户,请先 <a href="{url 'user/create'}" target="_blank" class="color-default">添加用户</a></span>
  314. </div>
  315. </div>
  316. <div class="form-group">
  317. <label for="" class="control-label col-sm-2">平台过期时间</label>
  318. <div class="form-controls col-sm-8">
  319. <div class="input-group">
  320. <span class="input-group-btn">
  321. <select name="" class="select-endtime" id="" ng-model="owner.endtime" ng-change="changeEndtime()" style="width: 75px">
  322. <option value="1">设置</option>
  323. <option value="0" >不限</option>
  324. </select>
  325. </span>
  326. <div ng-show="owner.endtime == 1">
  327. {php echo tpl_form_field_date('endtime', 0);}
  328. </div>
  329. </div>
  330. <span class="help-block">平台有效期默认与主管理员一致,修改日期不可超过主管理员有效期的最大期限。未设置主管理员时,创始人默认为主管理员</span>
  331. </div>
  332. </div>
  333. <div class="col-sm-offset-2 form-controls col-sm-8" ng-show="groupAll.groups">
  334. <div class="we7-header" ng-show="owner.username">
  335. 主管理员应用/模板权限
  336. </div>
  337. <div class="we7-group-show" ng-if="owner.modules">
  338. <input class="hidden" type="checkbox" name="package[]" checked ng-value="package">
  339. <div class="name">
  340. 主管理员权限
  341. </div>
  342. <div class="group-app-list">
  343. <div class="group-app-item" ng-repeat="module in owner.modules">
  344. <img ng-src="{{module.logo}}" class="module-img" alt="">
  345. <div class="info">
  346. <div class="title text-over">
  347. {{module.title}}
  348. </div>
  349. <div class="type-list">
  350. <i class="wi wi-{$account['type_sign']}"></i>
  351. </div>
  352. </div>
  353. </div>
  354. <div class="group-app-item" ng-if="owner.modules.length < 1">暂无应用</div>
  355. <div class="group-app-item" ng-repeat="module in unigroups[package].templates">
  356. <img ng-src="{{module.logo}}" class="template-img" alt="">
  357. <div class="info">
  358. <div class="title">
  359. {{module.title}}
  360. </div>
  361. <div class="type-list">
  362. <i class="wi wi-template"></i>
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. <a class="action"></a>
  368. </div>
  369. <div class="we7-header">{$sign_title}附加应用权限组</div>
  370. <div class="we7-group-show " ng-repeat="extend in groupAll.groups" ng-if="extend.checked == 1">
  371. <div class="name">
  372. {{extend.name}}
  373. </div>
  374. <div class="group-app-list">
  375. <div class="group-app-item" ng-repeat="module in extend.modules_all">
  376. <img ng-src="{{module.logo}}" class="module-img" alt="">
  377. <div class="info">
  378. <div class="title text-over">
  379. {{module.title}}
  380. </div>
  381. <div class="type-list">
  382. <i ng-class="itme.icon" ng-repeat="itme in module.group_support | moduleInfo" ></i>
  383. </div>
  384. </div>
  385. </div>
  386. <div class="group-app-item" ng-repeat="module in extend.templates">
  387. <img ng-src="{{module.logo}}" class="template-img" alt="">
  388. <div class="info">
  389. <div class="title">
  390. {{module.title}}
  391. </div>
  392. <div class="type-list">
  393. <i class="wi wi-template"></i>
  394. </div>
  395. </div>
  396. </div>
  397. </div>
  398. <a class="action"></a>
  399. <a href="" class="remove" ng-click="extend.checked = 0"><i class="wi wi-error"></i></a>
  400. </div>
  401. <we7-modal-app module-list="groupAll" multiple="true" ng-init="loadGroups()" on-confirm="groupConfirm()">
  402. <div class="add-new-block" >
  403. <i class="wi wi-plus"></i> 添加应用权限组
  404. </div>
  405. </we7-modal-app>
  406. <div class="we7-header">{$sign_title}附加应用</div>
  407. <div class="group-post-mudules">
  408. <div class="module-item" ng-repeat="module in modulesAll.modules" ng-if="module.checked == 1">
  409. <div class="logo">
  410. <img ng-src="{{module.logo}}" alt="">
  411. </div>
  412. <div class="info">
  413. <div ng-bind="module.title" class="title text-over">1213</div>
  414. <div class="icon">
  415. <i class="{{module.support | moduleInfo:'icon'}}"></i>
  416. </div>
  417. </div>
  418. <div class="delete">
  419. <i class="wi wi-error" ng-click="module.checked = 0"></i>
  420. </div>
  421. </div>
  422. <div class="module-item" ng-repeat="template in modulesAll.templates" ng-if="template.checked == 1">
  423. <div class="logo">
  424. <img ng-src="{{template.logo}}" alt="">
  425. </div>
  426. <div class="info">
  427. <div class="name text-over" ng-bind="template.title">1213</div>
  428. <div class="icon">
  429. <i class="wi wi-template"></i>
  430. </div>
  431. </div>
  432. <div class="delete">
  433. <i class="wi wi-error" ng-click="template.checked = 0"></i>
  434. </div>
  435. </div>
  436. <we7-modal-app module-list="modulesAll" title="'添加应用'" multiple="true">
  437. <div class="module-item add" >
  438. <i class="wi wi-plus"></i> 添加应用
  439. </div>
  440. </we7-modal-app>
  441. </div>
  442. </div>
  443. <div class="clearfix"></div>
  444. <div class="col-sm-offset-2">
  445. <input type="button" value="上一步" ng-click="step = 'base_info'" class="btn btn-primary btn-submit"/>
  446. <input type="button" ng-click="submitAccountModules()" value="{if in_array($sign, array(WEBAPP_TYPE_SIGN))}完成{else}下一步{/if}" class="btn btn-primary btn-submit"/>
  447. </div>
  448. </div>
  449. </div>
  450. <div ng-show="step == 'account_version'">
  451. <div class="wxapp-content tab-content" style="width: 100%;">
  452. <div id="select">
  453. <div class="form-defalut we7-form">
  454. <div class="form-group">
  455. <label for="" class="control-label col-sm-2">{$sign_title}名称</label>
  456. <div class="form-controls col-sm-10">
  457. <input type="text" name="name" ng-model="account.name" class="form-control wxapp-name" disabled>
  458. </div>
  459. </div>
  460. <div class="form-group">
  461. <label for="" class="control-label col-sm-2">版本描述</label>
  462. <div class="form-controls col-sm-10">
  463. <input type="text" name="description" ng-model="account.version_description" class="form-control wxapp-name">
  464. </div>
  465. </div>
  466. <div class="form-group">
  467. <label for="" class="control-label col-sm-2">版本号</label>
  468. <div class="form-controls col-sm-10">
  469. <input type="text" name="version" ng-model="account.version" class="form-control wxapp-name" placeholder="版本号,只能是数字、点,数字最多两位,例如 1.01 / 1.0.1">
  470. </div>
  471. </div>
  472. <div class="form-group">
  473. <input type="hidden" name="modules" value="">
  474. <label class="control-label col-sm-2">添加应用</label>
  475. <div class="form-controls col-sm-10">
  476. <ul class="app-list" ng-click="resourceModule()">
  477. <div class="app-info" ng-show="version_module.title">
  478. <img ng-src="{{version_module.icon}}" />
  479. <p>{{version_module.title}}</p>
  480. </div>
  481. <li class="select select-more"></li>
  482. </ul>
  483. </div>
  484. </div>
  485. </div>
  486. </div>
  487. </div>
  488. <div class="col-sm-offset-2">
  489. {if !empty($_W['isfounder'])}
  490. <input type="button" value="上一步" ng-click="step = 'account_modules'" class="btn btn-primary btn-submit"/>
  491. {else}
  492. <input type="button" value="上一步" ng-click="step = 'base_info'" class="btn btn-primary btn-submit"/>
  493. {/if}
  494. <input type="submit" value="生成版本" ng-click="submitAccountVersion()" class="btn btn-primary btn-submit"/>
  495. </div>
  496. </div>
  497. </div>
  498. <script type="text/javascript">
  499. angular.module('accountApp').value('config', {
  500. token: "{$_W['token']}",
  501. sign: "{$sign}",
  502. sign_title: "{$sign_title}",
  503. uid: "{$_W['uid']}",
  504. isfounder: {php echo intval($_W['isfounder'])},
  505. //设置权限
  506. unigroups: {php echo !empty($unigroups) ? json_encode($unigroups) : 'null'},
  507. modules: {php echo !empty($modules) ? json_encode($modules) : 'null'},
  508. templates: {php echo !empty($templates) ? json_encode($templates) : 'null'},
  509. links: {
  510. userinfo: "{php echo url('account/create/get_user_info', array('sign' => $sign))}",
  511. check_params: "{php echo url('account/create/check_params')}",
  512. save_account: "{php echo url('account/create/save_account')}",
  513. load_groups: "{php echo url('account/create/load_groups', array('sign' => $sign))}",
  514. }
  515. });
  516. angular.bootstrap($('#js-account-create'),['accountApp']);
  517. </script>
  518. {template 'common/footer'}