Authored by lore-w

Merge branch 'develop' of http://git.dev.yoho.cn/ued/yohogirls-mustache into develop

... ... @@ -4,8 +4,10 @@
<input placeholder="输入心得标题" type="text">
</div>
<div class="evaluate">
<h2>总体评价</h2>
{{> common/final_score}}
<div class="final-score">
<h2>总体评价</h2>
{{> common/final_score}}
</div>
<div class="buy-again clearfix">
<h4>回购评分</h4>
<span class="again-score">{{buyAgain}}</span>
... ... @@ -14,7 +16,23 @@
<a class="again-select" href="javascript:;">不会买</a>
</div>
{{#if detailScore}}
{{> common/detail_score}}
<div class="detail-score">
<ul class="clearfix">
{{#each detailScore}}
<li class="clearfix" index="{{@key}}">
<label>{{.}}</label>
<div class="score-select-wrap clearfix">
<a class="score-select" href="javascript:;">1</a>
<a class="score-select" href="javascript:;">2</a>
<a class="score-select" href="javascript:;">3</a>
<a class="score-select" href="javascript:;">4</a>
<a class="score-select" href="javascript:;">5</a>
</div>
<span class="score-text"></span>
</li>
{{/each}}
</ul>
</div>
{{/if}}
</div>
... ...
{{> layout/writer_header320}}
<div class="publish-container">
<div class="publish-title">
<input placeholder="输入心得标题" type="text">
</div>
<div class="evaluate">
<div class="final-score">
<h2>总体评价</h2>
{{> common/final_score}}
</div>
<div class="buy-again clearfix">
<h4>回购评分</h4>
<span class="again-score">{{buyAgain}}</span>
<div class="again-select-wrap clearfix">
<a class="again-select current" href="javascript:;">很喜欢,会再次购买</a>
<a class="again-select" href="javascript:;">看到会买</a>
<a class="again-select" href="javascript:;">不会买</a>
</div>
</div>
{{#if detailScore}}
<div class="detail-score">
<ul class="clearfix">
{{#each detailScore}}
<li class="clearfix" index="{{@key}}">
<label>{{.}}</label>
<div class="score-select-wrap clearfix">
<a class="score-select" href="javascript:;">1</a>
<a class="score-select" href="javascript:;">2</a>
<a class="score-select" href="javascript:;">3</a>
<a class="score-select" href="javascript:;">4</a>
<a class="score-select" href="javascript:;">5</a>
</div>
<span class="score-text"></span>
</li>
{{/each}}
</ul>
</div>
{{/if}}
</div>
<form action="">
<div class="publish-editer" contenteditable="true">
</div>
</form>
<div class="publish-btn">
<a href="javascript:;">发表试用心得</a>
</div>
</div>
{{> layout/footer320}}
\ No newline at end of file
... ...
... ... @@ -11,6 +11,157 @@
{{# content}}
{{> detail/trail_content}}
{{/ content}}
<form class="review-form" action="">
<h2 class="form-title">试用网站评鉴结果分析</h2>
<div class="final-score">
<h2>总体评价</h2>
{{> common/final_score}}
</div>
{{#if reviewInfo}}
<div class="review-info">
<ul class="clearfix">
{{#each reviewInfo}}
<li>{{@key}}:{{.}}</li>
{{/each}}
</ul>
</div>
{{/if}}
<div class="chart-score clearfix">
<div id="chart"></div>
{{#if detailScore}}
<div class="detail-score">
<ul class="clearfix">
{{#each detailScore}}
<li class="clearfix" core="{{.}}">
<label>{{@key}}</label>
<div class="score-select-wrap clearfix">
<a class="score-select" href="javascript:;"></a>
<a class="score-select" href="javascript:;"></a>
<a class="score-select" href="javascript:;"></a>
<a class="score-select" href="javascript:;"></a>
<a class="score-select" href="javascript:;"></a>
</div>
</li>
{{/each}}
</ul>
</div>
{{/if}}
</div>
<div class="review-class clearfix">
{{#if buyAgain}}
<div class="buy-again review-percent">
<h4>回购评分</h4>
<ul>
{{#each buyAgain}}
<li class="clearfix">
<span>{{text}}</span>
<em><i>{{percent}}</i></em>
<span>{{num}}/{{percent}}</span>
</li>
{{/each}}
</ul>
</div>
{{/if}}
{{#if skin}}
<div class="review-percent">
<h4>参评网友肤质分布</h4>
<ul>
{{#each skin}}
<li class="clearfix">
<span>{{text}}</span>
<em><i>{{percent}}</i></em>
<span>{{num}}/{{percent}}</span>
</li>
{{/each}}
</ul>
</div>
{{/if}}
{{#if age}}
<div class="review-percent">
<h4>参评网友年龄分布</h4>
<ul>
{{#each skin}}
<li class="clearfix">
<span>{{text}}</span>
<em><i>{{percent}}</i></em>
<span>{{num}}/{{percent}}</span>
</li>
{{/each}}
</ul>
</div>
{{/if}}
</div>
</form>
{{# trialStatus}}
{{> common/trial_status}}
{{/ trialStatus}}
<div class="review-list">
<h2>试用报告</h2>
{{#each reviewList}}
<div class="review-item">
<div class="item-top clearfix">
<div class="user-avatar">
<img src="{{avatar}}" alt="">
<i class="{{type}}"></i>
</div>
<div class="user-info">
<p class="info-detail clearfix" class="clearfix">
<span class="name">{{nickname}}</span>
<span>{{isBuy}}&nbsp;/&nbsp;</span>
<span>{{age}}&nbsp;/&nbsp;</span>
<span>{{skin}}&nbsp;/&nbsp;</span>
<span>{{time}}</span>
</p>
<div class="clearfix score-wrap">
<div class="final-score">
<h2>总评星</h2>
{{> common/final_score}}
</div>
{{#if detailScore}}
<div class="detail-score">
<h4>细项评分:</h4>
<ul>
{{#each detailScore}}
<li>{{@key}} {{.}}</li>
{{/each}}
</ul>
{{#if moreDetailScore}}
<div class="more-score">
<a class="more-btn" href="javascript:;">更多</a>
<div class="more-score-list">
<div class="more-score-top"></div>
<div class="more-score-bottom"></div>
<ul>
{{#each moreDetailScore}}
<li>{{@key}} {{.}}</li>
{{/each}}
</ul>
</div>
</div>
{{/if}}
</div>
{{/if}}
</div>
</div>
</div>
<div class="review-content">
<h2>{{title}}</h2>
{{#each content}}
{{#if img}}
<img src="{{img}}" alt="">
{{/if}}
{{#if text}}
<p>{{text}}</p>
{{/if}}
{{/each}}
</div>
</div>
{{/each}}
<div class="load-more">
<a href="javascript:;"></a>
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
{{> layout/footer_jian}}
\ No newline at end of file
... ...
{{> layout/writer_header320}}
<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="{{shareImg}}"/></div>
<div id="trial-detail" class="detail">
{{# detailData}}
<h2 class="share-h2">{{title}}</h2>
<h3 class="share-h3">{{subTitle}}</h3>
<div class="author-channel">
{{# author}}
<p><a class="detail_author" href="{{link}}" target="_blank">Text:&nbsp;{{name}}</a></p>
{{/ author}}
{{# channel}}<a href="{{link}}">{{name}}</a>&nbsp;|&nbsp;{{/ channel}}
{{# twoChannel}}<a href="{{link}}">{{name}}</a>&nbsp;|&nbsp;{{/ twoChannel}}
<span time="{{time}}" class="time-format"></span>
</div>
{{/ detailData}}
<div class="detail-body">
{{# content}}
{{> detail/trail_content}}
{{/ content}}
<form class="review-form" action="">
<h2 class="form-title">试用网站评鉴结果分析</h2>
<div class="chart-score clearfix">
<div class="final-score">
<h2>总体评价</h2>
{{> common/final_score}}
</div>
<div id="chart"></div>
</div>
{{#if reviewInfo}}
<div class="review-info">
<ul class="clearfix">
{{#each reviewInfo}}
<li>{{@key}}:{{.}}</li>
{{/each}}
</ul>
</div>
{{/if}}
{{#if detailScore}}
<div class="detail-score">
<ul class="clearfix">
{{#each detailScore}}
<li class="clearfix" core="{{.}}">
<label>{{@key}}</label>
<div class="score-select-wrap clearfix">
<a class="score-select" href="javascript:;"></a>
<a class="score-select" href="javascript:;"></a>
<a class="score-select" href="javascript:;"></a>
<a class="score-select" href="javascript:;"></a>
<a class="score-select" href="javascript:;"></a>
</div>
</li>
{{/each}}
</ul>
</div>
{{/if}}
<div class="review-class clearfix">
{{#if buyAgain}}
<div class="buy-again review-percent">
<h4>回购评分</h4>
<ul>
{{#each buyAgain}}
<li class="clearfix">
<span>{{text}}</span>
<em><i>{{percent}}</i></em>
<span>{{num}}/{{percent}}</span>
</li>
{{/each}}
</ul>
</div>
{{/if}}
{{#if skin}}
<div class="review-percent">
<h4>参评网友肤质分布</h4>
<ul>
{{#each skin}}
<li class="clearfix">
<span>{{text}}</span>
<em><i>{{percent}}</i></em>
<span>{{num}}/{{percent}}</span>
</li>
{{/each}}
</ul>
</div>
{{/if}}
{{#if age}}
<div class="review-percent">
<h4>参评网友年龄分布</h4>
<ul>
{{#each age}}
<li class="clearfix">
<span>{{text}}</span>
<em><i>{{percent}}</i></em>
<span>{{num}}/{{percent}}</span>
</li>
{{/each}}
</ul>
</div>
{{/if}}
</div>
</form>
{{# trialStatus}}
{{> common/trial_status}}
{{/ trialStatus}}
<div class="review-list">
<h2>试用报告</h2>
{{#each reviewList}}
<div class="review-item">
<div class="item-top clearfix">
<div class="user-avatar">
<img src="{{avatar}}" alt="">
<i class="{{type}}"></i>
</div>
<div class="user-info clearfix">
<span class="name">{{nickname}}</span>
<p class="clearfix">
<span>{{isBuy}}&nbsp;/&nbsp;</span>
<span>{{age}}&nbsp;/&nbsp;</span>
<span>{{skin}}&nbsp;/&nbsp;</span>
<span>{{time}}</span>
</p>
</div>
</div>
<div class="review-content">
<h2>{{title}}</h2>
{{#each content}}
{{#if img}}
<img src="{{img}}" alt="">
{{/if}}
{{#if text}}
<p>{{text}}</p>
{{/if}}
{{/each}}
</div>
<div class="score-wrap clearfix">
{{#if detailScore}}
<div class="detail-score">
<h4>细项评分:</h4>
<ul class="clearfix">
{{#each detailScore}}
<li>{{@key}} {{.}}</li>
{{/each}}
</ul>
<div class="more-score">
<a class="more-btn" href="javascript:;">更多></a>
</div>
</div>
{{/if}}
<div class="final-score">
<h2>总评星</h2>
{{> common/final_score}}
</div>
</div>
</div>
{{/each}}
<div class="load-more">
<a href="javascript:;"></a>
</div>
</div>
</div>
</div>
\ No newline at end of file
... ...
... ... @@ -16,12 +16,11 @@
{{> common/trial_status}}
{{/ trialStatus}}
{{#if formTip}}
{{#unless toolTip}}
{{> detail/application_form}}
{{/if}}
{{/unless}}
{{#if toolTip}}
{{> detail/tooltip}}
{{/if}}
{{> detail/tooltip}}
</div>
</div>
\ No newline at end of file
</div>
{{> layout/footer_jian}}
\ No newline at end of file
... ...
... ... @@ -31,3 +31,4 @@
{{/if}}
</div>
</div>
{{> layout/footer320}}
... ...
<div class="detail-score">
<ul class="clearfix">
{{#each detailScore}}
<li index="{{@key}}">
<label>{{.}}</label>
<div class="score-select-wrap">
<a class="score-select" href="javascript:;">1</a>
<a class="score-select" href="javascript:;">2</a>
<a class="score-select" href="javascript:;">3</a>
<a class="score-select" href="javascript:;">4</a>
<a class="score-select" href="javascript:;">5</a>
</div>
<span class="score-text"></span>
</li>
{{/each}}
</ul>
</div>
\ No newline at end of file
<div class="final-score clearfix">
<span class="score-num">{{score}}</span>
<div class="score-content clearfix">
<span class="score-num"><em>{{score}}</em>/5分</span>
<ul class="star-list clearfix">
<li></li>
<li></li>
... ...
... ... @@ -33,4 +33,11 @@
{{/ writer}}
{{# publish}}
{{> script/publish}}
{{/ publish}}
\ No newline at end of file
{{/ publish}}
{{# review}}
{{> script/review}}
{{/ review}}
{{# detailTrial}}
{{> script/detail_trial}}
{{/ detailTrial}}
\ No newline at end of file
... ...
<div class="trial-step">
<ul class="clearfix">
{{#each trialStep}}
<li class="{{# current}}current{{/ current}}">
<li class="{{# current}}current{{/ current}} {{#if @last}}last-step{{/if}}">
<span>Step{{step}}:</span>
<em>{{textCn}}</em>
<i>{{#unless @last}}>{{/unless}}</i>
</li>
{{/each}}
</ul>
... ...
... ... @@ -4,105 +4,140 @@
<p>{{formTip}}</p>
</div>
<div class="form">
<form action="">
{{# form}}
<form id="application-form" c-id="{{id}}" action="">
<p class="clearfix">
<label for="user-name">姓名:</label>
<input id="user-name" class="char" type="text">
<input id="userName" name="userName" class="char required" type="text" value="{{name}}">
</p>
<p class="clearfix">
<label for="user-tell">手机:</label>
<input id="user-tell" class="char" type="text">
<input id="userTell" name="userTell" class="char required" type="text" value="{{tell}}">
<i class="verification-btn">获取验证码</i>
</p>
<p class="clearfix">
<label for="user-verification">验证码:</label>
<input id="user-verification" class="char" type="text">
<input id="userVerification" name="verification" class="char" type="text">
<i class="verification-icon">验证码错误</i>
</p>
<p class="address-char clearfix">
<label for="user-address">地址:</label>
<span id="user-address" class="varchar" contentEditable="true"></span>
<span id="userAddress" class="varchar" contentEditable="true">{{address}}</span>
</p>
<p class="clearfix">
<label for="user-age">年龄:</label>
<input id="user-age" class="char" type="text">
<input id="userAge" name="age" class="char required" type="text" value="{{age}}">
</p>
<p class="clearfix">
<p class="gender-select clearfix">
<label>性别:</label>
<input id="gender-male" class="radio checked" name="user-gender" type="radio" value="男" checked>
<label class="radio-label" for="gender-male"></label>
<input id="gender-female" class="radio" name="user-gender" type="radio" value="女">
<label class="radio-label" for="gender-female"></label>
<!-- <span class="select-item clearfix">
<input id="genderMale" class="gender radio" name="user-gender" type="radio" value="男" {{#if male}}checked{{/if}}>
<label class="radio-label {{#if male}}current{{/if}}" for="genderMale">男</label>
</span>
<span class="select-item clearfix">
<input id="genderFemale" class="gender radio" name="user-gender" type="radio" value="女">
<label class="radio-label {{#if female}}current{{/if}}" for="genderFemale">女</label>
</span> -->
{{#each gender}}
<span class="select-item clearfix">
<input id="gender{{@index}}" class="gender radio" name="user-gender" type="radio" value="{{value}}" {{#if default}}checked{{/if}}>
<label class="radio-label {{#if default}}current{{/if}}" for="gender{{@index}}">{{value}}</label>
</span>
{{/each}}
</p>
<p class="clearfix">
<p class="skin-select clearfix">
<label>肤质:</label>
<input id="skin1" class="radio checked" name="user-skin" type="radio" value="中性" checked>
<label class="radio-label radio-long-label" for="skin1">中性</label>
<input id="skin2" class="radio" name="user-skin" type="radio" value="干性">
<label class="radio-label radio-long-label" for="skin2">干性</label>
<input id="skin3" class="radio" name="user-skin" type="radio" value="油性">
<label class="radio-label radio-long-label" for="skin3">油性</label>
<input id="skin4" class="radio" name="user-skin" type="radio" value="混合">
<label class="radio-label radio-long-label" for="skin4">混合</label>
<input id="skin5" class="radio" name="user-skin" type="radio" value="敏感">
<label class="radio-label radio-long-label" for="skin5">敏感</label>
<!-- <span class="select-item clearfix">
<input id="skin1" class="radio checked" name="user-skin" type="radio" value="中性" checked>
<label class="radio-label radio-long-label current" for="skin1">中性</label>
</span>
<span class="select-item clearfix">
<input id="skin2" class="radio" name="user-skin" type="radio" value="干性">
<label class="radio-label radio-long-label" for="skin2">干性</label>
</span>
<span class="select-item clearfix">
<input id="skin3" class="radio" name="user-skin" type="radio" value="油性">
<label class="radio-label radio-long-label" for="skin3">油性</label>
</span>
<span class="select-item clearfix">
<input id="skin4" class="radio" name="user-skin" type="radio" value="混合">
<label class="radio-label radio-long-label" for="skin4">混合</label>
</span>
<span class="select-item clearfix">
<input id="skin5" class="radio" name="user-skin" type="radio" value="敏感">
<label class="radio-label radio-long-label" for="skin5">敏感</label>
</span> -->
{{#each skin}}
<span class="select-item clearfix">
<input id="skin{{@index}}" class="radio" name="user-skin" type="radio" value="{{text}}" {{#if default}}checked{{/if}}>
<label class="radio-label radio-long-label {{#if default}}current{{/if}}" for="skin{{@index}}">{{text}}</label>
</span>
{{/each}}
</p>
<p class="clearfix">
<label>您的问题</label>
</p>
<p class="trouble-wrap clearfix">
<span class="clearfix">
<!-- <span class="select-item clearfix">
<input id="trouble1" class="checkbox" name="user-trouble" type="checkbox" value="干燥">
<em></em>
<label class="checkbox-label" for="trouble1">干燥</label>
</span>
<span class="clearfix">
<span class="select-item clearfix">
<input id="trouble2" class="checkbox" name="user-trouble" type="checkbox" value="过敏">
<em></em>
<label class="checkbox-label" for="trouble2">过敏</label>
</span>
<span class="clearfix">
<span class="select-item clearfix">
<input id="trouble3" class="checkbox" name="user-trouble" type="checkbox" value="松弛">
<em></em>
<label class="checkbox-label" for="trouble3">松弛</label>
</span>
<span class="clearfix">
<span class="select-item clearfix">
<input id="trouble4" class="checkbox" name="user-trouble" type="checkbox" value="细纹">
<em></em>
<label class="checkbox-label" for="trouble4">细纹</label>
</span>
<span class="clearfix">
<span class="select-item clearfix">
<input id="trouble5" class="checkbox" name="user-trouble" type="checkbox" value="出油">
<em></em>
<label class="checkbox-label" for="trouble5">出油</label>
</span>
<span class="clearfix">
<span class="select-item clearfix">
<input id="trouble6" class="checkbox" name="user-trouble" type="checkbox" value="痘痘">
<em></em>
<label class="checkbox-label" for="trouble6">痘痘</label>
</span>
<span class="clearfix">
<span class="select-item clearfix">
<input id="trouble7" class="checkbox" name="user-trouble" type="checkbox" value="红血丝">
<em></em>
<label class="checkbox-label" for="trouble7">红血丝</label>
</span>
<span class="clearfix">
<span class="select-item clearfix">
<input id="trouble8" class="checkbox" name="user-trouble" type="checkbox" value="色斑">
<em></em>
<label class="checkbox-label" for="trouble8">色斑</label>
</span>
<span class="clearfix">
<span class="select-item clearfix">
<input id="trouble9" class="checkbox" name="user-trouble" type="checkbox" value="肤色不均">
<em></em>
<label class="checkbox-label" for="trouble9">肤色不均</label>
</span> -->
{{#each problem}}
<span class="select-item clearfix">
<input id="trouble{{@index}}" class="checkbox" name="user-trouble" type="checkbox" value="{{text}}" {{#if default}}checked{{/if}}>
<em class="{{#if default}}current{{/if}}"></em>
<label class="checkbox-label" for="trouble{{@index}}">{{text}}</label>
</span>
{{/each}}
</p>
<div class="application-reason" contentEditable="true">
<span class="placeholder">你可以从肌肤现有问题,钟爱哪些产品等方面提交申请理由</span>
</div>
<p class="clearfix">
<input class="submit-btn" type="button" value="免费申请">
<input id="submit-btn" class="submit-btn" type="submit" value="免费申请">
</p>
</form>
{{/ form}}
</div>
</div>
\ No newline at end of file
... ...
<div class="detail-side">
{{# ad}}
<div class="detail-ad">
<a href="{{url}}" target="_blank" onclick="YOHODCLICK('detail','web','rightBannerHK')"><img src="{{src}}" alt="{{alt}}"></a>
</div>
{{/ ad}}
{{> detail/detail_side_download}}
{{> detail/detail_side_focus}}
{{> detail/detail_side_video}}
... ...
<div class="tooltip">
<p class="trial-tip">{{toolTip}}</p>
{{^ toolTip}}
<div class="tooltip" style="display:none;">
<p class="trial-tip">恭喜您申请提交成功!</p>
<p>请耐心等待系统审核</p>
<p>我们会短信通知您申请结果</p>
</div>
\ No newline at end of file
</div>
{{/ toolTip}}
{{# toolTip}}
<div class="tooltip">
<p class="trial-tip">{{title}}</p>
<p>{{content}}</p>
</div>
{{/ toolTip}}
\ No newline at end of file
... ...
... ... @@ -4,4 +4,7 @@
<img src="{{.}}" alt="">
{{/ bigImg}}
</div>
<div class="main-content">
{{mainHtml}}
</div>
</div>
\ No newline at end of file
... ...
<script type="text/javascript" charset="utf-8">
//详情页面JS
seajs.use(['js/channel/detail-trial', 'js/public']);
</script>
\ No newline at end of file
... ...
<script type="text/javascript" charset="utf-8">
//详情页面JS
seajs.use(['js/channel/publish', 'js/public'], function() {});
</script>
\ No newline at end of file
... ...
<script type="text/javascript" charset="utf-8">
seajs.use(['js/channel/review', 'js/public'], function() {});
</script>
\ No newline at end of file
... ...