_template_edit.html 143 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145
  1. <script type="text/html" id="tpl_navs">
  2. <nav class="btn btn-link" data-id="page"><i class="fa fa-cog"></i>页面设置</nav>
  3. <%each initnav as nav %>
  4. <nav class="btn btn-link <%if nav.type==type%>special<%/if%>" data-id="<%nav.id%>"><i class="fa fa-plus"></i> <%nav.name%></nav>
  5. <%/each%>
  6. </script>
  7. <script type="text/html" id="edit-del">
  8. <div class="btn-edit-del">
  9. <div class="btn-edit">编辑</div>
  10. <div class="btn-del">删除</div>
  11. </div>
  12. </script>
  13. <script type="text/html" id="tpl_edit_page_mod">
  14. <div class="form-group">
  15. <div class="col-sm-2 control-label">模块名称</div>
  16. <div class="col-sm-10">
  17. <input class="form-control input-sm diy-bind" data-bind="name" data-placeholder="请输入名称" placeholder="请输入名称" value="<%name%>" />
  18. </div>
  19. </div>
  20. </script>
  21. <script type="text/html" id="tpl_edit_page">
  22. <div class="form-group">
  23. <div class="col-sm-2 control-label">页面名称</div>
  24. <div class="col-sm-10">
  25. <input class="form-control input-sm diy-bind" data-bind="name" data-placeholder="请输入名称" placeholder="请输入名称" value="<%page.name%>" />
  26. <div class="help-block">注意:页面名称是便于后台查找,页面标题是手机端标题。</div>
  27. </div>
  28. </div>
  29. <%if page.type!=5 && page.type!=7 && page.type!=8%>
  30. <div class="form-group">
  31. <div class="col-sm-2 control-label">页面标题</div>
  32. <div class="col-sm-10">
  33. <input class="form-control input-sm diy-bind" data-bind="title" data-placeholder="请输入标题" placeholder="请输入标题" value="<%page.title%>" />
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <div class="col-sm-2 control-label">关键字</div>
  38. <div class="col-sm-10">
  39. <input class="form-control input-sm diy-bind" data-bind="keyword" data-placeholder="" placeholder="请输入标题" value="<%page.keyword%>" />
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <div class="col-sm-2 control-label">页面介绍</div>
  44. <div class="col-sm-10">
  45. <textarea class="form-control richtext diy-bind" cols="70" rows="5" placeholder="请输入页面介绍" data-bind="desc" data-placeholder=""><%page.desc%></textarea>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <div class="col-sm-2 control-label">封面图</div>
  50. <div class="col-sm-10">
  51. <div class="input-group">
  52. <input class="form-control input-sm diy-bind" data-bind="icon" data-placeholder="" placeholder="" value="<%page.icon%>" id="iconsrc" />
  53. <span data-input="#iconsrc" data-img="#iconimg" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
  54. </div>
  55. <div class="input-group " style="margin-top:.5em;">
  56. <img src="<%imgsrc page.icon%>" onerror="this.src='/static/images/nopic.png';" class="img-responsive img-thumbnail" width="150" id="iconimg">
  57. <em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="$('#iconsrc').val('').trigger('change');$(this).prev().attr('src', '')">×</em>
  58. </div>
  59. </div>
  60. </div>
  61. <%/if%>
  62. <div class="form-group">
  63. <div class="col-sm-2 control-label">背景颜色</div>
  64. <div class="col-sm-4">
  65. <div class="input-group input-group-sm">
  66. <input class="form-control input-sm diy-bind color" data-bind="background" value="<%page.background%>" type="color" />
  67. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#f3f3f3').trigger('propertychange')">重置</span>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="line"></div>
  72. <%if page.type!=5 && page.type!=8%>
  73. <div class="form-group">
  74. <div class="col-sm-2 control-label">底部菜单</div>
  75. <div class="col-sm-10">
  76. <select class="form-control input-sm diy-bind" data-bind="diymenu">
  77. <option value="-1"<%if page.diymenu=='-1'%>selected="selected"<%/if%>>不显示</option>
  78. <option value="0" <%if page.diymenu=='0'%>selected="selected"<%/if%>>系统默认</option>
  79. <%each diymenu as menu%>
  80. <option value="<%menu.id%>" <%if page.diymenu==menu.id%>selected="selected"<%/if%>><%menu.name%></option>
  81. <%/each%>
  82. </select>
  83. </div>
  84. </div>
  85. <%/if%>
  86. <div class="line"></div>
  87. <div class="form-group">
  88. <div class="col-sm-2 control-label">启动广告</div>
  89. <div class="col-sm-10">
  90. <select class="form-control input-sm diy-bind" data-bind="diyadv">
  91. <option value="0" <%if page.diyadv=='0'||!page.diyadv%>selected="selected"<%/if%>>不显示</option>
  92. <%each diyadvs as diyadv%>
  93. <option value="<%diyadv.id%>" <%if page.diyadv==diyadv.id%>selected="selected"<%/if%>><%diyadv.name%></option>
  94. <%/each%>
  95. </select>
  96. </div>
  97. </div>
  98. <%if page.type==1%>
  99. <div class="line"></div>
  100. <div class="form-group">
  101. <div class="col-sm-2 control-label">访问权限</div>
  102. <div class="col-sm-10">
  103. <label class="radio-inline"><input type="radio" name="visit" value="1" class="diy-bind" data-bind="visit" data-bind-init="true" <%if page.visit=='1'%>checked="checked"<%/if%> > 开启</label>
  104. <label class="radio-inline"><input type="radio" name="visit" value="0" class="diy-bind" data-bind="visit" data-bind-init="true" <%if page.visit=='0' || !page.visit%>checked="checked"<%/if%> > 不开启</label>
  105. <%if page.visit==1%>
  106. <div class="help-block">提示:请勾选有访问权限的等级</div>
  107. <%/if%>
  108. </div>
  109. </div>
  110. <%if page.visit==1%>
  111. <div class="form-group">
  112. <div class="col-sm-2 control-label">会员等级</div>
  113. <div class="col-sm-10">
  114. <%each levels.member as level%>
  115. <label class="checkbox-inline"><input type="checkbox" value="<%level.id%>" class="diy-bind" data-bind-child="visitlevel" data-bind="member" <%if inArray(page.visitlevel.member, level.id)%>checked="checked"<%/if%>> <%level.levelname%></label>
  116. <%/each%>
  117. </div>
  118. </div>
  119. <%if levels.commission%>
  120. <div class="form-group">
  121. <div class="col-sm-2 control-label">分销商等级</div>
  122. <div class="col-sm-10">
  123. <%each levels.commission as level%>
  124. <label class="checkbox-inline"><input type="checkbox" value="<%level.id%>" class="diy-bind" data-bind-child="visitlevel" data-bind="commission" <%if inArray(page.visitlevel.commission, level.id)%>checked="checked"<%/if%>> <%level.levelname%></label>
  125. <%/each%>
  126. </div>
  127. </div>
  128. <%/if%>
  129. <div class="form-group">
  130. <div class="col-sm-2 control-label">无权提示</div>
  131. <div class="col-sm-10">
  132. <div class="input-group">
  133. <span class="input-group-addon">标题</span>
  134. <input class="form-control input-sm diy-bind" data-bind-child="novisit" data-bind="title" data-placeholder="" placeholder="无权提示,请简单填写" value="<%page.novisit.title%>">
  135. </div>
  136. </div>
  137. </div>
  138. <div class="form-group">
  139. <div class="col-sm-2 control-label"></div>
  140. <div class="col-sm-10">
  141. <div class="input-group">
  142. <span class="input-group-addon">链接</span>
  143. <input class="form-control input-sm diy-bind" data-bind-child="novisit" data-bind="link" data-placeholder="" placeholder="确定跳转链接,不填则返回首页" value="<%page.novisit.link%>" id="noperm">
  144. <span data-input="#noperm" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
  145. </div>
  146. </div>
  147. </div>
  148. <%/if%>
  149. <%/if%>
  150. </script>
  151. <script type="text/html" id="tpl_edit_notice">
  152. <div class="form-group">
  153. <div class="col-sm-2 control-label">背景颜色</div>
  154. <div class="col-sm-4">
  155. <div class="input-group input-group-sm">
  156. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  157. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  158. </div>
  159. </div>
  160. </div>
  161. <div class="form-group">
  162. <div class="col-sm-2 control-label">小图标颜色</div>
  163. <div class="col-sm-4">
  164. <div class="input-group input-group-sm">
  165. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="iconcolor" value="<%style.iconcolor%>" type="color" />
  166. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#fd5454').trigger('propertychange')">重置</span>
  167. </div>
  168. </div>
  169. </div>
  170. <div class="form-group">
  171. <div class="col-sm-2 control-label">公告颜色</div>
  172. <div class="col-sm-4">
  173. <div class="input-group input-group-sm">
  174. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="color" value="<%style.color%>" type="color" />
  175. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
  176. </div>
  177. </div>
  178. </div>
  179. <div class="form-group">
  180. <div class="col-sm-2 control-label">公告图标</div>
  181. <div class="col-sm-10">
  182. <div class="input-group">
  183. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="iconurl" value="<%params.iconurl%>" id="iconsrc" />
  184. <span data-input="#iconsrc" data-img="#iconimg" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
  185. </div>
  186. <div class="input-group " style="margin-top:.5em;">
  187. <img src="<%params.iconurl%>" onerror="this.src='/static/images/nopic.jpg';" class="img-responsive img-thumbnail" width="150" id="iconimg">
  188. <span class="close" style="position:absolute; top: -10px; right: -14px;" title="重置默认图片" onclick="$('#iconsrc').val('/static/images/hotdot.jpg').trigger('change');$(this).prev().attr('src', '../addons/Snailfish_shop/static/images/hotdot.jpg')">×</span>
  189. </div>
  190. </div>
  191. </div>
  192. <div class="form-group">
  193. <div class="col-sm-2 control-label">滚动速度</div>
  194. <div class="col-sm-10">
  195. <div class="form-group">
  196. <div class="slider col-sm-8" data-value="<%params.speed%>" data-min="1" data-max="10"></div>
  197. <div class="col-sm-4 control-labe count"><span><%params.speed%></span>秒</div>
  198. <input class="diy-bind input" data-bind-child="params" data-bind="speed" value="<%params.speed%>" type="hidden" />
  199. </div>
  200. </div>
  201. </div>
  202. <div class="form-group">
  203. <div class="col-sm-2 control-label">公告内容</div>
  204. <div class="col-sm-10">
  205. <label class="radio-inline"><input type="radio" name="noticedata" value="0" class="diy-bind" data-bind-child="params" data-bind="noticedata" data-bind-init="true" <%if params.noticedata=='0'%>checked="checked"<%/if%> > 读取商城公告</label>
  206. <label class="radio-inline"><input type="radio" name="noticedata" value="1" class="diy-bind" data-bind-child="params" data-bind="noticedata" data-bind-init="true" <%if params.noticedata=='1'%>checked="checked"<%/if%>> 手动填写</label>
  207. </div>
  208. </div>
  209. <%if params.noticedata=='1'%>
  210. <div class="form-items indent" data-min="1">
  211. <div class="inner" id="form-items">
  212. <%each data as child itemid %>
  213. <div class="item" data-id="<%itemid%>">
  214. <span class="btn-del" title="删除"></span>
  215. <div class="item-image drag-btn square">拖动排序</div>
  216. <div class="item-form">
  217. <div class="input-group" style="margin-bottom:0px; ">
  218. <span class="input-group-addon">标题</span>
  219. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="title" placeholder="请输入公告标题" value="<%child.title%>" />
  220. </div>
  221. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  222. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址(http://开头)" value="<%child.linkurl%>" />
  223. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  224. </div>
  225. </div>
  226. </div>
  227. <%/each%>
  228. </div>
  229. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  230. </div>
  231. <%/if%>
  232. <%if params.noticedata=='0'%>
  233. <div class="form-group">
  234. <div class="col-sm-2 control-label">读取数量</div>
  235. <div class="col-sm-10">
  236. <label class="radio-inline"><input type="radio" name="noticenum" value="5" class="diy-bind" data-bind-child="params" data-bind="noticenum" <%if params.noticenum=='5'%>checked="checked"<%/if%> > 5条</label>
  237. <label class="radio-inline"><input type="radio" name="noticenum" value="10" class="diy-bind" data-bind-child="params" data-bind="noticenum" <%if params.noticenum=='10'%>checked="checked"<%/if%>> 10条</label>
  238. <label class="radio-inline"><input type="radio" name="noticenum" value="20" class="diy-bind" data-bind-child="params" data-bind="noticenum" <%if params.noticenum=='20'%>checked="checked"<%/if%>> 20条</label>
  239. </div>
  240. </div>
  241. <%/if%>
  242. </script>
  243. <script type="text/html" id="tpl_edit_richtext">
  244. <div class="form-group">
  245. <div class="col-sm-2 control-label">背景颜色</div>
  246. <div class="col-sm-4">
  247. <div class="input-group input-group-sm">
  248. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  249. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  250. </div>
  251. </div>
  252. </div>
  253. <div class="form-group">
  254. <div class="col-sm-2 control-label">边距设置</div>
  255. <div class="col-sm-10">
  256. <div class="form-group">
  257. <div class="slider col-sm-8" data-value="<%style.padding%>" data-min="0" data-max="50"></div>
  258. <div class="col-sm-4 control-labe count"><span><%style.padding%></span>px(像素)</div>
  259. <input class="diy-bind input" data-bind-child="style" data-bind="padding" value="<%style.padding%>" type="hidden" />
  260. </div>
  261. </div>
  262. </div>
  263. <div class="form-richtext">
  264. <div id="rich"></div>
  265. <textarea id="richtext" class="diy-bind" data-bind-child="params" data-bind="content" style="display: none"></textarea>
  266. </div>
  267. <div class="alert alert-danger" style="margin-top: 10px; margin-bottom: 0;">注意:页面程序使用JS引擎,请勿将富文本里再填写JS代码块</div>
  268. </script>
  269. <script type="text/html" id="tpl_edit_banner">
  270. <div class="form-group">
  271. <div class="col-sm-2 control-label">按钮形状</div>
  272. <div class="col-sm-10">
  273. <label class="radio-inline"><input type="radio" name="dotstyle" value="rectangle" class="diy-bind" data-bind-child="style" data-bind="dotstyle" <%if style.dotstyle=='rectangle'%>checked="checked"<%/if%> > 长方形</label>
  274. <label class="radio-inline"><input type="radio" name="dotstyle" value="square" class="diy-bind" data-bind-child="style" data-bind="dotstyle" <%if style.dotstyle=='square'%>checked="checked"<%/if%>> 正方形</label>
  275. <label class="radio-inline"><input type="radio" name="dotstyle" value="round" class="diy-bind" data-bind-child="style" data-bind="dotstyle" <%if style.dotstyle=='round'%>checked="checked"<%/if%>> 圆形</label>
  276. </div>
  277. </div>
  278. <div class="form-group">
  279. <div class="col-sm-2 control-label">按钮位置</div>
  280. <div class="col-sm-10">
  281. <label class="radio-inline"><input type="radio" name="dotalign" value="left" class="diy-bind" data-bind-child="style" data-bind="dotalign" <%if style.dotalign=='left'%>checked="checked"<%/if%> > 居左</label>
  282. <label class="radio-inline"><input type="radio" name="dotalign" value="center" class="diy-bind" data-bind-child="style" data-bind="dotalign" <%if style.dotalign=='center'%>checked="checked"<%/if%>> 居中</label>
  283. <label class="radio-inline"><input type="radio" name="dotalign" value="right" class="diy-bind" data-bind-child="style" data-bind="dotalign" <%if style.dotalign=='right'%>checked="checked"<%/if%>> 居右</label>
  284. </div>
  285. </div>
  286. <div class="form-group">
  287. <div class="col-sm-2 control-label">按钮颜色</div>
  288. <div class="col-sm-4">
  289. <div class="input-group input-group-sm">
  290. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  291. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  292. </div>
  293. </div>
  294. </div>
  295. <div class="form-group">
  296. <div class="col-sm-2 control-label">按钮左右边距</div>
  297. <div class="col-sm-10">
  298. <div class="form-group">
  299. <div class="slider col-sm-8" data-value="<%style.leftright%>" data-min="5" data-max="50"></div>
  300. <div class="col-sm-4 control-labe count"><span><%style.leftright%></span>px(像素)</div>
  301. <input class="diy-bind input" data-bind-child="style" data-bind="leftright" value="<%style.leftright%>" type="hidden" />
  302. </div>
  303. </div>
  304. </div>
  305. <div class="form-group">
  306. <div class="col-sm-2 control-label">按钮底部边距</div>
  307. <div class="col-sm-10">
  308. <div class="form-group">
  309. <div class="slider col-sm-8" data-value="<%style.bottom%>" data-min="5" data-max="30"></div>
  310. <div class="col-sm-4 control-labe count"><span><%style.bottom%></span>px(像素)</div>
  311. <input class="diy-bind input" data-bind-child="style" data-bind="bottom" value="<%style.bottom%>" type="hidden" />
  312. </div>
  313. </div>
  314. </div>
  315. <div class="form-group">
  316. <div class="col-sm-2 control-label">透明度</div>
  317. <div class="col-sm-10">
  318. <div class="form-group">
  319. <div class="slider col-sm-8 " data-value="<%style.opacity%>" data-min="0" data-max="10" data-decimal="10"></div>
  320. <div class="col-sm-4 control-labe count"><span><%style.opacity%></span>(最大是1)</div>
  321. <input class="diy-bind input" data-bind-child="style" data-bind="opacity" value="<%style.opacity%>" type="hidden" />
  322. </div>
  323. </div>
  324. </div>
  325. <div class="form-items" data-min="1">
  326. <div class="inner" id="form-items">
  327. <%each data as child itemid %>
  328. <div class="item" data-id="<%itemid%>">
  329. <span class="btn-del" title="删除"></span>
  330. <div class="item-image">
  331. <img src="<%child.imgurl%>" onerror="this.src='/static/images/nopic.jpg';" id="pimg-<%itemid%>" />
  332. </div>
  333. <div class="item-form">
  334. <div class="input-group" style="margin-bottom:0px; ">
  335. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="imgurl" id="cimg-<%itemid%>" placeholder="请选择图片或输入图片地址" value="<%child.imgurl%>" />
  336. <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</span>
  337. </div>
  338. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  339. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>" />
  340. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  341. </div>
  342. </div>
  343. </div>
  344. <%/each%>
  345. </div>
  346. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  347. </div>
  348. </script>
  349. <script type="text/html" id="tpl_edit_title">
  350. <div class="form-group">
  351. <div class="col-sm-2 control-label">背景颜色</div>
  352. <div class="col-sm-4">
  353. <div class="input-group input-group-sm">
  354. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  355. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  356. </div>
  357. </div>
  358. </div>
  359. <div class="form-group">
  360. <div class="col-sm-2 control-label">文字颜色</div>
  361. <div class="col-sm-4">
  362. <div class="input-group input-group-sm">
  363. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="color" value="<%style.color%>" type="color" />
  364. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  365. </div>
  366. </div>
  367. </div>
  368. <div class="form-group">
  369. <div class="col-sm-2 control-label">标题文字</div>
  370. <div class="col-sm-10">
  371. <div class="input-group form-group" style="margin: 0;">
  372. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="title" data-placeholder="" placeholder="请输入标题" value="<%params.title%>" />
  373. <input class="diy-bind" type="hidden" data-bind-child="params" data-bind="icon" value="<%params.icon%>" id="titleicon" />
  374. <span data-input="#titleicon" data-toggle="selectIcon" class="input-group-addon btn btn-default">选择图标</span>
  375. <span class="input-group-addon btn btn-default" onclick="$(this).prev().prev().val('').trigger('change');">清除</span>
  376. </div>
  377. </div>
  378. </div>
  379. <div class="form-group">
  380. <div class="col-sm-2 control-label">标题链接</div>
  381. <div class="col-sm-10">
  382. <div class="input-group form-group" style="margin: 0;">
  383. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="link" data-placeholder="" placeholder="" value="<%params.link%>" id="titlelink"/>
  384. <span data-input="#titlelink" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
  385. </div>
  386. </div>
  387. </div>
  388. <div class="form-group">
  389. <div class="col-sm-2 control-label">对齐方向</div>
  390. <div class="col-sm-10">
  391. <label class="radio-inline"><input type="radio" name="textalign" value="left" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='left'%>checked="checked"<%/if%> > 居左</label>
  392. <label class="radio-inline"><input type="radio" name="textalign" value="center" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='center'%>checked="checked"<%/if%>> 居中</label>
  393. <label class="radio-inline"><input type="radio" name="textalign" value="right" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='right'%>checked="checked"<%/if%>> 居右</label>
  394. </div>
  395. </div>
  396. <div class="form-group">
  397. <div class="col-sm-2 control-label">文字大小</div>
  398. <div class="col-sm-10">
  399. <div class="form-group">
  400. <div class="slider col-sm-8" data-value="<%style.fontsize%>" data-min="9" data-max="30"></div>
  401. <div class="col-sm-4 control-labe count"><span><%style.fontsize%></span>px(像素)</div>
  402. <input class="diy-bind input" data-bind-child="style" data-bind="fontsize" value="<%style.fontsize%>" type="hidden" />
  403. </div>
  404. </div>
  405. </div>
  406. <div class="form-group">
  407. <div class="col-sm-2 control-label">上下边距</div>
  408. <div class="col-sm-10">
  409. <div class="form-group">
  410. <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="1" data-max="30"></div>
  411. <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
  412. <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
  413. </div>
  414. </div>
  415. </div>
  416. <div class="form-group">
  417. <div class="col-sm-2 control-label">左右边距</div>
  418. <div class="col-sm-10">
  419. <div class="form-group">
  420. <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="1" data-max="30"></div>
  421. <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
  422. <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
  423. </div>
  424. </div>
  425. </div>
  426. </script>
  427. <script type="text/html" id="tpl_edit_search">
  428. <div class="form-group">
  429. <div class="col-sm-2 control-label">搜索类型</div>
  430. <div class="col-sm-10">
  431. <label class="radio-inline"><input type="radio" name="goodstype" value="0" class="diy-bind" data-bind-child="params" data-bind="goodstype" <%if params.goodstype=='0'||!params.goodstype%>checked="checked"<%/if%>> 商城商品</label>
  432. <label class="radio-inline"><input type="radio" name="goodstype" value="1" class="diy-bind" data-bind-child="params" data-bind="goodstype" <%if params.goodstype=='1'%>checked="checked"<%/if%> > 拼团商品</label>
  433. </div>
  434. </div>
  435. <div class="line"></div>
  436. <div class="form-group">
  437. <div class="col-sm-2 control-label">背景颜色</div>
  438. <div class="col-sm-4">
  439. <div class="input-group input-group-sm">
  440. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  441. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#f1f1f2').trigger('propertychange')">重置</span>
  442. </div>
  443. </div>
  444. </div>
  445. <div class="form-group">
  446. <div class="col-sm-2 control-label">输入框背景</div>
  447. <div class="col-sm-4">
  448. <div class="input-group input-group-sm">
  449. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="inputbackground" value="<%style.inputbackground%>" type="color" />
  450. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  451. </div>
  452. </div>
  453. </div>
  454. <div class="form-group">
  455. <div class="col-sm-2 control-label">文字颜色</div>
  456. <div class="col-sm-4">
  457. <div class="input-group input-group-sm">
  458. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="color" value="<%style.color%>" type="color" />
  459. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#999999').trigger('propertychange')">重置</span>
  460. </div>
  461. </div>
  462. </div>
  463. <div class="form-group">
  464. <div class="col-sm-2 control-label">图标颜色</div>
  465. <div class="col-sm-4">
  466. <div class="input-group input-group-sm">
  467. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="iconcolor" value="<%style.iconcolor%>" type="color" />
  468. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#b4b4b4').trigger('propertychange')">重置</span>
  469. </div>
  470. </div>
  471. </div>
  472. <div class="form-group">
  473. <div class="col-sm-2 control-label">提示文字</div>
  474. <div class="col-sm-10">
  475. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="placeholder" data-placeholder="" placeholder="请输入提示文字(不填则不显示,最长20字)" value="<%params.placeholder%>" maxlength="20" />
  476. </div>
  477. </div>
  478. <div class="form-group">
  479. <div class="col-sm-2 control-label">上下边距</div>
  480. <div class="col-sm-10">
  481. <div class="form-group">
  482. <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="2" data-max="30"></div>
  483. <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
  484. <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
  485. </div>
  486. </div>
  487. </div>
  488. <div class="form-group">
  489. <div class="col-sm-2 control-label">左右边距</div>
  490. <div class="col-sm-10">
  491. <div class="form-group">
  492. <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="2" data-max="30"></div>
  493. <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
  494. <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
  495. </div>
  496. </div>
  497. </div>
  498. <div class="form-group">
  499. <div class="col-sm-2 control-label">搜索框样式</div>
  500. <div class="col-sm-10">
  501. <label class="radio-inline"><input type="radio" name="searchstyle" value="" class="diy-bind" data-bind-child="style" data-bind="searchstyle" <%if style.searchstyle==''%>checked="checked"<%/if%> > 方形</label>
  502. <label class="radio-inline"><input type="radio" name="searchstyle" value="radius" class="diy-bind" data-bind-child="style" data-bind="searchstyle" <%if style.searchstyle=='radius'%>checked="checked"<%/if%>> 圆角</label>
  503. <label class="radio-inline"><input type="radio" name="searchstyle" value="round" class="diy-bind" data-bind-child="style" data-bind="searchstyle" <%if style.searchstyle=='round'%>checked="checked"<%/if%>> 圆弧</label>
  504. </div>
  505. </div>
  506. <div class="form-group">
  507. <div class="col-sm-2 control-label">文字对齐</div>
  508. <div class="col-sm-10">
  509. <label class="radio-inline"><input type="radio" name="textalign" value="left" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='left'%>checked="checked"<%/if%> > 居左</label>
  510. <label class="radio-inline"><input type="radio" name="textalign" value="center" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='center'%>checked="checked"<%/if%>> 居中</label>
  511. <label class="radio-inline"><input type="radio" name="textalign" value="right" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='right'%>checked="checked"<%/if%>> 居右</label>
  512. </div>
  513. </div>
  514. </script>
  515. <script type="text/html" id="tpl_edit_line">
  516. <div class="form-group">
  517. <div class="col-sm-2 control-label">背景颜色</div>
  518. <div class="col-sm-4">
  519. <div class="input-group input-group-sm">
  520. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  521. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  522. </div>
  523. </div>
  524. </div>
  525. <div class="form-group">
  526. <div class="col-sm-2 control-label">线条颜色</div>
  527. <div class="col-sm-4">
  528. <div class="input-group input-group-sm">
  529. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="bordercolor" value="<%style.bordercolor%>" type="color" />
  530. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  531. </div>
  532. </div>
  533. </div>
  534. <div class="form-group">
  535. <div class="col-sm-2 control-label">线条样式</div>
  536. <div class="col-sm-10">
  537. <label class="radio-inline"><input type="radio" name="linestyle" value="solid" class="diy-bind" data-bind-child="style" data-bind="linestyle" <%if style.linestyle=='solid'%>checked="checked"<%/if%> > 实线</label>
  538. <label class="radio-inline"><input type="radio" name="linestyle" value="dashed" class="diy-bind" data-bind-child="style" data-bind="linestyle" <%if style.linestyle=='dashed'%>checked="checked"<%/if%>> 虚线(长方形)</label>
  539. <label class="radio-inline"><input type="radio" name="linestyle" value="dotted" class="diy-bind" data-bind-child="style" data-bind="linestyle" <%if style.linestyle=='dotted'%>checked="checked"<%/if%>> 虚线(正方形)</label>
  540. <label class="radio-inline"><input type="radio" name="linestyle" value="double" class="diy-bind" data-bind-child="style" data-bind="linestyle" <%if style.linestyle=='double'%>checked="checked"<%/if%>> 双实线</label>
  541. </div>
  542. </div>
  543. <div class="form-group">
  544. <div class="col-sm-2 control-label">线条高度</div>
  545. <div class="col-sm-10">
  546. <div class="form-group">
  547. <div class="slider col-sm-8" data-value="<%style.height%>" data-min="1" data-max="20"></div>
  548. <div class="col-sm-4 control-labe count"><span><%style.height%></span>px(像素)</div>
  549. <input class="diy-bind input" data-bind-child="style" data-bind="height" value="<%style.height%>" type="hidden" />
  550. </div>
  551. </div>
  552. </div>
  553. <div class="form-group">
  554. <div class="col-sm-2 control-label">上下边距</div>
  555. <div class="col-sm-10">
  556. <div class="form-group">
  557. <div class="slider col-sm-8" data-value="<%style.padding%>" data-min="1" data-max="30"></div>
  558. <div class="col-sm-4 control-labe count"><span><%style.height%></span>px(像素)</div>
  559. <input class="diy-bind input" data-bind-child="style" data-bind="padding" value="<%style.padding%>" type="hidden" />
  560. </div>
  561. </div>
  562. </div>
  563. </script>
  564. <script type="text/html" id="tpl_edit_blank">
  565. <div class="form-group">
  566. <div class="col-sm-2 control-label">背景颜色</div>
  567. <div class="col-sm-4">
  568. <div class="input-group input-group-sm">
  569. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  570. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  571. </div>
  572. </div>
  573. </div>
  574. <div class="form-group">
  575. <div class="col-sm-2 control-label">元素高度</div>
  576. <div class="col-sm-10">
  577. <div class="form-group">
  578. <div class="slider col-sm-8" data-value="<%style.height%>" data-min="1" data-max="200"></div>
  579. <div class="col-sm-4 control-labe count"><span><%style.height%></span>px(像素)</div>
  580. <input class="diy-bind input" data-bind-child="style" data-bind="height" value="<%style.height%>" type="hidden" />
  581. </div>
  582. </div>
  583. </div>
  584. </script>
  585. <script type="text/html" id="tpl_edit_menu">
  586. <div class="form-group">
  587. <div class="col-sm-2 control-label">背景颜色</div>
  588. <div class="col-sm-4">
  589. <div class="input-group">
  590. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  591. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  592. </div>
  593. </div>
  594. </div>
  595. <div class="form-group">
  596. <div class="col-sm-2 control-label">按钮形状</div>
  597. <div class="col-sm-10">
  598. <label class="radio-inline"><input type="radio" name="navstyle" value="" class="diy-bind" data-bind-child="style" data-bind="navstyle" <%if style.navstyle==''%>checked="checked"<%/if%>> 正方形</label>
  599. <label class="radio-inline"><input type="radio" name="navstyle" value="radius" class="diy-bind" data-bind-child="style" data-bind="navstyle" <%if style.navstyle=='radius'%>checked="checked"<%/if%>> 圆角</label>
  600. <label class="radio-inline"><input type="radio" name="navstyle" value="circle" class="diy-bind" data-bind-child="style" data-bind="navstyle" <%if style.navstyle=='circle'%>checked="checked"<%/if%>> 圆形</label>
  601. </div>
  602. </div>
  603. <div class="form-group">
  604. <div class="col-sm-2 control-label">显示方式</div>
  605. <div class="col-sm-10">
  606. <label class="radio-inline"><input type="radio" name="showtype" value="0" class="diy-bind" data-bind-child="style" data-bind="showtype" data-bind-init="true" <%if style.showtype=='0'||!style.showtype%>checked="checked"<%/if%>>单页显示</label>
  607. <label class="radio-inline"><input type="radio" name="showtype" value="1" class="diy-bind" data-bind-child="style" data-bind="showtype" data-bind-init="true" <%if style.showtype=='1'%>checked="checked"<%/if%>> 多页滑动显示</label>
  608. </div>
  609. </div>
  610. <div class="form-group">
  611. <div class="col-sm-2 control-label">每行数量</div>
  612. <div class="col-sm-10">
  613. <label class="radio-inline"><input type="radio" name="rownum" value="3" class="diy-bind" data-bind-child="style" data-bind="rownum" <%if style.rownum=='3'%>checked="checked"<%/if%>> 3个</label>
  614. <label class="radio-inline"><input type="radio" name="rownum" value="4" class="diy-bind" data-bind-child="style" data-bind="rownum" <%if style.rownum=='4'%>checked="checked"<%/if%>> 4个</label>
  615. <label class="radio-inline"><input type="radio" name="rownum" value="5" class="diy-bind" data-bind-child="style" data-bind="rownum" <%if style.rownum=='5'%>checked="checked"<%/if%>> 5个</label>
  616. </div>
  617. </div>
  618. <%if style.showtype>0%>
  619. <div class="form-group">
  620. <div class="col-sm-2 control-label">每页数量</div>
  621. <div class="col-sm-10">
  622. <div class="form-group">
  623. <div class="slider col-sm-8" data-value="<%style.pagenum||8%>" data-min="3" data-max="20"></div>
  624. <div class="col-sm-4 control-labe count"><span><%style.pagenum||8%></span>个</div>
  625. <input class="diy-bind input" data-bind-child="style" data-bind="pagenum" value="<%style.pagenum||8%>" type="hidden" />
  626. </div>
  627. <div class="help-block">超出设定数量自动分页</div>
  628. </div>
  629. </div>
  630. <div class="form-group">
  631. <div class="col-sm-2 control-label">显示分页</div>
  632. <div class="col-sm-10">
  633. <label class="radio-inline"><input type="radio" name="showdot" value="0" class="diy-bind" data-bind-child="style" data-bind="showdot" <%if style.showdot=='0'||!style.showdot%>checked="checked"<%/if%>> 隐藏</label>
  634. <label class="radio-inline"><input type="radio" name="showdot" value="1" class="diy-bind" data-bind-child="style" data-bind="showdot" <%if style.showdot=='1'%>checked="checked"<%/if%>> 显示</label>
  635. </div>
  636. </div>
  637. <%/if%>
  638. <div class="form-items" data-min="1">
  639. <div class="inner" id="form-items">
  640. <%each data as child itemid %>
  641. <div class="item" data-id="<%itemid%>">
  642. <span class="btn-del" title="删除"></span>
  643. <div class="item-image square">
  644. <div class="text" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</div>
  645. <img src="<%imgsrc child.imgurl%>" onerror="this.src='/static/images/nopic.jpg';" id="pimg-<%itemid%>" />
  646. <input type="hidden" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="imgurl" id="cimg-<%itemid%>" value="<%child.imgurl%>" />
  647. </div>
  648. <div class="item-form">
  649. <div class="input-group" style="margin-bottom:0px; ">
  650. <span class="input-group-addon">文字</span>
  651. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="text" placeholder="请选择图片或输入图片地址" value="<%child.text%>" style="width: 60%" />
  652. <input class="form-control input-sm diy-bind color " data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="color" value="<%child.color%>" type="color" style="width: 40%" />
  653. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置颜色</span>
  654. </div>
  655. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  656. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>" />
  657. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  658. </div>
  659. </div>
  660. </div>
  661. <%/each%>
  662. </div>
  663. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  664. </div>
  665. </script>
  666. <script type="text/html" id="tpl_edit_menu2">
  667. <div class="form-group">
  668. <div class="col-sm-2 control-label">顶部边距</div>
  669. <div class="col-sm-10">
  670. <div class="form-group">
  671. <div class="slider col-sm-8" data-value="<%style.margintop%>" data-min="0" data-max="50"></div>
  672. <div class="col-sm-4 control-labe count"><span><%style.margintop%></span>px(像素)</div>
  673. <input class="diy-bind input" data-bind-child="style" data-bind="margintop" value="<%style.margintop%>" type="hidden" />
  674. </div>
  675. </div>
  676. </div>
  677. <div class="form-group">
  678. <div class="col-sm-2 control-label">背景颜色</div>
  679. <div class="col-sm-4">
  680. <div class="input-group">
  681. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  682. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  683. </div>
  684. </div>
  685. </div>
  686. <div class="form-items indent" data-min="1" data-max="3">
  687. <div class="inner" id="form-items">
  688. <%each data as child itemid %>
  689. <div class="item" data-id="<%itemid%>">
  690. <span class="btn-del" title="删除"></span>
  691. <div class="item-body">
  692. <div class="item-image drag-btn square" style="height: 110px; line-height: 110px;">拖动排序</div>
  693. <div class="item-form">
  694. <div class="input-group" style="margin-bottom:0px; ">
  695. <input class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="iconclass" value="<%child.iconclass%>" type="hidden" id="iconclass-<%itemid%>" data-bind-init="true" />
  696. <span class="input-group-addon" style="width: 55px; border-right: 0;"><i class="icon <%child.iconclass%>" id="iconshow-<%itemid%>"></i> <%if child.iconclass==''%>无图标<%/if%></span>
  697. <span class="form-control input-sm btn btn-default" style="line-height: 28px; padding: 0 5px;" data-toggle="selectIcon" data-input="#iconclass-<%itemid%>" data-element="#iconshow-<%itemid%>">选择图标</span>
  698. <span class="input-group-addon btn btn-default" style="border-left: 0; line-height: 28px; padding: 0 5px;" onclick="$('#iconclass-<%itemid%>').val('').trigger('change');">清除</span>
  699. <span class="input-group-addon" style="border-left: 0; border-right: 0; padding: 0 8px;">图标颜色</span>
  700. <input type="color" class="form-control input-sm diy-bind color" value="<%child.iconcolor%>" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="iconcolor" style="width: 105px;">
  701. </div>
  702. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  703. <span class="input-group-addon">文字</span>
  704. <input type="text" class="form-control input-sm diy-bind" value="<%child.text%>" placeholder="留空则不显示" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="text" maxlength="20">
  705. <span class="input-group-addon" style="border-left: 0; border-right: 0;">文字颜色</span>
  706. <input type="color" class="form-control input-sm diy-bind color" value="<%child.textcolor%>" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="textcolor" style="width: 107px;">
  707. </div>
  708. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  709. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>">
  710. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  711. </div>
  712. </div>
  713. </div>
  714. </div>
  715. <%/each%>
  716. </div>
  717. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  718. </div>
  719. </script>
  720. <script type="text/html" id="tpl_edit_picture">
  721. <div class="form-group">
  722. <div class="col-sm-2 control-label">上下边距</div>
  723. <div class="col-sm-10">
  724. <div class="form-group">
  725. <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="0" data-max="50"></div>
  726. <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
  727. <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
  728. </div>
  729. </div>
  730. </div>
  731. <div class="form-group">
  732. <div class="col-sm-2 control-label">左右边距</div>
  733. <div class="col-sm-10">
  734. <div class="form-group">
  735. <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="0" data-max="50"></div>
  736. <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
  737. <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
  738. </div>
  739. </div>
  740. </div>
  741. <div class="form-group">
  742. <div class="col-sm-2 control-label">背景颜色</div>
  743. <div class="col-sm-4">
  744. <div class="input-group">
  745. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  746. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  747. </div>
  748. </div>
  749. </div>
  750. <div class="form-items indent" data-min="1">
  751. <div class="inner" id="form-items">
  752. <%each data as child itemid %>
  753. <div class="item" data-id="<%itemid%>">
  754. <span class="btn-del" title="删除"></span>
  755. <div class="item-image">
  756. <img src="<%child.imgurl%>" onerror="this.src='/static/images/nopic.jpg';" id="pimg-<%itemid%>" />
  757. </div>
  758. <div class="item-form">
  759. <div class="input-group" style="margin-bottom:0px; ">
  760. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="imgurl" id="cimg-<%itemid%>" placeholder="请选择图片或输入图片地址" value="<%child.imgurl%>" />
  761. <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</span>
  762. </div>
  763. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  764. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>" />
  765. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  766. </div>
  767. </div>
  768. </div>
  769. <%/each%>
  770. </div>
  771. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  772. </div>
  773. </script>
  774. <script type="text/html" id="tpl_edit_picturew">
  775. <div class="form-group">
  776. <div class="col-sm-2 control-label">上下边距</div>
  777. <div class="col-sm-10">
  778. <div class="form-group">
  779. <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="0" data-max="50"></div>
  780. <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
  781. <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
  782. </div>
  783. </div>
  784. </div>
  785. <div class="form-group">
  786. <div class="col-sm-2 control-label">左右边距</div>
  787. <div class="col-sm-10">
  788. <div class="form-group">
  789. <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="0" data-max="50"></div>
  790. <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
  791. <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
  792. </div>
  793. </div>
  794. </div>
  795. <div class="form-group">
  796. <div class="col-sm-2 control-label">背景颜色</div>
  797. <div class="col-sm-4">
  798. <div class="input-group">
  799. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  800. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
  801. </div>
  802. </div>
  803. </div>
  804. <div class="form-group">
  805. <div class="col-sm-2 control-label">布局方式</div>
  806. <div class="col-sm-10">
  807. <label class="radio-inline"><input type="radio" name="row" value="2" class="diy-bind" data-bind-child="params" data-bind="row" data-bind-init="true" <%if params.row=='2'%>checked="checked"<%/if%>> 堆积两列</label>
  808. <label class="radio-inline"><input type="radio" name="row" value="1" class="diy-bind" data-bind-child="params" data-bind="row" data-bind-init="true" <%if params.row=='1'%>checked="checked"<%/if%>> 橱窗样式</label>
  809. <label class="radio-inline"><input type="radio" name="row" value="3" class="diy-bind" data-bind-child="params" data-bind="row" data-bind-init="true" <%if params.row=='3'%>checked="checked"<%/if%> > 堆积三列</label>
  810. <label class="radio-inline"><input type="radio" name="row" value="4" class="diy-bind" data-bind-child="params" data-bind="row" data-bind-init="true" <%if params.row=='4'%>checked="checked"<%/if%> > 堆积四列</label>
  811. <%if params.row==1%>
  812. <div class="help-block">橱窗样式布局请参考 <a href="{:U('shop/cube')}" target="_blank">首页魔方</a>,单组最多显示四个,超出隐藏</div>
  813. <%/if%>
  814. <%if params.row>1%>
  815. <div class="help-block">图片大小不限制,但请确保所有图片的尺寸/比例相同。</div>
  816. <%/if%>
  817. </div>
  818. </div>
  819. <%if params.row>1%>
  820. <div class="form-group">
  821. <div class="col-sm-2 control-label">显示类型</div>
  822. <div class="col-sm-10">
  823. <label class="radio-inline"><input type="radio" name="showtype" value="0" class="diy-bind" data-bind-child="params" data-bind="showtype" data-bind-init="true" <%if params.showtype=='0'||!params.showtype%>checked="checked"<%/if%>> 普通模式</label>
  824. <label class="radio-inline"><input type="radio" name="showtype" value="1" class="diy-bind" data-bind-child="params" data-bind="showtype" data-bind-init="true" <%if params.showtype=='1'%>checked="checked"<%/if%> > 多页滑动模式</label>
  825. </div>
  826. </div>
  827. <%/if%>
  828. <%if params.row>1&&params.showtype==1%>
  829. <div class="form-group">
  830. <div class="col-sm-2 control-label">每页数量</div>
  831. <div class="col-sm-10">
  832. <div class="form-group">
  833. <div class="slider col-sm-8" data-value="<%style.pagenum||2%>" data-min="2" data-max="12"></div>
  834. <div class="col-sm-4 control-labe count"><span><%style.pagenum||2%></span>个</div>
  835. <input class="diy-bind input" data-bind-child="style" data-bind="pagenum" value="<%style.pagenum||2%>" type="hidden" />
  836. </div>
  837. <div class="help-block">超出设定数量自动分页</div>
  838. </div>
  839. </div>
  840. <div class="form-group">
  841. <div class="col-sm-2 control-label">显示分页</div>
  842. <div class="col-sm-10">
  843. <label class="radio-inline"><input type="radio" name="showdot" value="0" class="diy-bind" data-bind-child="style" data-bind="showdot" <%if style.showdot=='0'||!style.showdot%>checked="checked"<%/if%>> 隐藏</label>
  844. <label class="radio-inline"><input type="radio" name="showdot" value="1" class="diy-bind" data-bind-child="style" data-bind="showdot" <%if style.showdot=='1'%>checked="checked"<%/if%>> 显示</label>
  845. </div>
  846. </div>
  847. <div class="form-group">
  848. <div class="col-sm-2 control-label">分页按钮</div>
  849. <div class="col-sm-10">
  850. <label class="radio-inline"><input type="radio" name="showbtn" value="0" class="diy-bind" data-bind-child="style" data-bind="showbtn" <%if style.showbtn=='0'||!style.showbtn%>checked="checked"<%/if%>> 隐藏</label>
  851. <label class="radio-inline"><input type="radio" name="showbtn" value="1" class="diy-bind" data-bind-child="style" data-bind="showbtn" <%if style.showbtn=='1'%>checked="checked"<%/if%>> 显示</label>
  852. </div>
  853. </div>
  854. <%/if%>
  855. <div class="form-items indent" data-min="2" data-max="20">
  856. <div class="inner" id="form-items">
  857. <%each data as child itemid %>
  858. <div class="item" data-id="<%itemid%>">
  859. <span class="btn-del" title="删除"></span>
  860. <div class="item-image">
  861. <img src="<%child.imgurl%>" onerror="this.src='/static/images/nopic.jpg';" id="pimg-<%itemid%>" />
  862. </div>
  863. <div class="item-form">
  864. <div class="input-group" style="margin-bottom:0px; ">
  865. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="imgurl" id="cimg-<%itemid%>" placeholder="请选择图片或输入图片地址" value="<%child.imgurl%>" />
  866. <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</span>
  867. </div>
  868. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  869. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>" />
  870. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  871. </div>
  872. </div>
  873. </div>
  874. <%/each%>
  875. </div>
  876. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  877. </div>
  878. </script>
  879. <script type="text/html" id="tpl_edit_listmenu">
  880. <div class="form-group">
  881. <div class="col-sm-2 control-label">顶部边距</div>
  882. <div class="col-sm-10">
  883. <div class="form-group">
  884. <div class="slider col-sm-8" data-value="<%style.margintop%>" data-min="0" data-max="50"></div>
  885. <div class="col-sm-4 control-labe count"><span><%style.margintop%></span>px(像素)</div>
  886. <input class="diy-bind input" data-bind-child="style" data-bind="margintop" value="<%style.margintop%>" type="hidden" />
  887. </div>
  888. </div>
  889. </div>
  890. <div class="form-group">
  891. <div class="col-sm-2 control-label">背景颜色</div>
  892. <div class="col-sm-4">
  893. <div class="input-group input-group-sm">
  894. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  895. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  896. </div>
  897. </div>
  898. </div>
  899. <div class="form-group">
  900. <div class="col-sm-2 control-label">图标颜色</div>
  901. <div class="col-sm-4">
  902. <div class="input-group input-group-sm">
  903. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="iconcolor" value="<%style.iconcolor%>" type="color" />
  904. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#999999').trigger('propertychange')">重置</span>
  905. </div>
  906. </div>
  907. </div>
  908. <div class="form-group">
  909. <div class="col-sm-2 control-label">文字颜色</div>
  910. <div class="col-sm-4">
  911. <div class="input-group input-group-sm">
  912. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="textcolor" value="<%style.textcolor%>" type="color" />
  913. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#333333').trigger('propertychange')">重置</span>
  914. </div>
  915. </div>
  916. </div>
  917. <div class="form-group">
  918. <div class="col-sm-2 control-label">提示文字颜色</div>
  919. <div class="col-sm-4">
  920. <div class="input-group input-group-sm">
  921. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="remarkcolor" value="<%style.remarkcolor%>" type="color" />
  922. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#888888').trigger('propertychange')">重置</span>
  923. </div>
  924. </div>
  925. </div>
  926. <div class="line"></div>
  927. <div class="form-items indent" data-min="1" data-max="8">
  928. <div class="inner" id="form-items">
  929. <%each data as child itemid %>
  930. <div class="item" data-id="<%itemid%>">
  931. <span class="btn-del" title="删除"></span>
  932. <div class="item-body">
  933. <div class="item-image square">
  934. <span class="btn-del" title="清空图标" onclick="$('#cicon-<%itemid%>').val('').trigger('change')"></span>
  935. <div class="icon-main">
  936. <span class="icon <%child.iconclass%>" id="picon-<%itemid%>"></span>
  937. </div>
  938. <div class="text" data-toggle="selectIcon" data-input="#cicon-<%itemid%>" data-element="#picon-<%itemid%>">选择图标</div>
  939. <input type="hidden" id="cicon-<%itemid%>" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="iconclass" data-bind-init="true">
  940. </div>
  941. <div class="item-form">
  942. <div class="input-group" style="margin-bottom:0px; ">
  943. <span class="input-group-addon">文字</span>
  944. <input type="text" class="form-control input-sm diy-bind" value="<%child.text%>" placeholder="留空则不显示" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="text" maxlength="20">
  945. <span class="input-group-addon" style="border-left: 0; border-right: 0;">提示</span>
  946. <input type="text" class="form-control input-sm diy-bind" value="<%child.remark%>" placeholder="留空则不显示" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="remark" maxlength="6" style="width: 80px;">
  947. </div>
  948. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  949. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>">
  950. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  951. </div>
  952. </div>
  953. </div>
  954. </div>
  955. <%/each%>
  956. </div>
  957. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  958. </div>
  959. <div class="alert alert-danger" style="margin: 10px 10px 0;">提示:选择链接后,系统会根据你选择的链接判断是否显示。</div>
  960. </script>
  961. <script type="text/html" id="tpl_edit_icongroup">
  962. <div class="form-group">
  963. <div class="col-sm-2 control-label">每行数量</div>
  964. <div class="col-sm-10">
  965. <label class="radio-inline"><input type="radio" name="style" value="3" class="diy-bind" data-bind-child="params" data-bind="rownum" data-bind-init="true" <%if params.rownum=='3'%>checked="checked"<%/if%>> 3个</label>
  966. <label class="radio-inline"><input type="radio" name="style" value="4" class="diy-bind" data-bind-child="params" data-bind="rownum" data-bind-init="true" <%if params.rownum=='4' || params.style==''%>checked="checked"<%/if%>> 4个</label>
  967. <label class="radio-inline"><input type="radio" name="style" value="5" class="diy-bind" data-bind-child="params" data-bind="rownum" data-bind-init="true" <%if params.rownum=='5'%>checked="checked"<%/if%> > 5个</label>
  968. </div>
  969. </div>
  970. <div class="line"></div>
  971. <div class="form-group">
  972. <div class="col-sm-2 control-label">背景颜色</div>
  973. <div class="col-sm-4">
  974. <div class="input-group input-group-sm">
  975. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  976. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  977. </div>
  978. </div>
  979. </div>
  980. <div class="form-group">
  981. <div class="col-sm-2 control-label">图标颜色</div>
  982. <div class="col-sm-4">
  983. <div class="input-group input-group-sm">
  984. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="iconcolor" value="<%style.iconcolor%>" type="color" />
  985. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
  986. </div>
  987. </div>
  988. </div>
  989. <div class="form-group">
  990. <div class="col-sm-2 control-label">文字颜色</div>
  991. <div class="col-sm-4">
  992. <div class="input-group input-group-sm">
  993. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="textcolor" value="<%style.textcolor%>" type="color" />
  994. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#000000').trigger('propertychange')">重置</span>
  995. </div>
  996. </div>
  997. </div>
  998. <div class="form-group">
  999. <div class="col-sm-2 control-label">角标背景</div>
  1000. <div class="col-sm-4">
  1001. <div class="input-group input-group-sm">
  1002. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="dotcolor" value="<%style.dotcolor%>" type="color" />
  1003. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ff5555').trigger('propertychange')">重置</span>
  1004. </div>
  1005. </div>
  1006. </div>
  1007. <div class="line"></div>
  1008. <div class="form-group">
  1009. <div class="col-sm-2 control-label">边框颜色</div>
  1010. <div class="col-sm-4">
  1011. <div class="input-group input-group-sm">
  1012. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="bordercolor" value="<%style.bordercolor%>" type="color" />
  1013. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#fafafa').trigger('propertychange')">重置</span>
  1014. </div>
  1015. </div>
  1016. </div>
  1017. <div class="form-group">
  1018. <div class="col-sm-2 control-label">顶部边框</div>
  1019. <div class="col-sm-10">
  1020. <label class="radio-inline"><input type="radio" name="bordertop" value="0" class="diy-bind" data-bind-child="params" data-bind="bordertop" data-bind-init="true" <%if params.bordertop=='0' || params.bordertop==''%>checked="checked"<%/if%>> 不显示</label>
  1021. <label class="radio-inline"><input type="radio" name="bordertop" value="1" class="diy-bind" data-bind-child="params" data-bind="bordertop" data-bind-init="true" <%if params.bordertop=='1'%>checked="checked"<%/if%>> 显示</label>
  1022. </div>
  1023. </div>
  1024. <div class="form-group">
  1025. <div class="col-sm-2 control-label">底部边框</div>
  1026. <div class="col-sm-10">
  1027. <label class="radio-inline"><input type="radio" name="borderbottom" value="0" class="diy-bind" data-bind-child="params" data-bind="borderbottom" data-bind-init="true" <%if params.borderbottom=='0' || params.borderbottom==''%>checked="checked"<%/if%>> 不显示</label>
  1028. <label class="radio-inline"><input type="radio" name="borderbottom" value="1" class="diy-bind" data-bind-child="params" data-bind="borderbottom" data-bind-init="true" <%if params.borderbottom=='1'%>checked="checked"<%/if%>> 显示</label>
  1029. </div>
  1030. </div>
  1031. <div class="form-group">
  1032. <div class="col-sm-2 control-label">中间边框</div>
  1033. <div class="col-sm-10">
  1034. <label class="radio-inline"><input type="radio" name="border" value="0" class="diy-bind" data-bind-child="params" data-bind="border" data-bind-init="true" <%if params.border=='0' || params.border==''%>checked="checked"<%/if%>> 不显示</label>
  1035. <label class="radio-inline"><input type="radio" name="border" value="1" class="diy-bind" data-bind-child="params" data-bind="border" data-bind-init="true" <%if params.border=='1'%>checked="checked"<%/if%>> 显示</label>
  1036. </div>
  1037. </div>
  1038. <div class="line"></div>
  1039. <div class="form-items indent" data-min="3" data-max="10">
  1040. <div class="inner" id="form-items">
  1041. <%each data as child itemid %>
  1042. <div class="item" data-id="<%itemid%>">
  1043. <span class="btn-del" title="删除"></span>
  1044. <div class="item-body">
  1045. <div class="item-image square">
  1046. <div class="icon-main">
  1047. <span class="icon <%child.iconclass%>" id="picon-<%itemid%>"></span>
  1048. </div>
  1049. <div class="text" data-toggle="selectIcon" data-input="#cicon-<%itemid%>" data-element="#picon-<%itemid%>">选择图标</div>
  1050. <input type="hidden" id="cicon-<%itemid%>" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="iconclass" data-bind-init="true">
  1051. </div>
  1052. <div class="item-form">
  1053. <div class="input-group" style="margin-bottom:0px; ">
  1054. <span class="input-group-addon">文字</span>
  1055. <input type="text" class="form-control input-sm diy-bind" value="<%child.text%>" placeholder="留空则不显示" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="text" maxlength="20">
  1056. </div>
  1057. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  1058. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>">
  1059. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  1060. </div>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. <%/each%>
  1065. </div>
  1066. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  1067. </div>
  1068. <div class="alert alert-danger" style="margin: 10px 10px 0;">提示:选择链接后,系统会根据你选择的链接判断显示角标。</div>
  1069. </script>
  1070. <script type="text/html" id="tpl_edit_pictures">
  1071. <div class="form-group">
  1072. <div class="col-sm-2 control-label">背景颜色</div>
  1073. <div class="col-sm-4">
  1074. <div class="input-group input-group-sm">
  1075. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  1076. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  1077. </div>
  1078. </div>
  1079. </div>
  1080. <div class="form-group">
  1081. <div class="col-sm-2 control-label">上下间距</div>
  1082. <div class="col-sm-10">
  1083. <div class="form-group">
  1084. <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="0" data-max="50"></div>
  1085. <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
  1086. <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
  1087. </div>
  1088. </div>
  1089. </div>
  1090. <div class="form-group">
  1091. <div class="col-sm-2 control-label">左右间距</div>
  1092. <div class="col-sm-10">
  1093. <div class="form-group">
  1094. <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="0" data-max="50"></div>
  1095. <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
  1096. <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
  1097. </div>
  1098. </div>
  1099. </div>
  1100. <div class="form-group">
  1101. <div class="col-sm-2 control-label">显示方式</div>
  1102. <div class="col-sm-10">
  1103. <label class="radio-inline"><input type="radio" name="showtype" value="0" class="diy-bind" data-bind-child="params" data-bind="showtype" data-bind-init="true" <%if params.showtype=='0'||!params.showtype%>checked="checked"<%/if%>>单页显示</label>
  1104. <label class="radio-inline"><input type="radio" name="showtype" value="1" class="diy-bind" data-bind-child="params" data-bind="showtype" data-bind-init="true" <%if params.showtype=='1'%>checked="checked"<%/if%>> 单行滑动模式</label>
  1105. </div>
  1106. </div>
  1107. <%if params.showtype==1%>
  1108. <div class="form-group">
  1109. <div class="col-sm-2 control-label">分页按钮</div>
  1110. <div class="col-sm-10">
  1111. <label class="radio-inline"><input type="radio" name="showbtn" value="0" class="diy-bind" data-bind-child="params" data-bind="showbtn" data-bind-init="true" <%if params.showbtn=='0'||!params.showbtn%>checked="checked"<%/if%>>隐藏</label>
  1112. <label class="radio-inline"><input type="radio" name="showbtn" value="1" class="diy-bind" data-bind-child="params" data-bind="showbtn" data-bind-init="true" <%if params.showbtn=='1'%>checked="checked"<%/if%>> 显示</label>
  1113. </div>
  1114. </div>
  1115. <%/if%>
  1116. <div class="form-group">
  1117. <div class="col-sm-2 control-label">每行数量</div>
  1118. <div class="col-sm-10">
  1119. <label class="radio-inline"><input type="radio" name="rownum" value="1" class="diy-bind" data-bind-child="params" data-bind="rownum" <%if params.rownum=='1'%>checked="checked"<%/if%>> 1个</label>
  1120. <label class="radio-inline"><input type="radio" name="rownum" value="2" class="diy-bind" data-bind-child="params" data-bind="rownum" <%if params.rownum=='2'%>checked="checked"<%/if%>> 2个</label>
  1121. <label class="radio-inline"><input type="radio" name="rownum" value="3" class="diy-bind" data-bind-child="params" data-bind="rownum" <%if params.rownum=='3'%>checked="checked"<%/if%>> 3个</label>
  1122. <label class="radio-inline"><input type="radio" name="rownum" value="4" class="diy-bind" data-bind-child="params" data-bind="rownum" <%if params.rownum=='4'%>checked="checked"<%/if%>> 4个</label>
  1123. <label class="radio-inline"><input type="radio" name="rownum" value="5" class="diy-bind" data-bind-child="params" data-bind="rownum" <%if params.rownum=='5'%>checked="checked"<%/if%>> 5个</label>
  1124. </div>
  1125. </div>
  1126. <div class="line"></div>
  1127. <div class="form-group">
  1128. <div class="col-sm-2 control-label">上标题颜色</div>
  1129. <div class="col-sm-4">
  1130. <div class="input-group input-group-sm">
  1131. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="titlecolor" value="<%style.titlecolor%>" type="color" />
  1132. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  1133. </div>
  1134. </div>
  1135. </div>
  1136. <div class="form-group">
  1137. <div class="col-sm-2 control-label">下标题颜色</div>
  1138. <div class="col-sm-4">
  1139. <div class="input-group input-group-sm">
  1140. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="textcolor" value="<%style.textcolor%>" type="color" />
  1141. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
  1142. </div>
  1143. </div>
  1144. </div>
  1145. <div class="form-group">
  1146. <div class="col-sm-2 control-label">上标题对齐</div>
  1147. <div class="col-sm-10">
  1148. <label class="radio-inline"><input type="radio" name="titlealign" value="left" class="diy-bind" data-bind-child="style" data-bind="titlealign" <%if style.titlealign=='left'||!style.titlealign%>checked="checked"<%/if%>> 左对齐</label>
  1149. <label class="radio-inline"><input type="radio" name="titlealign" value="center" class="diy-bind" data-bind-child="style" data-bind="titlealign" <%if style.titlealign=='center'%>checked="checked"<%/if%>> 居中显示</label>
  1150. <label class="radio-inline"><input type="radio" name="titlealign" value="right" class="diy-bind" data-bind-child="style" data-bind="titlealign" <%if style.titlealign=='right'%>checked="checked"<%/if%>> 右对齐</label>
  1151. </div>
  1152. </div>
  1153. <div class="form-group">
  1154. <div class="col-sm-2 control-label">下标题对齐</div>
  1155. <div class="col-sm-10">
  1156. <label class="radio-inline"><input type="radio" name="textalign" value="left" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='left'||!style.titlealign%>checked="checked"<%/if%>> 左对齐</label>
  1157. <label class="radio-inline"><input type="radio" name="textalign" value="center" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='center'%>checked="checked"<%/if%>> 居中显示</label>
  1158. <label class="radio-inline"><input type="radio" name="textalign" value="right" class="diy-bind" data-bind-child="style" data-bind="textalign" <%if style.textalign=='right'%>checked="checked"<%/if%>> 右对齐</label>
  1159. </div>
  1160. </div>
  1161. <div class="form-items indent" data-min="1">
  1162. <div class="inner" id="form-items">
  1163. <%each data as child itemid %>
  1164. <div class="item" data-id="<%itemid%>">
  1165. <span class="btn-del" title="删除"></span>
  1166. <div class="item-image" style="height: 110px;">
  1167. <img src="<%imgsrc child.imgurl%>" id="pimg-<%itemid%>" style="height: 100%; width: auto;" />
  1168. </div>
  1169. <div class="item-form">
  1170. <div class="input-group" style="margin-bottom:0px; ">
  1171. <span class="input-group-addon">上标题</span>
  1172. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="title" placeholder="请输入上标题" value="<%child.title%>" />
  1173. <span class="input-group-addon" style="border-right: 0; border-left: 0;">下标题</span>
  1174. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="text" placeholder="请输入下标题" value="<%child.text%>" />
  1175. </div>
  1176. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  1177. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="imgurl" id="cimg-<%itemid%>" placeholder="请选择图片或输入图片地址" value="<%child.imgurl%>" />
  1178. <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</span>
  1179. </div>
  1180. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  1181. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>" />
  1182. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  1183. </div>
  1184. </div>
  1185. </div>
  1186. <%/each%>
  1187. </div>
  1188. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  1189. </div>
  1190. <div class="alert alert-primary" style="margin-top: 10px; margin-bottom: 0;">注意:如果上标题 、下标题为空则不显示</div>
  1191. </script>
  1192. <script type="text/html" id="tpl_edit_audio">
  1193. <div class="form-group">
  1194. <div class="col-sm-2 control-label">选择音频</div>
  1195. <div class="col-sm-10">
  1196. <div class="input-group input-group-sm">
  1197. <input class="form-control diy-bind" name="" placeholder="请点击右侧按钮选择音频" value="<%params.audiourl%>" data-bind-child="params" data-bind="audiourl" id="audiourl" data-bind-init="true" />
  1198. <span class="input-group-addon btn audio-player" style="border-left: 0;"><i class="fa fa-play"></i></span>
  1199. <audio src="<%imgsrc params.audiourl%>"></audio>
  1200. <span class="input-group-addon btn btn-default" data-toggle="selectAudio" data-input="#audiourl">选择音频</span>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. <div class="form-group">
  1205. <div class="col-sm-2 control-label">播放样式</div>
  1206. <div class="col-sm-10">
  1207. <label class="radio-inline"><input type="radio" name="playerstyle" value="0" class="diy-bind" data-bind-child="params" data-bind="playerstyle" data-bind-init="true" <%if params.playerstyle=='0'||!params.playerstyle%>checked="checked"<%/if%>> 音乐播放模式</label>
  1208. <label class="radio-inline"><input type="radio" name="playerstyle" value="1" class="diy-bind" data-bind-child="params" data-bind="playerstyle" data-bind-init="true" <%if params.playerstyle=='1'%>checked="checked"<%/if%>> 语音消息模式</label>
  1209. </div>
  1210. </div>
  1211. <%if params.playerstyle=='0'||!params.playerstyle%>
  1212. <div class="form-group">
  1213. <div class="col-sm-2 control-label">标题文字</div>
  1214. <div class="col-sm-10">
  1215. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="title" data-placeholder="" placeholder="请输入标题" value="<%params.title%>" />
  1216. </div>
  1217. </div>
  1218. <div class="form-group">
  1219. <div class="col-sm-2 control-label">副标题</div>
  1220. <div class="col-sm-10">
  1221. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="subtitle" data-placeholder="" placeholder="副标题,不填则不显示" value="<%params.subtitle%>" />
  1222. </div>
  1223. </div>
  1224. <%/if%>
  1225. <%if params.playerstyle==1%>
  1226. <div class="form-group">
  1227. <div class="col-sm-2 control-label">头像设置</div>
  1228. <div class="col-sm-10">
  1229. <label class="radio-inline"><input type="radio" name="headtype" value="0" class="diy-bind" data-bind-child="params" data-bind="headtype" data-bind-init="true" <%if params.headtype=='0'||!params.headtype%>checked="checked"<%/if%>> 自定义</label>
  1230. <label class="radio-inline"><input type="radio" name="headtype" value="1" class="diy-bind" data-bind-child="params" data-bind="headtype" data-bind-init="true" <%if params.headtype=='1'%>checked="checked"<%/if%>> 商城logo</label>
  1231. </div>
  1232. </div>
  1233. <%if params.headtype==0||!params.headtype%>
  1234. <div class="form-group">
  1235. <div class="col-sm-2 control-label">选择头像</div>
  1236. <div class="col-sm-10">
  1237. <div class="input-group input-group-sm">
  1238. <input class="form-control diy-bind" placeholder="请点击右侧按钮选择图片" value="<%params.headurl%>" name="headurl" data-bind-child="params" data-bind="headurl" id="headurl" />
  1239. <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#headurl">选择图片</span>
  1240. </div>
  1241. <div class="help-block">提示:如果自定义头像为空则也将显示商城logo</div>
  1242. </div>
  1243. </div>
  1244. <%/if%>
  1245. <div class="form-group">
  1246. <div class="col-sm-2 control-label">头像位置</div>
  1247. <div class="col-sm-10">
  1248. <label class="radio-inline"><input type="radio" name="headalign" value="left" class="diy-bind" data-bind-child="params" data-bind="headalign" <%if params.headalign=='left'||!params.headalign%>checked="checked"<%/if%>> 居左</label>
  1249. <label class="radio-inline"><input type="radio" name="headalign" value="right" class="diy-bind" data-bind-child="params" data-bind="headalign" <%if params.headalign=='right'%>checked="checked"<%/if%>> 居右</label>
  1250. </div>
  1251. </div>
  1252. <%/if%>
  1253. <div class="line"></div>
  1254. <div class="form-group">
  1255. <div class="col-sm-2 control-label">上下间距</div>
  1256. <div class="col-sm-10">
  1257. <div class="form-group">
  1258. <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="10" data-max="50"></div>
  1259. <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
  1260. <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
  1261. </div>
  1262. </div>
  1263. </div>
  1264. <div class="form-group">
  1265. <div class="col-sm-2 control-label">左右间距</div>
  1266. <div class="col-sm-10">
  1267. <div class="form-group">
  1268. <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="10" data-max="50"></div>
  1269. <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
  1270. <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
  1271. </div>
  1272. </div>
  1273. </div>
  1274. <div class="form-group">
  1275. <div class="col-sm-2 control-label">消息宽度</div>
  1276. <div class="col-sm-10">
  1277. <div class="form-group">
  1278. <div class="slider col-sm-8" data-value="<%style.width||'80'%>" data-min="80" data-max="180"></div>
  1279. <div class="col-sm-4 control-labe count"><span><%style.width||'80'%></span>px(像素)</div>
  1280. <input class="diy-bind input" data-bind-child="style" data-bind="width" value="<%style.width||'80'%>" type="hidden" />
  1281. </div>
  1282. <div class="help-block">提示:可根据消息的不同长度设置不同的宽度</div>
  1283. </div>
  1284. </div>
  1285. <%if params.playerstyle=='0'||!params.playerstyle%>
  1286. <div class="form-group">
  1287. <div class="col-sm-2 control-label">背景颜色</div>
  1288. <div class="col-sm-4">
  1289. <div class="input-group input-group-sm">
  1290. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  1291. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#f1f1f1').trigger('propertychange')">重置</span>
  1292. </div>
  1293. </div>
  1294. </div>
  1295. <div class="form-group">
  1296. <div class="col-sm-2 control-label">边框颜色</div>
  1297. <div class="col-sm-4">
  1298. <div class="input-group input-group-sm">
  1299. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="bordercolor" value="<%style.bordercolor%>" type="color" />
  1300. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ededed').trigger('propertychange')">重置</span>
  1301. </div>
  1302. </div>
  1303. </div>
  1304. <div class="form-group">
  1305. <div class="col-sm-2 control-label">标题颜色</div>
  1306. <div class="col-sm-4">
  1307. <div class="input-group input-group-sm">
  1308. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="textcolor" value="<%style.textcolor%>" type="color" />
  1309. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#333333').trigger('propertychange')">重置</span>
  1310. </div>
  1311. </div>
  1312. </div>
  1313. <div class="form-group">
  1314. <div class="col-sm-2 control-label">副标题颜色</div>
  1315. <div class="col-sm-4">
  1316. <div class="input-group input-group-sm">
  1317. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="subtitlecolor" value="<%style.subtitlecolor%>" type="color" />
  1318. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
  1319. </div>
  1320. </div>
  1321. </div>
  1322. <div class="form-group">
  1323. <div class="col-sm-2 control-label">时间颜色</div>
  1324. <div class="col-sm-4">
  1325. <div class="input-group input-group-sm">
  1326. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="timecolor" value="<%style.timecolor%>" type="color" />
  1327. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. <%/if%>
  1332. <div class="line"></div>
  1333. <div class="form-group" style="display: none;">
  1334. <div class="col-sm-2 control-label">自动播放</div>
  1335. <div class="col-sm-10">
  1336. <label class="radio-inline"><input type="radio" name="autoplay" value="0" class="diy-bind" data-bind-child="params" data-bind="autoplay" <%if params.autoplay=='0'||!params.autoplay%>checked="checked"<%/if%>> 关闭</label>
  1337. <label class="radio-inline"><input type="radio" name="autoplay" value="1" class="diy-bind" data-bind-child="params" data-bind="autoplay" <%if params.autoplay=='1'%>checked="checked"<%/if%>> 启用</label>
  1338. </div>
  1339. </div>
  1340. <div class="form-group">
  1341. <div class="col-sm-2 control-label">循环播放</div>
  1342. <div class="col-sm-10">
  1343. <label class="radio-inline"><input type="radio" name="loopplay" value="0" class="diy-bind" data-bind-child="params" data-bind="loopplay" <%if params.loopplay=='0'||!params.loopplay%>checked="checked"<%/if%>> 关闭</label>
  1344. <label class="radio-inline"><input type="radio" name="loopplay" value="1" class="diy-bind" data-bind-child="params" data-bind="loopplay" <%if params.loopplay=='1'%>checked="checked"<%/if%>> 启用</label>
  1345. </div>
  1346. </div>
  1347. <div class="form-group">
  1348. <div class="col-sm-2 control-label">播放设置</div>
  1349. <div class="col-sm-10">
  1350. <label class="radio-inline"><input type="radio" name="pausestop" value="0" class="diy-bind" data-bind-child="params" data-bind="pausestop" <%if params.pausestop=='0'||!params.pausestop%>checked="checked"<%/if%>> 暂停后再恢复播放时,继续播放</label>
  1351. <label class="radio-inline"><input type="radio" name="pausestop" value="1" class="diy-bind" data-bind-child="params" data-bind="pausestop" <%if params.pausestop=='1'%>checked="checked"<%/if%>> 暂停后再恢复播放时,从头播放</label>
  1352. </div>
  1353. </div>
  1354. <div class="alert alert-primary" style="margin-bottom: 0;">提示:编辑页面播放只提供播放/停止功能,更多动画、功能请在手机端查看</div>
  1355. </script>
  1356. <script type="text/html" id="tpl_edit_coupon">
  1357. <div class="form-group">
  1358. <div class="col-sm-2 control-label">上下边距</div>
  1359. <div class="col-sm-10">
  1360. <div class="form-group">
  1361. <div class="slider col-sm-8" data-value="<%style.margintop%>" data-min="0" data-max="50"></div>
  1362. <div class="col-sm-4 control-labe count"><span><%style.margintop%></span>px(像素)</div>
  1363. <input class="diy-bind input" data-bind-child="style" data-bind="margintop" value="<%style.margintop%>" type="hidden" />
  1364. </div>
  1365. </div>
  1366. </div>
  1367. <div class="form-group">
  1368. <div class="col-sm-2 control-label">左右边距</div>
  1369. <div class="col-sm-10">
  1370. <div class="form-group">
  1371. <div class="slider col-sm-8" data-value="<%style.marginleft%>" data-min="0" data-max="50"></div>
  1372. <div class="col-sm-4 control-labe count"><span><%style.marginleft%></span>px(像素)</div>
  1373. <input class="diy-bind input" data-bind-child="style" data-bind="marginleft" value="<%style.marginleft%>" type="hidden" />
  1374. </div>
  1375. </div>
  1376. </div>
  1377. <div class="form-group">
  1378. <div class="col-sm-2 control-label">背景颜色</div>
  1379. <div class="col-sm-4">
  1380. <div class="input-group input-group-sm">
  1381. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  1382. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  1383. </div>
  1384. </div>
  1385. </div>
  1386. <div class="form-group">
  1387. <div class="col-sm-2 control-label">选择样式</div>
  1388. <div class="col-sm-10">
  1389. <label class="radio-inline"><input type="radio" name="couponstyle" value="2" class="diy-bind" data-bind-child="params" data-bind="couponstyle" data-bind-init="true" <%if params.couponstyle=='2'%>checked="checked"<%/if%>> 每行2个</label>
  1390. <label class="radio-inline"><input type="radio" name="couponstyle" value="3" class="diy-bind" data-bind-child="params" data-bind="couponstyle" data-bind-init="true" <%if params.couponstyle=='3'%>checked="checked"<%/if%> > 每行3个</label>
  1391. </div>
  1392. </div>
  1393. <div class="line"></div>
  1394. <div class="form-items indent" data-min="1">
  1395. <div class="inner" id="form-items">
  1396. <%each data as child itemid %>
  1397. <div class="item" data-id="<%itemid%>">
  1398. <span class="btn-del" title="删除"></span>
  1399. <div class="item-image square drag-btn square" style="height: 110px; line-height: 110px;">拖动排序</div>
  1400. <div class="item-form">
  1401. <div class="input-group" style="margin-bottom:0px; ">
  1402. <span class="input-group-addon">优惠券</span>
  1403. <input class="form-control input-sm diy-bind" value="<%child.name||'未设置'%>" readonly="readonly" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="price" />
  1404. <span class="input-group-addon btn btn-default coupon-selector">选择</span>
  1405. </div>
  1406. <div class="input-group" style="margin-top:10px; margin-bottom:0px;">
  1407. <span class="input-group-addon">价值</span>
  1408. <input class="form-control input-sm diy-bind" value="<%child.price%>" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="price" readonly />
  1409. <span class="input-group-addon" style="border-left: 0; border-right: 0;">使用条件</span>
  1410. <input class="form-control input-sm diy-bind" value="<%child.desc%>" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="desc" readonly />
  1411. </div>
  1412. <div class="input-group " style="margin-top:10px; margin-bottom:0px; ">
  1413. <span class="input-group-addon">色调</span>
  1414. <span class="form-control input-sm" style="padding-top: 0;">
  1415. <label class="radio-inline">
  1416. <input type="radio" name="couponcolor-<%itemid%>" value="#55b5ff" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="couponcolor" <%if child.couponcolor=='#55b5ff'||!child.couponcolor%>checked<%/if%>> 蓝</label>
  1417. <label class="radio-inline">
  1418. <input type="radio" name="couponcolor-<%itemid%>" value="#ff5555" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="couponcolor" <%if child.couponcolor=='#ff5555'%>checked<%/if%>> 红</label>
  1419. <label class="radio-inline">
  1420. <input type="radio" name="couponcolor-<%itemid%>" value="#ff913f" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="couponcolor" <%if child.couponcolor=='#ff913f'%>checked<%/if%>> 橙</label>
  1421. <label class="radio-inline">
  1422. <input type="radio" name="couponcolor-<%itemid%>" value="#fd72d4" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="couponcolor" <%if child.couponcolor=='#fd72d4'%>checked<%/if%>> 粉</label>
  1423. </span>
  1424. <!--
  1425. <input class="form-control input-sm color diy-bind" value="<%child.textcolor%>" type="color" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="textcolor" />
  1426. <span class="input-group-addon" style="border-left: 0; border-right: 0;">边框</span>
  1427. <input class="form-control input-sm color diy-bind" value="<%child.bordercolor%>" type="color" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="bordercolor" />
  1428. <span class="input-group-addon" style="border-left: 0; border-right: 0;">背景</span>
  1429. <input class="form-control input-sm color diy-bind" value="<%child.background%>" type="color" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="background" />-->
  1430. </div>
  1431. </div>
  1432. </div>
  1433. <%/each%>
  1434. </div>
  1435. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  1436. </div>
  1437. </script>
  1438. <script type="text/html" id="tpl_edit_fixedsearch">
  1439. <div class="form-group">
  1440. <div class="col-sm-2 control-label">背景颜色</div>
  1441. <div class="col-sm-4">
  1442. <div class="input-group input-group-sm">
  1443. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  1444. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#000000').trigger('propertychange')">重置</span>
  1445. </div>
  1446. </div>
  1447. </div>
  1448. <div class="form-group">
  1449. <div class="col-sm-2 control-label">透明度</div>
  1450. <div class="col-sm-10">
  1451. <div class="form-group">
  1452. <div class="slider col-sm-8 " data-value="<%style.opacity%>" data-min="0" data-max="10" data-decimal="10"></div>
  1453. <div class="col-sm-4 control-labe count"><span><%style.opacity%></span>(最大是1)</div>
  1454. <input class="diy-bind input" data-bind-child="style" data-bind="opacity" value="<%style.opacity%>" type="hidden" />
  1455. </div>
  1456. </div>
  1457. </div>
  1458. <div class="line"></div>
  1459. <div class="form-group">
  1460. <div class="col-sm-2 control-label">左侧按钮</div>
  1461. <div class="col-sm-10">
  1462. <label class="radio-inline"><input type="radio" name="leftnav" value="0" class="diy-bind" data-bind-child="params" data-bind="leftnav" data-bind-init="true" <%if params.leftnav=='0'||!params.leftnav%>checked="checked"<%/if%>> 不显示</label>
  1463. <label class="radio-inline"><input type="radio" name="leftnav" value="1" class="diy-bind" data-bind-child="params" data-bind="leftnav" data-bind-init="true" <%if params.leftnav=='1'%>checked="checked"<%/if%> > 图标</label>
  1464. <label class="radio-inline"><input type="radio" name="leftnav" value="2" class="diy-bind" data-bind-child="params" data-bind="leftnav" data-bind-init="true" <%if params.leftnav=='2'%>checked="checked"<%/if%> > 图片</label>
  1465. </div>
  1466. </div>
  1467. <%if params.leftnav==1%>
  1468. <div class="form-group">
  1469. <div class="col-sm-2 control-label">图标设置</div>
  1470. <div class="col-sm-7">
  1471. <div class="input-group input-group-sm">
  1472. <span class="form-control" style="line-height: 28px; text-align: center; width: 40px;"><i class="icon <%params.leftnavicon||'icon-shop'%>" id="showleftnavicon"></i></span>
  1473. <span data-input="#leftnavicon" data-element="#showleftnavicon" data-toggle="selectIcon" class="input-group-addon btn btn-default">选择图标</span>
  1474. <input type="hidden" class="diy-bind" data-bind-child="params" data-bind="leftnavicon" value="<%params.leftnavicon%>" id="leftnavicon" />
  1475. <div class="input-group-addon" style="border-left: 0; border-right: 0;">图标颜色</div>
  1476. <input class="form-control color diy-bind" type="color" style="width: 80px;" data-bind-child="style" data-bind="leftnavcolor" value="<%style.leftnavcolor%>" />
  1477. </div>
  1478. </div>
  1479. </div>
  1480. <%/if%>
  1481. <%if params.leftnav==2%>
  1482. <div class="form-group">
  1483. <div class="col-sm-2 control-label">选择图片</div>
  1484. <div class="col-sm-10">
  1485. <div class="input-group">
  1486. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="leftnavimg" value="<%params.leftnavimg%>" id="leftnavimg" />
  1487. <span data-input="#leftnavimg" data-img="#showleftnavimg" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
  1488. </div>
  1489. <div class="input-group " style="margin-top:.5em;">
  1490. <img src="<%imgsrc params.leftnavimg%>" class="img-responsive img-thumbnail" style="height: 50px; background: #eee;" id="showleftnavimg">
  1491. <em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="$('#leftnavimg').val('').trigger('change');$(this).prev().attr('src', '')">×</em>
  1492. </div>
  1493. </div>
  1494. </div>
  1495. <%/if%>
  1496. <%if params.leftnav==1||params.leftnav==2%>
  1497. <div class="form-group">
  1498. <div class="col-sm-2 control-label">选择链接</div>
  1499. <div class="col-sm-10">
  1500. <div class="input-group input-group-sm">
  1501. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="leftnavlink" value="<%params.leftnavlink%>" id="leftnavlink" />
  1502. <span data-input="#leftnavlink" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
  1503. </div>
  1504. </div>
  1505. </div>
  1506. <%/if%>
  1507. <div class="line"></div>
  1508. <div class="form-group">
  1509. <div class="col-sm-2 control-label">右侧按钮</div>
  1510. <div class="col-sm-10">
  1511. <label class="radio-inline"><input type="radio" name="rightnav" value="0" class="diy-bind" data-bind-child="params" data-bind="rightnav" data-bind-init="true" <%if params.rightnav=='0'||!params.rightnav%>checked="checked"<%/if%>> 不显示</label>
  1512. <label class="radio-inline"><input type="radio" name="rightnav" value="1" class="diy-bind" data-bind-child="params" data-bind="rightnav" data-bind-init="true" <%if params.rightnav=='1'%>checked="checked"<%/if%> > 图标</label>
  1513. <label class="radio-inline"><input type="radio" name="rightnav" value="2" class="diy-bind" data-bind-child="params" data-bind="rightnav" data-bind-init="true" <%if params.rightnav=='2'%>checked="checked"<%/if%> > 图片</label>
  1514. </div>
  1515. </div>
  1516. <%if params.rightnav==1%>
  1517. <div class="form-group">
  1518. <div class="col-sm-2 control-label">选择图标</div>
  1519. <div class="col-sm-7">
  1520. <div class="input-group input-group-sm">
  1521. <span class="form-control" style="line-height: 28px; text-align: center; width: 40px;"><i class="icon <%params.rightnavicon||'icon-shop'%>" id="showrightnavicon"></i></span>
  1522. <span data-input="#rightnavicon" data-element="#showrightnavicon" data-toggle="selectIcon" class="input-group-addon btn btn-default">选择图标</span>
  1523. <input type="hidden" class="diy-bind" data-bind-child="params" data-bind="rightnavicon" value="<%params.rightnavicon%>" id="rightnavicon" />
  1524. <div class="input-group-addon" style="border-left: 0; border-right: 0;">图标颜色</div>
  1525. <input class="form-control color diy-bind" type="color" style="width: 80px;" data-bind-child="style" data-bind="rightnavcolor" value="<%style.rightnavcolor%>" />
  1526. </div>
  1527. </div>
  1528. </div>
  1529. <%/if%>
  1530. <%if params.rightnav==2%>
  1531. <div class="form-group">
  1532. <div class="col-sm-2 control-label">选择图片</div>
  1533. <div class="col-sm-10">
  1534. <div class="input-group">
  1535. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="rightnavimg" value="<%params.rightnavimg%>" id="rightnavimg" />
  1536. <span data-input="#rightnavimg" data-img="#showrightnavimg" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
  1537. </div>
  1538. <div class="input-group " style="margin-top:.5em;">
  1539. <img src="<%imgsrc params.rightnavimg%>" class="img-responsive img-thumbnail" style="height: 50px; background: #eee;" id="showrightnavimg">
  1540. <em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="$('#rightnavimg').val('').trigger('change');$(this).prev().attr('src', '')">×</em>
  1541. </div>
  1542. </div>
  1543. </div>
  1544. <%/if%>
  1545. <%if params.rightnav==1||params.rightnav==2%>
  1546. <div class="form-group">
  1547. <div class="col-sm-2 control-label">点击事件</div>
  1548. <div class="col-sm-10">
  1549. <label class="radio-inline"><input type="radio" name="rightnavclick" value="0" class="diy-bind" data-bind-child="params" data-bind="rightnavclick" data-bind-init="true" <%if params.rightnavclick=='0'||!params.rightnavclick%>checked="checked"<%/if%>> 跳转链接</label>
  1550. <label class="radio-inline"><input type="radio" name="rightnavclick" value="1" class="diy-bind" data-bind-child="params" data-bind="rightnavclick" data-bind-init="true" <%if params.rightnavclick=='1'%>checked="checked"<%/if%>> 提交搜索</label>
  1551. </div>
  1552. </div>
  1553. <%if params.rightnavclick=='0'||!params.rightnavclick%>
  1554. <div class="form-group">
  1555. <div class="col-sm-2 control-label">选择链接</div>
  1556. <div class="col-sm-10">
  1557. <div class="input-group input-group-sm">
  1558. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="rightnavlink" value="<%params.rightnavlink%>" id="rightnavlink" />
  1559. <span data-input="#rightnavlink" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
  1560. </div>
  1561. </div>
  1562. </div>
  1563. <%/if%>
  1564. <%/if%>
  1565. <div class="line"></div>
  1566. <div class="form-group">
  1567. <div class="col-sm-2 control-label">搜索框背景</div>
  1568. <div class="col-sm-4">
  1569. <div class="input-group input-group-sm">
  1570. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="searchbackground" value="<%style.searchbackground%>" type="color" />
  1571. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  1572. </div>
  1573. </div>
  1574. </div>
  1575. <div class="form-group">
  1576. <div class="col-sm-2 control-label">搜索文字颜色</div>
  1577. <div class="col-sm-10">
  1578. <div class="input-group input-group-sm" style="width: 127px;">
  1579. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="searchtextcolor" value="<%style.searchtextcolor%>" type="color" />
  1580. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
  1581. </div>
  1582. <div class="help-block">提示:此处是搜索文字颜色并不是提示文字颜色</div>
  1583. </div>
  1584. </div>
  1585. <div class="form-group">
  1586. <div class="col-sm-2 control-label">搜索框样式</div>
  1587. <div class="col-sm-10">
  1588. <label class="radio-inline"><input type="radio" name="searchstyle" value="" class="diy-bind" data-bind-child="params" data-bind="searchstyle"<%if params.searchstyle==''||!params.searchstyle%>checked="checked"<%/if%>> 直角</label>
  1589. <label class="radio-inline"><input type="radio" name="searchstyle" value="round" class="diy-bind" data-bind-child="params" data-bind="searchstyle"<%if params.searchstyle=='round'%>checked="checked"<%/if%> > 圆弧</label>
  1590. <label class="radio-inline"><input type="radio" name="searchstyle" value="circle" class="diy-bind" data-bind-child="params" data-bind="searchstyle" <%if params.searchstyle=='circle'%>checked="checked"<%/if%> > 圆角</label>
  1591. </div>
  1592. </div>
  1593. <div class="form-group">
  1594. <div class="col-sm-2 control-label">搜索提示文字</div>
  1595. <div class="col-sm-10">
  1596. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="placeholder" value="<%params.placeholder%>" data-placeholder="请输入关键字进行搜索" placeholder="请输入关键字进行搜索" />
  1597. </div>
  1598. </div>
  1599. <div class="alert alert-danger" style="margin-bottom: 0;">注意:由于搜索框固定在页面顶部,有可能遮挡底层元素,建议页面首个元素放置幻灯片等较高高度的元素。</div>
  1600. </script>
  1601. <script type="text/html" id="tpl_edit_tabbar">
  1602. <div class="alert alert-primary">提示:当访问页面链接等于选项卡中的链接时高亮, 选项卡个数超过三个自动滚动</div>
  1603. <div class="form-group">
  1604. <div class="col-sm-2 control-label">背景颜色</div>
  1605. <div class="col-sm-4">
  1606. <div class="input-group input-group-sm">
  1607. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color">
  1608. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  1609. </div>
  1610. </div>
  1611. <div class="col-sm-2 control-label">文字颜色</div>
  1612. <div class="col-sm-4">
  1613. <div class="input-group input-group-sm">
  1614. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="color" value="<%style.color%>" type="color">
  1615. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
  1616. </div>
  1617. </div>
  1618. </div>
  1619. <div class="form-group">
  1620. <div class="col-sm-2 control-label">激活背景颜色</div>
  1621. <div class="col-sm-4">
  1622. <div class="input-group input-group-sm">
  1623. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="activebackground" value="<%style.activebackground%>" type="color">
  1624. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
  1625. </div>
  1626. </div>
  1627. <div class="col-sm-2 control-label">激活文字颜色</div>
  1628. <div class="col-sm-4">
  1629. <div class="input-group input-group-sm">
  1630. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="activecolor" value="<%style.activecolor%>" type="color">
  1631. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ef4f4f').trigger('propertychange')">重置</span>
  1632. </div>
  1633. </div>
  1634. </div>
  1635. <div class="line"></div>
  1636. <div class="form-items indent" data-min="1" data-max="8">
  1637. <div class="inner" id="form-items">
  1638. <%each data as child itemid %>
  1639. <div class="item" data-id="<%itemid%>">
  1640. <span class="btn-del" title="删除"></span>
  1641. <div class="item-image square drag-btn square" style="height: 70px; line-height: 70px;">拖动排序</div>
  1642. <div class="item-form">
  1643. <div class="input-group" style="margin-bottom:0px; ">
  1644. <span class="input-group-addon">选项卡文字</span>
  1645. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="text" placeholder="请输入选项卡文字最大5字" value="<%child.text%>" maxlength="5" />
  1646. </div>
  1647. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  1648. <input type="text" class="form-control input-sm diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="linkurl" id="curl-<%itemid%>" placeholder="请选择链接或输入链接地址" value="<%child.linkurl%>" />
  1649. <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
  1650. </div>
  1651. </div>
  1652. </div>
  1653. <%/each%>
  1654. </div>
  1655. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  1656. </div>
  1657. </script>
  1658. <script type="text/html" id="tpl_edit_goods">
  1659. <div class="form-group">
  1660. <div class="col-sm-2 control-label">商品类型</div>
  1661. <div class="col-sm-10">
  1662. <label class="radio-inline"><input type="radio" name="goodstype" value="0" class="diy-bind" data-bind-child="params" data-bind="goodstype" data-bind-init="true" <%if params.goodstype=='0'||!params.goodstype%>checked="checked"<%/if%>> 商城商品</label>
  1663. <%if (merch==0||!merch)&&plugins.creditshop==1%>
  1664. <label class="radio-inline"><input type="radio" name="goodstype" value="1" class="diy-bind" data-bind-child="params" data-bind="goodstype" data-bind-init="true" <%if params.goodstype=='1'%>checked="checked"<%/if%> > 拼团商品</label>
  1665. <%/if%>
  1666. <div class="help-block text-danger">注意:选择好商品类型后尽量不要更改</div>
  1667. </div>
  1668. </div>
  1669. <div class="form-group">
  1670. <div class="col-sm-2 control-label">显示类型</div>
  1671. <div class="col-sm-10">
  1672. <label class="radio-inline"><input type="radio" name="goodsscroll" value="0" class="diy-bind" data-bind-child="params" data-bind="goodsscroll" data-bind-init="true" <%if params.goodsscroll=='0'||!params.goodsscroll%>checked="checked"<%/if%>> 普通模式</label>
  1673. <%if style.liststyle!=''%>
  1674. <label class="radio-inline"><input type="radio" name="goodsscroll" value="1" class="diy-bind" data-bind-child="params" data-bind="goodsscroll" data-bind-init="true" <%if params.goodsscroll=='1'%>checked="checked"<%/if%> > 单行滑动模式</label>
  1675. <%/if%>
  1676. </div>
  1677. </div>
  1678. <div class="form-group">
  1679. <div class="col-sm-2 control-label">列表样式</div>
  1680. <div class="col-sm-10">
  1681. <label class="radio-inline"><input type="radio" name="liststyle" value="block one" class="diy-bind" data-bind-child="style" data-bind="liststyle" data-bind-init="true" <%if style.liststyle=='block one'%>checked="checked"<%/if%> > 单列显示</label>
  1682. <label class="radio-inline"><input type="radio" name="liststyle" value="block" class="diy-bind" data-bind-child="style" data-bind="liststyle" data-bind-init="true" <%if style.liststyle=='block'%>checked="checked"<%/if%>> 双列显示</label>
  1683. <%if params.goodstype==0||!params.goodstype%>
  1684. <label class="radio-inline"><input type="radio" name="liststyle" value="block three" class="diy-bind" data-bind-child="style" data-bind="liststyle" data-bind-init="true" <%if style.liststyle=='block three'%>checked="checked"<%/if%>> 三列显示</label>
  1685. <%/if%>
  1686. <%if params.goodsscroll=='0'||!params.goodsscroll%>
  1687. <label class="radio-inline"><input type="radio" name="liststyle" value="" class="diy-bind" data-bind-child="style" data-bind="liststyle" data-bind-init="true" <%if style.liststyle==''%>checked="checked"<%/if%>> 列表显示</label>
  1688. <%/if%>
  1689. <%if style.liststyle=='block three' && params.goodstype!=1%>
  1690. <div class="help-block text-danger">提示:"三列显示商品"显示商品原价及销量可能会造成样式错乱</div>
  1691. <%/if%>
  1692. </div>
  1693. </div>
  1694. <div class="form-group">
  1695. <div class="col-sm-2 control-label">背景颜色</div>
  1696. <div class="col-sm-4">
  1697. <div class="input-group">
  1698. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
  1699. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#f3f3f3').trigger('propertychange')">重置</span>
  1700. </div>
  1701. </div>
  1702. </div>
  1703. <div class="line"></div>
  1704. <%if params.goodstype==1%>
  1705. <div class="form-group">
  1706. <div class="col-sm-2 control-label">商品标签</div>
  1707. <div class="col-sm-10">
  1708. <label class="radio-inline"><input type="radio" name="showtag" value="0" class="diy-bind" data-bind-child="params" data-bind="showtag" data-bind-init="true" <%if params.showtag=='0'||!params.showtag%>checked="checked"<%/if%>> 不显示</label>
  1709. <label class="radio-inline"><input type="radio" name="showtag" value="1" class="diy-bind" data-bind-child="params" data-bind="showtag" data-bind-init="true" <%if params.showtag=='1'%>checked="checked"<%/if%>> 原价</label>
  1710. <label class="radio-inline"><input type="radio" name="showtag" value="2" class="diy-bind" data-bind-child="params" data-bind="showtag" data-bind-init="true" <%if params.showtag=='2'%>checked="checked"<%/if%> > 商品类型</label>
  1711. <label class="radio-inline"><input type="radio" name="showtag" value="3" class="diy-bind" data-bind-child="params" data-bind="showtag" data-bind-init="true" <%if params.showtag=='3'%>checked="checked"<%/if%> > 活动类型</label>
  1712. <div class="help-block">商品类型: 商品、优惠券、红包、余额 活动类型: 兑换、抽奖</div>
  1713. </div>
  1714. </div>
  1715. <%if params.showtag>0%>
  1716. <div class="form-group">
  1717. <div class="col-sm-2 control-label">标签背景</div>
  1718. <div class="col-sm-4">
  1719. <div class="input-group">
  1720. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="tagbackground" value="<%style.tagbackground%>" type="color" />
  1721. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#fe5455').trigger('propertychange')">重置</span>
  1722. </div>
  1723. </div>
  1724. </div>
  1725. <%/if%>
  1726. <%/if%>
  1727. <div class="form-group">
  1728. <div class="col-sm-2 control-label">商品名称</div>
  1729. <div class="col-sm-10">
  1730. <label class="radio-inline"><input type="radio" name="showtitle" value="0" class="diy-bind" data-bind-child="params" data-bind="showtitle" <%if params.showtitle=='0'%>checked="checked"<%/if%>> 不显示</label>
  1731. <label class="radio-inline"><input type="radio" name="showtitle" value="1" class="diy-bind" data-bind-child="params" data-bind="showtitle" <%if params.showtitle=='1'%>checked="checked"<%/if%> > 显示</label>
  1732. </div>
  1733. </div>
  1734. <%if params.showtitle=='1'%>
  1735. <div class="form-group">
  1736. <div class="col-sm-2 control-label">名称颜色</div>
  1737. <div class="col-sm-4">
  1738. <div class="input-group">
  1739. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="titlecolor" value="<%style.titlecolor%>" type="color" />
  1740. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#000000').trigger('propertychange')">重置</span>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. <%/if%>
  1745. <div class="form-group">
  1746. <div class="col-sm-2 control-label">商品价格</div>
  1747. <div class="col-sm-10">
  1748. <label class="radio-inline"><input type="radio" name="showprice" value="0" class="diy-bind" data-bind-child="params" data-bind="showprice" data-bind-init="true" <%if params.showprice=='0'||!params.showprice%>checked="checked"<%/if%>> 不显示</label>
  1749. <label class="radio-inline"><input type="radio" name="showprice" value="1" class="diy-bind" data-bind-child="params" data-bind="showprice" data-bind-init="true" <%if params.showprice=='1'%>checked="checked"<%/if%> > 显示</label>
  1750. </div>
  1751. </div>
  1752. <%if params.showprice=='1'%>
  1753. <div class="form-group">
  1754. <div class="col-sm-2 control-label">价格颜色</div>
  1755. <div class="col-sm-4">
  1756. <div class="input-group">
  1757. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="pricecolor" value="<%style.pricecolor%>" type="color" />
  1758. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ff5555').trigger('propertychange')">重置</span>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. <%if params.goodstype=='0'||!params.goodstype%>
  1763. <div class="form-group">
  1764. <div class="col-sm-2 control-label">商品原价</div>
  1765. <div class="col-sm-10">
  1766. <label class="radio-inline"><input type="radio" name="showproductprice" value="0" class="diy-bind" data-bind-child="params" data-bind="showproductprice" data-bind-init="true" <%if params.showproductprice=='0'||!params.showproductprice%>checked="checked"<%/if%>> 不显示</label>
  1767. <label class="radio-inline"><input type="radio" name="showproductprice" value="1" class="diy-bind" data-bind-child="params" data-bind="showproductprice" data-bind-init="true" <%if params.showproductprice=='1'%>checked="checked"<%/if%> > 显示</label>
  1768. </div>
  1769. </div>
  1770. <%if params.showproductprice==1%>
  1771. <div class="form-group">
  1772. <div class="col-sm-2 control-label">原价颜色</div>
  1773. <div class="col-sm-4">
  1774. <div class="input-group">
  1775. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="productpricecolor" value="<%style.productpricecolor%>" type="color" />
  1776. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#999999').trigger('propertychange')">重置</span>
  1777. </div>
  1778. </div>
  1779. </div>
  1780. <div class="form-group">
  1781. <div class="col-sm-2 control-label">原价文字</div>
  1782. <div class="col-sm-10">
  1783. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="productpricetext" value="<%params.productpricetext||'原价'%>" style="width: 128px;" />
  1784. <div class="help-block">提示:建议在三字以内</div>
  1785. </div>
  1786. </div>
  1787. <div class="form-group">
  1788. <div class="col-sm-2 control-label">原价删除线</div>
  1789. <div class="col-sm-10">
  1790. <label class="radio-inline"><input type="radio" name="productpriceline" value="0" class="diy-bind" data-bind-child="params" data-bind="productpriceline" <%if params.productpriceline=='0'||!params.productpriceline%>checked="checked"<%/if%>> 不显示</label>
  1791. <label class="radio-inline"><input type="radio" name="productpriceline" value="1" class="diy-bind" data-bind-child="params" data-bind="productpriceline" <%if params.productpriceline=='1'%>checked="checked"<%/if%> > 显示</label>
  1792. </div>
  1793. </div>
  1794. <div class="line"></div>
  1795. <%/if%>
  1796. <div class="form-group">
  1797. <div class="col-sm-2 control-label">商品销量</div>
  1798. <div class="col-sm-10">
  1799. <label class="radio-inline"><input type="radio" name="showsales" value="0" class="diy-bind" data-bind-child="params" data-bind="showsales" data-bind-init="true" <%if params.showsales=='0'||!params.showsales%>checked="checked"<%/if%>> 不显示</label>
  1800. <label class="radio-inline"><input type="radio" name="showsales" value="1" class="diy-bind" data-bind-child="params" data-bind="showsales" data-bind-init="true" <%if params.showsales=='1'%>checked="checked"<%/if%> > 显示</label>
  1801. </div>
  1802. </div>
  1803. <%if params.showsales==1%>
  1804. <div class="form-group">
  1805. <div class="col-sm-2 control-label">销量颜色</div>
  1806. <div class="col-sm-4">
  1807. <div class="input-group">
  1808. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="salescolor" value="<%style.salescolor%>" type="color" />
  1809. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#999999').trigger('propertychange')">重置</span>
  1810. </div>
  1811. </div>
  1812. </div>
  1813. <div class="form-group">
  1814. <div class="col-sm-2 control-label">销量文字</div>
  1815. <div class="col-sm-10">
  1816. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="salestext" value="<%params.salestext||'销量'%>" style="width: 128px;" />
  1817. <div class="help-block">提示:建议在三字以内</div>
  1818. </div>
  1819. </div>
  1820. <div class="line"></div>
  1821. <%/if%>
  1822. <%/if%>
  1823. <%/if%>
  1824. <%if params.showprice=='1' && (params.goodstype=='0'||!params.goodstype)%>
  1825. <div class="form-group">
  1826. <div class="col-sm-2 control-label">购买按钮</div>
  1827. <div class="col-sm-10">
  1828. <label class="radio-inline"><input type="radio" name="buystyle" value="" class="diy-bind" data-bind-child="style" data-bind="buystyle" data-bind-init="true" <%if style.buystyle==''%>checked="checked"<%/if%> > 不显示</label>
  1829. <label class="radio-inline"><input type="radio" name="buystyle" value="buybtn-1" class="diy-bind" data-bind-child="style" data-bind="buystyle" data-bind-init="true" <%if style.buystyle=='buybtn-1'%>checked="checked"<%/if%>> 样式一</label>
  1830. <label class="radio-inline"><input type="radio" name="buystyle" value="buybtn-2" class="diy-bind" data-bind-child="style" data-bind="buystyle" data-bind-init="true" <%if style.buystyle=='buybtn-2'%>checked="checked"<%/if%>> 样式二</label>
  1831. <label class="radio-inline"><input type="radio" name="buystyle" value="buybtn-3" class="diy-bind" data-bind-child="style" data-bind="buystyle" data-bind-init="true" <%if style.buystyle=='buybtn-3'%>checked="checked"<%/if%>> 样式三</label>
  1832. <label class="radio-inline"><input type="radio" name="buystyle" value="buybtn-4" class="diy-bind" data-bind-child="style" data-bind="buystyle" data-bind-init="true" <%if style.buystyle=='buybtn-4'%>checked="checked"<%/if%>> 样式四</label>
  1833. <label class="radio-inline"><input type="radio" name="buystyle" value="buybtn-5" class="diy-bind" data-bind-child="style" data-bind="buystyle" data-bind-init="true" <%if style.buystyle=='buybtn-5'%>checked="checked"<%/if%>> 样式五</label>
  1834. <label class="radio-inline"><input type="radio" name="buystyle" value="buybtn-6" class="diy-bind" data-bind-child="style" data-bind="buystyle" data-bind-init="true" <%if style.buystyle=='buybtn-6'%>checked="checked"<%/if%>> 样式六</label>
  1835. </div>
  1836. </div>
  1837. <%/if%>
  1838. <%if ((params.goodstype=='0'||!params.goodstype) && params.showprice=='1' && style.buystyle!='') || (params.goodstype=='1') && params.showprice=='1'%>
  1839. <div class="form-group">
  1840. <div class="col-sm-2 control-label">按钮颜色</div>
  1841. <div class="col-sm-10">
  1842. <div class="input-group" style="width: 130px;">
  1843. <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="buybtncolor" value="<%style.buybtncolor%>" type="color" />
  1844. <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ff5555').trigger('propertychange')">重置</span>
  1845. </div>
  1846. <span class="help-block">砍价商品不支持自定义按钮样式,仅支持自定义按钮颜色</span>
  1847. </div>
  1848. </div>
  1849. <%/if%>
  1850. <div class="line"></div>
  1851. <div class="form-group">
  1852. <div class="col-sm-2 control-label">商品图标</div>
  1853. <div class="col-sm-10">
  1854. <label class="radio-inline"><input type="radio" name="showicon" value="0" class="diy-bind" data-bind-child="params" data-bind="showicon" data-bind-init="true" <%if params.showicon=='0'%>checked="checked"<%/if%>> 不显示</label>
  1855. <label class="radio-inline"><input type="radio" name="showicon" value="1" class="diy-bind" data-bind-child="params" data-bind="showicon" data-bind-init="true" <%if params.showicon=='1'%>checked="checked"<%/if%> > 系统图标</label>
  1856. <label class="radio-inline"><input type="radio" name="showicon" value="2" class="diy-bind" data-bind-child="params" data-bind="showicon" data-bind-init="true" <%if params.showicon=='2'%>checked="checked"<%/if%> > 自定义</label>
  1857. </div>
  1858. </div>
  1859. <%if params.showicon=='2'%>
  1860. <div class="form-group">
  1861. <div class="col-sm-2 control-label">自定义图标</div>
  1862. <div class="col-sm-10">
  1863. <div class="input-group">
  1864. <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="goodsiconsrc" placeholder="请输入图片地址或选择图片" value="<%params.goodsiconsrc%>" id="goodsiconsrc" />
  1865. <span data-input="#goodsiconsrc" data-img="#goodsicon" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
  1866. </div>
  1867. <div class="input-group " style="margin-top:.5em;">
  1868. <img src="<%imgsrc params.goodsiconsrc%>" class="img-responsive img-thumbnail" id="goodsicon" style="width: 60px; height: 60px;">
  1869. <em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="$('#goodsiconsrc').val('').trigger('change');$(this).prev().attr('src', '')">×</em>
  1870. </div>
  1871. </div>
  1872. </div>
  1873. <%/if%>
  1874. <%if params.showicon=='1'%>
  1875. <div class="form-group">
  1876. <div class="col-sm-2 control-label">图标样式</div>
  1877. <div class="col-sm-10">
  1878. <label class="radio-inline"><input type="radio" name="goodsiconstyle" value="triangle" class="diy-bind" data-bind-child="style" data-bind="iconstyle" <%if style.iconstyle=='triangle'%>checked="checked"<%/if%>> 样式一</label>
  1879. <label class="radio-inline"><input type="radio" name="goodsiconstyle" value="circle" class="diy-bind" data-bind-child="style" data-bind="iconstyle" <%if style.iconstyle=='circle'%>checked="checked"<%/if%>> 样式二</label>
  1880. <label class="radio-inline"><input type="radio" name="goodsiconstyle" value="square" class="diy-bind" data-bind-child="style" data-bind="iconstyle" <%if style.iconstyle=='square'%>checked="checked"<%/if%>> 样式三</label>
  1881. <label class="radio-inline"><input type="radio" name="goodsiconstyle" value="echelon" class="diy-bind" data-bind-child="style" data-bind="iconstyle" <%if style.iconstyle=='echelon'%>checked="checked"<%/if%>> 样式四</label>
  1882. <label class="radio-inline"><input type="radio" name="goodsiconstyle" value="rectangle" class="diy-bind" data-bind-child="style" data-bind="iconstyle" <%if style.iconstyle=='rectangle'%>checked="checked"<%/if%>> 样式五</label>
  1883. </div>
  1884. </div>
  1885. <div class="form-group">
  1886. <div class="col-sm-2 control-label">图标属性</div>
  1887. <div class="col-sm-10">
  1888. <label class="radio-inline"><input type="radio" name="goodsicon" value="recommand" class="diy-bind" data-bind-child="style" data-bind="goodsicon" <%if style.goodsicon=='recommand'%>checked="checked"<%/if%>> 推荐</label>
  1889. <label class="radio-inline"><input type="radio" name="goodsicon" value="hotsale" class="diy-bind" data-bind-child="style" data-bind="goodsicon" <%if style.goodsicon=='hotsale'%>checked="checked"<%/if%>> 热销</label>
  1890. <label class="radio-inline"><input type="radio" name="goodsicon" value="isnew" class="diy-bind" data-bind-child="style" data-bind="goodsicon" <%if style.goodsicon=='isnew'%>checked="checked"<%/if%>> 新上</label>
  1891. <label class="radio-inline"><input type="radio" name="goodsicon" value="sendfree" class="diy-bind" data-bind-child="style" data-bind="goodsicon" <%if style.goodsicon=='sendfree'%>checked="checked"<%/if%>> 包邮</label>
  1892. <label class="radio-inline"><input type="radio" name="goodsicon" value="istime" class="diy-bind" data-bind-child="style" data-bind="goodsicon" <%if style.goodsicon=='istime'%>checked="checked"<%/if%>> 限时卖</label>
  1893. <label class="radio-inline"><input type="radio" name="goodsicon" value="bigsale" class="diy-bind" data-bind-child="style" data-bind="goodsicon" <%if style.goodsicon=='bigsale'%>checked="checked"<%/if%>> 促销</label>
  1894. </div>
  1895. </div>
  1896. <%/if%>
  1897. <%if params.showicon=='2'%>
  1898. <div class="form-group">
  1899. <div class="col-sm-2 control-label">图标位置</div>
  1900. <div class="col-sm-10">
  1901. <label class="radio-inline"><input type="radio" name="iconposition" value="left top" class="diy-bind" data-bind-child="params" data-bind="iconposition" data-bind-init="true" <%if params.iconposition=='left top'%>checked="checked"<%/if%>> 左上</label>
  1902. <label class="radio-inline"><input type="radio" name="iconposition" value="right top" class="diy-bind" data-bind-child="params" data-bind="iconposition" data-bind-init="true" <%if params.iconposition=='right top'%>checked="checked"<%/if%> > 右上</label>
  1903. <label class="radio-inline"><input type="radio" name="iconposition" value="left bottom" class="diy-bind" data-bind-child="params" data-bind="iconposition" data-bind-init="true" <%if params.iconposition=='left bottom'%>checked="checked"<%/if%> > 左下</label>
  1904. <label class="radio-inline"><input type="radio" name="iconposition" value="right bottom" class="diy-bind" data-bind-child="params" data-bind="iconposition" data-bind-init="true" <%if params.iconposition=='right bottom'%>checked="checked"<%/if%> > 右下</label>
  1905. </div>
  1906. </div>
  1907. <div class="form-group">
  1908. <div class="col-sm-2 control-label">上下偏移</div>
  1909. <div class="col-sm-10">
  1910. <div class="form-group">
  1911. <div class="slider col-sm-8" data-value="<%style.iconpaddingtop%>" data-min="0" data-max="30"></div>
  1912. <div class="col-sm-4 control-labe count"><span><%style.iconpaddingtop%></span>px(像素)</div>
  1913. <input class="diy-bind input" data-bind-child="style" data-bind="iconpaddingtop" value="<%style.iconpaddingtop%>" type="hidden" />
  1914. </div>
  1915. </div>
  1916. </div>
  1917. <div class="form-group">
  1918. <div class="col-sm-2 control-label">左右偏移</div>
  1919. <div class="col-sm-10">
  1920. <div class="form-group">
  1921. <div class="slider col-sm-8" data-value="<%style.iconpaddingleft%>" data-min="0" data-max="30"></div>
  1922. <div class="col-sm-4 control-labe count"><span><%style.iconpaddingleft%></span>px(像素)</div>
  1923. <input class="diy-bind input" data-bind-child="style" data-bind="iconpaddingleft" value="<%style.iconpaddingleft%>" type="hidden" />
  1924. </div>
  1925. </div>
  1926. </div>
  1927. <div class="form-group">
  1928. <div class="col-sm-2 control-label">图标缩放</div>
  1929. <div class="col-sm-10">
  1930. <div class="form-group">
  1931. <div class="slider col-sm-8" data-value="<%style.iconzoom%>" data-min="1" data-max="100"></div>
  1932. <div class="col-sm-4 control-labe count"><span><%style.iconzoom%></span>%</div>
  1933. <input class="diy-bind input" data-bind-child="style" data-bind="iconzoom" value="<%style.iconzoom%>" type="hidden" />
  1934. </div>
  1935. </div>
  1936. </div>
  1937. <%/if%>
  1938. <div class="line"></div>
  1939. <div class="form-group">
  1940. <div class="col-sm-2 control-label">售罄图标</div>
  1941. <div class="col-sm-10">
  1942. <label class="radio-inline"><input type="radio" name="saleout" value="-1" class="diy-bind" data-bind-child="params" data-bind="saleout" data-bind-init="true" <%if params.saleout=='-1'%>checked="checked"<%/if%>> 不显示</label>
  1943. <label class="radio-inline"><input type="radio" name="saleout" value="1" class="diy-bind" data-bind-child="params" data-bind="saleout" data-bind-init="true" <%if params.saleout=='1'%>checked="checked"<%/if%> > 内置图标</label>
  1944. <label class="radio-inline"><input type="radio" name="saleout" value="0" class="diy-bind" data-bind-child="params" data-bind="saleout" data-bind-init="true" <%if params.saleout=='0'||!params.saleout%>checked="checked"<%/if%> > 读取系统设置</label>
  1945. </div>
  1946. </div>
  1947. <%if params.saleout==1%>
  1948. <div class="form-group">
  1949. <div class="col-sm-2 control-label">图标样式</div>
  1950. <div class="col-sm-10">
  1951. <label class="radio-inline"><input type="radio" name="saleoutstyle" value="1" class="diy-bind" data-bind-child="style" data-bind="saleoutstyle" data-bind-init="true" <%if style.saleoutstyle=='1'%>checked="checked"<%/if%>> 样式一</label>
  1952. <label class="radio-inline"><input type="radio" name="saleoutstyle" value="2" class="diy-bind" data-bind-child="style" data-bind="saleoutstyle" data-bind-init="true" <%if style.saleoutstyle=='2'%>checked="checked"<%/if%>> 样式二</label>
  1953. <label class="radio-inline"><input type="radio" name="saleoutstyle" value="3" class="diy-bind" data-bind-child="style" data-bind="saleoutstyle" data-bind-init="true" <%if style.saleoutstyle=='3'%>checked="checked"<%/if%>> 样式三</label>
  1954. </div>
  1955. </div>
  1956. <%/if%>
  1957. <div class="line"></div>
  1958. <%if params.goodsdata=='0'%>
  1959. <div class="form-items indent" data-min="1">
  1960. <div class="inner" id="form-items">
  1961. <%each data as child itemid %>
  1962. <div class="item" data-id="<%itemid%>">
  1963. <span class="btn-del" title="删除"></span>
  1964. <div class="item-image square">
  1965. <div class="text goods-selector" data-goodstype="<%params.goodstype%>">选择商品</div>
  1966. <img src="<%imgsrc child.thumb%>" id="pimg-<%itemid%>" />
  1967. <input type="hidden" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="imgurl" id="cimg-<%itemid%>" value="<%child.imgurl%>" />
  1968. </div>
  1969. <div class="item-form">
  1970. <div class="input-group" style="margin-bottom:0px; ">
  1971. <span class="input-group-addon">名称</span>
  1972. <input class="form-control input-sm" value="<%child.title||'未设置'%>" readonly="readonly" />
  1973. </div>
  1974. <%if params.goodstype==0||!params.goodstype%>
  1975. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  1976. <span class="input-group-addon">价格</span>
  1977. <input class="form-control input-sm" value="¥<%child.price%>" readonly="readonly" />
  1978. </div>
  1979. <%else%>
  1980. <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
  1981. <span class="input-group-addon">价格</span>
  1982. <input class="form-control input-sm" value="<%child.price%>" readonly="readonly" />
  1983. <span class="input-group-addon" style="border-left: 0; border-right: 0;">元</span>
  1984. <input style="display:none;" class="form-control input-sm" value="<%child.credit%>" readonly="readonly" />
  1985. <span style="display:none;" class="input-group-addon">积分</span>
  1986. </div>
  1987. <%/if%>
  1988. </div>
  1989. </div>
  1990. <%/each%>
  1991. </div>
  1992. <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
  1993. </div>
  1994. <%/if%>
  1995. <%if params.goodsdata>0%>
  1996. <div class="form-group">
  1997. <div class="col-sm-2 control-label">商品排序</div>
  1998. <div class="col-sm-10">
  1999. <label class="radio-inline"><input type="radio" name="goodssort" value="0" class="diy-bind" data-bind-child="params" data-bind="goodssort" <%if params.goodssort=='0'%>checked="checked"<%/if%>> 综合</label>
  2000. <label class="radio-inline"><input type="radio" name="goodssort" value="1" class="diy-bind" data-bind-child="params" data-bind="goodssort" <%if params.goodssort=='1'%>checked="checked"<%/if%> > 按销量</label>
  2001. <label class="radio-inline"><input type="radio" name="goodssort" value="2" class="diy-bind" data-bind-child="params" data-bind="goodssort" <%if params.goodssort=='2'%>checked="checked"<%/if%> > 价格降序</label>
  2002. <label class="radio-inline"><input type="radio" name="goodssort" value="3" class="diy-bind" data-bind-child="params" data-bind="goodssort" <%if params.goodssort=='3'%>checked="checked"<%/if%> > 价格升序</label>
  2003. </div>
  2004. </div>
  2005. <div class="form-group">
  2006. <div class="col-sm-2 control-label">显示数量</div>
  2007. <div class="col-sm-10">
  2008. <div class="form-group">
  2009. <div class="slider col-sm-8" data-value="<%params.goodsnum%>" data-min="1" data-max="20"></div>
  2010. <div class="col-sm-4 control-labe count"><span><%params.goodsnum%></span>个</div>
  2011. <input class="diy-bind input" data-bind-child="params" data-bind="goodsnum" value="<%params.goodsnum%>" type="hidden" />
  2012. </div>
  2013. </div>
  2014. </div>
  2015. <%/if%>
  2016. </script>