view.html 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {include file="public/header" /}
  2. <form method="post" name="remark_form" id="remark_form" action="{:url('live_apply/view',['live_apply_id'=>$Request.param.live_apply_id])}">
  3. <table class="ds-default-table nobdb">
  4. <tbody>
  5. <tr class="noborder">
  6. <td class="required w108"><label>{$Think.lang.live_apply_cover}</label></td>
  7. <td class="vatop rowform">
  8. {if $Think.config.ds_config.live_type==1}
  9. <img width="200" height="200" src="{$live_apply_info.minipro_live_image_url}" />
  10. {else}
  11. {if $live_apply_info.live_apply_cover_video}
  12. <video controls="controls" width="200" height="200" src="{$live_apply_info.live_apply_cover_video_url}" />
  13. {else}
  14. <img width="200" height="200" src="{$live_apply_info.live_apply_cover_image_url}" />
  15. {/if}
  16. {/if}
  17. </td>
  18. </tr>
  19. <tr class="noborder">
  20. <td class="required w108"><label>{$Think.lang.live_apply_name}</label></td>
  21. <td class="vatop rowform">{if $Think.config.ds_config.live_type==1}{$live_apply_info.minipro_live_name}{else}{$live_apply_info.live_apply_name}{/if}</td>
  22. </tr>
  23. {if $Think.config.ds_config.live_type!=1}
  24. <tr class="noborder">
  25. <td class="required w108"><label>{$Think.lang.live_apply_remark}</label></td>
  26. <td class="vatop rowform">{$live_apply_info.live_apply_remark}</td>
  27. </tr>
  28. {/if}
  29. {if $live_apply_info.goods_list}
  30. <tr class="noborder">
  31. <td colspan="2">
  32. <div class='order'>
  33. <table class="ds-default-table goods ">
  34. <tbody>
  35. <tr>
  36. <th></th>
  37. <th>{$Think.lang.product_info}</th>
  38. <th class="align-center">{$Think.lang.product_price}</th>
  39. </tr>
  40. {foreach name='live_apply_info.goods_list' item='goods'}
  41. <tr>
  42. <td class="w60 picture"><div class="size-56x56"><span class="thumb size-56x56"><i></i><a href="{:url('/home/Goods/index',['goods_id'=>$goods.goods_id])}" target="_blank"><img src="{$goods.goods_image}" width="60" height="60"/> </a></span></div></td>
  43. <td class="w50pre"><p><a href="{:url('/home/Goods/index',['goods_id'=>$goods.goods_id])}" target="_blank">{$goods.goods_name}</a></p></td>
  44. <td class="w96 align-center"><span class="red_common">{$Think.lang.currency}{$goods.goods_price}</span></td>
  45. </tr>
  46. {/foreach}
  47. </tbody>
  48. </table>
  49. </div>
  50. </td>
  51. </tr>
  52. {/if}
  53. {if $Think.config.ds_config.live_type==1}
  54. <tr class="noborder">
  55. <td class="required w108"><label>{$Think.lang.live_apply_push_state}</label></td>
  56. <td class="vatop rowform">{if $live_apply_info.minipro_live_end_time>TIMESTAMP}{if $live_apply_info.minipro_live_start_time>TIMESTAMP}{$Think.lang.live_apply_push_state_text[0]}{else}{$Think.lang.live_apply_push_state_text[1]}{/if}{else}{$Think.lang.live_end}{/if}</td>
  57. </tr>
  58. {else}
  59. {if $live_apply_info.live_apply_state==0 || $live_apply_info.live_apply_state==1}
  60. <tr class="noborder">
  61. <td class="required w108"><label>{$Think.lang.live_apply_video}</label></td>
  62. <td class="vatop rowform"><input type='text' class='txt' name='live_apply_video' value='{$live_apply_info.live_apply_video}'></td>
  63. </tr>
  64. <tr class="noborder">
  65. <td class="required"><label class="validation" for="live_apply_end_time">{$Think.lang.live_apply_end_time}</label></td>
  66. <td class="vatop rowform"><input type="text" id="live_apply_end_time" class="txt date" name="live_apply_end_time" value="{if $live_apply_info.live_apply_end_time}{$live_apply_info.live_apply_end_time|date='Y-m-d H:i'}{/if}"/></td>
  67. </tr>
  68. {if $live_apply_info.live_apply_state==0}
  69. <tr class="noborder">
  70. <td class="required w108"><label>{$Think.lang.live_apply_state}</label></td>
  71. <td class="vatop rowform onoff">
  72. <label for="rewrite_enabled_1" class="cb-enable selected" title="{$Think.lang.ds_yes}>"><span>{$Think.lang.ds_yes}</span></label>
  73. <label for="rewrite_disabled_2" class="cb-disable" title="{$Think.lang.ds_no}"><span>{$Think.lang.ds_no}</span></label>
  74. <input id="rewrite_enabled_1" name="verify_state" value="1" type="radio" checked="checked">
  75. <input id="rewrite_disabled_2" name="verify_state" value="0" type="radio">
  76. </td>
  77. </tr>
  78. <tr class="noborder" dstype="reason" style="display :none;">
  79. <td class="required w108"><label for="verify_reason">{$Think.lang.verify_reason}</label></td>
  80. <td class="vatop rowform"><textarea rows="6" class="tarea" cols="60" name="verify_reason" id="verify_reason"></textarea></td>
  81. </tr>
  82. {/if}
  83. {if $live_apply_info.active}
  84. <tr class="noborder">
  85. <td class="required w108"><label>{$Think.lang.live_video}</label></td>
  86. <td class="vatop rowform"><div id="id_test_video"></div></td>
  87. </tr>
  88. {else}
  89. <tr class="noborder">
  90. <td class="required w108"><label>{$Think.lang.live_apply_push_state}</label></td>
  91. <td class="vatop rowform">{if $live_apply_info.live_apply_state==1}{if $live_apply_info.live_apply_end_time>TIMESTAMP}{$Think.lang.live_apply_push_state_text[$live_apply_info['live_apply_push_state']]}{else}{$Think.lang.live_end}{/if}{/if}</td>
  92. </tr>
  93. {/if}
  94. <tr class="tfoot">
  95. <td colspan="2">
  96. <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
  97. {if $live_apply_info.active}
  98. <input class="btn" type="button" onclick="dsLayerConfirm('{:url('live_apply/close',['live_apply_id'=>$live_apply_info.live_apply_id])}','{$Think.lang.confirm_live_cut_off}',{$live_apply_info.live_apply_id})" value="{$Think.lang.live_cut_off}"/>
  99. {/if}
  100. </td>
  101. </tr>
  102. {/if}
  103. {/if}
  104. </tbody>
  105. </table>
  106. </form>
  107. {if $Think.config.ds_config.live_type!=1}
  108. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery-ui-timepicker/jquery-ui-timepicker-addon.min.css">
  109. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery-ui-timepicker/jquery-ui-timepicker-addon.min.js"></script>
  110. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery-ui-timepicker/i18n/jquery-ui-timepicker-zh-CN.js"></script>
  111. {if $Think.config.ds_config.video_type=='aliyun'}
  112. <link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.8.8/skins/default/aliplayer-min.css" />
  113. <script type="text/javascript" charset="utf-8" src="https://g.alicdn.com/de/prismplayer/2.8.8/aliplayer-min.js"></script>
  114. {else}
  115. <script src="{$Think.PLUGINS_SITE_ROOT}/TcPlayer-2.3.2.js"></script>
  116. {/if}
  117. <script>
  118. $(function() {
  119. $('#live_apply_end_time').datetimepicker({dateFormat: 'yy-mm-dd'});
  120. $('input[name="verify_state"]').click(function() {
  121. if ($(this).val() == 1) {
  122. $('tr[dstype="reason"]').hide();
  123. } else {
  124. $('tr[dstype="reason"]').show();
  125. }
  126. });
  127. /*{if $live_apply_info.active}*/
  128. /*{if $Think.config.ds_config.video_type=='aliyun'}*/
  129. var player = new Aliplayer({
  130. "id": "id_test_video",
  131. "source": "{$live_apply_info.live_apply_play_url}",
  132. "width": "650px",
  133. "height": "450px",
  134. "autoplay": true,
  135. "isLive": true,
  136. "rePlay": false,
  137. "playsinline": true,
  138. "preload": true,
  139. "controlBarVisibility": "hover",
  140. "useH5Prism": true
  141. }, function (player) {
  142. }
  143. );
  144. /*{else}*/
  145. var player = new TcPlayer('id_test_video', {
  146. "m3u8": "{$live_apply_info.live_apply_play_url}", //请替换成实际可用的播放地址
  147. "autoplay" : true, //iOS 下 safari 浏览器,以及大部分移动端浏览器是不开放视频自动播放这个能力的
  148. "width" : '650',//视频的显示宽度,请尽量使用视频分辨率宽度
  149. "height" : '450'//视频的显示高度,请尽量使用视频分辨率高度
  150. });
  151. /*{/if}*/
  152. /*{/if}*/
  153. });
  154. </script>
  155. {/if}