activityRelease.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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="goBackButton()"></button>
  5. <h1 class="bar_title" style="color: #fff">{{pageTitle[activePage]}}</h1>
  6. </div>
  7. <ion-content class="has-header" scroll="true" delegate-handle="privateContent"
  8. style="margin:0 auto;max-width:20.5rem;background-color: #f2f2f2;height:auto;">
  9. <!--<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>-->
  10. <div class="edit-apply-form" ng-show="activePage==2">
  11. <span class="edit-apply-form-title">常用选项</span>
  12. <div class="select-form-type">
  13. <ul class="form-config-choice">
  14. <li ng-repeat="list in configList track by $index" ng-bind="list.text"
  15. ng-class="{'has-chosen':list.hasChosen}" ng-click="choseList($index)">
  16. <!--<i class=""></i>-->
  17. </li>
  18. </ul>
  19. </div>
  20. </div>
  21. <div class="edit-apply-form" ng-show="activePage==2">
  22. <!--<span class="edit-apply-form-title">效果预览</span>-->
  23. <span class="edit-apply-form-title">配置结果</span>
  24. <ul>
  25. <li class="edit-list" ng-repeat="item in items track by $index">
  26. <div>
  27. <label class="checkbox">
  28. <input type="checkbox" ng-model="item.isneed" ng-disabled="item.disabled">
  29. <span ng-show="item.isneed">必填</span>
  30. <span ng-show="!item.isneed">非必填</span>
  31. </label>
  32. <span>{{item.text}}</span>
  33. </div>
  34. <div>
  35. <button class="edit-button icon ion-ios-trash-outline" ng-show="item.showButton"
  36. ng-click="deletItem($index)"></button>
  37. </div>
  38. </li>
  39. </ul>
  40. </div>
  41. <div class="form-box">
  42. <div ng-repeat="list in formList" ng-init="outerIndex=$index"
  43. ng-class="{'hole-row':true,'row-margin':list.rowMargin}" ng-click="selectItems(outerIndex)"
  44. 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')">
  45. <div class="input-title"
  46. 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')">
  47. <sup ng-if='list.needed' style="color:red;">*</sup>
  48. {{list.title}}
  49. <span ng-if="list.type=='textarea'" style="width:100%;padding-left:5px;padding-top:5px;"><br><small
  50. style="color:#aaa;font-size: 12px;margin-left:3px;">≤{{list.maxlength}}字</small></span>
  51. </div>
  52. <div class="input-box">
  53. <!--普通输入框-->
  54. <input ng-if="list.type=='input'&&list.inputType!='number'" placeholder="{{list.placeholder}}"
  55. ng-change="queryOrgName(outerIndex)" ng-disabled="list.disable" type="text" ng-model="list.content"
  56. style="width:100%;border-radius:3px;padding:0 3px;" />
  57. <input ng-if="list.type=='input'&&list.inputType=='number'" placeholder="{{list.placeholder}}"
  58. ng-change="queryOrgName(outerIndex)" type="number" ng-model="list.content"
  59. style="width:100%;border-radius:3px;padding:0 3px;" />
  60. <input ng-if="list.type=='select'||list.type=='selectDomain'||list.type=='affiliatedOrg'"
  61. placeholder="{{list.placeholder}}" ng-disabled="list.type=='select'||list.type=='selectDomain'" type="text"
  62. ng-model="list.content" style="width:100%;border-radius:3px;padding:0 3px;" />
  63. <!-- 选择项目箭头 -->
  64. <i ng-if="list.type=='select'||list.type=='selectDomain'||list.type=='affiliatedOrg'"
  65. class=" ion-ios-arrow-down position-fix"></i>
  66. <!-- 模糊查询下拉列表 -->
  67. <ul ng-show="list.fuzzyQuery&&isRelateUl" class="isRelateUl" style="overflow: visible;margin-left:5%">
  68. <li ng-repeat="org in orgList track by $index" style="overflow: visible;">
  69. <span ng-bind-html="ttt(org.name)" ng-click="setOrgName(org)">{{org.name}}</span>
  70. </li>
  71. </ul>
  72. <!--日期-->
  73. <input ng-if="list.type=='date'" ng-click="openDatePicker('date',outerIndex)"
  74. style="border:none;display: inline-block;height:100%;line-height:34px;width:49%;border-radius:3px;padding:0 3px;border-right:1px solid #ddd;"
  75. placeholder="{{list.placeholder}}" ng-model="list.content" />
  76. <span ng-if="list.type=='date'" ng-bind="list.timeContent" ng-click="openDatePicker('time',outerIndex)"
  77. 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"
  78. ng-model="list.timeContent"></span>
  79. <!--输入框-->
  80. <textarea ng-if="list.type=='textarea'" class="add_list_txt" ng-model="list.content"
  81. placeholder="{{list.placeholder}}"
  82. style="font-size:12px;display:inline-block;vertical-align: top;width:100%;padding:5px 0;margin-top:0;border-bottom:none;"></textarea>
  83. <!--选择地区-->
  84. <ul ng-if="list.type=='selectArea'">
  85. <li ng-class="{'drop-down-box':true,'area-app':app}" ng-repeat="arealist in areaDropDown"
  86. ng-init="innerIndex=$index" ng-click="showAreaList(innerIndex,outerIndex,areaDropDown,'area')">
  87. <i class="drop-down-icon icon ion-arrow-down-b"></i>
  88. <input type="text" placeholder="{{arealist.title}}" disabled ng-model="arealist.selectName"
  89. style="width:100%;border-radius:3px;padding:0 3px;" />
  90. </li>
  91. </ul>
  92. <!--上传证明材料-->
  93. <div ng-if="list.type=='upload'"
  94. 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')"
  95. style="width:100%;">
  96. <img ng-show="list.doctype==4906" src="img/2018/raw_1533276639.png" style="width:100%;max-width:250px">
  97. <img ng-show="list.doctype==4907" src="img/2018/raw_1533276601.png" style="width:100%;max-width:250px">
  98. <a href="" class="upload-add" ng-click="addImage(outerIndex)">+</a>
  99. <!--<span ng-if="list.remarkType=='normal'" style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传5张,请上传清晰、最近的年审的证件扫描件或照片</span>-->
  100. <span ng-if="list.remarkType=='normal'"
  101. style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传1张</span>
  102. <span ng-if="list.remarkType=='manage'" ng-click="alertInfo()"
  103. style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传1张。请下载<a href="{{url?url:'javascript:;'}}"
  104. download="管理员认证申请公函.docx">《企业认证申请公函》</a>,并加盖企业公章(合同章,财务章无效)后扫描或拍照上传</span>
  105. <!--<span ng-if="list.remarkType=='add'" style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传5张。上传补充证明材料有利于认证审核通过,如奖状、奖杯、聘用书等</span>-->
  106. <span ng-if="list.remarkType=='add'" style="font-size:12px;color:#BFC2D3;">每张小于2M,支持JPG/PNG等格式,最多上传1张</span>
  107. <span ng-if="list.remarkType=='identify'" style="font-size:12px;color:#BFC2D3;">每张小于2M</span>
  108. </div>
  109. <ion-scroll ng-if="list.type=='upload'"
  110. 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'))"
  111. scroll="true" has-bouncing="true" direction="x" scrollbar-x="false" delegate-handle="scrollimage"
  112. class="photo_div" style="margin-right:10px;overflow-x:hidden;overflow-y:hidden;">
  113. <a class="photo_img" ng-repeat="image in list.imagelist track by $index" ng-init="imageIndex=$index">
  114. <img ng-src="{{image.photoName | picturefilter}}" style="width:100%;height:85px;" class="back-img" />
  115. <span class="photo_delect delect_cammer" ng-click="deletePhoto(imageIndex,outerIndex)"></span>
  116. </a>
  117. </ion-scroll>
  118. <input type="file" name="file" id="file" accept="image/*" ng-model="changeFile" multiple
  119. style="display:none" />
  120. <!-- 切换开关 -->
  121. <ion-toggle ng-if="list.type=='toggle'" ng-model="list.togglecontent"
  122. style="position:absolute;top:-10px;left:0;width:70px; border: none;height: 48px;line-height: 48px;padding:0;font-size: 100%;color: #000;"
  123. ng-change="watchIsChange(outerIndex)" ng-checked="list.togglecontent">
  124. <!-- <span style="font-size:12px;color:#aaa">{{tmp.togglecontent?"是":"否"}}</span> -->
  125. <span style="right:0" class="isactiveInfoWrap">{{list.togglecontent?"是":"否"}}</span>
  126. </ion-toggle>
  127. </div>
  128. </div>
  129. </div>
  130. <!--富文本-->
  131. <div class="rich-text-box" id="richbox" style="display: none">
  132. <div ng-show="activePage==1">活动简介</div>
  133. <textarea ng-show="activePage==1" id="editor" name="editor" style="height: 200px;">
  134. </textarea>
  135. </div>
  136. <!--<div class="task-type-box">-->
  137. <!--<div>接单类型</div>-->
  138. <!--<ion-checkbox style='padding-top:10px;padding-bottom:10px;margin:0;font-size:0.35rem;border:none;border-bottom:1px dotted #aaa;' class="item-checkbox-right checkbox-calm" ng-repeat="task in taskType" ng-click="selectOpentype($index)" ng-model="task.checked">-->
  139. <!--<i class="{{task.class}} task-icon"></i>{{task.itemkey}}-->
  140. <!--<button class="button button-small button-icon ion-edit button-stable edit-address-list" ng-show="releaseToWhoList.length>0&&task.itemvalue==5311"></button>-->
  141. <!--<div style="margin-top:5px;color:#BFC2D3;" ng-if="task.itemvalue==5311">邀请后一周内只对被邀请人有任务申请和查看权限</div>-->
  142. <!--</ion-checkbox>-->
  143. <!--&lt;!&ndash;<div class="address-list">&ndash;&gt;-->
  144. <!--&lt;!&ndash;<div style="text-align: right;padding:3px;">&ndash;&gt;-->
  145. <!--&lt;!&ndash;&lt;!&ndash;<button style="font-size:0.4rem" ng-click="closeAddressList()" class="button button-outline button-calm button-small ">close</button>&ndash;&gt;&ndash;&gt;-->
  146. <!--&lt;!&ndash;</div>&ndash;&gt;-->
  147. <!--</div>-->
  148. <!--<div class="selected-invite-person">-->
  149. <!--<ion-list class="rj-list">-->
  150. <!--<ion-item class="rj-item" ng-repeat="userItem in releaseToWhoList track by $index">-->
  151. <!--<div class="rj-contacts-pic">-->
  152. <!--<img ng-src={{userItem.photo|imgfilter}} onerror="javascript:this.src='./img/admin_picter.jpg';">-->
  153. <!--</div>-->
  154. <!--<h2>{{userItem.username}}</h2>-->
  155. <!--<div class="selected-people" ng-click="deleteSelectedPerson(userItem.userid,$index)">-->
  156. <!--<i class="icon ion-close-round"></i>-->
  157. <!--</div>-->
  158. <!--</ion-item>-->
  159. <!--</ion-list>-->
  160. <!--</div>-->
  161. <!--</div>-->
  162. <br>
  163. <br>
  164. <br>
  165. <br>
  166. <br>
  167. <br>
  168. </ion-content>
  169. <div ng-if="isWechat" ng-show="showMessage" class="container">
  170. <span class="message-box">{{messageTitle}}</span>
  171. </div>
  172. <div class="submit-section button-fixed">
  173. <div>
  174. <!--<button ng-click="submitForm()" ng-class="{'submit-button':true,'sbg-blue':isChecked}">提交认证</button>-->
  175. <button class="submit-button sbg-blue" ng-class="{'submit-button2':activePage!=0}" ng-show="activePage!=0"
  176. ng-click="goToPrePage()">上 一 步</button>
  177. <button class="submit-button sbg-blue" ng-class="{'submit-button2':activePage!=0}" ng-show="activePage!=2"
  178. ng-click="goToNextPage()">下 一 步</button>
  179. <button class="submit-button sbg-blue" ng-class="{'submit-button2':activePage!=0}" ng-show="activePage==2"
  180. ng-click="submitActivities()">发 布</button>
  181. </div>
  182. </div>
  183. <div class="time-picker-mask" ng-show="showTimePicker">
  184. <div class="time-picker-box">
  185. <div class="time-picker-box-title">选择时间</div>
  186. <div>
  187. <div class="time-picker-section">
  188. <div>时</div>
  189. <select ng-model="selectedHour">
  190. <option ng-repeat="hour in hours" value="{{hour}}" ng-bind="hour"></option>
  191. </select>
  192. </div>
  193. <div class="time-picker-section">
  194. <div>分</div>
  195. <select ng-model="selectedMinute">
  196. <option ng-repeat="second in minutes" value="{{second}}" ng-bind="second"></option>
  197. </select>
  198. </div>
  199. </div>
  200. <div>
  201. <button class="submit-button sbg-blue submit-button3" ng-click="getTime()">确定</button>
  202. <button class="submit-button sbg-blue submit-button3" ng-click="getNowTime()">现在</button>
  203. <button class="submit-button sbg-blue submit-button3" ng-click="clearTime()">清空</button>
  204. </div>
  205. </div>
  206. </div>
  207. </ion-view>
  208. <style>
  209. .checkbox input,
  210. .checkbox-icon {
  211. opacity: 1 !important;
  212. }
  213. </style>