123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145 |
- <script type="text/html" id="tpl_navs">
- <nav class="btn btn-link" data-id="page"><i class="fa fa-cog"></i>页面设置</nav>
- <%each initnav as nav %>
- <nav class="btn btn-link <%if nav.type==type%>special<%/if%>" data-id="<%nav.id%>"><i class="fa fa-plus"></i> <%nav.name%></nav>
- <%/each%>
- </script>
- <script type="text/html" id="edit-del">
- <div class="btn-edit-del">
- <div class="btn-edit">编辑</div>
- <div class="btn-del">删除</div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_page_mod">
- <div class="form-group">
- <div class="col-sm-2 control-label">模块名称</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind="name" data-placeholder="请输入名称" placeholder="请输入名称" value="<%name%>" />
- </div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_page">
- <div class="form-group">
- <div class="col-sm-2 control-label">页面名称</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind="name" data-placeholder="请输入名称" placeholder="请输入名称" value="<%page.name%>" />
- <div class="help-block">注意:页面名称是便于后台查找,页面标题是手机端标题。</div>
- </div>
- </div>
- <%if page.type!=5 && page.type!=7 && page.type!=8%>
- <div class="form-group">
- <div class="col-sm-2 control-label">页面标题</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind="title" data-placeholder="请输入标题" placeholder="请输入标题" value="<%page.title%>" />
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">关键字</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind="keyword" data-placeholder="" placeholder="请输入标题" value="<%page.keyword%>" />
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">页面介绍</div>
- <div class="col-sm-10">
- <textarea class="form-control richtext diy-bind" cols="70" rows="5" placeholder="请输入页面介绍" data-bind="desc" data-placeholder=""><%page.desc%></textarea>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">封面图</div>
- <div class="col-sm-10">
- <div class="input-group">
- <input class="form-control input-sm diy-bind" data-bind="icon" data-placeholder="" placeholder="" value="<%page.icon%>" id="iconsrc" />
- <span data-input="#iconsrc" data-img="#iconimg" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
- </div>
- <div class="input-group " style="margin-top:.5em;">
- <img src="<%imgsrc page.icon%>" onerror="this.src='/static/images/nopic.png';" class="img-responsive img-thumbnail" width="150" id="iconimg">
- <em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="$('#iconsrc').val('').trigger('change');$(this).prev().attr('src', '')">×</em>
- </div>
- </div>
- </div>
- <%/if%>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind="background" value="<%page.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#f3f3f3').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="line"></div>
- <%if page.type!=5 && page.type!=8%>
- <div class="form-group">
- <div class="col-sm-2 control-label">底部菜单</div>
- <div class="col-sm-10">
- <select class="form-control input-sm diy-bind" data-bind="diymenu">
- <option value="-1"<%if page.diymenu=='-1'%>selected="selected"<%/if%>>不显示</option>
- <option value="0" <%if page.diymenu=='0'%>selected="selected"<%/if%>>系统默认</option>
- <%each diymenu as menu%>
- <option value="<%menu.id%>" <%if page.diymenu==menu.id%>selected="selected"<%/if%>><%menu.name%></option>
- <%/each%>
- </select>
- </div>
- </div>
- <%/if%>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">启动广告</div>
- <div class="col-sm-10">
- <select class="form-control input-sm diy-bind" data-bind="diyadv">
- <option value="0" <%if page.diyadv=='0'||!page.diyadv%>selected="selected"<%/if%>>不显示</option>
- <%each diyadvs as diyadv%>
- <option value="<%diyadv.id%>" <%if page.diyadv==diyadv.id%>selected="selected"<%/if%>><%diyadv.name%></option>
- <%/each%>
- </select>
- </div>
- </div>
- <%if page.type==1%>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">访问权限</div>
- <div class="col-sm-10">
- <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>
- <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>
- <%if page.visit==1%>
- <div class="help-block">提示:请勾选有访问权限的等级</div>
- <%/if%>
- </div>
- </div>
- <%if page.visit==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">会员等级</div>
- <div class="col-sm-10">
- <%each levels.member as level%>
- <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>
- <%/each%>
- </div>
- </div>
- <%if levels.commission%>
- <div class="form-group">
- <div class="col-sm-2 control-label">分销商等级</div>
- <div class="col-sm-10">
- <%each levels.commission as level%>
- <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>
- <%/each%>
- </div>
- </div>
- <%/if%>
- <div class="form-group">
- <div class="col-sm-2 control-label">无权提示</div>
- <div class="col-sm-10">
- <div class="input-group">
- <span class="input-group-addon">标题</span>
- <input class="form-control input-sm diy-bind" data-bind-child="novisit" data-bind="title" data-placeholder="" placeholder="无权提示,请简单填写" value="<%page.novisit.title%>">
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label"></div>
- <div class="col-sm-10">
- <div class="input-group">
- <span class="input-group-addon">链接</span>
- <input class="form-control input-sm diy-bind" data-bind-child="novisit" data-bind="link" data-placeholder="" placeholder="确定跳转链接,不填则返回首页" value="<%page.novisit.link%>" id="noperm">
- <span data-input="#noperm" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
- </div>
- </div>
- </div>
- <%/if%>
- <%/if%>
- </script>
- <script type="text/html" id="tpl_edit_notice">
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">小图标颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="iconcolor" value="<%style.iconcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#fd5454').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">公告颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="color" value="<%style.color%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">公告图标</div>
- <div class="col-sm-10">
- <div class="input-group">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="iconurl" value="<%params.iconurl%>" id="iconsrc" />
- <span data-input="#iconsrc" data-img="#iconimg" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
- </div>
- <div class="input-group " style="margin-top:.5em;">
- <img src="<%params.iconurl%>" onerror="this.src='/static/images/nopic.jpg';" class="img-responsive img-thumbnail" width="150" id="iconimg">
- <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>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">滚动速度</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%params.speed%>" data-min="1" data-max="10"></div>
- <div class="col-sm-4 control-labe count"><span><%params.speed%></span>秒</div>
- <input class="diy-bind input" data-bind-child="params" data-bind="speed" value="<%params.speed%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">公告内容</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.noticedata=='1'%>
- <div class="form-items indent" data-min="1">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image drag-btn square">拖动排序</div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <span class="input-group-addon">标题</span>
- <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%>" />
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- <%/if%>
- <%if params.noticedata=='0'%>
- <div class="form-group">
- <div class="col-sm-2 control-label">读取数量</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- </script>
- <script type="text/html" id="tpl_edit_richtext">
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">边距设置</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.padding%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.padding%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="padding" value="<%style.padding%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-richtext">
- <div id="rich"></div>
- <textarea id="richtext" class="diy-bind" data-bind-child="params" data-bind="content" style="display: none"></textarea>
- </div>
- <div class="alert alert-danger" style="margin-top: 10px; margin-bottom: 0;">注意:页面程序使用JS引擎,请勿将富文本里再填写JS代码块</div>
- </script>
- <script type="text/html" id="tpl_edit_banner">
- <div class="form-group">
- <div class="col-sm-2 control-label">按钮形状</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">按钮位置</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">按钮颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">按钮左右边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.leftright%>" data-min="5" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.leftright%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="leftright" value="<%style.leftright%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">按钮底部边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.bottom%>" data-min="5" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.bottom%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="bottom" value="<%style.bottom%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">透明度</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8 " data-value="<%style.opacity%>" data-min="0" data-max="10" data-decimal="10"></div>
- <div class="col-sm-4 control-labe count"><span><%style.opacity%></span>(最大是1)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="opacity" value="<%style.opacity%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-items" data-min="1">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image">
- <img src="<%child.imgurl%>" onerror="this.src='/static/images/nopic.jpg';" id="pimg-<%itemid%>" />
- </div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</span>
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_title">
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">文字颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="color" value="<%style.color%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">标题文字</div>
- <div class="col-sm-10">
- <div class="input-group form-group" style="margin: 0;">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="title" data-placeholder="" placeholder="请输入标题" value="<%params.title%>" />
- <input class="diy-bind" type="hidden" data-bind-child="params" data-bind="icon" value="<%params.icon%>" id="titleicon" />
- <span data-input="#titleicon" data-toggle="selectIcon" class="input-group-addon btn btn-default">选择图标</span>
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().prev().val('').trigger('change');">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">标题链接</div>
- <div class="col-sm-10">
- <div class="input-group form-group" style="margin: 0;">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="link" data-placeholder="" placeholder="" value="<%params.link%>" id="titlelink"/>
- <span data-input="#titlelink" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">对齐方向</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">文字大小</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.fontsize%>" data-min="9" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.fontsize%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="fontsize" value="<%style.fontsize%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">上下边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="1" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左右边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="1" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
- </div>
- </div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_search">
- <div class="form-group">
- <div class="col-sm-2 control-label">搜索类型</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#f1f1f2').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">输入框背景</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="inputbackground" value="<%style.inputbackground%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">文字颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="color" value="<%style.color%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#999999').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="iconcolor" value="<%style.iconcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#b4b4b4').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">提示文字</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="placeholder" data-placeholder="" placeholder="请输入提示文字(不填则不显示,最长20字)" value="<%params.placeholder%>" maxlength="20" />
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">上下边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="2" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左右边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="2" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">搜索框样式</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">文字对齐</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_line">
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">线条颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="bordercolor" value="<%style.bordercolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">线条样式</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">线条高度</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.height%>" data-min="1" data-max="20"></div>
- <div class="col-sm-4 control-labe count"><span><%style.height%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="height" value="<%style.height%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">上下边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.padding%>" data-min="1" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.height%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="padding" value="<%style.padding%>" type="hidden" />
- </div>
- </div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_blank">
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">元素高度</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.height%>" data-min="1" data-max="200"></div>
- <div class="col-sm-4 control-labe count"><span><%style.height%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="height" value="<%style.height%>" type="hidden" />
- </div>
- </div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_menu">
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">按钮形状</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">显示方式</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">每行数量</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <%if style.showtype>0%>
- <div class="form-group">
- <div class="col-sm-2 control-label">每页数量</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.pagenum||8%>" data-min="3" data-max="20"></div>
- <div class="col-sm-4 control-labe count"><span><%style.pagenum||8%></span>个</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="pagenum" value="<%style.pagenum||8%>" type="hidden" />
- </div>
- <div class="help-block">超出设定数量自动分页</div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">显示分页</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- <div class="form-items" data-min="1">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image square">
- <div class="text" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</div>
- <img src="<%imgsrc child.imgurl%>" onerror="this.src='/static/images/nopic.jpg';" id="pimg-<%itemid%>" />
- <input type="hidden" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="imgurl" id="cimg-<%itemid%>" value="<%child.imgurl%>" />
- </div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <span class="input-group-addon">文字</span>
- <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%" />
- <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%" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置颜色</span>
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_menu2">
- <div class="form-group">
- <div class="col-sm-2 control-label">顶部边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.margintop%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.margintop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="margintop" value="<%style.margintop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-items indent" data-min="1" data-max="3">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-body">
- <div class="item-image drag-btn square" style="height: 110px; line-height: 110px;">拖动排序</div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <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" />
- <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>
- <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>
- <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>
- <span class="input-group-addon" style="border-left: 0; border-right: 0; padding: 0 8px;">图标颜色</span>
- <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;">
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <span class="input-group-addon">文字</span>
- <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">
- <span class="input-group-addon" style="border-left: 0; border-right: 0;">文字颜色</span>
- <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;">
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>">
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_picture">
- <div class="form-group">
- <div class="col-sm-2 control-label">上下边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左右边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-items indent" data-min="1">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image">
- <img src="<%child.imgurl%>" onerror="this.src='/static/images/nopic.jpg';" id="pimg-<%itemid%>" />
- </div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</span>
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_picturew">
- <div class="form-group">
- <div class="col-sm-2 control-label">上下边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左右边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">布局方式</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- <%if params.row==1%>
- <div class="help-block">橱窗样式布局请参考 <a href="{:U('shop/cube')}" target="_blank">首页魔方</a>,单组最多显示四个,超出隐藏</div>
- <%/if%>
- <%if params.row>1%>
- <div class="help-block">图片大小不限制,但请确保所有图片的尺寸/比例相同。</div>
- <%/if%>
- </div>
- </div>
- <%if params.row>1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">显示类型</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- <%if params.row>1&¶ms.showtype==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">每页数量</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.pagenum||2%>" data-min="2" data-max="12"></div>
- <div class="col-sm-4 control-labe count"><span><%style.pagenum||2%></span>个</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="pagenum" value="<%style.pagenum||2%>" type="hidden" />
- </div>
- <div class="help-block">超出设定数量自动分页</div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">显示分页</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">分页按钮</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- <div class="form-items indent" data-min="2" data-max="20">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image">
- <img src="<%child.imgurl%>" onerror="this.src='/static/images/nopic.jpg';" id="pimg-<%itemid%>" />
- </div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</span>
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_listmenu">
- <div class="form-group">
- <div class="col-sm-2 control-label">顶部边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.margintop%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.margintop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="margintop" value="<%style.margintop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="iconcolor" value="<%style.iconcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#999999').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">文字颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="textcolor" value="<%style.textcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#333333').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">提示文字颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="remarkcolor" value="<%style.remarkcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#888888').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-items indent" data-min="1" data-max="8">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-body">
- <div class="item-image square">
- <span class="btn-del" title="清空图标" onclick="$('#cicon-<%itemid%>').val('').trigger('change')"></span>
- <div class="icon-main">
- <span class="icon <%child.iconclass%>" id="picon-<%itemid%>"></span>
- </div>
- <div class="text" data-toggle="selectIcon" data-input="#cicon-<%itemid%>" data-element="#picon-<%itemid%>">选择图标</div>
- <input type="hidden" id="cicon-<%itemid%>" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="iconclass" data-bind-init="true">
- </div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <span class="input-group-addon">文字</span>
- <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">
- <span class="input-group-addon" style="border-left: 0; border-right: 0;">提示</span>
- <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;">
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>">
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- <div class="alert alert-danger" style="margin: 10px 10px 0;">提示:选择链接后,系统会根据你选择的链接判断是否显示。</div>
- </script>
- <script type="text/html" id="tpl_edit_icongroup">
- <div class="form-group">
- <div class="col-sm-2 control-label">每行数量</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="iconcolor" value="<%style.iconcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">文字颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="textcolor" value="<%style.textcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#000000').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">角标背景</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="dotcolor" value="<%style.dotcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ff5555').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">边框颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="bordercolor" value="<%style.bordercolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#fafafa').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">顶部边框</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">底部边框</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">中间边框</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-items indent" data-min="3" data-max="10">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-body">
- <div class="item-image square">
- <div class="icon-main">
- <span class="icon <%child.iconclass%>" id="picon-<%itemid%>"></span>
- </div>
- <div class="text" data-toggle="selectIcon" data-input="#cicon-<%itemid%>" data-element="#picon-<%itemid%>">选择图标</div>
- <input type="hidden" id="cicon-<%itemid%>" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="iconclass" data-bind-init="true">
- </div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <span class="input-group-addon">文字</span>
- <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">
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>">
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- <div class="alert alert-danger" style="margin: 10px 10px 0;">提示:选择链接后,系统会根据你选择的链接判断显示角标。</div>
- </script>
- <script type="text/html" id="tpl_edit_pictures">
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">上下间距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左右间距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">显示方式</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.showtype==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">分页按钮</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- <div class="form-group">
- <div class="col-sm-2 control-label">每行数量</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">上标题颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="titlecolor" value="<%style.titlecolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">下标题颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="textcolor" value="<%style.textcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">上标题对齐</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">下标题对齐</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-items indent" data-min="1">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image" style="height: 110px;">
- <img src="<%imgsrc child.imgurl%>" id="pimg-<%itemid%>" style="height: 100%; width: auto;" />
- </div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <span class="input-group-addon">上标题</span>
- <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%>" />
- <span class="input-group-addon" style="border-right: 0; border-left: 0;">下标题</span>
- <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%>" />
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#cimg-<%itemid%>" data-img="#pimg-<%itemid%>">选择图片</span>
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- <div class="alert alert-primary" style="margin-top: 10px; margin-bottom: 0;">注意:如果上标题 、下标题为空则不显示</div>
- </script>
- <script type="text/html" id="tpl_edit_audio">
- <div class="form-group">
- <div class="col-sm-2 control-label">选择音频</div>
- <div class="col-sm-10">
- <div class="input-group input-group-sm">
- <input class="form-control diy-bind" name="" placeholder="请点击右侧按钮选择音频" value="<%params.audiourl%>" data-bind-child="params" data-bind="audiourl" id="audiourl" data-bind-init="true" />
- <span class="input-group-addon btn audio-player" style="border-left: 0;"><i class="fa fa-play"></i></span>
- <audio src="<%imgsrc params.audiourl%>"></audio>
- <span class="input-group-addon btn btn-default" data-toggle="selectAudio" data-input="#audiourl">选择音频</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">播放样式</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.playerstyle=='0'||!params.playerstyle%>
- <div class="form-group">
- <div class="col-sm-2 control-label">标题文字</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="title" data-placeholder="" placeholder="请输入标题" value="<%params.title%>" />
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">副标题</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="subtitle" data-placeholder="" placeholder="副标题,不填则不显示" value="<%params.subtitle%>" />
- </div>
- </div>
- <%/if%>
- <%if params.playerstyle==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">头像设置</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.headtype==0||!params.headtype%>
- <div class="form-group">
- <div class="col-sm-2 control-label">选择头像</div>
- <div class="col-sm-10">
- <div class="input-group input-group-sm">
- <input class="form-control diy-bind" placeholder="请点击右侧按钮选择图片" value="<%params.headurl%>" name="headurl" data-bind-child="params" data-bind="headurl" id="headurl" />
- <span class="input-group-addon btn btn-default" data-toggle="selectImg" data-input="#headurl">选择图片</span>
- </div>
- <div class="help-block">提示:如果自定义头像为空则也将显示商城logo</div>
- </div>
- </div>
- <%/if%>
- <div class="form-group">
- <div class="col-sm-2 control-label">头像位置</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">上下间距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingtop%>" data-min="10" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingtop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingtop" value="<%style.paddingtop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左右间距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.paddingleft%>" data-min="10" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.paddingleft%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="paddingleft" value="<%style.paddingleft%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">消息宽度</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.width||'80'%>" data-min="80" data-max="180"></div>
- <div class="col-sm-4 control-labe count"><span><%style.width||'80'%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="width" value="<%style.width||'80'%>" type="hidden" />
- </div>
- <div class="help-block">提示:可根据消息的不同长度设置不同的宽度</div>
- </div>
- </div>
- <%if params.playerstyle=='0'||!params.playerstyle%>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#f1f1f1').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">边框颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="bordercolor" value="<%style.bordercolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ededed').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">标题颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="textcolor" value="<%style.textcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#333333').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">副标题颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="subtitlecolor" value="<%style.subtitlecolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">时间颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="timecolor" value="<%style.timecolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <%/if%>
- <div class="line"></div>
- <div class="form-group" style="display: none;">
- <div class="col-sm-2 control-label">自动播放</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">循环播放</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">播放设置</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="alert alert-primary" style="margin-bottom: 0;">提示:编辑页面播放只提供播放/停止功能,更多动画、功能请在手机端查看</div>
- </script>
- <script type="text/html" id="tpl_edit_coupon">
- <div class="form-group">
- <div class="col-sm-2 control-label">上下边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.margintop%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.margintop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="margintop" value="<%style.margintop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左右边距</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.marginleft%>" data-min="0" data-max="50"></div>
- <div class="col-sm-4 control-labe count"><span><%style.marginleft%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="marginleft" value="<%style.marginleft%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">选择样式</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-items indent" data-min="1">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image square drag-btn square" style="height: 110px; line-height: 110px;">拖动排序</div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <span class="input-group-addon">优惠券</span>
- <input class="form-control input-sm diy-bind" value="<%child.name||'未设置'%>" readonly="readonly" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="price" />
- <span class="input-group-addon btn btn-default coupon-selector">选择</span>
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px;">
- <span class="input-group-addon">价值</span>
- <input class="form-control input-sm diy-bind" value="<%child.price%>" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="price" readonly />
- <span class="input-group-addon" style="border-left: 0; border-right: 0;">使用条件</span>
- <input class="form-control input-sm diy-bind" value="<%child.desc%>" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="desc" readonly />
- </div>
- <div class="input-group " style="margin-top:10px; margin-bottom:0px; ">
- <span class="input-group-addon">色调</span>
- <span class="form-control input-sm" style="padding-top: 0;">
- <label class="radio-inline">
- <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>
- <label class="radio-inline">
- <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>
- <label class="radio-inline">
- <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>
- <label class="radio-inline">
- <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>
- </span>
- <!--
- <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" />
- <span class="input-group-addon" style="border-left: 0; border-right: 0;">边框</span>
- <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" />
- <span class="input-group-addon" style="border-left: 0; border-right: 0;">背景</span>
- <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" />-->
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_fixedsearch">
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#000000').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">透明度</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8 " data-value="<%style.opacity%>" data-min="0" data-max="10" data-decimal="10"></div>
- <div class="col-sm-4 control-labe count"><span><%style.opacity%></span>(最大是1)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="opacity" value="<%style.opacity%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左侧按钮</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <%if params.leftnav==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标设置</div>
- <div class="col-sm-7">
- <div class="input-group input-group-sm">
- <span class="form-control" style="line-height: 28px; text-align: center; width: 40px;"><i class="icon <%params.leftnavicon||'icon-shop'%>" id="showleftnavicon"></i></span>
- <span data-input="#leftnavicon" data-element="#showleftnavicon" data-toggle="selectIcon" class="input-group-addon btn btn-default">选择图标</span>
- <input type="hidden" class="diy-bind" data-bind-child="params" data-bind="leftnavicon" value="<%params.leftnavicon%>" id="leftnavicon" />
- <div class="input-group-addon" style="border-left: 0; border-right: 0;">图标颜色</div>
- <input class="form-control color diy-bind" type="color" style="width: 80px;" data-bind-child="style" data-bind="leftnavcolor" value="<%style.leftnavcolor%>" />
- </div>
- </div>
- </div>
- <%/if%>
- <%if params.leftnav==2%>
- <div class="form-group">
- <div class="col-sm-2 control-label">选择图片</div>
- <div class="col-sm-10">
- <div class="input-group">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="leftnavimg" value="<%params.leftnavimg%>" id="leftnavimg" />
- <span data-input="#leftnavimg" data-img="#showleftnavimg" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
- </div>
- <div class="input-group " style="margin-top:.5em;">
- <img src="<%imgsrc params.leftnavimg%>" class="img-responsive img-thumbnail" style="height: 50px; background: #eee;" id="showleftnavimg">
- <em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="$('#leftnavimg').val('').trigger('change');$(this).prev().attr('src', '')">×</em>
- </div>
- </div>
- </div>
- <%/if%>
- <%if params.leftnav==1||params.leftnav==2%>
- <div class="form-group">
- <div class="col-sm-2 control-label">选择链接</div>
- <div class="col-sm-10">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="leftnavlink" value="<%params.leftnavlink%>" id="leftnavlink" />
- <span data-input="#leftnavlink" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
- </div>
- </div>
- </div>
- <%/if%>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">右侧按钮</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <%if params.rightnav==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">选择图标</div>
- <div class="col-sm-7">
- <div class="input-group input-group-sm">
- <span class="form-control" style="line-height: 28px; text-align: center; width: 40px;"><i class="icon <%params.rightnavicon||'icon-shop'%>" id="showrightnavicon"></i></span>
- <span data-input="#rightnavicon" data-element="#showrightnavicon" data-toggle="selectIcon" class="input-group-addon btn btn-default">选择图标</span>
- <input type="hidden" class="diy-bind" data-bind-child="params" data-bind="rightnavicon" value="<%params.rightnavicon%>" id="rightnavicon" />
- <div class="input-group-addon" style="border-left: 0; border-right: 0;">图标颜色</div>
- <input class="form-control color diy-bind" type="color" style="width: 80px;" data-bind-child="style" data-bind="rightnavcolor" value="<%style.rightnavcolor%>" />
- </div>
- </div>
- </div>
- <%/if%>
- <%if params.rightnav==2%>
- <div class="form-group">
- <div class="col-sm-2 control-label">选择图片</div>
- <div class="col-sm-10">
- <div class="input-group">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="rightnavimg" value="<%params.rightnavimg%>" id="rightnavimg" />
- <span data-input="#rightnavimg" data-img="#showrightnavimg" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
- </div>
- <div class="input-group " style="margin-top:.5em;">
- <img src="<%imgsrc params.rightnavimg%>" class="img-responsive img-thumbnail" style="height: 50px; background: #eee;" id="showrightnavimg">
- <em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="$('#rightnavimg').val('').trigger('change');$(this).prev().attr('src', '')">×</em>
- </div>
- </div>
- </div>
- <%/if%>
- <%if params.rightnav==1||params.rightnav==2%>
- <div class="form-group">
- <div class="col-sm-2 control-label">点击事件</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.rightnavclick=='0'||!params.rightnavclick%>
- <div class="form-group">
- <div class="col-sm-2 control-label">选择链接</div>
- <div class="col-sm-10">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="rightnavlink" value="<%params.rightnavlink%>" id="rightnavlink" />
- <span data-input="#rightnavlink" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
- </div>
- </div>
- </div>
- <%/if%>
- <%/if%>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">搜索框背景</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="searchbackground" value="<%style.searchbackground%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">搜索文字颜色</div>
- <div class="col-sm-10">
- <div class="input-group input-group-sm" style="width: 127px;">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="searchtextcolor" value="<%style.searchtextcolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
- </div>
- <div class="help-block">提示:此处是搜索文字颜色并不是提示文字颜色</div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">搜索框样式</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">搜索提示文字</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="placeholder" value="<%params.placeholder%>" data-placeholder="请输入关键字进行搜索" placeholder="请输入关键字进行搜索" />
- </div>
- </div>
- <div class="alert alert-danger" style="margin-bottom: 0;">注意:由于搜索框固定在页面顶部,有可能遮挡底层元素,建议页面首个元素放置幻灯片等较高高度的元素。</div>
- </script>
- <script type="text/html" id="tpl_edit_tabbar">
- <div class="alert alert-primary">提示:当访问页面链接等于选项卡中的链接时高亮, 选项卡个数超过三个自动滚动</div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color">
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- <div class="col-sm-2 control-label">文字颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="color" value="<%style.color%>" type="color">
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#666666').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">激活背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="activebackground" value="<%style.activebackground%>" type="color">
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">重置</span>
- </div>
- </div>
- <div class="col-sm-2 control-label">激活文字颜色</div>
- <div class="col-sm-4">
- <div class="input-group input-group-sm">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="activecolor" value="<%style.activecolor%>" type="color">
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ef4f4f').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="line"></div>
- <div class="form-items indent" data-min="1" data-max="8">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image square drag-btn square" style="height: 70px; line-height: 70px;">拖动排序</div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <span class="input-group-addon">选项卡文字</span>
- <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" />
- </div>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <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%>" />
- <span class="input-group-addon btn btn-default" data-toggle="selectUrl" data-input="#curl-<%itemid%>">选择链接</span>
- </div>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- </script>
- <script type="text/html" id="tpl_edit_goods">
- <div class="form-group">
- <div class="col-sm-2 control-label">商品类型</div>
- <div class="col-sm-10">
- <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>
- <%if (merch==0||!merch)&&plugins.creditshop==1%>
- <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>
- <%/if%>
- <div class="help-block text-danger">注意:选择好商品类型后尽量不要更改</div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">显示类型</div>
- <div class="col-sm-10">
- <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>
- <%if style.liststyle!=''%>
- <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>
- <%/if%>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">列表样式</div>
- <div class="col-sm-10">
- <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>
- <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>
- <%if params.goodstype==0||!params.goodstype%>
- <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>
- <%/if%>
- <%if params.goodsscroll=='0'||!params.goodsscroll%>
- <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>
- <%/if%>
- <%if style.liststyle=='block three' && params.goodstype!=1%>
- <div class="help-block text-danger">提示:"三列显示商品"显示商品原价及销量可能会造成样式错乱</div>
- <%/if%>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">背景颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="background" value="<%style.background%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#f3f3f3').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="line"></div>
- <%if params.goodstype==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">商品标签</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- <div class="help-block">商品类型: 商品、优惠券、红包、余额 活动类型: 兑换、抽奖</div>
- </div>
- </div>
- <%if params.showtag>0%>
- <div class="form-group">
- <div class="col-sm-2 control-label">标签背景</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="tagbackground" value="<%style.tagbackground%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#fe5455').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <%/if%>
- <%/if%>
- <div class="form-group">
- <div class="col-sm-2 control-label">商品名称</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.showtitle=='1'%>
- <div class="form-group">
- <div class="col-sm-2 control-label">名称颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="titlecolor" value="<%style.titlecolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#000000').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <%/if%>
- <div class="form-group">
- <div class="col-sm-2 control-label">商品价格</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.showprice=='1'%>
- <div class="form-group">
- <div class="col-sm-2 control-label">价格颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="pricecolor" value="<%style.pricecolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ff5555').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <%if params.goodstype=='0'||!params.goodstype%>
- <div class="form-group">
- <div class="col-sm-2 control-label">商品原价</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.showproductprice==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">原价颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="productpricecolor" value="<%style.productpricecolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#999999').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">原价文字</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="productpricetext" value="<%params.productpricetext||'原价'%>" style="width: 128px;" />
- <div class="help-block">提示:建议在三字以内</div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">原价删除线</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <div class="line"></div>
- <%/if%>
- <div class="form-group">
- <div class="col-sm-2 control-label">商品销量</div>
- <div class="col-sm-10">
- <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>
- <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>
- </div>
- </div>
- <%if params.showsales==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">销量颜色</div>
- <div class="col-sm-4">
- <div class="input-group">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="salescolor" value="<%style.salescolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#999999').trigger('propertychange')">重置</span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">销量文字</div>
- <div class="col-sm-10">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="salestext" value="<%params.salestext||'销量'%>" style="width: 128px;" />
- <div class="help-block">提示:建议在三字以内</div>
- </div>
- </div>
- <div class="line"></div>
- <%/if%>
- <%/if%>
- <%/if%>
- <%if params.showprice=='1' && (params.goodstype=='0'||!params.goodstype)%>
- <div class="form-group">
- <div class="col-sm-2 control-label">购买按钮</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- <%if ((params.goodstype=='0'||!params.goodstype) && params.showprice=='1' && style.buystyle!='') || (params.goodstype=='1') && params.showprice=='1'%>
- <div class="form-group">
- <div class="col-sm-2 control-label">按钮颜色</div>
- <div class="col-sm-10">
- <div class="input-group" style="width: 130px;">
- <input class="form-control input-sm diy-bind color" data-bind-child="style" data-bind="buybtncolor" value="<%style.buybtncolor%>" type="color" />
- <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ff5555').trigger('propertychange')">重置</span>
- </div>
- <span class="help-block">砍价商品不支持自定义按钮样式,仅支持自定义按钮颜色</span>
- </div>
- </div>
- <%/if%>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">商品图标</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <%if params.showicon=='2'%>
- <div class="form-group">
- <div class="col-sm-2 control-label">自定义图标</div>
- <div class="col-sm-10">
- <div class="input-group">
- <input class="form-control input-sm diy-bind" data-bind-child="params" data-bind="goodsiconsrc" placeholder="请输入图片地址或选择图片" value="<%params.goodsiconsrc%>" id="goodsiconsrc" />
- <span data-input="#goodsiconsrc" data-img="#goodsicon" data-toggle="selectImg" class="input-group-addon btn btn-default">选择图片</span>
- </div>
- <div class="input-group " style="margin-top:.5em;">
- <img src="<%imgsrc params.goodsiconsrc%>" class="img-responsive img-thumbnail" id="goodsicon" style="width: 60px; height: 60px;">
- <em class="close" style="position:absolute; top: 0px; right: -14px;" title="删除这张图片" onclick="$('#goodsiconsrc').val('').trigger('change');$(this).prev().attr('src', '')">×</em>
- </div>
- </div>
- </div>
- <%/if%>
- <%if params.showicon=='1'%>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标样式</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标属性</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- <%if params.showicon=='2'%>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标位置</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">上下偏移</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.iconpaddingtop%>" data-min="0" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.iconpaddingtop%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="iconpaddingtop" value="<%style.iconpaddingtop%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">左右偏移</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.iconpaddingleft%>" data-min="0" data-max="30"></div>
- <div class="col-sm-4 control-labe count"><span><%style.iconpaddingleft%></span>px(像素)</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="iconpaddingleft" value="<%style.iconpaddingleft%>" type="hidden" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标缩放</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%style.iconzoom%>" data-min="1" data-max="100"></div>
- <div class="col-sm-4 control-labe count"><span><%style.iconzoom%></span>%</div>
- <input class="diy-bind input" data-bind-child="style" data-bind="iconzoom" value="<%style.iconzoom%>" type="hidden" />
- </div>
- </div>
- </div>
- <%/if%>
- <div class="line"></div>
- <div class="form-group">
- <div class="col-sm-2 control-label">售罄图标</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <%if params.saleout==1%>
- <div class="form-group">
- <div class="col-sm-2 control-label">图标样式</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- </div>
- </div>
- <%/if%>
- <div class="line"></div>
- <%if params.goodsdata=='0'%>
- <div class="form-items indent" data-min="1">
- <div class="inner" id="form-items">
- <%each data as child itemid %>
- <div class="item" data-id="<%itemid%>">
- <span class="btn-del" title="删除"></span>
- <div class="item-image square">
- <div class="text goods-selector" data-goodstype="<%params.goodstype%>">选择商品</div>
- <img src="<%imgsrc child.thumb%>" id="pimg-<%itemid%>" />
- <input type="hidden" class="diy-bind" data-bind-parent="data" data-bind-child="<%itemid%>" data-bind="imgurl" id="cimg-<%itemid%>" value="<%child.imgurl%>" />
- </div>
- <div class="item-form">
- <div class="input-group" style="margin-bottom:0px; ">
- <span class="input-group-addon">名称</span>
- <input class="form-control input-sm" value="<%child.title||'未设置'%>" readonly="readonly" />
- </div>
- <%if params.goodstype==0||!params.goodstype%>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <span class="input-group-addon">价格</span>
- <input class="form-control input-sm" value="¥<%child.price%>" readonly="readonly" />
- </div>
- <%else%>
- <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
- <span class="input-group-addon">价格</span>
- <input class="form-control input-sm" value="<%child.price%>" readonly="readonly" />
- <span class="input-group-addon" style="border-left: 0; border-right: 0;">元</span>
- <input style="display:none;" class="form-control input-sm" value="<%child.credit%>" readonly="readonly" />
- <span style="display:none;" class="input-group-addon">积分</span>
- </div>
- <%/if%>
- </div>
- </div>
- <%/each%>
- </div>
- <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
- </div>
- <%/if%>
- <%if params.goodsdata>0%>
- <div class="form-group">
- <div class="col-sm-2 control-label">商品排序</div>
- <div class="col-sm-10">
- <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>
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-2 control-label">显示数量</div>
- <div class="col-sm-10">
- <div class="form-group">
- <div class="slider col-sm-8" data-value="<%params.goodsnum%>" data-min="1" data-max="20"></div>
- <div class="col-sm-4 control-labe count"><span><%params.goodsnum%></span>个</div>
- <input class="diy-bind input" data-bind-child="params" data-bind="goodsnum" value="<%params.goodsnum%>" type="hidden" />
- </div>
- </div>
- </div>
- <%/if%>
-
- </script>
|