index.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {template '_header'}
  2. <link href="/static/diypage/css/web.css" rel="stylesheet" type="text/css"/>
  3. <link href="/static/diypage/css/diy.min.css" rel="stylesheet" type="text/css"/>
  4. <link href="/static/diypage/css/foxui.diy.css" rel="stylesheet" type="text/css"/>
  5. <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
  6. <div class="page-header">
  7. 当前位置:<span class="text-primary">首页布局</span>
  8. </div>
  9. <div class="page-content">
  10. <div class="row relative w840">
  11. <div class="diy-phone">
  12. <div class="phone-head"></div>
  13. <div class="phone-body">
  14. <div class="phone-title" id="page">loading...</div>
  15. <div class="phone-main" id="phone">
  16. <p style="text-align: center; line-height: 400px">您还没有添加任何元素</p>
  17. </div>
  18. </div>
  19. <div class="phone-foot"></div>
  20. </div>
  21. <div class="diy-editor form-horizontal" id="diy-editor">
  22. <div class="editor-arrow"></div>
  23. <div class="inner"></div>
  24. </div>
  25. <div class="diy-menu">
  26. <div class="navs" id="navs"></div>
  27. <div class="action">
  28. <nav class="btn btn-default btn-sm" style="float: left; display: none" id="gotop"><i class="icon icon-top" style="font-size: 12px"></i> 返回顶部</nav>
  29. <nav class="btn btn-primary btn-sm btn-save" data-type="save">保存</nav>
  30. </div>
  31. </div>
  32. </div>
  33. {template 'config/layoutindex/_template'}
  34. {template 'config/layoutindex/_template_edit'}
  35. </div>
  36. <script type="text/javascript" src="./resource/components/ueditor/ueditor.config.js"></script>
  37. <script type="text/javascript" src="./resource/components/ueditor/ueditor.all.min.js"></script>
  38. <script type="text/javascript" src="./resource/components/ueditor/lang/zh-cn/zh-cn.js"></script>
  39. <script language="javascript">
  40. var path = '../diypage/js/diy.min';
  41. myrequire([path,'tpl','web/biz'],function(modal,tpl){
  42. modal.init({
  43. tpl: tpl,
  44. attachurl: "{$_W['attachurl']}",
  45. id: '{:intval($_GPC["id"])}',
  46. type: '{$type}',
  47. data: <?php if( !empty($page['data'])){ ?>{:json_encode($page['data'])}<?php }else{ ?>null<?php } ?>,
  48. diymenu: {:json_encode($diymenu)},
  49. diyadvs: {:json_encode($diyadvs)},
  50. levels: <?php if( !empty($levels)){ ?>{:json_encode($levels)}<?php }else{ ?>null<?php } ?>,
  51. merch: <?php if( $_W['plugin']=='merch' && !empty($_W['merchid'])){ ?>1<?php }else{ ?>0<?php } ?>,
  52. plugins: {$hasplugins},
  53. shopset: {"name":"","logo":"","description":"","img":"","signimg":"","getinfo":"1","saleout":"","loading":"","diycode":"","funbar":"0","goodstotal":"0"}
  54. });
  55. });
  56. function selectUrlCallback(href){
  57. var ue = UE.getEditor('rich');
  58. if(href){
  59. ue.execCommand('link', {href: href, 'data-nocache': 'true'});
  60. }
  61. }
  62. function callbackGoods(data) {
  63. myrequire([path],function(modal) {
  64. modal.callbackGoods(data);
  65. });
  66. }
  67. function callbackCategory (data) {
  68. myrequire([path],function(modal) {
  69. modal.callbackCategory(data);
  70. });
  71. }
  72. function callbackGroup (data) {
  73. myrequire([path],function(modal) {
  74. modal.callbackGroup(data);
  75. });
  76. }
  77. function callbackMerch (data) {
  78. myrequire([path],function(modal) {
  79. modal.callbackMerch(data);
  80. });
  81. }
  82. function callbackMerchCategory (data) {
  83. myrequire([path],function(modal) {
  84. modal.callbackMerchCategory(data);
  85. });
  86. }
  87. function callbackMerchGroup (data) {
  88. myrequire([path],function(modal) {
  89. modal.callbackMerchGroup(data);
  90. });
  91. }
  92. function callbackSeckill (data) {
  93. myrequire([path],function(modal) {
  94. modal.callbackSeckill(data);
  95. });
  96. }
  97. function callbackCoupon (data) {
  98. myrequire([path],function(modal) {
  99. modal.callbackCoupon(data);
  100. });
  101. }
  102. </script>
  103. {template '_footer'}