| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 | 
							- <{include file="header.html"}>
 
- <link rel="stylesheet" type="text/css" href="<{$web_cfg.cdn}>/haili/css/comment.css" />
 
- <!--公用标题居中显示-->
 
- <{include file="common_header.html"}>
 
- <style>
 
- .layui-upload-file {
 
-     display: none;
 
- }
 
- </style>
 
- <section class="comment">
 
-         <h2>发表您的评价反馈</h2>
 
-         <section class="comment-imgs-box">
 
-             <h5>试用产品图片(最多9张)</h5>
 
-             <ul>
 
-                 <{if $feedback && $feedback.pic}>
 
-                 <{foreach from=$feedback.pic item=v}>
 
-                 <li><img src="<{$v}>" class="pics"><em class="close"></em></li>
 
-                 <{/foreach}>
 
-                 <{/if}>
 
-                 <li class="fileselect image_upload" v="1" id="file-upload">
 
-                     <input type="text" disabled name="file" id="file" accept="image/*" style="cursor:pointer;">
 
-                 </li>
 
-             </ul>
 
-         </section>
 
-         <section class="comment-text-box">
 
-             <input type="hidden" name="pic" id="pic" value="<{$feedback.pic}>" />
 
-             <input type="hidden" name="lottery_data_id" id="lottery_data_id" value="<{$lottery_data_id}>" />
 
-             <textarea maxlength="200" placeholder="输入您的评价(200字内)" name="content" id="content"><{$feedback.content}></textarea>
 
-         </section>
 
-         <section class="comment-button-box">
 
-             <section class="button-wrapper">
 
-                 <input class="button" type="submit" name="submit" id="submit" value="提交">
 
-             </section>
 
-         </section>
 
- </section>
 
- <!--公用提示背景遮罩层-->
 
- <div class="a_cover"></div>
 
- <div class="v_tips_box v_tips_box2" id="error_tips_box">
 
-     <div class="v_close_btn" id="tips_close_btn"></div>
 
-     <p class="tips_msg" id="error_msg">错误信息</p>    
 
- </div>
 
- <{include file="left.html"}>
 
- <script>
 
- function close()
 
- {
 
-     if ($('.close').length) {
 
-         $(".close").unbind('click').bind('click', function(i)
 
-         {
 
-             $(this).parent().remove();
 
-         })
 
-     }
 
-     
 
- }
 
- $(function()
 
- {
 
-     if($(".image_upload").length)
 
-     {
 
-         $(".image_upload").each(function(i)
 
-         {
 
-             loadUpload(i,$(this),1,'/?c=kindeditor&a=updateJson&dir=image');//三个参数说明1:第几个上传框2:文件对象3:图片的基本配置标题
 
-         })
 
-     }
 
-     close();
 
- })
 
- KISSY.use('node, io', function (S, Node, IO) {    
 
-     // 提示
 
-     function showTipsBox(msg,close){
 
-         $("#error_msg").html(msg);
 
-         $("#tips_close_btn").hide();
 
-         if(close){
 
-             $("#tips_close_btn").show();
 
-         }
 
-         $("#error_tips_box").fadeIn();
 
-         $('.a_cover').fadeIn();
 
-     }
 
-     
 
-     // 关闭提示
 
-     $("#tips_close_btn").on('click', function(){
 
-         $("#error_tips_box").fadeOut();
 
-         $('.a_cover').fadeOut();
 
-     });
 
-     
 
-     $('#submit').on('click', function () {
 
-         var content = S.trim($('textarea[name=content]').val());
 
-         if (content == '') {
 
-             showTipsBox('评价内容不能为空',true);
 
-             return false;
 
-         }
 
-         var pic = [];
 
-         $('.pics').each(function()
 
-         {
 
-             pic.push($(this).attr('src'));
 
-         });
 
-         if (!pic) {
 
-             showTipsBox('请上传图片',true);
 
-             return false;
 
-         }
 
-         pic = pic.join(',');
 
-         
 
-         IO.get('<{$web_cfg.domain}>/?c=FeedBack&a=Up'
 
-             , {
 
-                 lottery_data_id: '<{$lotteryData.id}>',
 
-                 content: content,
 
-                 pic: pic
 
-             }
 
-             , function (data) {
 
-                 if (data.ok) {
 
-                     //showTipsBox('提交成功');
 
-                     //return true;
 
-                     <{if $refer}>
 
-                     url ='<{$refer}>';
 
-                     <{else}>
 
-                     url ='<{$giftsUrl}>';
 
-                     <{/if}>
 
-                     toast('提交成功', url);
 
-                 } else {
 
-                     showTipsBox(data.msg);
 
-                     return false;
 
-                 }
 
-             }
 
-             , 'json'
 
-         );
 
-     
 
-     });
 
-     
 
- });
 
- </script>
 
- <script type="text/javascript" src="<{$web_cfg.cdn}>/public/layui/upload.js?v1211"></script>
 
- <script type="text/javascript" src="<{$web_cfg.cdn}>/public/layui/layui.js"></script>
 
- <{include file="bottom.html"}>
 
 
  |