You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
2.8 KiB

  1. <!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  2. <title>发表评价</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
  3. <link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
  4. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script>
  5. <meta name="keywords" content="关键词"><meta name="description" content="描述"></head><body style="background-color:#f1f1f1;">
  6. <div class="classreturn loginsignup">
  7. <div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
  8. <div class="ds-in-bl tit center"><span>发表评价</span></div>
  9. <div class="ds-in-bl nav_menu"><a href="javascript:submit();" style="color:#e94e45;">发布</a></div>
  10. </div>
  11. <form action="<?php echo route('weixin_order_comment'); ?>" method="post" id="myform">
  12. <?php if($post){ ?>
  13. <input name="order_id" type="hidden" value="<?php echo $post['id']; ?>">
  14. <div class="floor">
  15. <?php if($post['goods_list']){foreach($post['goods_list'] as $k=>$v){ ?>
  16. <div class="tit_h mt10"><img src="<?php echo $v['goods_img']; ?>"> <span class="fr"></span></div>
  17. <div style="padding:10px 10px 8px 10px;background-color:#fff;"><textarea rows="4" name="comment[<?php echo $k; ?>][content]" onfocus="if(value=='宝贝满足你的期待吗?说说你的使用心得,分享给想买的TA们吧'){value=''}" onblur="if(value==''){value='宝贝满足你的期待吗?说说你的使用心得,分享给想买的TA们吧'}">宝贝满足你的期待吗?说说你的使用心得,分享给想买的TA们吧</textarea></div>
  18. <div class="tit_h" style="border-top:1px solid #eee;"><input type="checkbox" name="comment[<?php echo $k; ?>][is_anonymous]" value="1" checked> 匿名 <span class="fr">你写的评价会以匿名的形式展现</span></div>
  19. <input name="comment[<?php echo $k; ?>][id_value]" type="hidden" value="<?php echo $v['goods_id']; ?>">
  20. <?php }} ?>
  21. </div>
  22. <?php }else{ ?>
  23. <div style="text-align:center;line-height:40px;color:#999;">暂无记录</div>
  24. <?php } ?>
  25. </form>
  26. <style>
  27. .tit_h{font-size:16px;font-weight:400;background-color:#fff;color:#383838;height:42px;line-height:41px;padding-left:10px;padding-right:10px;border-bottom:1px solid #eee;}
  28. .tit_h span{color:#999;font-size:14px;}
  29. .tit_h img{width:28px;height:28px;}
  30. textarea{width:100%;border:none;color:#999;}
  31. </style>
  32. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script>
  33. <script>
  34. function submit()
  35. {
  36. $("#myform").submit();
  37. }
  38. </script>
  39. </body></html>