activityApply.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <ion-view style="background-color:#fff" title="活动报名">
  2. <div class="bar bar-header bar-header-blue">
  3. <div class="button button-icon icon pus_blue"></div>
  4. <button class="button button-icon icon goback whiteGoBack noneContent" ng-click="gobackToComfrom()"></button>
  5. <h1 class="bar_title" style="color: #fff">活动报名</h1>
  6. </div>
  7. <ion-content class="has-header" scroll="true" delegate-handle="privateContent" style="margin:0 auto;max-width:20.5rem;background-color: #f2f2f2">
  8. <!--<ion-refresher pulling-text="" on-refresh="refreshData()" class="home_refresh tabs_refresh" refreshing-text="" pulling-icon-color="#3385ff" refreshing-icon="ion-checkmark-circled" refreshing-icon-color="#3385ff"></ion-refresher>-->
  9. <div class="form-box">
  10. <div ng-repeat="list in formList" ng-init="outerIndex=$index" ng-class="{'hole-row':true,'row-margin':list.rowMargin}" ng-click="selectItems(outerIndex)" ng-show="formList[outerIndex-1].type!='toggle'||(formList[outerIndex-1].type=='toggle'&&formList[outerIndex-1].content=='是')||(formList[outerIndex-1].type=='toggle'&&formList[outerIndex-1].content=='10501')">
  11. <div class="input-title" style="border-radius: 0;border-right:1px solid #ccc;" ng-show="formList[outerIndex-1].type!='toggle'||(formList[outerIndex-1].type=='toggle'&&formList[outerIndex-1].content=='是')||(formList[outerIndex-1].type=='toggle'&&formList[outerIndex-1].content=='10501')">
  12. <sup ng-if='list.isneed' style="color:red;">*</sup>
  13. {{list.text}}
  14. <span ng-if="list.type=='textarea'" style="width:100%;padding-left:5px;padding-top:5px;"><br><small style="color:#aaa;font-size: 12px;margin-left:3px;">≤{{list.maxlength||200}}字</small></span>
  15. </div>
  16. <div class="input-box">
  17. <!--普通输入框-->
  18. <input ng-if="list.type=='input'&&list.inputType!='number'" placeholder="{{list.placeholder}}" ng-change="queryOrgName(outerIndex)" ng-disabled="list.disable" type="text" ng-model="list.content" style="width:100%;border-radius:3px;padding:0 3px;"/>
  19. <input ng-if="list.type=='input'&&list.inputType=='number'" placeholder="{{list.placeholder}}" ng-change="queryOrgName(outerIndex)" type="number" ng-model="list.content" style="width:100%;border-radius:3px;padding:0 3px;"/>
  20. <input ng-if="list.type=='select'||list.type=='selectDomain'||list.type=='affiliatedOrg'" placeholder="{{list.placeholder}}" ng-disabled="list.type=='select'||list.type=='selectDomain'" type="text" ng-model="list.content" style="width:100%;border-radius:3px;padding:0 3px;"/>
  21. <!-- 选择项目箭头 -->
  22. <i ng-if="list.type=='select'||list.type=='selectDomain'||list.type=='affiliatedOrg'" class=" ion-ios-arrow-down position-fix"></i>
  23. <!-- 模糊查询下拉列表 -->
  24. <ul ng-show="list.fuzzyquery&&isRelateUl" class="isRelateUl" style="overflow: visible;margin-left:5%">
  25. <li ng-repeat="org in orgList track by $index" style="overflow: visible;">
  26. <span ng-bind-html="ttt(org.name)" ng-click="setOrgName(org,outerIndex)">{{org.name}}</span>
  27. </li>
  28. </ul>
  29. <!--日期-->
  30. <span ng-if="list.type=='date'" ng-bind="list.content | datesubstring10" ng-click="openDatePicker('date',outerIndex)" style="display: inline-block;height:100%;line-height:34px;width:49%;border-radius:3px;padding:0 3px;border-right:1px solid #ddd;" ng-model="list.content"></span>
  31. <span ng-if="list.type=='date'" ng-bind="list.timeContent" ng-click="openDatePicker('time',outerIndex)" style="display: inline-block;height:100%;line-height:34px;width:49%;border-radius:3px;padding:0 3px;border-right:1px solid #ddd;vertical-align: middle" ng-model="list.timeContent"></span>
  32. <!--输入框-->
  33. <textarea ng-if="list.type=='textarea'" class="add_list_txt" ng-model="list.content" placeholder="{{list.placeholder}}" style="font-size:12px;display:inline-block;vertical-align: top;width:100%;padding:5px 0;margin-top:0;border-bottom:none;" ></textarea>
  34. <!--选择地区-->
  35. <ul ng-if="list.type=='selectArea'">
  36. <li ng-class="{'drop-down-box':true,'area-app':app}" ng-repeat="arealist in areaDropDown" ng-init="innerIndex=$index" ng-click="showAreaList(innerIndex,outerIndex,areaDropDown,'area')">
  37. <i class="drop-down-icon icon ion-arrow-down-b"></i>
  38. <input type="text" placeholder="{{arealist.title}}" disabled ng-model="arealist.selectName" style="width:100%;border-radius:3px;padding:0 3px;"/>
  39. </li>
  40. </ul>
  41. <!--上传证明材料-->
  42. <div ng-if="list.type=='upload'" ng-show="formList[outerIndex-1].type!='toggle'||(formList[outerIndex-1].type=='toggle'&&formList[outerIndex-1].content=='是')||(formList[outerIndex-1].type=='toggle'&&formList[outerIndex-1].content=='10501')" style="width:100%;">
  43. <img ng-show="list.doctype==4906" src="img/2018/raw_1533276639.png" style="width:100%;max-width:250px">
  44. <img ng-show="list.doctype==4907" src="img/2018/raw_1533276601.png" style="width:100%;max-width:250px">
  45. <a href="" class="upload-add" ng-click="addImage(outerIndex)">+</a>
  46. <!--<span ng-if="list.remarkType=='normal'" style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传5张,请上传清晰、最近的年审的证件扫描件或照片</span>-->
  47. <span ng-if="list.remarkType=='normal'" style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传5张</span>
  48. <span ng-if="list.remarkType=='manage'" ng-click="alertInfo()" style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传5张。请下载<a href="{{url?url:'javascript:;'}}" download="管理员认证申请公函.docx">《企业认证申请公函》</a>,并加盖企业公章(合同章,财务章无效)后扫描或拍照上传</span>
  49. <!--<span ng-if="list.remarkType=='add'" style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传5张。上传补充证明材料有利于认证审核通过,如奖状、奖杯、聘用书等</span>-->
  50. <span ng-if="list.remarkType=='add'" style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传5张</span>
  51. <span ng-if="list.remarkType=='identify'" style="font-size:12px;color:#BFC2D3;">每张小于2M</span>
  52. </div>
  53. <ion-scroll ng-if="list.type=='upload'" ng-show="(list.imagelist.length>0&&formList[outerIndex-1].type!='toggle')||list.imagelist.length>0&&((formList[outerIndex-1].type=='toggle'&&formList[outerIndex-1].content=='是')||(formList[outerIndex-1].type=='toggle'&&formList[outerIndex-1].content=='10501'))" scroll="true" has-bouncing="true" direction="x" scrollbar-x="false" delegate-handle="scrollimage" class="photo_div" style="margin-right:10px;overflow-x:hidden;overflow-y:hidden;">
  54. <a class="photo_img" ng-repeat="image in list.imagelist track by $index" ng-init="imageIndex=$index">
  55. <img ng-src="{{image.photoName | picturefilter}}" style="width:100%;height:85px;" class="back-img"/>
  56. <span class="photo_delect delect_cammer" ng-click="deletePhoto(imageIndex,outerIndex)"></span>
  57. </a>
  58. </ion-scroll>
  59. <input type="file" name="file" id="file" accept="image/*" ng-model="changeFile" multiple style="display:none"/>
  60. <!-- 切换开关 -->
  61. <ion-toggle ng-if="list.type=='toggle'" ng-model="list.togglecontent" style="position:absolute;top:-10px;left:0;width:70px; border: none;height: 48px;line-height: 48px;padding:0;font-size: 100%;color: #000;" ng-change="watchIsChange(outerIndex)" ng-checked="list.togglecontent">
  62. <!-- <span style="font-size:12px;color:#aaa">{{tmp.togglecontent?"是":"否"}}</span> -->
  63. <span style="right:0" class="isactiveInfoWrap">{{list.togglecontent?"是":"否"}}</span>
  64. </ion-toggle>
  65. <span ng-if="list.type=='configurablePages'" ng-click="goToInput(outerIndex)" style="display: inline-block;height:100%;line-height:34px;width:90%;padding:0 3px;border: 1px solid #96D6FD;border-radius: 5px;text-align: center;cursor:pointer;" ng-model="list.content" ng-bind="list.buttonText"></span>
  66. </div>
  67. </div>
  68. </div>
  69. <!--富文本-->
  70. <div class="rich-text-box">
  71. <div ng-show="activePage==1">活动简介</div>
  72. <div ng-show="activePage==1" id="editor">
  73. <!--<button ng-click="getContent()">获取html</button>-->
  74. <!--<button ng-click="getContent2()">获取text</button>-->
  75. </div>
  76. </div>
  77. <br>
  78. <br>
  79. <br>
  80. <br>
  81. <br>
  82. <br>
  83. </ion-content>
  84. <div ng-if="isWechat" ng-show="showMessage" class="container">
  85. <span class="message-box">{{messageTitle}}</span>
  86. </div>
  87. <div class="submit-section button-fixed">
  88. <div>
  89. <button ng-click="submitForm()" class="submit-button sbg-blue">提交报名</button>
  90. <!--<button class="submit-button sbg-blue" ng-class="{'submit-button2':activePage!=0}" ng-show="activePage!=0" ng-click="goToPrePage()">上 一 步</button>-->
  91. <!--<button class="submit-button sbg-blue" ng-class="{'submit-button2':activePage!=0}" ng-show="activePage!=2" ng-click="goToNextPage()">下 一 步</button>-->
  92. <!--<button class="submit-button sbg-blue" ng-class="{'submit-button2':activePage!=0}" ng-show="activePage==2" ng-click="submitActivities()">发 布</button>-->
  93. </div>
  94. </div>
  95. <div class="time-picker-mask" ng-show="showTimePicker">
  96. <div class="time-picker-box">
  97. <div class="time-picker-box-title">选择时间</div>
  98. <div>
  99. <div class="time-picker-section">
  100. <div>时</div>
  101. <select ng-model="selectedHour">
  102. <option ng-repeat="hour in hours" value="{{hour}}" ng-bind="hour"></option>
  103. </select>
  104. </div>
  105. <div class="time-picker-section">
  106. <div>分</div>
  107. <select ng-model="selectedMinute">
  108. <option ng-repeat="second in minutes" value="{{second}}" ng-bind="second"></option>
  109. </select>
  110. </div>
  111. </div>
  112. <div>
  113. <button class="submit-button sbg-blue submit-button3" ng-click="getTime()">确定</button>
  114. <button class="submit-button sbg-blue submit-button3" ng-click="getNowTime()">现在</button>
  115. <button class="submit-button sbg-blue submit-button3" ng-click="clearTime()">清空</button>
  116. </div>
  117. </div>
  118. </div>
  119. </ion-view>
  120. <style>
  121. .checkbox input, .checkbox-icon{
  122. opacity: 1 !important;
  123. }
  124. </style>