evaluation_add.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <div class="dsm-flow-layout">
  4. <div class="dsm-flow-container">
  5. <div class="title"><a href="javascript:history.go(-1);" class="dsm-btn-mini fr"><i class="iconfont">&#xe74e;</i>{$Think.lang.return_space|raw}</a>
  6. <h3>{$Think.lang.member_evaluation_toevaluategoods}</h3>
  7. </div>
  8. {if $Request.action != 'add_vr'}
  9. <form id="evalform" method="post" enctype="multipart/form-data" action="{:url('Memberevaluate/add',['order_id'=>$order_info.order_id])}">
  10. {else/}
  11. <form id="evalvrform" method="post" enctype="multipart/form-data" action="{:url('Memberevaluate/add_vr',['order_id'=>$order_info.order_id])}">
  12. {/if}
  13. <div class="alert alert-block">
  14. <h4>{$Think.lang.operating_hints}:</h4>
  15. <ul>
  16. <li>{$Think.lang.member_evaluation_rule_3}</li>
  17. <li>{$ruleexplain}</li>
  18. <li>{$Think.lang.member_evaluation_rule_4|raw}</li>
  19. </ul>
  20. </div>
  21. <div class="tabmenu">
  22. <ul class="tab">
  23. <li class="active"><a href="javascript:void(0);">{$Think.lang.evaluate_purchased_goods}</a></li>
  24. </ul>
  25. </div>
  26. <table class="dsm-default-table deliver mb30">
  27. <thead>
  28. <tr>
  29. <th colspan="2">{$Think.lang.member_evaluation_order_desc}</th>
  30. <th>{$Think.lang.commodity_rating}</th>
  31. <th>{$Think.lang.comment_details}</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <tr>
  36. <th colspan="20" class="tr">
  37. <span class="mr10"><input type="checkbox" class="checkbox vm" name="anony">&nbsp;{$Think.lang.member_evaluation_modtoanonymous}</span>
  38. </th>
  39. </tr>
  40. {if $order_goods}
  41. {foreach name="order_goods" item="goods"}
  42. <tr class="bd-line">
  43. <td valign="top" class="w40"><div class="pic-thumb"><a href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" target="_blank"><img src="{:goods_thumb($goods)}"/></a></span></div></td>
  44. <td valign="top" class="tl w200"><dl class="goods-name">
  45. <dt style="width: auto!important"><a href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" target="_blank">{$goods.goods_name}</a></dt>
  46. <dd><span class="rmb-price">¥{$goods.goods_price}</span>&nbsp;*&nbsp;{$goods.goods_num}&nbsp;{$Think.lang.piece}</dd>
  47. </dl></td>
  48. <td valign="top" class="w100"><div class="dsgeval mb10">
  49. <div class="raty">
  50. <input dstype="score" name="goods[{$goods.goods_id}][score]" type="hidden">
  51. </div>
  52. </div></td>
  53. <td valign="top" class="tr"><textarea name="goods[{$goods.goods_id}][comment]" cols="150" style="width: 280px;"></textarea></td>
  54. </tr>
  55. {/foreach}
  56. {/if}
  57. </tbody>
  58. </table>
  59. {if !$store_info.is_platform_store && $Request.action != 'add_vr'}
  60. <div class="tabmenu">
  61. <ul class="tab">
  62. <li class="active"><a href="javascript:void(0);">{$Think.lang.shop_service_score}</a></li>
  63. </ul>
  64. </div>
  65. {/if}
  66. <div class="dsm-default-form">
  67. {if !$store_info.is_platform_store && $Request.action != 'add_vr'}
  68. <dl>
  69. <dt>{$Think.lang.member_evaluation_evalstore_type_1}{$Think.lang.ds_colon}</dt>
  70. <dd>
  71. <div class="raty-x2">
  72. <input dstype="score" name="store_desccredit" type="hidden">
  73. </div>
  74. </dd>
  75. </dl>
  76. <dl>
  77. <dt>{$Think.lang.member_evaluation_evalstore_type_2}{$Think.lang.ds_colon}</dt>
  78. <dd>
  79. <div class="raty-x2">
  80. <input dstype="score" name="store_servicecredit" type="hidden">
  81. </div>
  82. </dd>
  83. </dl>
  84. <dl>
  85. <dt>{$Think.lang.member_evaluation_evalstore_type_3}{$Think.lang.ds_colon}</dt>
  86. <dd>
  87. <div class="raty-x2">
  88. <input dstype="score" name="store_deliverycredit" type="hidden">
  89. </div>
  90. </dd>
  91. </dl>
  92. {/if}
  93. <div class="bottom">
  94. <input id="btn_submit" type="submit" class="submit" value="{$Think.lang.member_evaluation_submit}"/>
  95. </div>
  96. </div>
  97. </form>
  98. </div>
  99. <div class="dsm-flow-item">
  100. {if !$store_info.is_platform_store}
  101. <div class="dsm-evaluation-store">
  102. <div class="title">{$Think.lang.member_evaluation_storeinfotitle}</div>
  103. <div class="store-name"> {$store_info.store_name}</div>
  104. <div class="store-info">
  105. {if !$store_info.is_platform_store}
  106. <dl class="all-rate">
  107. <dt>{$Think.lang.comprehensive_score}:</dt>
  108. <dd>
  109. <div class="rating"><span style="width:{$store_info.store_credit_percent}%"></span></div>
  110. <em>{$store_info.store_credit_average}</em>{$Think.lang.credit_unit}</dd>
  111. </dl>
  112. <div class="detail-rate">
  113. <h5><strong>{$Think.lang.member_evaluation_storeevalstat}</strong>{$Think.lang.compare_with_industry}</h5>
  114. <ul>
  115. {foreach name="store_info.store_credit" item="val"}
  116. <li>
  117. <span>{$val.text}</span><span class="credit">{$val.credit}{$Think.lang.credit_unit}</span>
  118. {present name="val.percent_class" && present name="val.percent_text"}
  119. <span class="{$val.percent_class}"><i></i>{$val.percent_text}<em>{$val.percent}</em></span>
  120. {/present}
  121. </li>
  122. {/foreach}
  123. </ul>
  124. </div>
  125. {/if}
  126. {if $store_info.store_qq || $store_info.store_ww}
  127. <dl class="messenger">
  128. <dt>{$Think.lang.contact_information}:</dt>
  129. <dd><span member_id="{$store_info.member_id}"></span>
  130. {if $store_info.store_qq}
  131. <a target="_blank" href="{$Think.HTTP_TYPE}wpa.qq.com/msgrd?v=3&uin={$store_info.store_qq}&site=qq&menu=yes" title="QQ: {$store_info.store_qq}"><img border="0" src="{$Think.HTTP_TYPE}wpa.qq.com/pa?p=2:{$store_info.store_qq}:52" style=" vertical-align: middle;"/></a>
  132. {/if}
  133. {if $store_info.store_ww}
  134. <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid={$store_info.store_ww}&site=cntaobao&s=1&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={$store_info.store_ww}&site=cntaobao&s=2&charset=utf-8" alt="{$Think.lang.ds_message_me}" style=" vertical-align: middle;"/></a>
  135. {/if}
  136. </dd>
  137. </dl>
  138. {/if}
  139. {if $store_info.store_phone}
  140. <dl class="messenger">
  141. <dt>{$Think.lang.store_phone_number}:</dt>
  142. <dd>{$store_info.store_phone}</dd>
  143. </dl>
  144. {/if}
  145. <dl class="no-border">
  146. <dt>{$Think.lang.company_name}:</dt>
  147. <dd>{$store_info.store_company_name}</dd>
  148. </dl>
  149. <dl >
  150. <dt>{$Think.lang.location_space|raw}:</dt>
  151. <dd>{$store_info.store_address}</dd>
  152. </dl>
  153. </div>
  154. </div>
  155. {/if}
  156. </div>
  157. </div>
  158. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/jquery.raty.min.js"></script>
  159. <script type="text/javascript">
  160. $(function () {
  161. $('#evalvrform').validate({
  162. submitHandler:function(form){
  163. ds_ajaxpost('evalvrform', 'url', '{:url('Membervrorder/index')}')
  164. }
  165. });
  166. $('#evalform').validate({
  167. submitHandler:function(form){
  168. ds_ajaxpost('evalform', 'url', '{:url('Memberorder/index')}')
  169. }
  170. });
  171. $('.raty').raty({
  172. path: "{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/img",
  173. click: function(score) {
  174. $(this).find('[dstype="score"]').val(score);
  175. }
  176. });
  177. $('.raty-x2').raty({
  178. path: "{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/img",
  179. starOff: 'star-off-x2.png',
  180. starOn: 'star-on-x2.png',
  181. width: 150,
  182. click: function(score) {
  183. $(this).find('[dstype="score"]').val(score);
  184. }
  185. });
  186. })
  187. </script>
  188. {/block}