evaluate_list.html
5.11 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<title>订单列表-{$tpshop_config['shop_info_store_title']}</title>
<link rel="stylesheet" href="__STATIC__/css/evaluate.css"/>
<link rel="stylesheet" href="__STATIC__/css/kwj-m-lib.min.css"/>
<link rel="stylesheet" href="__STATIC__/css/script.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/layer.css"/>
<script type="text/javascript" src="__STATIC__/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/rem_JScript.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js"></script>
</head>
<body>
<form class="form-horizontal" id="adminHandle" action="{:U('Evaluate/evaluate_list')}" method="post">
<if condition="$order_null eq 1">
<!--没有订单-->
<div class="order_null tac">
<img class="eva_no_open disib" src="__STATIC__/images/distribut/no_merchant.png"
style="width: 2.86rem; height: 2.92rem; margin:2rem auto 0;"/>
<div class="f24 tac mt20 pt20">暂无订单或未设置评价信息</div>
</div>
<else/>
<div class="ware goods_eva_list">
<foreach name="order_info" item="v" key="k">
<div class="shop_info">
<div class="shopimg rad_50">
<img src="{:getimg($store_logo)}"/>
</div>
<div class="goods_info">
<ul>
<li class="cut"><img class="idcard" src="__STATIC__/images/evaluate/idcard.png" alt=""> {$v.StaffName}<img class="starlit" src="__STATIC__/images/evaluate/starlit.png" alt=""><span class="f20 c9"> 4.9</span> </li>
<li class="rel goodsinfo">
<span id="goodsname" class="cut disb">{$v.WareName}</span>
<img class="rightimg" src="__STATIC__/images/flow/shop_arrow.png"/>
</li>
<!--<li>导购编码:{$v.StaffName}</li>-->
<li class="rel" style="color: #999;">
消费时间:{:date("Y-m-d H:i:s",strtotime($v['BillDate']))}
<if condition="$v['IsEvaluate'] eq 0">
<a class="btn_eva moz_b4 moz_t4"
href="{:U('Evaluate/evaluate',array('state'=>add,'POSNo'=>$v.POSNo,'stoid'=>$Think.request.stoid))}">去评价</a>
<else/>
<a class="btn_eva moz_b4 moz_t4"
href="{:U('Evaluate/evaluate',array('state'=>edit,'POSNo'=>$v.POSNo,'stoid'=>$Think.request.stoid
))}">查看评价</a>
</if>
</li>
<input type="hidden" id="thisposno" name="POSNo" value="{$v.POSNo}">
</ul>
</div>
</div>
</foreach>
</div>
</if>
<!--商品详情-->
<div class="goods_tips dn">
<div class="trans80"></div>
<div class="goods_list moz_b4 moz_t4">
<div class="tit">
商品详情
</div>
<ul id="goodspro" class="mt20">
<!--<li>-->
<!--<span class="goods_name cut">{$v.WareName}</span><i class="goods_num">{$v.Qty}</i>-->
<!--</li>-->
</ul>
</div>
</div>
</form>
</body>
</html>
<script type="text/javascript">
var getstoid={$Think.request.stoid};
window.onload = function () {
layer.closeAll();
};
// 商品詳情
$(".goods_info ul li.goodsinfo").click(function () {
layer.open({type: 2, shadeClose: false});
var POSNo =$(this).parent().children("#thisposno").val();
$.ajax({
type: "post",
url: '/index.php?m=Mobile&c=Evaluate&a=goods_list&stoid='+getstoid+'',
data: {
POSNo: POSNo,
},
dataType: 'json',
success: function (data) {
// var data = JSON.parse(data);
if (data.code==1){
var htm = "";
for (var i = 0; i < data.data.length; i++) {
htm += "<li><span class='goods_name cut'>" + data['data'][i]['WareName'] + "</span><i class='goods_num'>" + parseInt(data['data'][i]['Qty']) + "</i></li>";
}
$("#goodspro").html(htm);
$(".goods_tips").fadeIn(500);
layer.closeAll();
}
},
error:function () {
layer.closeAll();
layer.open({content: "加载失败,请重试", time: 1});
}
});
});
$(function () {
layer.open({type: 2, shadeClose: false});
//隐藏商品详情
$(".goods_tips .trans80").click(function () {
$(".goods_tips").fadeOut(500)
})
});
</script>