edit.htm 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>编辑模板</title>
  6. <link rel="stylesheet" href="/www/css/diy.css">
  7. <link rel="stylesheet" href="/www/css/font.css">
  8. </head>
  9. <input value="${diy.id!}" type="hidden" id="diyId"/>
  10. <input value="${bottle.img_url!}" type="hidden" id="bottle_img_url"/>
  11. <input value="${bottle.id!}" type="hidden" id="bottle_id"/>
  12. <div class="diy_header">
  13. <div class="diy_header_container cleader">
  14. <a href="/admin/diy" class="left_nav">
  15. <span class="goBack_diy"><i class="iconfont">&#xe61a;</i>返回模板列表</span>
  16. </a>
  17. <div class="diy_header_right">
  18. <a href="javascript:void(0);" class="btn Btn--block" id="diy_save_diy_btn">保存设计</a>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="diy_main">
  23. <div class="diy_main_left_nav">
  24. <h2 class="title">功能</h2>
  25. <div class="diy_admin_base">
  26. <div class="diy_admin_object_item" id="add_text_btn">
  27. <i class="iconfont">&#xe61b;</i>
  28. <span>添加文字</span>
  29. </div>
  30. <div class="diy_admin_object_item" id="file_input">
  31. <i class="iconfont">&#xe60f;</i>
  32. <span>上传图片</span>
  33. <form enctype="multipart/form-data" method="post" id="diy_bg_img_form">
  34. <input type="file" name="image" id="diy_bg_img_file" />
  35. </form>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="diy_main_content">
  40. <div class="diy_canvas_wrap">
  41. <canvas id="diy"></canvas>
  42. </div>
  43. <!-- 顶部功能区 -->
  44. <div class="diy_top_gg" id="editor-panel">
  45. <div class="diy_top_gg_content editor-panel">
  46. <div class="left">
  47. <div class="color-span_wrap diy_top_nav_item">
  48. <div class="btn color-span">
  49. <i style="background: rgb(0, 0, 0);"></i>
  50. </div>
  51. <!-- 颜色面部 -->
  52. <div class="drop">
  53. <div class="scrollarea area do-nicescroll">
  54. <div class="content clearfix" id="djsy_text_color_panel_content"></div>
  55. </div>
  56. </div>
  57. <div class="drop-arrow"></div>
  58. </div>
  59. <div class='font-panel-new'>
  60. <div class="font-panel-line"></div>
  61. <div class="font-panel-object">
  62. <div class="select-drop clearfix font-name-list diy_top_nav_item">
  63. <div class="select-drop-default">
  64. <i class="pull-right icon-12" style="display: block;"></i>
  65. <span id="showFont">微软雅黑</span>
  66. </div>
  67. <div class="drop font-drop">
  68. <div class="scrollarea area do-nicescroll">
  69. <div class="scrollarea-content content">
  70. <ul class="ul-no-style" id="changeFont">
  71. <li data-val="微软雅黑">
  72. <div class="wrya">微软雅黑</div>
  73. </li>
  74. <li data-val="宋体">
  75. <div class="songti">宋体</div>
  76. </li>
  77. <li data-val="黑体 ">
  78. <div class="heiti">黑体</div>
  79. </li>
  80. <li data-val="方正黑体简体" class="">
  81. <div class="fz-hj">方正黑体简体</div>
  82. </li>
  83. <li data-val="Aa夜茴体" class="">
  84. <div class="yht">Aa夜茴体</div>
  85. </li>
  86. <li data-val="思源黑体 CN ExtraLight">
  87. <div class="sy-ht">思源黑体 CN ExtraLight</div>
  88. </li>
  89. <li data-val="思源黑体超粗" class="active">
  90. <div class="sy-ht-cu">思源黑体超粗</div>
  91. </li>
  92. </ul>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="drop-arrow"></div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="diy_canvas_gongnong">
  104. <div class="diy_canvas_gongnong_content">
  105. <a href="javascript:void(0);" id="diy_del_object">删除</a>
  106. <a href="javascript:void(0);" id="diy_clone_object">复制</a>
  107. <a href="javascript:void(0);">
  108. <span>层级</span>
  109. <div class="click_show" id="view_ward">
  110. <span class="click_show_item" data-key="0">上一层</span>
  111. <span class="click_show_item" data-key="1">下一层</span>
  112. <span class="click_show_item" data-key="2">置顶</span>
  113. <span class="click_show_item" data-key="3">置底</span>
  114. </div>
  115. </a>
  116. <a href="javascript:void(0);" id="diy_resize">自适应屏幕</a>
  117. <a href="javascript:void(0);" id="diy_preview">预览</a>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="diy_main_right_nav">
  122. <div class="diy_choose_color_wrap">
  123. <div>
  124. <select class="FormControl" id="diy_color_select"></select>
  125. </div>
  126. <div class="diy_color_bottom_wrap diy_Material do-nicescroll">
  127. <div class="diy_color_bottom_content clearfix" id="diy_box_content"></div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="GlobalModalsWrapper" id="update_diy">
  133. <div class="tanchu_Modal">
  134. <div class="tanchu_Modal_content">
  135. <form class="Modal_form" id="form_data_update_diy">
  136. <div class="Modal_form_div">
  137. <div class="ModalHeader">
  138. <h2 class="ModalTitle">填写模板基本信息</h2>
  139. </div>
  140. <div class="ModalBody">
  141. <div class="text"><span>模板名字</span></div>
  142. <div class="ModalBody_input_wrap">
  143. <div class="c">
  144. <input type="text" id="diy_title" name="title" class="form_input" />
  145. </div>
  146. </div>
  147. <div class="text"><span>模板简介</span></div>
  148. <div class="ModalBody_input_wrap">
  149. <div class="c">
  150. <input type="text" id="diy_remark" name="remark" class="form_input" />
  151. </div>
  152. </div>
  153. <div class="text"><span>使用人数</span></div>
  154. <div class="ModalBody_input_wrap">
  155. <div class="c">
  156. <input type="number" id="use_number" name="use_number" class="form_input" />
  157. </div>
  158. </div>
  159. <div class="category_list" id="category_list">
  160. </div>
  161. </div>
  162. <div class="ModalFooter">
  163. <div class="ModalFooter_content">
  164. <div class="ModalFooter_btn_item"></div>
  165. <div class="ModalFooter_btn_item">
  166. <button type="button" id="btn_update_diy" class="btn Btn--block">保存</button>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </form>
  172. </div>
  173. <div class="tanchu_bg"></div>
  174. </div>
  175. </div>
  176. <!-- 选择板式 -->
  177. <div class="GlobalModalsWrapper" style="display: none;" id="plate_input">
  178. <div class="tanchu_Modal_content">
  179. <form class="Modal_form" id="form_data_update_diy">
  180. <div class="Modal_form_div">
  181. <div class="ModalHeader">
  182. <h2 class="ModalTitle">填写板式尺寸</h2>
  183. </div>
  184. <div class="ModalBody">
  185. <div class="banshi_content">
  186. <div class="banshi_item">
  187. <div class="text"><span>宽</span></div>
  188. <div class="ModalBody_input_wrap">
  189. <div class="c">
  190. <input type="number" value="47" id="plate_x" class="form_input" />
  191. <span>mm</span>
  192. </div>
  193. </div>
  194. </div>
  195. <div class="banshi_item">
  196. <div class="text"><span>高</span></div>
  197. <div class="ModalBody_input_wrap">
  198. <div class="c">
  199. <input type="number" value="118" id="plate_y" class="form_input" />
  200. <span>mm</span>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. <div class="ModalFooter">
  207. <div class="ModalFooter_content">
  208. <div class="ModalFooter_btn_item"></div>
  209. <div class="ModalFooter_btn_item">
  210. <button type="button" id="save_plate_btn" class="btn Btn--block">保存</button>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </form>
  216. </div>
  217. <div class="tanchu_bg"></div>
  218. </div>
  219. <!--预览图 -->
  220. <div class="GlobalModalsWrapper" style="display: none;" id="previewCanvas">
  221. <div class="tanchu_Modal_content">
  222. <div class="Modal_form Modal_form_preview">
  223. <div class="Modal_form_div">
  224. <div class="ModalHeader">
  225. <h2 class="ModalTitle">效果预览</h2>
  226. <div class="close_modal">
  227. <img src="/admin/images/close_icon.png" />
  228. </div>
  229. </div>
  230. <div class="ModalBody">
  231. <div class="previewImgWrap" id="previewImgWrap"></div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. <div class="tanchu_bg"></div>
  237. </div>
  238. <img src="/www/image/xz.png" id="djsy_rotate"/>
  239. <script type="text/javascript" src="/www/js/fabric/dist/fabric.js"></script>
  240. <script type="text/javascript" src="/admin/js/jquery.min.js"></script>
  241. <script type="text/javascript" src="/admin/js/jquery.nicescroll.min.js"></script>
  242. <script type="text/javascript" src="/admin/js/util.js"></script>
  243. <script type="text/javascript" src="/admin/js/sdzAjax.js"></script>
  244. <script type="text/javascript" src="/admin/js/adminDiy.js"></script>
  245. </body>
  246. </html>