edit.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <form id="form" action="{:url('adwords/edit')}">
  2. <input type="hidden" name="id" value="{$info.id}"/>
  3. <input type="hidden" name="picture" value="{$info.picture}" id="picture" />
  4. <input type="hidden" name="group" value="{$info.group?:$group}" />
  5. <table class="formtable">
  6. <tr>
  7. <th>跳转方式:</th>
  8. <td>
  9. <select datatype="*" class="select w300" name="open_type">
  10. <option value="navigate"{if $info.open_type =='navigate'} selected{/if}>navigate [保留并跳转到新页面]</option>
  11. <option value="redirect"{if $info.open_type =='redirect'} selected{/if}>redirect [关闭并跳转到新页面]</option>
  12. <option value="switchTab"{if $info.open_type =='switchTab'} selected{/if}>switchTab [关闭并跳转TabBar页面]</option>
  13. </select>
  14. </td>
  15. </tr>
  16. <tr><th>广告标题:</th><td><input autocomplete="off" class="input w300" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
  17. <tr><th>链接地址:</th><td>
  18. <select id="miniapp_apge" class="select readonly">
  19. <option value="">路径提示</option>
  20. <optgroup label="好店模块">
  21. <option value="/pages/store/index">好店首页</option>
  22. <option value="/pages/index/dopay?store_id=*">支付页面</option>
  23. </optgroup>
  24. <optgroup label="商城模块">
  25. <option value="/pages/shop/index">商城首页</option>
  26. </optgroup>
  27. <optgroup label="同城模块"">
  28. <option value="/pages/info/index">同城首页</option>
  29. </optgroup>
  30. <optgroup label="其它模块"">
  31. <option value="/pages/user/index">用户中心</option>
  32. </optgroup>
  33. </select><span class="gray"> * 替换为正确的参数</span><br />
  34. <input class="input w300" datatype="*" ignore="ignore" type="text" name="link" value="{$info.link|dehtml}" />
  35. </td></tr>
  36. <tr><th></th>
  37. <td>
  38. <div class="img-review select_img" url="{:url("system/passport.common/upload")}">{if $info.picture}<img src="{$info.picture}">{/if}</div>
  39. </td>
  40. </tr>
  41. <tr>
  42. <th></th>
  43. <td>
  44. <input type="submit" value="确定" class="button button-blue submit" />
  45. <input type="reset" value="重置" class="button button-blank"/>
  46. </td>
  47. </tr>
  48. </table>
  49. </div>
  50. </form>
  51. <script type="text/javascript">
  52. Do('base','layer','form', function () {
  53. $('#form').isForm();
  54. $(".select_img").win();
  55. $("#miniapp_apge").change(function(){
  56. $("input[name='link']").val($(this).val());
  57. });
  58. })
  59. //添加图片
  60. function setImg(show_src){
  61. $("#picture").val(show_src);
  62. $(".img-review").html('<img src="'+show_src+'" style="max-width:400px">');
  63. }
  64. </script>