人人商城

create.html 4.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {template 'common/header'}
  2. <div>
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}"><i class="wi wi-back-circle"></i></a>
  5. <li><a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}">APP列表</a></li>
  6. <li>新建APP</li>
  7. </ol>
  8. <div id="js-phone-app" ng-controller="phoneCreateCtrl">
  9. <div id="select">
  10. <div class="form-defalut we7-form">
  11. <div class="form-group" ng-if = "!uniacid">
  12. <label for="" class="control-label col-sm-2">APP名称</label>
  13. <div class="form-controls col-sm-10">
  14. <input type="text" class="form-control wxapp-name" ng-model="phoneappinfo.name" placeholder="APP名称">
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label for="" class="control-label col-sm-2">APP描述</label>
  19. <div class="form-controls col-sm-10">
  20. <input type="text" ng-model="phoneappinfo.description" class="form-control wxapp-name" placeholder="版本描述">
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label for="" class="control-label col-sm-2">版本号</label>
  25. <div class="form-controls col-sm-10">
  26. <input type="text" ng-model="phoneappinfo.version" class="form-control wxapp-name" placeholder="版本号,只能是数字、点,数字最多两位,例如 1.01">
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="control-label col-sm-2">添加应用</label>
  31. <div class="form-controls col-sm-10">
  32. <ul class="app-list">
  33. <li class="we7-input-img active" style="float:left;" ng-repeat="module in selectedModule">
  34. <img ng-src="{{module.logo}}" />
  35. <p>{{module.title}}</p>
  36. </li>
  37. <li class="we7-input-img" style="float:left;">
  38. <a href="javascript:;" class="input-addon" data-toggle="modal" data-target="#add_module"><span>+</span></a>
  39. </li>
  40. </ul>
  41. </div>
  42. </div>
  43. <a type="button" class="btn btn-primary" ng-click="savePhoneApp()">创建APP</a>
  44. </div>
  45. </div>
  46. <div class="uploader-modal modal fade module" id="add_module" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  47. <div class="modal-dialog we7-modal-dialog" >
  48. <div class="modal-content">
  49. <div class="modal-header">
  50. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  51. <h4 class="modal-title">添加应用(点击添加)</h4>
  52. </div>
  53. <div class="modal-body material-content clearfix">
  54. <div class="material-body">
  55. <div class="row">
  56. <div class="col-sm-2 select-module" ng-repeat="module in modules" ng-click="selectOrCancelModule(module)">
  57. <div class="item" >
  58. <img ng-src="{{ module.logo }}" alt="" class="icon" ng-if="module.main_module == ''"/>
  59. <div class="name">{{ module.title }}</div>
  60. <div class="mask">
  61. <span class="wi wi-right"></span>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="modal-footer">
  69. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <script type="text/javascript">
  77. angular.module('phoneApp').value('config', {
  78. 'uniacid' : {$uniacid},
  79. 'version_id' : {$version_id},
  80. 'modules' : {php echo json_encode($modules)},
  81. 'version_info' : {php echo json_encode($version_info)},
  82. 'links':{
  83. 'create_phone_url' : "{php echo url('phoneapp/manage/save');}",
  84. }
  85. });
  86. angular.bootstrap($('#js-phone-app'), ['phoneApp']);
  87. </script>
  88. {template 'common/footer'}