des.blade.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {{--<link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/goods.css')}}"/>--}}
  2. <style>
  3. /*//* 避免商品详情tab下的百度富文本编辑器预览时被顶部导航栏遮挡 */
  4. .edui-default {
  5. z-index:2001!important;
  6. }
  7. .edui-default .edui-popup-content {
  8. position: relative;
  9. z-index:2002!important;
  10. }
  11. </style>
  12. <div class="form-group">
  13. <label class="col-xs-12 col-sm-3 col-md-1 control-label">{{$lang['shopinfo']}}</label>
  14. <div class="col-sm-9 col-xs-12 col-md-11">
  15. {!! yz_tpl_ueditor('goods[content]', $goods['content']) !!}
  16. </div>
  17. </div>
  18. <script type="text/javascript">
  19. var ueditoroption = {
  20. 'toolbars' : [['source', 'preview', '|', 'bold', 'italic', 'underline', 'strikethrough', 'forecolor', 'backcolor', '|',
  21. 'justifyleft', 'justifycenter', 'justifyright', '|', 'insertorderedlist', 'insertunorderedlist', 'blockquote', 'emotion',
  22. 'link', 'removeformat', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight','indent', 'paragraph', 'fontsize', '|',
  23. 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol',
  24. 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|', 'anchor', 'map', 'print', 'drafts']],
  25. };
  26. </script>
  27. <script type="text/javascript">
  28. require(['bootstrap'], function ($) {
  29. $(document).scroll(function () {
  30. var toptype = $("#edui1_toolbarbox").css('position');
  31. if (toptype == "fixed") {
  32. $("#edui1_toolbarbox").addClass('top_menu');
  33. }
  34. else {
  35. $("#edui1_toolbarbox").removeClass('top_menu');
  36. }
  37. });
  38. });
  39. </script>