php控制器方法部分
ajax前台頁面使用的方法
<code><span>public</span><span><span>function</span><span>attention</span><span>()</span>{</span><span>//验证是否登录不登录返回0不关注</span><span>if</span>(!<span>isset</span>(<span>$_SESSION</span>[<span>'uid'</span>]) || !<span>isset</span>(<span>$_SESSION</span>[<span>'username'</span>]))View::ajax(<span>0</span>); <span>//获取uid</span><span>$uid</span>=(int)<span>$_SESSION</span>[<span>'uid'</span>]; <span>//获取项目id</span><span>$roid</span>=Q(<span>'post.roid'</span>,<span>0</span>,<span>'intval'</span>); <span>//添加关注</span><span>$user_attion</span> = <span>new</span> \Common\Model\userAttion; <span>//判断是否有</span><span>$pd</span>=Db::table(<span>'user_attion'</span>)->where(<span>"user_uid={$uid} and project_roid={$roid}"</span>)->count(); <span>if</span>(!<span>empty</span>(<span>$pd</span>)){ <span>//有就修改</span><span>$user_attion</span>->where(<span>"user_uid={$uid} and project_roid={$roid}"</span>)->save(<span>array</span>(<span>'user_uid'</span>=><span>$uid</span>,<span>'project_roid'</span>=><span>$roid</span>)); }<span>else</span>{ <span>//没有就添加</span><span>$user_attion</span>->add(<span>array</span>(<span>'user_uid'</span>=><span>$uid</span>,<span>'project_roid'</span>=><span>$roid</span>)); } <span>//查询现有条数</span><span>$data</span>=Db::table(<span>'user_attion'</span>)->where(<span>"project_roid={$roid}"</span>)->count(); <span>//返回ajax</span><span>echo</span> json_encode(<span>array</span>(<span>'count'</span>=><span>$data</span>));<span>exit</span>; } <span>//评论数据</span><span>public</span><span><span>function</span><span>comment</span><span>()</span>{</span><span>//验证是否登录不登录返回0</span><span>if</span>(!<span>isset</span>(<span>$_SESSION</span>[<span>'uid'</span>]) || !<span>isset</span>(<span>$_SESSION</span>[<span>'username'</span>]))View::ajax(<span>0</span>); <span>//获取uid</span><span>$uid</span>=(int)<span>$_SESSION</span>[<span>'uid'</span>]; <span>//获取roid</span><span>$roid</span>=Q(<span>'post.project_roid'</span>,<span>'0'</span>,<span>'intval'</span>); <span>//添加评论</span><span>$comModel</span> = <span>new</span> \Common\Model\Comment; <span>if</span>(IS_POST){ <span>//提交数据</span><span>if</span>(!<span>$comModel</span>->store()) View::error(<span>$comModel</span>->getError()); <span>//查询最新的那条</span><span>$data</span>=<span>$comModel</span>->join(<span>'user'</span>,<span>'uid'</span>,<span>'='</span>,<span>'user_uid'</span>)->where(<span>"user_uid={$uid} and project_roid={$roid}"</span>)->limit(<span>1</span>)->orderBy(<span>'addtime'</span>,<span>'DESC'</span>)->find(); <span>//返回ajax</span><span>echo</span> json_encode(<span>$data</span>);<span>exit</span>; } } <span>//判断是否登录</span><span>public</span><span><span>function</span><span>login</span><span>()</span>{</span><span>//验证是否登录不登录返回0</span><span>if</span>(!<span>isset</span>(<span>$_SESSION</span>[<span>'uid'</span>]) || !<span>isset</span>(<span>$_SESSION</span>[<span>'username'</span>]))View::ajax(<span>0</span>); } <span>public</span><span><span>function</span><span>reply</span><span>()</span>{</span><span>//验证是否登录不登录返回0</span><span>if</span>(!<span>isset</span>(<span>$_SESSION</span>[<span>'uid'</span>]) || !<span>isset</span>(<span>$_SESSION</span>[<span>'username'</span>])) View::ajax(<span>array</span>(<span>'code'</span>=><span>0</span>,<span>'data'</span>=><span>''</span>)); <span>//获得数据cmid</span><span>$cmid</span>=Q(<span>'post.cmid'</span>,<span>0</span>,<span>'intval'</span>); <span>//实例化评论模型</span><span>$comModel</span> = <span>new</span> \Common\Model\Comment; <span>//查询cmid的对应数据</span><span>$data</span>=<span>$comModel</span>->where(<span>"cmid={$cmid}"</span>)->find(); <span>//返回ajax</span> View::ajax(<span>array</span>(<span>'code'</span>=><span>1</span>,<span>'data'</span>=><span>$data</span>)); } <span>//私信数据</span><span>public</span><span><span>function</span><span>letter</span><span>()</span>{</span><span>//添加评论</span><span>$letModel</span> = <span>new</span> \Common\Model\Letter; <span>if</span>(IS_POST){ <span>//提交数据</span><span>if</span>(!<span>$letModel</span>->store()) View::error(<span>$letModel</span>->getError()); <span>//返回</span> View::ajax(<span>1</span>); } }</code>
ajax非同步請求部分
程式碼片段
<code><span><span><span>html</span>></span><span>head</span>></span> <span>title<span>></span> <span></span>{{$<span>data</span>['</span>title<span>']}}<span></span></span>title<span>><span></span>meta</span>群眾募資,智慧產品創業融資"/><span><span>meta</span></span>name<span>=<span>"description"</span><span>content</span>=<span>"群眾募資科技頻道是專業介紹智慧家居、智慧設備、智慧家庭、智慧家庭兒童高科技教育產品、車聯網、行動應用等產品的項目眾籌平台,為投資人提供優質融資項目,選擇您支持喜歡的科技眾籌項目,讓投資的您和創業者實現共贏!"</span>/></span><span><<span>link</span><span>rel</span>=<span>"shortcut icon"</span><span>type</span>=<span>"image/png"</span><span>href</span>=<span>"Public/Home/img/icon.png"</span>/></span><span><<span>link</span><span>rel</span>=<span>"stylesheet"</span><span>type</span>=<span>"text/css"</span><span>href</span>=<span>"Public/Home/css/header.css"</span>/></span><span><<span>link</span><span>rel</span>=<span>"stylesheet"</span><span>type</span>=<span>"text/css"</span><span>href</span>=<span>"Public/Home/css/content.css"</span>/></span><span><<span>link</span><span>rel</span>=<span>"stylesheet"</span><span>type</span>=<span>"text/css"</span><span>href</span>=<span>"Public/Home/css/footer.css"</span>/></span><span><<span>script</span><span>src</span>=<span>"Public/Home/js/jquery-1.8.2.min.js"</span><span>type</span>=<span>"text/javascript"</span><span>charset</span>=<span>"utf-8"</span>></span><span></<span>script</span>></span><span><<span>script</span><span>src</span>=<span>"Public/Home/js/header.js"</span><span>type</span>=<span>"text/javascript"</span>></span><span></<span>script</span>></span><span><<span>script</span><span>src</span>=<span>"Public/Home/js/content.js"</span><span>type</span>=<span>"text/javascript"</span><span>charset</span>=<span>"utf-8"</span>></span><span></<span>script</span>></span><span><<span>script</span><span>type</span>=<span>"text/javascript"</span>></span><span> $(<span><span>function</span><span>()</span>{</span><span>//关注数据</span> $(<span>".attention"</span>).click(<span><span>function</span><span>()</span>{</span><span>var</span> roid= $(<span>this</span>).attr(<span>'roid'</span>); $.ajax({ type:<span>'post'</span>, url:<span>"</span></span><span>{{<span>U</span>('<span>attention</span>')}}</span><span><span><span>", data:{roid:roid}, dataType:'json', success:function(phpData){ if(phpData!=0){ spec = "</span><span>"; //循环数组 $.each(phpData, function(k,v){ spec +='<ihljs-string">"></i><span>关注('+v+')</span>'; }) //替换数字 $('.attention').html(spec); }else{ //背景效果 $("</span>.jsbg<span>").fadeIn(100); //登录框 $("</span>.loginy<span>").fadeIn(500); } } }); }); //加入评论回复输入框 $('.pinlun').click(function(){ var cmid=$(this).attr('cmid'); var _this = $(this); $.ajax({ type:"</span>post<span>", url:"</span></span></span><span>{{<span>U</span>('<span>reply</span>')}}</span><span><span><span>", data:{cmid:cmid}, dataType:'json', success:function(phpData){ if(phpData.code==0){ //背景效果 $("</span>.jsbg<span>").fadeIn(100); //登录框 $("</span>.loginy<span>").fadeIn(500); }else{ reply='<divhljs-string">" >' +'<input type="</span>hidden<span>" value="</span><span>'+phpData.data.user_uid+'</span><span>" name="</span>hf_uid<span>"/>' +'<input type="</span>hidden<span>" value="</span><span>'+phpData.data.cmid+'</span><span>" name="</span>cpid<span>"/>' +'<input type="</span>hidden<span>" value="</span><span>'+phpData.data.project_roid+'</span><span>" name="</span>project_roid<span>"/>' +'<input type="</span>submit<span>" value="</span>发布<span>"hljs-string">"/>' +'</div>' $(_this).parents('.pls-li').find('.plforms').show(); //添加 $(_this).parents('.pls-li').find('.plforms .btnbox').html(reply); } } }); }) //评论数据 $('.pl-box form').submit(function(){ //获取表单数据 var comData= $(this).serialize(); //发送异步 $.ajax({ type:"</span>post<span>", url:"</span></span></span><span>{{<span>U</span>('<span>comment</span>')}}</span><span><span><span>", data:comData, dataType:'json', success:function(phpData){ if(phpData==0){ //背景效果 $("</span>.jsbg<span>").fadeIn(100); //登录框 $("</span>.loginy<span>").fadeIn(500); }else{ spec ='<!--评论开始-->' +'<divhljs-string">">' +'<divhljs-string">">' +'<a href="</span><span>"><img src="</span><span>'+phpData.portrait+'</span><span>"/> </a>' +'</div>' +'<a href="</span><span>"hljs-string">">'+phpData.name+'</a>' +'<phljs-string">">'+phpData.content+'</p>' +'<divhljs-string">">' +'<span>8秒前</span>' +'<a href="</span>javascript:;<span>"hljs-string">" cmid="</span><span>'+phpData.cmid+'</span><span>">评论(0)</a>' +'</div>' +'</div>' +'<!--評論結束-->' //新增 $('.pls-box').prepend(spec); } } }); //阻止表單提交 return false; }); //驗證聯絡人登入數據 $("</span>.people .islogin<span>").click(function(){ var isLogin= $(this).attr('isLogin'); $.ajax({ type:'post', url:"</span></span></span><span>{{<span>U</span>('<span>login</span>')}}</span><span><span><span>", data:{isLogin:isLogin}, dataType:'json', success:function(phpData){ if(phpData!=0){ //背景效果 $("</span>.jsbg<span>").fadeIn(100); //顯示輸入框 $('.siteSiXinBox').fadeIn(500); }else{ //背景效果 $("</span>.jsbg<span>").fadeIn(100); //登入框 $("</span>.loginy<span>").fadeIn(500); } } }); }); //私訊資料傳送 $('.siteSiXinBox form').submit(function(){ //取得表單數據 var leterData= $(this).serialize(); //發送非同步 $.ajax({ type:"</span>post<span>", url:"</span></span></span><span>{{<span>U</span>('<span>letter</span>')}}</span><span><span><span>", data:leterData, dataType:'json', success:function(phpData){ //判斷是否發送成功 if(phpData=1){ //背景效果 $("</span>.jsbg<span>").fadeOut(500); //輸入方塊 $("</span>.siteSiXinBox<span>").fadeOut(100); //清空輸入框 $("</span>.sxTextArea<span>").val("</span><span>"); } } }); //阻止表單提交 return false; }); }); </span></span><span><span>script</span>></span><span><span>head</span>></span><span>body</span>></span><span>{{<span>include</span> <span> </span><span><!--私訊</span></span>href<span>=<span>"javascript:;"</span><span>class<span>=</span>"closeA btn_ALink"<span>></span><span></</span>a</span>>< <span>=<span> "sxCont"</span>><span></span><<span>form</span></span>action<span>=<span>""</span><span>method</span>=<span>"post"</span><span> </span>=<span>" hidden"</span></span>name<span>=<span>"guid"</span></span>value<span>=<span>"</span></span><span><span>{{$</span>data<span>['</span>產品<span></span>{{$</span>data<span>[' <span></span> <<span>p</span><span>class</span>=<span>"sxTo_p"</span>><span>收件人:</span><span>{{$</span>data<span>['</span>author</span>']}}</span><span><span></<span>p</span>></span><span><<span>div</span><span>class</span>=<span>"sxTextBox sitePHBox"</span>></span> <span>"lecontent"<span></span>class </span>=<span>"sxTextArea sitePHInput"<span></span>placeholder<span>=</span>"你想跟TA說些什麼呢~(最多300字)"<span></span>maxlengthare<span>=p <!--<span>你想跟TA說些什麼呢~(最多300字)</span>--></span><span></span>span<span>></span><span></span>div<span>></span><span><p> </p></span>class<span>=<span>"errorP"</span>></span><span></span>p<span>><span></span>divdiv<span><span>class</span> </span>=<span>"submit"<span> </span>class<span>=</span>"submitBtn"<span></span>value</span>=<span>"寄"<span>></span></span>input<span></span>type<span>=B" </span>=<span>"取消"</span>></span><span><span>div</span>><span></span><span>form</span>><span></span><span>div</span>><span></span> --內容部分開始--><span></span>div<span><span>class</span>=<span>"content-box"</span>><span></span>div</span><span>class</span>=展示部分開始--><span></span>div</span></span>class<span>=<span>"cotzs"</span>></span><span><!--標題開始--><span></span>a<span></span>href</span>=<span>""<span></span>target</span>=<span>"_blank"</span>><span></span> <span>['</span>portrait<span> ']}}</span><span></span>"<span><span>alt</span>=<span>"</span><span></span></span>{{$<span>authData</span>['<span>}<span>']{$</span>authData<span>['</span>} <span>" conuser"</span>/></span><span></span>a<span>><span></span>div</span><span>class</span>="context"<span>><span></span> <span>div </span><span>class</span>=<span>"th3"</span>><span></span>h3<span>><span></span><span>{{$</span>data<span>['</span>title</span></span>{{$<span>data<span>['</span>title<span> </span> div</span>><span><span><span>div</span>><span></span>div</span></span>class=<span>"people"<span>></span><span><.> span</.></span>><span><span>span</span><span>class</span>=<span>"text2"</span>></span><span>a</span></span>href<span>=$ <span>'] }}</span><span><span><span>a</span>></span><span><span>span</span>></span><span>span</span><span>class</span> <span></span>class</span> =<span>"lianxi islogin"<span></span>isLogin</span>=<span>"1"<span>></span>聯絡我<span></span>span<span>></span><span></span>>div <span> class</span>=</span>"share"<span>><span></span>div<span><span>class</span>=</span>"show"<span>><span></span>i<span>>🜎分享( n+)<span></span>span<span>></span><span></span>div</span>><span><span>div<span></span>class<span>=</span>"showlist bdsharebuttonbox"</span>class<span>=<span>"showlist bdsharebuttonbox"</span>class</span>=<span> <span></span> class</span>=<span>"weixin"<span></span>data-cmd</span>=<span>"weixin"<span></span>title</span>=<span>"分享到微信"<span> </span> "#"</span><span>class<span>=</span>"qzone"<span></span>data-cmd<span>=</span>"qzone"</span><span>title<span>=</span>"分享到QQpo> <span></span>href<span>=</span>"#"<span></span>class<span>=</span>"sina"<span></span>data-cmd<span>=</span>"tsina"<span></span>title<span> ></span></span><span>div<span>></span></span><span>div<span>></span><span>div<span></span>class<span>=</span>"attention"<span></span><span>class</span>=<span>"attention" </span>[' <span>roid</span>']}}<span></span></span><span>"<span>></span></span>i<span></span>class<span>=</span>"guanzhu <span> </span>"!empty($data[ 'usat'])"<span>}}</span><span></span><span> now</span><span></span><span>{{</span>endif<span>}}</span></span><span><span>> </span>關注( </span><span>{{$<span>data</span>['</span>atnum<span>']}}<span></span>)</span><span>span<span>></span><span>結束--></span><span><!--專案圖片展示部分開始--></span><span>div<span></span>class</span>=</span>"coinfo"<span>><span></span>div> ></span><span>div<span>><span></span>div<span><span>class</span>=<span>"siteimg"</span>><span></span></span>{{p ])"</span>}}<span><span><span>img</span><span>src</span>=<span>"</span></span><span><span>{{$<span>}</span>['T </span>=</span>"項目封面"<span><span>width</span>=</span>"534"<span><span>height<span>=</span>"400"</span>/><span><span></span>{{</span> <span>=<span>"Public /Home/img/lazy1.png"</span></span>alt</span>=<span>""<span></span>width<span>=</span>"534"</span><span>height<span>=<span>"400"</span> </span><span>div<span>></span></span>div<span></span>class</span>=<span>"desc"</span>><span></span><span></span>class<span> class</span>=<span> "Data"</span>></span><span>p</span><span>class</span>=<span>"st"</span>></span><span><span>{{$</span>data</span>['<span>support<span></span>{{$<span>data</span>['<span> p</span></span>class<span>=<span>"sp"<span>></span>支援數</span><span>p</span>><span></span></span>div<span>><span><span> p<span></span>class<span>=</span>"st"</span>></span>¥<span><span>{{$</span>data<span>['</span>money</span>']}}</span><span><span><span>p</span>></span><span>p</span><span>class</span>=<span>"sp"</span>></span>已籌款<span><span>p</span> </span>><span><span>div</span><span>class<span>=</span>"raininfo"</span>><span><span>p<span></span>class<span>=</span>"st" </span>['<span> money<span>']/$</span>data<span>['</span>target<span>_</span>fund</span>']*100,0)}}</span><span>%<span></span>p <span>>收音機</span><span>%</span><span>p </span>>收音機<span></span>%<span></span>p </span>>收音機<span><span>%<span></span>p </span>>收音機<span><span>%</span><span>p </span>>收音機<span></span>%</span><span>p <span>>收音機</span><span>%</span><span>p </span>>收音機<span></span><span> "</span>></span></span>div<span></span>class<span>=</span>"長度"<span></span>風格<span>=</span>"寬度:<span></span> 錢</span><span>{$$<span>"寬度:<span></span> 錢</span>' </span>目標<span>_<span>基金<span>']*100}}</span></span><span></span>%;<span></span></span><span>{{<span><span>if</span></span></span><span>{{<span></span>if</span><span><span><span>. ]>=1"</span>}}</span><span><span></span>background:red;</span><span><span></span>{{</span>endif<span>}}<span></span><span></span>"<span> </span> div</span>><span><span>div<span></span>類<span>=</span>"文字"</span>><span><span>div </span> <span>class<span>=p" </span>p</span> ><span><span>span</span>></span><span><span>{{$</span>data<span>[ '</span>target<span>_</span>period</span>']}}<span> <span> div</span></span>class<span>=<span>"rightext"</span> ></span><span>p</span>><span>目標效果</span><span>p</span>></span>< <span>目標<span>_</span>基金</span>']}}<span><span></span></span>span<span>><span></span></span>div</span>><span><span> </span> <span>class</span>=<span>"btbox"</span>></span><span>a<span></span>href</span>=<span>"javascript:;"<span></span>class</span>= <span>div<span></span>class</span>=<span>"訊息"<span>></span></span>div<span></span>class<span>=</span>"訊息框"<span> a</span><span>href<span>=</span>""<span>></span><span></span>{{$<span>data</span>['<span>cname</span>']}}</span><span><span> </span> span</span><span>class<span>=</span>"pos"<span>></span><span></span>{{$</span>資料<span>['<span>詳細資料</span>_ <span></span> <span>class</span>=</span>"標籤"<span>><span></span><span>{{</span>foreach<span></span>from</span>=<span>" $data['tag']"<span></span>value a<span></span>href<span>=</span>""</span>></span><span><span>{{$</span>v<span>['</span>tname </span>']}}<span><span></span><span><span><span>span</span>></span><span><span>div</span>></span><span><span>div</span>></span><span><span>>div </span> </span><!--專案圖片展示部分結束--><span><span><!--選項卡開始--></span></span>div<span></span>class</span>=<span>"tab-box"</span>><span></span> class<span>=</span>"tab-header"<span>></span><span>div</span><span>class<span>=</span>"tab-xq"<span>></span><span>ul</span> <span><span>class</span>=<span>"xz"</span>><span>專案詳情</span></span>li<span>><span></span>li</span>><span> span</span>></span>(36)<span><span>span</span>><span></span><span>li</span>></span><span>li</span>></span> <span><span>li</span>></span><span><span>ul</span>></span><span>div</span></span>class<span>=<span>"right"</span> </span>i<span>></span></span><span>i<span>></span> 邀請朋友支持 </span><span>a<span>></span></span><span>div<span>></span></span><span>div<span>></span></span><span>div--<span> ></span></span><!--詳細主題內容開始--><span><span>div</span><span>class<span>=</span>"xq-box"<span>></span><span>div</span> <span><span><!--左邊--></span><span>div<span></span>class</span>=<span>"xq-left"<span>></span></span>div<span> div</span></span>class<span>=<span>"desc"</span>></span><span>span</span></span>class<span>=<span>"prev"</span>></span><span> {{$<span> data</span>['</span>objective<span>']}}<span></span></span><span>p</span>><span></span>span<span></span>class<span>=s </span>><span></span></span>div<span>><span></span><!--使用者資訊--><span></span>div</span></span>class<span>=</span>"userinfo"<span>><span></span>class<span>=</span>"userinfo" "<span>></span></span>a<span></span>href<span>=</span>""<span>></span></span>img<span></span>src<span> </span>']}}<span> </span><span>"<span></span>alt<span>=</span>"<span></span></span><span>{{$<span>authData</span>['</span>name<span>']}} <span>></span> </span>div<span>><span></span>div</span>class<span>=<span>"username"<span>></span></span>p<span></span>class<span>></span><span>p</span><span> <span>=</span> ""</span>><span><span></span>{{$</span>data<span>['<span>author</span>']}}</span><span></span><span>a<span>></span><span> "sp"</span>><span>身分證/產品實體圖片</span></span>p<span>><span></span><span>div</span>><span></span></span>div<span>><span></span><!-- div<span></span>class<span>=</span>"xq-pag"</span>><span><span><</span>div<span></span>class<span>=</span>"xq-tin"</span>></span><span>=<span>"xq-t "!empty ($data['ftitle'])"</span>}}</span><span><span><<span>p</span><span>class</span>=<span>"西安"</span>></span><span></<span>p</span>></span><span><<span><</span> <span>></span> <span></span>{{$</span>data<span>['<span>ftitle</span>']}}</span></span><span></<span>h2</span>><span></span></ </span> div<span>><span><span><</span>p</span>><span><span></span>{{$</span>資料</span>['<span>摘要<span>']}}</span></span><span> <span>']}}<span></span></span><<span>div<span></span>class</span>=</span>"xq-tbox"<span>><span></span><<span>p</span> </span>class<span><span> <span> <</span>div</span></span>class<span>=<span>"標題"</span>><span></span><</span>h2<span>><span>最新進展<span></</span>h2<span>></span>><span>最新進展</span></</span>h2<span>><span>>< </span>div<span></span>class<span>=</span>"zxjz-box"</span>> <span><span><</span>div</span><span>class<span>=</span>"zxjz-ul""zxjz-ul" <span> ></span><span><</span>p</span><span>class <span> =</span>「文字」</span>><span>新專案「Fiitvr虛擬實境VR眼鏡手機一秒變3D私人劇院沉浸式遊戲體驗IMAX」上線了。我們的專案必須在2016年01月13日之前,籌集到10000才可成功,希望您能給予支持,持續關注我們的專案<span></<span>p</span>></span><span><<span>div</span><span>class</span>=<span>= xiant"</span>></span><span></<span>div</span>></span><span><<span>div</span><span>class</span>=<span>"left"</span>></span><span><38p<span> </span></<span>p</span>><span></span><</span>i<span><span>class</span>=</span>"tz"<span>><span></span></<span>i</span>><span> /</span>div</span>><span><span></</span>div</span>><span><span><</span>div</span><span>class<span>=</span>"xq-tbox"</span>><span> <span>< /</span>p</span>><span><span><</span>div</span><span>class<span>=</span>"title"<span>></span><span><</span>h2</span>><span> <span> div</span>><span></span><!--評論開始--><span></span><!--發佈評論開始--></span><span>div</span></span>class<span>=<span>"pl-box"</span><span></span>class<span>=</span>"pl-box"</span><span><span>class</span>=</span>"pl-box"<span><span></span>class</span>=<span>"pl-box"<span></span></span>class<span>=<span>"pl-box"</span> "</span>><span></span>form<span>action<span>=</span>""<span></span>method<span>=</span>"post"<span></span><span> </span></span> href<span>=<span>""</span>><span></span><span>{{</span><span>if</span><span></span>value</span>=<span>"!empty($userData)"<span>} </span><span> </span>{{$<span>userData</span>['</span>portrait<span>']}}<span></span><span></span>"<span></span>width</span>="54"<span><span> <span></span></span> {{$<span>userData</span>['<span>name</span>']}}</span><span><span><span>的個性頭像"</span>/><span></span><span>{{</span></span> </span> "Public/Home/img/defult_user.png"<span><span>width</span>=<span>"54"</span></span>height<span>=<span>"54"<span></span> <span>=p </span>}}<span></span><span></span>a<span>></span><span></span>div<span>></span></span>div<span><span>class</span>=p "hidden" <span></span>name</span>=<span>"project_roid"<span><span>value</span>=</span>"</span><span><span><span>{{$</span>data</span>['</span>roid<span><span>{{$<span>data</span>[' <span>textarea</span><span> name</span>=<span>"content"</span><span>rows</span>=<span>""</span><span>cols</span>=<span>""</span><span>placeholder</span>=</span>"可以說點什麼,也沒關係!"</span>></span><span><span>textarea</span>></span><span><span>div</span>></span><span>div</span><span>class</span> <span>"javascript:; "</span>class<span>=<span>"upimg"</span>><span>選擇圖片</span><span>a</span>><span></span>span</span>> <span>"submit"<span></span>value</span>=<span>"發布"<span></span>class</span>=<span>"fabu"<span>/></span></span><span>> <span><!--發布評論結束--></span><span><!--評論列表--></span><span>div<span></span>class<span>=</span>"pls-box"<span>></span><span><!--評論開始-- ></span></span><<span>div<span></span>class</span>=<span>"pls-li"<span>></span></span><<span>div<span></span>class</span>=<span> </span>> <span></span><<span>img<span></span>src<span>=</span>"Public/Home/img/user3.jpg"<span>/></span></span></<span>a</span>><span> =<span>""</span><span>class</span>=<span>"name"</span>></span>用戶名123<span></<span>a</span>><span></span><<span>ppl就用完了! </span></span><<span>a<span></span>href<span>=</span>"javascript:;"<span></span>class</span>=<span>"pinlun"<span></span>cmid<span>=T"25" </</span>div<span>></span></span><!--發布評論框開始--><span><span>form</span><span>action<span>=</span>""</span><span><span></span>=pl <span></span>style<span>=</span>"display:none;"<span>></span><span>div</span><span>class<span>=</span>"text"</span> <span>=<span> ""</span><span>cols</span>=<span>""</span></span>placeholder<span>=<span>"可以說點什麼,也沒關係! "</span>></span><span><span>textarea</span>><span></span><span>div</span>></span><span>div</span></span>class<span>=<span>"btn idden"</span> </span>value<span>=<span>""</span><span>name</span>=<span>"hf_uid"</span>/><span></span>input</span><span>type</span>=val" <span>"cpid" </span>/></span><span>input</span></span>type<span>=<span>"hidden"</span></span>value<span>=</span>""<span><span>name</span>=><span>=</span>""<span></span>name<span>= </span>=<span>"submit "</span><span>value</span>=<span>"發布"</span><span>class</span>=<span>"fabu"</span>/></span><span><span>div</span>><span>-- ></span><span></span>div</span>><span><span><!--評論結束--></span><span><!--評論開始--></span><span>div<span></span>class<span>="pl </span>div</span><span>class</span>=<span>"userimg"</span>><span></span>a<span><span>href</span>=</span>""<span>><span></span>href</span>=<span>""<span>></span><span>href</span>=<span> . jpg"</span>/></span><span><span>a</span>><span></span><span>div</span>><span></span>a</span><span>hrefclass</span>=2 <span>a</span>></span><span>p</span><span>class</span>=<span>"plcon"</span>><span>時間這麼快!<span><span>p</span>></span><span>div</span><span>class</span>=<span>"plft"</span>></span><span>span</span>> ref</span> =<span>"javascript:;"<span></span>class</span>=<span>"pinlun "<span></span>cmid<span>=</span>"23"<span>></span>評論(0)<span> !--隱藏的發布框開始--></span><span>form<span></span>action<span>=</span>""</span><span>method<span>=</span>"post"</span><span>class<span>=pl</span>=</span>"post"<span></span>class<span>=pl<span>" : none;"</span>><span></span>div</span><span>class</span>=<span>"text"</span> ><span></span>textarea</span><span>name</span>=<span>textarea</span><span>name<span>=</span> <span>=</span> ""<span></span>placeholder</span>=<span>"可以說點什麼,也沒關係!"</span>></span><span><span>textarea</span>></span><span><span>div</span>></span><span>div</span><span>class</span>=<span>"btn mit"</span> value<span>=<span>"發布"</span><span>class</span>=<span>"fabu"</span>/><span></span><span>div</span>><span></span><span> </span></span>div<span></span>class=<span>"hf-box"<span>></span></span><!--回覆開始--><span></span>div<span> </span>div<span></span>class<span>=</span>"hf-left"><span></span>a<span></span>href<span>=</span>""<span></span>classhref<span>=<span>""</span> ><span></span>p</span>class<span>=<span>"con"</span>><span>你好樓主</span><span>p</span>><span></span>5 /</span>span><span><span></span>div</span>><span><span>a<span></span>href<span>=</span>"javascript:"" ></span><!--回覆結束--><span><span><!--回覆的二回覆開始--></span></span>div<span>lis</span>class<span>=</span> <span>></span></span>div<span></span>class=<span>"hf-left"<span>></span></span>a<span></span>href<span>=c </span>a><span></span>spanclass<span>=<span>"ts"</span>></span>回覆了<span><span>span</span> </span>=<span> "name"</span><span>style</span>=<span>"margin-left:5px;"<span>></span>用戶名2528:<span></span>a<span>></span></span>p>你好<span></span><span>樓主</span><span>p</span>><span>span</span><span>class</span>=<span>"addtime"</span>><span>53分鐘前</span> <span> href</span>="javascript:;"<span><span>class</span>=</span>"hf-del"<span>><span>刪除</span><span>a</span>><span></span></span>< --><span><span></span>div</span>><span><span></span>div<span>></span><span><!--評論結束--></span><span><!--頁碼開始--></span><span><span><!--頁碼=</span>"pagr-box"<span>></span></span><<span>div<span></span>class</span>=<span>"pager-ul"<span>></span><span><</span>pa<span> </span></span>href<span>=<span>""</span></span>class<span>=<span>"prev"</span>><span>上一頁</span></<span>a</span>></span>= <span>" pag cur"<span>></span>1</span></<span>a<span>></span></span><<span>a<span></span>href<span>=</span>""<span></span>class<span>=</span> <span>a</span></span>href<span>=<span>""</span></span>class<span>=<span>"next"</span>></span>下一頁<span></</span>a<span>><span>></span>下一頁</span></<span>a<span>></span> </</span>div<span>></span><span><!--頁碼結束--></span><span><!--標題開始--><span></span>div</span><span>class</span>=</span>"xq-tbox"<span>><span>class</span>=<span>"xq-tbox"</span>><span> p</span></span>class<span>=<span>"xian"</span>><span></span><span>p</span>></span><span>div</span><span>class</span>= h2<span>></span><span></span>div<span>></span></span><span>div<span>></span></span><!--標題結束--><span><span><!--支援記錄開始--></span> <span>=</span>"table"<span>></span><span>table<span><span>class</span>=<span>"table-box"</span>></span><span>colgroup</span>></span><span>col</span><span>width</span>= <span>"220px"</span> ></span><span>col</span><span>width</span>=<span>"80px"</span>><span>col</span><span>width</span>=蟜<span>"auto"</span>> <span><span>colgroup</span>><span></span>thead</span>><span>tr</span>><span></span>th> <span>th</span>><span>th</span>>支持項<span><span>th</span>></span><span>th</span>>數量(90)<span><span>th</span>>時間<span><span>th</span>></span><span><span>tr</span>></span><span><span>thead</span>></span><span>tbody</span>> </span>" numBold"<span>><span>88</span></span>td<span>><span></span>td<span><span>class</span>=</span>"numBold"<span>><span>=a=</span>" /home/id-735301"<span>><span>137****0798</span></span>a<span>><span></span></span>td<span>><span></span>td <span>p<span></span>class</span>=<span>"yelBold"<span>></span>¥99<span></span>p<span>></span></span><span>td<span>>BigT </span>1</span> <span>td<span>></span><span>td<span></span>class</span>=<span>"numBig"<span>></span><span>p<span>></span>2016-01<span>p<span>></span>2016-01</span>p<span>></span> </span> 03:07:59<span><span>p</span>></span><span><span>td</span>><span></span><span>tr</span>></span><span>分頁開始--><span></span>div</span><span>class</span>=</span>"pagr-box"<span>><span></span>div<span><span>class</span>=Y =</span>"pagr-li"<span>><span></span>a</span><span>href</span>=</span>""<span><span>class</span>=</span>"prev"<span>> <span>href</span>=<span>""</span><span>class</span>=</span>"pag"<span>><span>1</span></span>a<span>><span></span>a " <span>><span>2</span></span>a<span>><span></span>a<span><span>href</span>=</span>""<span><span>class</span>= </span>div<span>><span></span></span>div<span>><span></span></span>div<span>></span><span><!--分頁結束--><span></span><span>div--. ></span><span><!--支援付款開始--></span></span>div<span></span>class<span>=</span>"zczFooterBox"<span>></span></span><span>class</span>=<span>"ftP"</span>><span>¥</span></span>{{$<span>data<span>['</span>money<span>']}}</span><span></span>['<span>money</span>']}}<span></span></span> <span> "scP"<span>></span>已募款</span><span>p<span>></span><span></span>div<span>></span><span>div<span></span>class</span>=p <span>"ftP"<span>></span></span><span>{{$<span>data</span>['<span>support</span>']}}</span><span><span><span>p</span>></span><span>p</span><span>class</span>=<span>"scP"</span>></span>支持<span> <span> class</span>=</span>"zczFootData"<span>><span></span>p<span><span>class</span>=<span>"ftP"</span>><span></span></span>} <span>天<span></span>p<span>></span><span>p</span></span>class<span>=<span>"scP"</span>><span>剩餘時間</span><span>p</span>> </span> =<span>""<span><span>target</span>=</span>"_self"<span><span>class</span>=<span>"zczFoot"</span>><span>立即支援</span>結束--></span><span><!--抽獎規則開始--><span></span>div<span><span>class</span>=</span>"lottery-rules"<span><span>id</span>=<span>"Lottery-rules"</span><span>id</span>=<span>"Lottery- class</span>=<span>"lottery-rules-tit clearfix"</span>><span></span>h2</span>></span>抽獎規則<span><span>h2</span>></span> lick<span> =<span>"wx.alert('還未參加過此項目的抽獎')"</span>></span><span>i<span>></span><span><span>i</span>><span>查看我的抽獎號碼</span><span>i</span>><span>查看我的抽獎號碼</span> <span></span>div</span>><span><span>ul<span></span>class<span>=</span>"lottery-rules-con"</span>><span><span> </span>><span><span>p</span>><span>購買抽獎回報項時會依購買順序產生抽獎號碼。 <span></span>p<span>></span><span></span>li<span>></span><span>li</span>><span><span>span後的下一個週一開獎。如遇週一為非工作日,則延至週一後的第一個工作日開獎。 </span><span>p<span>></span></span><span>li<span>></span></span>li<span></span>class</span>=<span>"asterisk"<span>></span><span>class</span>=<span>"asterisk" ></span>p<span>></span></span>em<span>></span>*</span><span>em<span>></span>開獎日收盤時的上證指數6位數字& 收盤時的深證成指7位數,兩組數字排列所得的13位數;</span><span>p<span>></span></span>p<span>></span></span>em<span>></span>*</span><span>><span>></span>*</span><span>><span>></span>*</span><span>><span>號個數,得到的餘數加1。即得到該項目的中獎號碼。 </span></span>p<span>><span></span>p<span>><span></span>em<span>><span>*</span></span>em<span>><span>如果項目開多個獎,參與者以項目被公開為「1X名中獎用戶」中的X作為基數,第N個中獎號 碼=第一個中獎號碼+(N-1)*X</span><span>p</span>><span></span>p<span>><span></span>em<span>><span>*</span>抽獎號碼超過了總抽獎號碼個數,則將抽獎號碼減去抽獎號碼個數得到新的中獎號碼。 </span><span>p<span>></span></span>p<span>></span></span>em<span>></span>*</span><span>em<span>></span>每個抽獎號碼號碼+1得到新的中獎號碼。 </span><span>p<span>></span></span>p<span>></span></span>em<span>></span>*</span><span>em<span>></span>日日節約市等股市<span><span>p</span>></span><span><span>li</span>></span><span>li</span><span>class</span>=<span>"example"</span>> </span><span> p</span>></span> 某項目的抽獎規則為每500位參與者抽取1位中獎用戶,計畫成功結束時共發放4597個抽獎號碼。 <span>br</span>></span> 2015-07-30收盤時的上證指數是 2927.08,<span>br</span>></span> 2015-07-30收盤時的深證成指是 12926.61,<span>br</span>></span> 將這兩組數字排列得到的13位數為 2927081292661,<span>br</span>></span> 以2927081292661整除以4597,商數為636737283,餘數為2710,<span>br</span>></span> 用2710+1=2711,第一個中獎號即為2711;第二個中獎號2711+(2-1)*500=3211;第三個中獎號2711+(3-1)*500=3711. ..... <span><span>p</span>></span><span><span>li</span>></span><span><span>ul</span>></span><span><span>div</span>></span>獎規則><span><span><!--評論清單結束--></span></span><span>div<span>></span></span><span>div</span>><span><span><!--右邊--></span></span>></span><span>div</span></span>class<span>=<span>"xq-ch"</span>></span><span>div<span><span>=p ch"</span>><span></span>div</span></span>class<span>=<span>"xq-fch1"</span><span>id</span>=<span>"rightfix-ch1"</span>></span>id<span>=<span>"rightfix-ch1"</span>><span>id</span>=<span>"rightfix-ch1"</span>> ><span></span><!--卡片開始--><span></span>div<span><span>class</span>=<span>"xq-li"</span>><span></span>h3</span>>謝謝您的支持<span>b</span>><span>1人已支持<span></span>b<span>></span><span></span>h3</span>><span></span>p<span></span> ,您將收到我們寄出的信件或賀卡,這份支持將助我們的夢想飛的更高更遠。<span><span>p</span>></span><span>div</span><span>class</span>=<span>"zczj"</span>></span><span>a</span> <span>¥1 </span><span>a</span>><span></span>a</span>href<span>=<span>""</span></span>class<span>=<span>"zj"</span>> <span>href</span> =<span>""</span><span>class</span>=<span>"zj"</span>></span>¥10<span><span>a</span>></span><span><span>div</span>>p ><span></span>lable</span>><span>其他¥</span><span>lable</span>><span>input</span>type<span> sinp"<span> </span>id</span>=<span>""<span></span>value<span>=</span>""<span></span>""</span><span>value<span>=</span>""</span><span> <span> </span>value</span>=<span>"立即支援"<span>/></span><span></span>div<span>></span><span><!--卡片結束--></span><span></span>{{<span>foreach</span>' ']"<span></span>value<span>=</span>"$v"<span>}}</span><span></span><!--卡片開始--><span></span>div<span><span>class</span>=</span><span>div</span><span>class</span>=<span>" h3</span><span>class</span>=<span>"mxq-zh3 blue"</span>><span>¥</span><span>{{$</span>v</span>['<span>rmoney<span>']}}</span></span><span>b</span>><span><span></span>{{$<span>v </span>['<span>rpeople</span>']}}<span></span>人已支持/限制<span></span>{{$</span>v<span>['<span>rlimit</span>']}}<span><span>人</span>人<span> </span>><span></span>div<span><span>class</span>=<span>"zcje_title"</span>><span></span></span>{{$</span> p <span></span>class<span>=</span>"text"</span>><span><span><span>{{$</span>v</span>['</span>rcontent<span>']}}<span> </span>value <span>=</span>"!empty($v['rthumb'])"</span>}}<span></span><span>div</span><span>class</span>="zsimg"<span>>sim<span>class<span>=</span>"zsimg"</span>>>class<span> <span>></span></span>img<span></span>src<span>=</span>"<span></span></span>{{$<span>v<span>[' </span>"42"<span></span>height </span>=<span>"42"<span>/><span></span></span>div<span>><span></span><span>div</span>><span></span></span>{{class</span>}o><span></span><span> sfooter" </span>><span>p<span>></span>已發放抽獎號碼:</span>b<span>><span><span></span>{{$</span>v<span>['c </span><span>p</span>></span><span>p<span>></span>預計獎品寄送時間:<span>b<span>></span>開獎後</span><span>{{ <span>b</span>><span></span><span>p</span>></span><span><span>div</span>><span></span><span>{{</span></span>if</span>=$plevs' 'rlimit']"<span>}}<span></span><span>div</span><span>class<span>=<span>"zsgaizi"</span>><span></span>a</span> <span> </span>span</span>></span>已滿額<span><span>span</span>></span><span><span>a</span>></span> <span>div </span>class<span>=<span>"zsgaizi"<span>></span><span>span<span>></span></span><span>span<span>></span></span> <span>"nomax"</span>> </span></span><span>a<span>></span><span></span>div</span>><span><span><span>{{</span>endif</span>}}<span><span></span>>結束divdivendif</span>}}<span>-- {<span>endforeach</span>}}</span><span><span><span>div</span>></span><span><!--常見問題開始--></span><span>div</span><span>class</span>=<span>"xq-cques"</span></span>class<span>=<span>"xq-c "xq-cjwt"</span>><span>常見問題</span>a</span></span>href<span>=<span>""</span>><span>查看更多</span><span>a</span>></span><span>查看更多<span>3=</span>"xq-cjlis"<span>><span></span>div<span><span>class</span>=<span>"xq-cjli"</span>><span> (可理解為贊助或投資)</span></span>div<span>><span></span>div</span><span>class</span>=</span>"info"<span>><span>進入專案詳情頁後,選擇適合的支援選項,點擊進行付款。可透過網銀、支付寶、微信、易寶等付款,為確保資金的安全,支付的款項會進入第三方支付帳戶,不會直接進入發起人帳戶或眾籌網帳戶。 </span><span>div</span>><span></span></span>div<span>><span></span>div<span>><span>class</span>=<span>"xq-cjli"</span>><span>class</span>=</span>"xq-cjli"<span>><span>class</span>=</span>"xq-cjli"<span>><span>class</span>=</span>"xq-cjli"<span>><span>class</span>=<span>"xq-cjli"</span>><span>class</span>=</span>"xq-cjli"<span>><span>class</span>=<span>"xq-cjli"</span>><span>class</span>=</span>"xq-cjli"<span>><span>class</span>=</span>"xq-cjli" <span>專案失敗如何退款? <span></span>div<span>></span><span>div</span><span>class<span>=</span>"info"</span>><span>專案失敗後,眾籌網將為您辦理退款,資金將原路退還到您的付款或寶銀行帳戶中,您將於7-15個工作天收到退款。 <span></span>div</span>><span><span></span>div<span>></span><span>div</span>><span>class<span>=</span>"xq-cjli"<span>></span>class<span>=</span>"xq-cjli"</span>><span>class<span>=</span>"xq-cjli"</span>><span>class<span>=</span>"xq-cjli"<span>></span>class<span>=</span>"xq-cjli"</span>><span>class<span>=</span>"xq-cjli"</span>><span>class<span>=</span>"xq-cjli"</span>><span>class<span>=</span>"xq-cjli"</span>><span>class<span>=</span>"xq-cjli" </span>什麼時間可以收到回報? <span></span>div<span>></span><span>div</span><span>class</span>=<span>"info"</span>><span>專案回報會在專案結束後發起人承諾的期間內發放,具體時間項下專案頁的每個回報項顯示。 </span><span>div</span>></span><span><span>div</span>></span><span></span>div<span>><span></span></span>div--此專案開始--><span><span>a<span></span>href<span>=</span>"javascript:;"<span></span>class<span>=</span>"xq-zcxm"</span>><span>支持此專案支援此專案支援此專案支援此專案! --支援此專案結束--><span></span></span>div<span>><span></span>div<span><span>class</span>=</span>"gar"<span><span>id</span>=</span>"gdrdr"div" <span><span></span>div</span>><span><span></span>div</span>><span></span><span>div<span>></span></span><span>div</span>>內容結束<span> --><span></span><span>div</span>><span></span><!--展示部分結束--><span></span>script</span><span>src</span>=<span>"Public/Home/js/fch.js"</span>src</span>=<span>"Public/Home/js/fch.js"<span>src</span>=</span>"Public/Home/js/fch.js"<span>src</span>=<span>"Public/Home/js/fch.js"<span>src</span>=<span> </span>"text/javascript"<span></span>charset</span>=<span>"utf-8"<span>></span><span></span>script<span>></span><span></span></span></span></span></span></span></code>