comment.html
6.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<title>我的评价</title>
<script src="__STATIC__/js/common.js"></script>
<include file="public/header"/><body>
<!--<header>
<div class="tab_nav">
<div class="header">
<div class="h-left"><a class="sb-back" href="javascript:history.back(-1)" title="返回"></a></div>
<div class="h-mid">我的评价</div>
<div class="h-right">
<aside class="top_bar">
<div onClick="show_menu();$('#close_btn').addClass('hid');" id="show_more"><a href="javascript:;"></a> </div>
</aside>
</div>
</div>
</div>
</header>-->
<link rel="stylesheet" href="__STATIC__/css/my_evaluate.css?v=__CSSVERSION__">
<style>
.is_evaluate{
width: 70px;
border-radius: 7px;
background: rgb(211, 28, 52);
height: 24px;
line-height: 24px;
}
.order-bottom{
height: 0.8rem;
}
.pingjia{
padding-bottom: 0px;
}
</style>
<include file="public/menu"/>
<include file="public/navBall"/>
<div id="tbh5v0">
<div class="order">
<div class="Evaluation">
<ul>
<li><a href="{:U('User/comment',array('status'=>-1,'stoid'=>$Think.request.stoid))}" class="tab_head <if condition='$Request.param.status eq -1'>on</if>" id="goods_ka1" onClick="setGoodsTab('goods_ka',1,3)">全部评价</a></li>
<li><a href="{:U('User/comment',array('status'=>0,'stoid'=>$Think.request.stoid))}" class="tab_head <if condition='$Request.param.status eq 0'>on</if>" id="goods_ka2" onClick="setGoodsTab('goods_ka',2,3)">待评价</a></li>
<li><a href="{:U('User/comment',array('status'=>1,'stoid'=>$Think.request.stoid))}" class="tab_head <if condition='$Request.param.status eq 1'>on</if>" id="goods_ka3" onClick="setGoodsTab('goods_ka',3,3)">已评价</a></li>
</ul>
</div>
<empty name="comment_list">
<!-- <div id="list_0_0" class="font12" style="background-color: #fff;">您没有任何评价哦!</div>-->
<div class="no_evaluate flex jc_center">
<!-- <div id="list_0_0" class="font12" style=" margin-top:50px">您没有任何订单哦!</div>-->
<div>
<img class="no_evaluate_img" src="__STATIC__/images/home_page/comment.png">
<div class="fs032 fg t_c">当前暂无评论 </div>
<a href="{:U('Index/index',array('stoid'=>$Think.request.stoid))}">
<div class="fc fs028 home_page flex jc_center">去首页逛逛</div>
</a>
</div>
</div>
<else/>
<div class="Emain" id="user_goods_ka_1" style="display:block;">
<foreach name="comment_list" item="vo" key="k">
<div class="pingjia">
<div class="pingjia-top">
<div class="order-frame flex ai_center jc_sb">
<div class="order-val ellipsis-1">订单编号:{$vo.order_sn}</div>
<div class="fs12 fr">
<if condition="$Think.request.status">
已评论
<else/>
待评论
</if>
</div>
</div>
</div>
<!--<h2>购买时间:{$vo.add_time|date='Y-m-d H:i:s',###}</h2>-->
<dl>
<dt><img src="{:getimg($vo['original_img'],NOIMG,0,1)}"></dt>
<dd>
<div style="width: 100%;height: 50%">
<div class="goods_name ellipsis-2">{$vo.goods_name}</div>
<if condition="$good.guige">
<text class="norms">{$good.guige}</text>
<else/>
<text class="norms fs11">规格1</text>
</if>
</div>
<div style="width: 100%;height: 50%" class="flex ai_fe jc_sb">
<strong class="fs028"><text class="fs020">¥</text>{$vo.goods_price}</strong>
<dix class="fs14">x{$vo.goods_num}</dix>
</div>
</dd>
<dd>
</dd>
</dl>
<div class="flex order-bottom ai_center jc_sb">
<div class="fs12">共{$vo.goods_num}件商品 合计:
<if condition="$vo.goods_price gt 0">
<text style="color:#C4182E">¥{$vo.goods_price*$vo.goods_num}</text>
</if>
<if condition="$vo.integral gt 0">
<if condition="$vo.goods_price gt 0">+</if><text style="color:#C4182E">{$vo.integral}积分</text>
</if>
</div>
<if condition="$vo[is_comment] eq 0">
<a class="is_evaluate flex ai_center jc_center" href="{:U('User/add_comment',array('rec_id'=>$vo[rec_id],'stoid'=>$Think.request.stoid))}"style="color: #fff;">去评价</a>
<else/>
<a class="remark" href="{:U('User/view_comment',array('rec_id'=>$vo[rec_id],'stoid'=>$Think.request.stoid))}">查看评价</a>
</if>
</div>
<if condition="$vo[is_comment] eq 1">
<div class="pj_main">
<ul>
<li><em>评价:</em><img src="__STATIC__/images/stars{$vo.goods_rank}.png"></li>
<li class="pj_w">{$vo.content|htmlspecialchars_decode}</li>
</ul>
<!--晒单-->
<if condition="!empty($vo['img'])">
<div class="sd_img">
<dl id="gallery">
<foreach name="$vo['img']" key="key" item="v2">
<!--<dd><a href="{$v2}"><img src="{$v2}" width="100px" heigth="100px"></a></dd>-->
<dd><a href="{:getimg($v2,NOIMG)}"><img src="{:getimg($v2,NOIMG)}" width="100px" heigth="100px"></a></dd>
</foreach>
</dl>
</div>
</if>
<!--管理员回复-->
<foreach name="vo['rep']" item="val">
<ul style="border-top:1px dashed #e5e5e5; padding-top:8px; margin-top:10px">
<li><em style=" color:#F60">商家回复:</em></li>
<li class="pj_w" style=" color:#F60; font-size:12px;">{$val.content}</li>
</ul>
</foreach>
</div>
</if>
</div>
</foreach>
</div>
<eq name="isshow" value="1">
<notempty name="comment_list">
<div id="getmore" style="font-size:.24rem;text-align:
center;color:#888;padding:.25rem .24rem .4rem; clear:both">
<a href="javascript:void(0)" onClick="ajax_sourch_submit()">点击加载更多</a>
</div>
</notempty>
</eq>
</empty>
</div>
<script>
var page = 1;
var sta="<?php echo I("status")?>";
var stoid="<?php echo I("stoid")?>";
/*** ajax 提交表单 查询订单列表结果*/
function ajax_sourch_submit()
{
page += 1;
$.ajax({
type : "GET",
url:"/index.php?m=Mobile&c=User&a=comment&status="+sta+"&is_ajax=1&p="+page+"&stoid="+stoid,//+tab,
// url:"{:U('Mobile/User/comment',array('status'=>$_GET['status']),'')}/is_ajax/1/p/"+page,//+tab,
// data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
success: function(data)
{
if($.trim(data) == '')
$('#getmore').hide();
else {
$("#user_goods_ka_1").append(data);
}
}
});
}
</script>
<script>
function goTop(){
$('html,body').animate({'scrollTop':0},600);
}
</script>
<a href="javascript:goTop();" class="gotop"><img src="__STATIC__/images/topup.png"></a>
</div>
<include file="public/footer_nav"/>
</body>
</html>