You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1445 lines
80 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->_var['page_title']; ?></title>
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/base.css" />
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/user.css" />
<link rel="stylesheet" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/purebox.css">
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery-1.9.1.min.js,jquery.json.js,transport_jquery.js,common.js,utils.js')); ?>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/sc_memake.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/sc_common.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.tabso_yeso.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery-migrate-1.1.0.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.yomi.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/rotate3di.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/ecsc-nav.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/checkAll.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/scroll_city.js"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/ZeroClipboard/ZeroClipboard.js"></script>
</head>
<body id="user">
<?php echo $this->fetch('library/page_header_user.lbi'); ?>
<?php if ($this->_var['action'] == 'default'): ?>
<div id="user-info">
<div class="user-info-wrap w1200">
<div class="user-info-l">
<a href="user.php?act=profile" class="u-pic"><img src="<?php if ($this->_var['info']['user_picture']): ?><?php echo $this->_var['info']['user_picture']; ?><?php else: ?>themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/touxiang.jpg<?php endif; ?>" width="85" height="85"></a>
<div class="info-m">
<div class="u-name"><a href="user.php?act=profile" class="ecsc-vip ecsc-vip<?php echo $this->_var['rank']['user_rank']['rank_id']; ?>"><s></s></a><a href="javscript:;" class="name"><em><?php echo $this->_var['rank']['time_reminder']; ?>,</em><?php echo $this->_var['info']['username']; ?></a></div>
<div class="u-growth">
<span class="tel"><?php if ($this->_var['info']['mobile_phone']): ?>手机:<?php echo $this->_var['info']['mobile_phone']; ?><?php else: ?><a href="user.php?act=profile">绑定手机</a><?php endif; ?></span>
<span class="email">邮箱:<?php if ($this->_var['info']['email']): ?><?php echo $this->_var['info']['email']; ?><?php else: ?><a href="user.php?act=profile">绑定</a><?php endif; ?></span>
</div>
</div>
</div>
<div class="user-info-r">
<div class="info-item info-fore1">
<span>余额</span>
<a href="user.php?act=account_log" class="ftx-01"><?php echo $this->_var['info']['surplus']; ?></a>
</div>
<div class="info-item info-fore2">
<span>红包</span>
<a href="user.php?act=bonus" class="pink ftx-01"><?php echo $this->_var['info']['bonus']; ?></a>
</div>
<div class="info-item info-fore3">
<span>消费积分</span>
<span class="ftx-02"><?php echo $this->_var['info']['integral']; ?></span>
</div>
<div class="info-item info-fore4">
<span>等级</span>
<span class="ftx-02"><?php echo $this->_var['rank']['user_rank']['rank_name']; ?>(<?php echo $this->_var['rank']['user_rank']['rank_points']; ?>/<?php echo $this->_var['rank']['user_rank']['max_points']; ?>)</span>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="main w1200 user_home user_tran">
<div class="user-left">
<?php echo $this->fetch('library/user_menu.lbi'); ?>
</div>
<?php if ($this->_var['action'] == 'default'): ?>
<div class="user-right">
<div class="user-counts">
<ul>
<li class="user-count3">
<div class="count-item">
<a href="user.php?act=order_list&order_type=toBe_unconfirmed"><i class="count-icon"></i><span>待确认(&nbsp;<?php echo $this->_var['unconfirmed']; ?>&nbsp;)</span></a>
</div>
</li>
<li class="user-count1">
<div class="count-item">
<a href="user.php?act=order_list&order_type=toBe_pay"><i class="count-icon"></i><span>待付款 <em>(&nbsp;<?php echo $this->_var['pay_count']; ?>&nbsp;)</em></span></a>
</div>
</li>
<li class="user-count2">
<div class="count-item">
<a href="user.php?act=order_list&order_type=toBe_confirmed"><i class="count-icon"></i><span>待确认收货 <em>(&nbsp;<?php echo $this->_var['to_confirm_order']; ?>&nbsp;)</em></span></a>
</div>
</li>
<li class="user-count4">
<div class="count-item">
<a href="user.php?act=order_list&order_type=toBe_finished"><i class="count-icon"></i><span>已完成 <em>(&nbsp;<?php echo $this->_var['to_finished']; ?>&nbsp;)</em></span></a>
</div>
</li>
</ul>
</div>
<div class="user-main">
<div class="user-item-temp user-item-temp1">
<div class="user-item-title">
<h3>近期订单</h3>
<a href="user.php?act=order_list" class="user-more">查看所有订单 ></a>
</div>
<div class="user-order-list">
<div class="thead">
<div class="th u-number">订单编号</div>
<div class="th u-status">状态</div>
<div class="th u-total">总金额</div>
<div class="th u-name">收货人</div>
<div class="th u-time">下单日期</div>
<div class="th u-operate">操作</div>
</div>
<div class="tbody">
<?php $_from = $this->_var['order_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'order');if (count($_from)):
foreach ($_from AS $this->_var['order']):
?>
<div class="tr">
<div class="td u-number"><a href="user.php?act=order_detail&order_id=<?php echo $this->_var['order']['order_id']; ?>" class="ftx-01"><?php echo $this->_var['order']['order_sn']; ?></a></div>
<div class="td u-status"><span class="ftx-02"><?php echo $this->_var['order']['order_status']; ?></span></div>
<div class="td u-total"><span class="ftx-01"><?php echo $this->_var['order']['total_fee']; ?></span></div>
<div class="td u-name"><span class="ftx-06"><?php echo $this->_var['order']['consignee']; ?></span></div>
<div class="td u-time"><span class="ftx-03"><?php echo $this->_var['order']['order_time']; ?></span></div>
<div class="td u-operate"><a href="user.php?act=order_detail&order_id=<?php echo $this->_var['order']['order_id']; ?>" class="ftx-07">订单详情</a></div>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
</div>
</div>
<div class="user-item-temp user-item-temp2">
<div class="user-item-title">
<h3>近期收藏</h3>
<a href="user.php?act=collection_list" class="user-more">查看所有收藏 &gt;</a>
</div>
<table class="user-product-list" cellpadding="0" cellspacing="0">
<thead class="thead">
<th class="th u-product first">商品</th>
<th class="th u-price">单价</th>
<th class="th u-time">收藏时间</th>
<th class="th u-operate">操作</th>
<th class="th u-delete">删除</th>
</thead>
<tbody class="tbody">
<?php $_from = $this->_var['collection_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
foreach ($_from AS $this->_var['goods']):
?>
<tr class="tr">
<td class="td u-product first">
<div class="product-item first">
<div class="p-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" width="55" height="55" /></a></div>
<div class="p-name"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a></div>
</div>
</td>
<td class="td u-price">
<span class="ftx-02">
<?php if ($this->_var['goods']['promote_price'] != ''): ?>
<?php echo $this->_var['goods']['promote_price']; ?>
<?php else: ?>
<?php echo $this->_var['goods']['shop_price']; ?>
<?php endif; ?>
</span>
</td>
<td class="td u-time"><span class="ftx-03"><?php echo $this->_var['goods']['add_time']; ?></span></td>
<td class="td u-operate"><a href="<?php echo $this->_var['goods']['url']; ?>" class="operate-btn" target="_blank">立即购买</a></td>
<td class="td u-delete"><i class="icon-delete" data-dialog="goods_collect_dialog" data-divid="delete_goods_collect" data-url="user.php?act=delete_collection&collection_id=<?php echo $this->_var['goods']['rec_id']; ?>" data-goodsid="0" data-width="455" data-height="58" data-padding="17px 0px 0px 10px" data-title="提示"></i></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</tbody>
</table>
</div>
<div class="user-item-temp user-item-temp3">
<div class="user-item-title">
<h3>帮助</h3>
</div>
<div class="user-help-list">
<div class="user-help-item">
<div class="user-help-fore user-help-fore1"><i class="icon-help icon-help01"></i><a href="article.php?id=22" target="_blank">售后服务保证</a></div>
<div class="user-help-fore user-help-fore2"><i class="icon-help icon-help02"></i><a href="article.php?id=17" target="_blank">支付方式说明</a></div>
<div class="user-help-fore user-help-fore3"><i class="icon-help icon-help03"></i><a href="article.php?id=15" target="_blank">货到付款区域</a></div>
<div class="user-help-fore user-help-fore4"><i class="icon-help icon-help04"></i><a href="article.php?id=13" target="_blank">如何分辨水货手机</a></div>
<div class="user-help-fore user-help-fore5"><i class="icon-help icon-help05"></i><a href="article.php?id=11" target="_blank">订购方式</a></div>
</div>
<div class="user-help-item">
<div class="user-help-fore user-help-fore1"><i class="icon-help icon-help06"></i><a href="article.php?id=21" target="_blank">退换货原则</a></div>
<div class="user-help-fore user-help-fore2"><i class="icon-help icon-help07"></i><a href="article.php?id=16" target="_blank">配送支付智能查询</a></div>
<div class="user-help-fore user-help-fore3"><i class="icon-help icon-help08"></i><a href="article.php?id=14" target="_blank">如何享受全国联保</a></div>
<div class="user-help-fore user-help-fore4"><i class="icon-help icon-help09"></i><a href="article.php?id=12" target="_blank">如何分辨原装电池</a></div>
</div>
</div>
</div>
<?php if ($this->_var['guess_goods']): ?>
<div class="user-item-temp user-item-temp4">
<div class="user-item-title">
<h3>猜你喜欢</h3>
</div>
<div class="goods-list">
<ul class="gl-warp">
<?php $_from = $this->_var['guess_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
foreach ($_from AS $this->_var['goods']):
?>
<li class="gl-item">
<div class="gl-i-wrap">
<div class="p-img">
<a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" width="180" height="180"></a>
</div>
<div class="p-price"><?php echo $this->_var['goods']['shop_price']; ?></div>
<div class="p-name"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank" title="<?php echo $this->_var['goods']['goods_name']; ?>"><?php echo $this->_var['goods']['short_name']; ?></a></div>
<div class="p-num">销售量:<?php echo $this->_var['goods']['sales_volume']; ?></div>
<div class="p-commit">
<?php if ($this->_var['goods']['comment_percent']): ?><span class="p-nice"><i class="icon"></i><span class="nice-stars"><?php echo $this->_var['goods']['comment_percent']; ?>%</span></span><?php endif; ?>
</div>
</div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if ($this->_var['action'] == 'booking_list'): ?>
<div class="user-right">
<div class="user-title"><h3>缺货登记</h3></div>
<div class="user-main user_lack">
<div class="user-hangtit">
<span>您有<strong class="box_red"> <?php echo $this->_var['pager']['record_count']; ?> </strong>件缺货商品</span>
</div>
<div class="user-item-temp mt10">
<table class="user-product-list" cellpadding="0" cellspacing="0">
<thead class="thead">
<th class="th u-product"><span>订购商品</span></th>
<th class="th u-number"><span>订购数量</span></th>
<th class="th u-time"><span>登记时间</span></th>
<th class="th u-beizhu"><span>处理备注</span></th>
<th class="th u-operate"><span>操作</span></th>
</thead>
<tbody class="tbody">
<?php $_from = $this->_var['booking_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
<tr class="tr">
<td class="td u-product">
<div class="product-item">
<div class="p-img"><a href="<?php echo $this->_var['item']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['item']['goods_thumb']; ?>" width="55" height="55" /></a></div>
<div class="p-name"><a href="<?php echo $this->_var['item']['url']; ?>" class="ftx-05" target="_blank"><?php echo $this->_var['item']['goods_name']; ?></a></div>
</div>
</td>
<td class="td u-number"><span class="ftx-02">x<?php echo $this->_var['item']['goods_number']; ?></span></td>
<td class="td u-time"><span class="ftx-03"><?php echo $this->_var['item']['booking_time']; ?></span></td>
<td class="td u-beizhu"><span class="ftx-09"><?php echo $this->_var['item']['dispose_note']; ?></span></td>
<td class="td u-operate"><i class="icon-delete" data-dialog="goods_del_booking" data-divid="delete_del_booking" data-url="user.php?act=act_del_booking&id=<?php echo $this->_var['item']['rec_id']; ?>" data-goodsid="0" data-width="455" data-height="58" data-confirmtitle="<?php echo $this->_var['lang']['confirm_remove_account']; ?>"></i></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</tbody>
</table>
</div>
</div>
</div>
<?php endif; ?>
<?php if ($this->_var['action'] == 'add_booking'): ?>
<div class="user-right">
<div class="user-title add_booking"><h3>缺货登记</h3></div>
<div class="user-main user_lack">
<div class="user-hangtit"></div>
<div class="user-item-temp mt10">
<form action="user.php" method="post" name="formBooking" onsubmit="return addBooking();">
<div class="booking_list">
<div class="item">
<div class="label"><?php echo $this->_var['lang']['booking_goods_name']; ?>:</div>
<div class="item-right"><span class="ftx-05"><?php echo $this->_var['info']['goods_name']; ?></span></div>
</div>
<div class="item">
<div class="label"><?php echo $this->_var['lang']['booking_amount']; ?>:</div>
<div class="item-right"><input name="number" type="text" value="<?php echo $this->_var['info']['goods_number']; ?>" class="text text1" /></div>
</div>
<div class="item">
<div class="label" style="margin-top:0;"><?php echo $this->_var['lang']['describe']; ?>:</div>
<div class="item-right"><textarea name="desc" cols="50" rows="5" wrap="virtual" class="textarea"><?php echo $this->_var['goods_attr']; ?><?php echo htmlspecialchars($this->_var['info']['goods_desc']); ?></textarea></div>
</div>
<div class="item">
<div class="label"><?php echo $this->_var['lang']['contact_username']; ?>:</div>
<div class="item-right"><input name="linkman" type="text" value="<?php echo htmlspecialchars($this->_var['info']['consignee']); ?>" size="25" class="text"/></div>
</div>
<div class="item">
<div class="label"><?php echo $this->_var['lang']['email_address']; ?>:</div>
<div class="item-right"><input name="email" type="text" value="<?php echo htmlspecialchars($this->_var['info']['email']); ?>" size="25" class="text" /></div>
</div>
<div class="item">
<div class="label"><?php echo $this->_var['lang']['contact_phone']; ?>:</div>
<div class="item-right"><input name="tel" type="text" value="<?php echo htmlspecialchars($this->_var['info']['tel']); ?>" size="25" class="text" /></div>
</div>
<div class="item">
<div class="label">&nbsp;</div>
<div class="item-right">
<input name="act" type="hidden" value="act_add_booking" />
<input name="id" type="hidden" value="<?php echo $this->_var['info']['id']; ?>" />
<input name="rec_id" type="hidden" value="<?php echo $this->_var['info']['rec_id']; ?>" />
<input type="submit" name="submit" class="button operate-btn" value="<?php echo $this->_var['lang']['submit_booking_goods']; ?>" />
<input type="reset" name="reset" class="button reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" />
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<?php endif; ?>
<?php if ($this->_var['action'] == 'collection_list' || $this->_var['action'] == 'store_list'): ?>
<div class="user-right">
<div class="user-title pb0" style="*position:relative; *z-index:10;">
<ul class="tabs">
<li <?php if ($this->_var['action'] == 'collection_list'): ?>class="on"<?php endif; ?>><a href="user.php?act=collection_list">收藏的商品</a></li>
<li <?php if ($this->_var['action'] == 'store_list'): ?>class="on"<?php endif; ?>><a href="user.php?act=store_list">关注店铺</a></li>
</ul>
</div>
<div class="user-main" style="*position:relative; *z-index:9;">
<div class="user-main-list">
<?php if ($this->_var['action'] == 'collection_list'): ?>
<div class="user-item-temp user-collection-list" id="c-tab-box1">
<?php echo $this->fetch('library/collection_goods_list.lbi'); ?>
</div>
<?php endif; ?>
<?php if ($this->_var['action'] == 'store_list'): ?>
<div class="user-item-temp user-attention-list" id="c-tab-box2">
<?php echo $this->fetch('library/collection_store_list.lbi'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<script type="text/javascript">
function get_coll_checkall(t, obj){
var chk = $(t).is(":checked");
var arr = new Array();
if(chk == true){
$(".collcheck").each(function(index, element) {
$(element).prop({checked : true});
$(this).parent().addClass("order-checkbox-checked")
if($(element).val() != 0){
arr.push($(element).val());
}
});
}else{
$(".collcheck").each(function(index, element) {
$(element).prop({checked : false});
$(this).parent().removeClass("order-checkbox-checked")
arr.pop($(element).val());
});
}
$("input[name='" + obj + "']").val(arr);
}
function get_goods_check(t, obj){
var strArr = new Array();
var allgoods = $("input[name='" + obj + "']").val();
if(allgoods != ''){
strArr = allgoods.split(',');
}
if($(t).is(':checked') == false){
strArr.splice($.inArray($(t).val(),strArr),1);
}else{
strArr.push($(t).val());
}
$("input[name='" + obj + "']").val(strArr);
}
function alertBatchFollow(type){
var length = $("input[name='goods_check']:checked").length;
var foot = true;
var ok_title, cl_title, divId;
divId = "bacth_del_collection";
if(length>0){
var message = '';
var goods_id = $("input[name='allgoods']").val();
if(type == 0){
message = '您确实要关注所选商品吗?';
}else if(type == 1){
message = '您确实要取消关注所选商品吗?';
}else if(type == 2){
message = '您确实要删除关注所选商品吗?';
}
ok_title = "确定";
cl_title = "取消";
}else{
message = "请选择关注商品";
foot = false;
}
var content = '<div id="bacth_del_collection">' +
'<div class="tip-box icon-box">' +
'<span class="warn-icon-wen m-icon"></span>' +
'<div class="item-fore">' +
'<h3 class="ftx-04">' + message + '</h3>' +
'</div>' +
'</div>' +
'</div>';
pb({
id:divId,
title:"提示",
width:445,
height:58,
ok_title:ok_title, //按钮名称
cl_title:cl_title, //按钮名称
content:content, //调取内容
drag:false,
foot:foot,
onOk:function(){
Ajax.call('user.php?act=ajax_BatchCancelFollow', 'goods_id=' + goods_id + '&type=' + type, function(data){
location.href = 'user.php?act=collection_list';
}, 'GET', 'JSON');
}
});
$('#' + divId + ' .ftx-04').css({'padding': '11px 0px 0px 10px'});
$('#' + divId + ' .tip-box').css({
'width': '330px',
'height': '50px',
'padding': '0px 0px 10px 0px'
});
$('#' + divId + ' .item-fore').css({
'margin': '0px 0px 0px 47px'
});
$('#' + divId + ' .pb-bd').css({
'padding-left': '65px'
});
$('#' + divId + ' .pb-ft .pb-ok').addClass('color_df3134');
}
</script>
<script language="JavaScript">
if(document.forms['theForm']){
var elements = document.forms['theForm'].elements;
}
var url = '<?php echo $this->_var['url']; ?>';
var u = '<?php echo $this->_var['user_id']; ?>';
/**
* 生成代码
*/
function genCode()
{
// 检查输入
if (isNaN(parseInt(elements['goods_num'].value)))
{
alert('<?php echo $this->_var['lang']['goods_num_must_be_int']; ?>');
return;
}
if (elements['goods_num'].value < 1)
{
alert('<?php echo $this->_var['lang']['goods_num_must_over_0']; ?>');
return;
}
if (isNaN(parseInt(elements['rows_num'].value)))
{
alert('<?php echo $this->_var['lang']['rows_num_must_be_int']; ?>');
return;
}
if (elements['rows_num'].value < 1)
{
alert('<?php echo $this->_var['lang']['rows_num_must_over_0']; ?>');
return;
}
// 生成代码
var code = '\<script src=\"' + url + 'goods_script.php?';
code += 'need_image=' + elements['need_image'].value + '&';
code += 'goods_num=' + elements['goods_num'].value + '&';
code += 'arrange=' + elements['arrange'].value + '&';
code += 'rows_num=' + elements['rows_num'].value + '&';
code += 'charset=' + elements['charset'].value + '&u=' + u;
code += '\"\>\</script\>';
elements['code'].value = code;
elements['code'].select();
if (Browser.isIE)
{
window.clipboardData.setData("Text",code);
}
}
var compare_no_goods = "<?php echo $this->_var['lang']['compare_no_goods']; ?>";
var btn_buy = "<?php echo $this->_var['lang']['btn_buy']; ?>";
var is_cancel = "<?php echo $this->_var['lang']['is_cancel']; ?>";
var select_spe = "<?php echo $this->_var['lang']['select_spe']; ?>";
</script>
<?php endif; ?>
<?php if ($this->_var['action'] == 'message_list'): ?>
<div class="user-right">
<div class="user-main">
<div class="user-message-board">
<div class="message-board-content user-message-list">
<form action="user.php" method="post" enctype="multipart/form-data" name="formMsg" onSubmit="return submitMsg()">
<?php if ($this->_var['order_info']): ?>
<div class="item">
<div class="label"><?php echo $this->_var['lang']['order_number']; ?>:</div>
<div class="value value-checkbox">
<a href ="<?php echo $this->_var['order_info']['url']; ?>"><img src="themes/ecmoban_dsc/images/note.gif" style="padding:0px 8px 0px 0px; position:relative; top:8px;" /><?php echo $this->_var['order_info']['order_sn']; ?></a>
</div>
</div>
<input name="msg_type" type="hidden" value="5" />
<input name="order_id" type="hidden" value="<?php echo $this->_var['order_info']['order_id']; ?>" />
<?php else: ?>
<div class="item">
<div class="label"><?php echo $this->_var['lang']['message_type']; ?>:</div>
<div class="value value-checkbox">
<div class="value-item selected">
<input type="radio" checked="checked" id="checkbox-message" value="0" name="msg_type" class="ui-radio">
<label for="checkbox-message" class="ui-radio-label"><?php echo $this->_var['lang']['type']['0']; ?></label>
</div>
<div class="value-item">
<input type="radio" id="checkbox-complaint" name="msg_type" value="1" class="ui-radio">
<label for="checkbox-complaint" class="ui-radio-label"><?php echo $this->_var['lang']['type']['1']; ?></label>
</div>
<div class="value-item">
<input type="radio" id="checkbox-ask" name="msg_type" value="2" class="ui-radio">
<label for="checkbox-ask" class="ui-radio-label"><?php echo $this->_var['lang']['type']['2']; ?></label>
</div>
<div class="value-item">
<input type="radio" id="checkbox-customer" name="msg_type" value="3" class="ui-radio">
<label for="checkbox-customer" class="ui-radio-label"><?php echo $this->_var['lang']['type']['3']; ?></label>
</div>
<div class="value-item last">
<input type="radio" id="checkbox-buy" name="msg_type" value="4" class="ui-radio">
<label for="checkbox-buy" class="ui-radio-label"><?php echo $this->_var['lang']['type']['4']; ?></label>
</div>
</div>
</div>
<?php endif; ?>
<div class="item">
<div class="label">留言主题:</div>
<div class="value"><input type="text" name="msg_title" class="text"></div>
</div>
<div class="item">
<div class="label">留言内容:</div>
<div class="value"><textarea rows="" cols="" name="msg_content"></textarea></div>
</div>
<div class="item">
<div class="label">上传文件:</div>
<div class="value">
<input type="button" class="messageBtn" value="选择文件">
<input type="text" name="textfield" id="textfield" class="txt">
<input type="file" name="message_img" class="file" id="fileField" size="28" onchange="document.getElementById('textfield').value=this.value">
<span class="remind">仅支持gif、jpg、png、word、excel、txt、zip、ppt、pdf </span>
</div>
</div>
<div class="item">
<div class="value">
<input type="hidden" name="act" value="act_add_message" />
<input type="submit" class="submit" value="提交">
</div>
</div>
</form>
</div>
</div>
<?php if ($this->_var['message_list']): ?>
<div class="user-title user-title16"><h3><?php echo $this->_var['lang']['label_message']; ?></h3></div>
<div class="user-content-list">
<?php $_from = $this->_var['message_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'message');$this->_foreach['message'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['message']['total'] > 0):
foreach ($_from AS $this->_var['key'] => $this->_var['message']):
$this->_foreach['message']['iteration']++;
?>
<div class="item<?php if (($this->_foreach['message']['iteration'] == $this->_foreach['message']['total'])): ?> last<?php endif; ?>">
<div class="item-l"><h2><?php echo $this->_var['message']['msg_type']; ?></h2></div>
<div class="item-r">
<div class="content-item-tit">
<h3><?php echo $this->_var['message']['msg_title']; ?></h3>
<a href="user.php?act=del_msg&amp;id=<?php echo $this->_var['key']; ?>&amp;order_id=<?php echo $this->_var['message']['order_id']; ?>" onclick="if (!confirm('<?php echo $this->_var['lang']['confirm_remove_msg']; ?>')) return false;" class="delete">删除</a>
<span class="time ftx-03"><?php echo $this->_var['message']['msg_time']; ?></span>
</div>
<div class="content-con"><?php echo $this->_var['message']['msg_content']; ?>
<?php if ($this->_var['message']['message_img']): ?>
<div align="right">
<a href="data/feedbackimg/<?php echo $this->_var['message']['message_img']; ?>" target="_bank" class="f6"><?php echo $this->_var['lang']['view_upload_file']; ?></a>
</div>
<?php endif; ?>
<br />
<?php if ($this->_var['message']['re_msg_content']): ?>
<a href="mailto:<?php echo $this->_var['message']['re_user_email']; ?>" class="f6"><?php echo $this->_var['lang']['shopman_reply']; ?></a> (<?php echo $this->_var['message']['re_msg_time']; ?>)<br />
<?php echo $this->_var['message']['re_msg_content']; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php if ($this->_var['message_list']): ?>
<div class="pager_tech pages26">
<?php echo $this->fetch('library/pages.lbi'); ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if ($this->_var['action'] == 'affiliate'): ?>
<div class="user-right">
<div class="user-title"><h3>分成明细</h3></div>
<div class="ecsc-explain"><?php echo $this->_var['affiliate_intro']; ?></div>
<div class="user-main">
<div class="user-item-temp">
<div class="user-item-title">
<h3>我的推荐会员</h3>
</div>
<div class="user-vip-list">
<div class="thead">
<div class="tr">
<div class="th u-grade">等级</div>
<div class="th u-number">人数</div>
<div class="th u-percent">积分分成百分比</div>
<div class="th u-price-percent">现金分成百分比</div>
</div>
</div>
<div class="tbody">
<?php $_from = $this->_var['affdb']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('level', 'val');$this->_foreach['affdb'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['affdb']['total'] > 0):
foreach ($_from AS $this->_var['level'] => $this->_var['val']):
$this->_foreach['affdb']['iteration']++;
?>
<div class="tr">
<div class="td u-grade"><?php echo $this->_var['level']; ?></div>
<div class="td u-number"><?php echo $this->_var['val']['num']; ?></div>
<div class="td u-percent"><?php echo $this->_var['val']['point']; ?></div>
<div class="td u-price-percent"><?php echo $this->_var['val']['money']; ?></div>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
</div>
</div>
<?php if ($this->_var['logdb']): ?>
<div class="user-item-temp">
<div class="user-item-title user-title16">
<h3>分成规则</h3>
</div>
<div class="user-vip-list">
<div class="thead">
<div class="tr">
<div class="th u-order-number">订单号</div>
<div class="th u-price">现金分成</div>
<div class="th u-integral">积分分成</div>
<div class="th u-pattern">分成模式</div>
<div class="th u-state">分成状态</div>
</div>
</div>
<div class="tbody">
<?php $_from = $this->_var['logdb']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');$this->_foreach['logdb'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['logdb']['total'] > 0):
foreach ($_from AS $this->_var['val']):
$this->_foreach['logdb']['iteration']++;
?>
<div class="tr">
<div class="td u-order-number"><?php echo $this->_var['val']['order_sn']; ?></div>
<div class="td u-price"><span class="ftx-01"><?php echo $this->_var['val']['money']; ?></span></div>
<div class="td u-integral"><span class="ftx-01"><?php echo $this->_var['val']['point']; ?></span></div>
<div class="td u-pattern"><?php if ($this->_var['val']['separate_type'] == 1 || $this->_var['val']['separate_type'] === 0): ?><?php echo $this->_var['lang']['affiliate_type'][$this->_var['val']['separate_type']]; ?><?php else: ?><?php echo $this->_var['lang']['affiliate_type'][$this->_var['affiliate_type']]; ?><?php endif; ?></div>
<div class="td u-state"><?php echo $this->_var['lang']['affiliate_stats'][$this->_var['val']['is_separate']]; ?></div>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<div class="pager_tech pages26">
<div class="pages">
<div class="pages-it">
<table>
<tr>
<td colspan="5" bgcolor="#ffffff">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
<div id="pager">
<?php echo $this->_var['lang']['pager_1']; ?><?php echo $this->_var['pager']['record_count']; ?><?php echo $this->_var['lang']['pager_2']; ?><?php echo $this->_var['lang']['pager_3']; ?><?php echo $this->_var['pager']['page_count']; ?><?php echo $this->_var['lang']['pager_4']; ?>
<span>
<a href="<?php echo $this->_var['pager']['page_first']; ?>"><?php echo $this->_var['lang']['page_first']; ?></a>
<a href="<?php echo $this->_var['pager']['page_prev']; ?>"><?php echo $this->_var['lang']['page_prev']; ?></a>
<a href="<?php echo $this->_var['pager']['page_next']; ?>"><?php echo $this->_var['lang']['page_next']; ?></a>
<a href="<?php echo $this->_var['pager']['page_last']; ?>"><?php echo $this->_var['lang']['page_last']; ?></a>
</span>
<select name="page" id="page" onchange="selectPage(this)">
<?php echo $this->html_options(array('options'=>$this->_var['pager']['array'],'selected'=>$this->_var['pager']['page'])); ?>
</select>
<input type="hidden" name="act" value="affiliate" />
</div>
</form>
</td>
</tr>
</table>
<script type="text/javascript" language="JavaScript">
<!--
function selectPage(sel)
{
sel.form.submit();
}
//-->
</script>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="user-item-temp mt0">
<div class="user-item-title user-title16 borderNone">
<h3>推荐代码</h3>
</div>
<div class="affiliate-code">
<div class="aff-item">
<div class="aff-title">网页签名</div>
<div class="aff-list">
<div class="aff-list-top">
<div class="aff-logo"><a href="<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>" target="_blank"><img src="themes/ecmoban_dsc/images/logo_2015.png" height="50" /></a></div>
<div class="aff-form">
<textarea class="aff-textarea" name="" id="affTextarea" value='<a href="<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>" target="_blank">大商创v1.0</a>'><a href="<?php echo $this->_var['shopurl']; ?>?u=<?php echo $this->_var['userid']; ?>" target="_blank">大商创v1.0</a></textarea>
</div>
<div class="aff-btn" id="clip_container">
<a href="javascript:void(0);" class="sub" id="clip_button">复制代码</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php if ($this->_var['action'] == 'comment_list'): ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery.uploadify.min.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'ecmoban.js')); ?>
<div class="user-right">
<div class="user-title"><h3>评论/晒单</h3></div>
<div class="user-main comment_lists">
<div class="tabs">
<ul>
<li <?php if ($this->_var['sign'] == 0): ?>class="curr"<?php endif; ?>>
<a href="user.php?act=comment_list">待商品评价</a>
<em><?php echo $this->_var['signNum0']; ?></em>
</li>
<li <?php if ($this->_var['sign'] == 1): ?>class="curr"<?php endif; ?>>
<a href="user.php?act=comment_list&sign=1">待追加图片</a>
<em><?php echo $this->_var['signNum1']; ?></em>
</li>
<li <?php if ($this->_var['sign'] == 2): ?>class="curr"<?php endif; ?>>
<a href="user.php?act=comment_list&sign=2">已评价</a>
<em><?php echo $this->_var['signNum2']; ?></em>
</li>
</ul>
</div>
<div class="sc_mycomments">
<?php if ($this->_var['sign'] == 0): ?>
<table class="sc-tb-void">
<colgroup>
<col width="570">
<col width="165">
<col width="165">
</colgroup>
<thead>
<tr>
<th>商品信息</th>
<th>购买时间</th>
<th>评价状态</th>
</tr>
</thead>
<tbody>
<?php if ($this->_var['comment_list']): ?>
<?php $_from = $this->_var['comment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
foreach ($_from AS $this->_var['item']):
$this->_foreach['foo']['iteration']++;
?>
<tr>
<td colspan="4">
<ul class="pro-info">
<li class="fore1">
<div class="p-info">
<div class="p-img fl"><a href="goods.php?id=<?php echo $this->_var['item']['goods_id']; ?>" target="_blank" title="<?php echo $this->_var['item']['goods_name']; ?>"><img src="<?php echo $this->_var['item']['goods_thumb']; ?>" width="50" height="50" title="<?php echo $this->_var['item']['goods_name']; ?>" alt="<?php echo $this->_var['item']['goods_name']; ?>"/></a></div>
<div class="p-name fl"><a href="goods.php?id=<?php echo $this->_var['item']['goods_id']; ?>" target="_blank" title="<?php echo $this->_var['item']['goods_name']; ?>"><?php echo $this->_var['item']['goods_name']; ?></a></div>
</div>
</li>
<li class="fore2"><span class="ftx03"><?php echo $this->_var['item']['add_time']; ?></span></li>
<li class="fore3 forem"><a href="javascript:void(0);" class="btn-comment btn-10">点击评论</a></li>
</ul>
<div class="comment-box" style="display:<?php if ($this->_var['item']['g_id'] == 'com_1'): ?>block<?php else: ?>none<?php endif; ?>" id="<?php echo $this->_var['item']['g_id']; ?>">
<div class="box-t"></div>
<?php echo $this->fetch('library/comments_form.lbi'); ?>
</div>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<script type="text/javascript">
//<![CDATA[
<?php $_from = $this->_var['lang']['cmt_lang']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</script>
<?php else: ?>
<tr bgcolor="">
<td align="center" colspan="3"><font size="2">您还没有完成的订单-_- <!--,&nbsp;现在&nbsp;<a href="user.php?act=single_sun" style="color:red; font-weight:bold;">去晒单</a> --></font></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
<?php if ($this->_var['sign'] == 1): ?>
<table class="sc-tb-void">
<colgroup>
<col width="570">
<col width="165">
<col width="165">
</colgroup>
<thead>
<tr>
<th>商品信息</th>
<th>购买时间</th>
<th>评价状态</th>
</tr>
</thead>
<tbody>
<?php if ($this->_var['comment_list']): ?>
<?php $_from = $this->_var['comment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
foreach ($_from AS $this->_var['item']):
$this->_foreach['foo']['iteration']++;
?>
<tr>
<td colspan="4">
<ul class="pro-info">
<li class="fore1">
<div class="p-info">
<div class="p-img fl"><a href="goods.php?id=<?php echo $this->_var['item']['goods_id']; ?>" target="_blank" title="<?php echo $this->_var['item']['goods_name']; ?>"><img src="<?php echo $this->_var['item']['goods_thumb']; ?>" width="50" height="50" title="<?php echo $this->_var['item']['goods_name']; ?>" alt="<?php echo $this->_var['item']['goods_name']; ?>"/></a></div>
<div class="p-name fl"><a href="goods.php?id=<?php echo $this->_var['item']['goods_id']; ?>" target="_blank" title="<?php echo $this->_var['item']['goods_name']; ?>"><?php echo $this->_var['item']['goods_name']; ?></a></div>
</div>
</li>
<li class="fore2"><span class="ftx03"><?php echo $this->_var['item']['add_time']; ?></span></li>
<li class="fore3 forem"><a href="#none" class="btn-comment btn-10">继续晒单</a></li>
</ul>
<div class="comment-box" style="display:<?php if ($this->_var['item']['g_id'] == 'com_1'): ?>block<?php else: ?>none<?php endif; ?>" id="<?php echo $this->_var['item']['g_id']; ?>">
<div class="box-t"></div>
<?php echo $this->fetch('library/comments_form.lbi'); ?>
</div>
<?php if ($this->_var['item']['is_comm']): ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php else: ?>
<tr>
<td colspan="3"><font size="2">您还没有完成的订单-_- <!--,&nbsp;现在&nbsp;<a href="user.php?act=single_sun" style="color:red; font-weight:bold;">去晒单</a> --></font></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
<?php if ($this->_var['sign'] == 2): ?>
<table class="sc-tb-void">
<colgroup>
<col width="570">
<col width="165">
<col width="165">
</colgroup>
<thead>
<tr>
<th>商品信息</th>
<th>购买时间</th>
<th>评价状态</th>
</tr>
</thead>
<tbody>
<?php if ($this->_var['comment_list']): ?>
<?php $_from = $this->_var['comment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
<tr>
<td colspan="3">
<ul class="pro-info">
<li class="fore1">
<div class="p-info">
<div class="p-img fl"><a href="goods.php?id=<?php echo $this->_var['item']['goods_id']; ?>" target="_blank" title="<?php echo $this->_var['item']['goods_name']; ?>"><img src="<?php echo $this->_var['item']['goods_thumb']; ?>" width="50" height="50" title="<?php echo $this->_var['item']['goods_name']; ?>" alt="<?php echo $this->_var['item']['goods_name']; ?>"/></a></div>
<div class="p-name fl"><a href="goods.php?id=<?php echo $this->_var['item']['goods_id']; ?>" target="_blank" title="<?php echo $this->_var['item']['goods_name']; ?>"><?php echo $this->_var['item']['goods_name']; ?></a></div>
</div>
</li>
<li class="fore2"><span class="ftx03"><?php echo $this->_var['item']['add_time']; ?></span></li>
<li class="fore3 forem"><a href="#none" class="btn-comment btn-10">查看评论</a></li>
</ul>
<div class="comment-box" style="display:<?php if ($this->_var['item']['g_id'] == 'com_1'): ?>block<?php else: ?>none<?php endif; ?>" id="<?php echo $this->_var['item']['g_id']; ?>">
<div class="box-t"></div>
<?php echo $this->fetch('library/comments_form.lbi'); ?>
</div>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php else: ?>
<tr>
<td colspan="3" align="center"><font size="2">您还没有完成的订单-_- <!--,&nbsp;现在&nbsp;<a href="user.php?act=single_sun" style="color:red; font-weight:bold;">去晒单</a> --></font></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
</div>
<?php if ($this->_var['comment_list']): ?>
<div class="pager_tech pages26">
<?php echo $this->fetch('library/pages.lbi'); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if ($this->_var['action'] == 'commented_view'): ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery.uploadify.min.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'ecmoban.js')); ?>
<div class="user-right">
<div class="user-title"><h3>评论/晒单</h3></div>
<div class="user-main comment_lists">
<div class="sc_mycomments">
<table class="sc-tb-void">
<colgroup>
<col width="570">
<col width="165">
<col width="165">
</colgroup>
<thead>
<tr>
<th>商品信息</th>
<th>购买时间</th>
<th>评价状态</th>
</tr>
</thead>
<tbody>
<?php if ($this->_var['order_goods']): ?>
<?php $_from = $this->_var['order_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
<tr>
<td colspan="4">
<ul class="pro-info">
<li class="fore1">
<div class="p-info">
<div class="p-img fl"><a href="goods.php?id=<?php echo $this->_var['item']['goods_id']; ?>" target="_blank" title="<?php echo $this->_var['item']['goods_name']; ?>"><img src="<?php echo $this->_var['item']['goods_thumb']; ?>" width="50" height="50" title="<?php echo $this->_var['item']['goods_name']; ?>" alt="<?php echo $this->_var['item']['goods_name']; ?>"/></a></div>
<div class="p-name fl"><a href="goods.php?id=<?php echo $this->_var['item']['goods_id']; ?>" target="_blank" title="<?php echo $this->_var['item']['goods_name']; ?>"><?php echo $this->_var['item']['goods_name']; ?></a></div>
</div>
</li>
<li class="fore2"><span class="ftx03"><?php echo $this->_var['item']['add_time']; ?></span></li>
<li class="fore3 forem">
<a href="#none" class="btn-comment btn-10">
<?php if ($this->_var['item']['comment_id'] > 0): ?>
<?php if ($this->_var['item']['comment_img'] != ""): ?>查看评论<?php else: ?>继续评论<?php endif; ?>
<?php else: ?>
添加评论
<?php endif; ?>
</a>
</li>
</ul>
<div class="comment-box" style="display:<?php if ($this->_var['item']['g_id'] == 'com_1'): ?>block<?php else: ?>none<?php endif; ?>" id="<?php echo $this->_var['item']['g_id']; ?>">
<div class="box-t"></div>
<?php echo $this->fetch('library/comments_form.lbi'); ?>
</div>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php else: ?>
<tr>
<td colspan="3" align="center"><font size="2">您还没有完成的订单-_- <!--,&nbsp;现在&nbsp;<a href="user.php?act=single_sun" style="color:red; font-weight:bold;">去晒单</a> --></font></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<?php if ($this->_var['shop_info']['ru_id'] > 0): ?>
<div class="mod-main mod-myd">
<div class="mt">
<h3 class="ftx-01">满意度评价</h3>
<div class="fl ml10"></div>
</div>
<div id="votelist">
<div class="mc">
<div class="service-lcol">
<div class="service-lcol-cont">
<div class="shopper-img"><img width="100" height="100" src="<?php echo $this->_var['shop_info']['logo_thumb']; ?>" alt=""></div>
<div class="shopper-info">
<div class="shopper-name"><span class="s-star sa<?php echo $this->_var['shop_info']['seller_score']; ?>"></span></div>
<div class="shopper-msg"> <?php echo $this->_var['shop_info']['shop_name']; ?><br>电话:<?php if ($this->_var['shop_info']['kf_tel']): ?><?php echo $this->_var['shop_info']['kf_tel']; ?><?php else: ?>暂无<?php endif; ?></div>
</div>
</div>
</div>
<div class="service-rcol">
<?php if ($this->_var['degree_count'] == 0): ?>
<div class="score-cont">
<div class="score">
<dl class="ev-list">
<dt><em>*</em>商品描述相符</dt>
<dd>
<span class="commstar">
<a href="javascript:;" class="star1"></a>
<a href="javascript:;" class="star2"></a>
<a href="javascript:;" class="star3"></a>
<a href="javascript:;" class="star4"></a>
<a href="javascript:;" class="star5"></a>
</span>
<input type="hidden" name="desc_rank" value="0">
<span class="degree-text" style="display: none;">赞一个</span>
<span class="comt-error hide">请打分</span>
</dd>
</dl>
<dl class="ev-list">
<dt><em>*</em>卖家服务态度</dt>
<dd>
<span class="commstar">
<a href="javascript:;" class="star1"></a>
<a href="javascript:;" class="star2"></a>
<a href="javascript:;" class="star3"></a>
<a href="javascript:;" class="star4"></a>
<a href="javascript:;" class="star5"></a>
</span>
<input type="hidden" name="service_rank" value="0">
<span class="degree-text" style="display: none;">赞一个</span>
<span class="comt-error hide">请打分</span>
</dd>
</dl>
<dl class="ev-list">
<dt><em>*</em>物流发货速度</dt>
<dd>
<span class="commstar">
<a href="javascript:;" class="star1"></a>
<a href="javascript:;" class="star2"></a>
<a href="javascript:;" class="star3"></a>
<a href="javascript:;" class="star4"></a>
<a href="javascript:;" class="star5"></a>
</span>
<input type="hidden" name="delivery_rank" value="0">
<span class="degree-text" style="display: none;">赞一个</span>
<span class="comt-error hide">请打分</span>
</dd>
</dl>
<dl class="ev-list">
<dt><em>*</em>配送人员态度</dt>
<dd>
<span class="commstar">
<a href="javascript:;" class="star1"></a>
<a href="javascript:;" class="star2"></a>
<a href="javascript:;" class="star3"></a>
<a href="javascript:;" class="star4"></a>
<a href="javascript:;" class="star5"></a>
</span>
<input type="hidden" name="sender_rank" value="0">
<span class="degree-text" style="display: none;">赞一个</span>
<span class="comt-error hide">请打分</span>
</dd>
</dl>
<div class="op-btn"><a href="#none" class="btn-5 SatisfactionDegree" data-orderid="<?php echo $this->_var['order_id']; ?>">提交</a></div>
</div>
</div>
<?php else: ?>
<h3 class="ftx02"><s class="icon-02"></s>感谢您的评价</h3>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
<script>
$(".SatisfactionDegree").click(function(){
var rank = new Object;
rank.order_id = $(this).data('orderid');
rank.desc_rank = $("#votelist").find("input[name=desc_rank]").val();
rank.service_rank = $("#votelist").find("input[name=service_rank]").val();
rank.delivery_rank = $("#votelist").find("input[name=delivery_rank]").val();
rank.sender_rank = $("#votelist").find("input[name=sender_rank]").val();
if(rank.desc_rank == 0){
$("#votelist").find("input[name=desc_rank]").nextAll(".comt-error").show();
return false;
}else if(rank.desc_ran==0){
$("#votelist").find("input[name=desc_ran]").nextAll(".comt-error").show();
return false;
}else if(rank.service_rank==0){
$("#votelist").find("input[name=service_rank]").nextAll(".comt-error").show();
return false;
}else if(rank.delivery_rank==0){
$("#votelist").find("input[name=delivery_rank]").nextAll(".comt-error").show();
return false;
}else if(rank.sender_rank==0){
$("#votelist").find("input[name=sender_rank]").nextAll(".comt-error").show();
return false;
}else{
Ajax.call('comment.php?act=satisfaction_degree', 'rank=' + $.toJSON(rank), SatisfactionDegreeResponse, 'POST', 'JSON');
}
});
function SatisfactionDegreeResponse(result)
{
if(result.error > 0){
alert(result.msg);return false;
}else{
var _html = '<h3 class="ftx02"><s class="icon-02"></s>感谢您的评价</h3>';
$("#votelist").find(".service-rcol").html(_html);
}
}
</script>
<?php endif; ?>
</div>
<?php echo $this->fetch('library/page_footer_flow.lbi'); ?>
<?php echo $this->fetch('library/common_html.lbi'); ?>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.purebox.js"></script>
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery.form.js')); ?>
<script type="text/javascript">
<?php if ($this->_var['sign'] == 0): ?>
$("input[name='comment_rank']").val(0);
<?php endif; ?>
$(".sumy-area .area").focus(function(){
$(this).removeClass("area01");
$(this).text("");
});
var textarea = $(".sumy-area .area").val();
$(".pingjia_form").click(function(){
var cmt = new Object;
var comment_id = $(this).data('commentid');
var content = $(this).parents(".form").find("textarea[name='content']").val();
var impression = $(this).parents(".form").find("input[name='impression']").val();
var comment_rank = $(this).parents(".form").find("input[name='comment_rank']").val();
var is_impression = $(this).parents(".form").find("input[name='is_impression']").val();
cmt.comment_rank = (typeof(comment_rank) == "undefined") ? 0 : comment_rank ;
cmt.comment_id = (typeof(comment_id) == "undefined") ? 0 : comment_id ;
cmt.impression = (typeof(impression) == "undefined") ? '' : impression ;
cmt.content = (typeof(content) == "undefined") ? '' : content ;
cmt.captcha = $(this).parents(".form").find("input[name='captcha']").val();
cmt.order_id = $(this).parents(".form").find("input[name='order_id']").val();
cmt.goods_id = $(this).parents(".form").find("input[name='goods_id']").val();
cmt.rec_id = $(this).parents(".form").find("input[name='rec_id']").val();
cmt.sign = $(this).parents(".form").find("input[name='sign']").val();
var content_err = $(this).parents(".form").find(".content-err .comt-error");
var captcha_err = $(this).parents(".form").find(".captcha-err .comt-error");
if(cmt.comment_rank == 0 && cmt.sign == 0){
$(this).parents(".form").find(".scoreerror-err").show();
return false;
}else if(cmt.impression == '' && cmt.sign == 0 && is_impression == 1){
content_err.html('至少选择一个标签');
$(this).parents(".form").find(".content-err").show();
return false;
}else if((cmt.content == '' || cmt.content.length > 500) && cmt.sign == 0){
if(cmt.content == ''){
content_err.html('内容不能为空');
}else{
content_err.html('麻烦填写0-500个字哦');
}
$(this).parents(".form").find(".content-err").show();
return false;
}else if(cmt.captcha == ''){
captcha_err.html('验证码不能为空');
$(this).parents(".form").find(".captcha-err").show();
return false;
}else{
Ajax.call('comment.php?act=comm_order_goods', 'cmt=' + $.toJSON(cmt), commentSignOneResponse, 'POST', 'JSON');
}
});
function commentSignOneResponse(result){
var sign = '';
if(result.sign > 0){
sign = "&sign=" + result.sign;
}
var hrefCont = "user.php?act=comment_list" + sign;
var comments_user_divId = "dialog_comments_user";
var foot = false;
var cBtn = false;
var ok_title = "确认";
var pb_div = '';
var pb_div_class = 'warn-icon';
if(result.error > 0){
var pb_div_class = 'warn-icon';
height = 58;
}else{
foot = true;
pb_div = '<div class="ftx-03">您可以继续评论其它订单商品。</div>';
var pb_div_class = 'warn-icon-ok';
height = 78;
}
var content = '<div id="dialog_comments_user">' +
'<div class="tip-box icon-box">' +
'<span class="' + pb_div_class + ' m-icon"></span>' +
'<div class="item-fore">' +
'<h3 class="rem ftx-04">' + result.message + '</h3>' +
pb_div +
'</div>' +
'</div>' +
'</div>';
pb({
id:comments_user_divId,
title:result.message_type,
width:455,
height:height,
content:content, //调取内容
ok_title:ok_title,
drag:false,
foot:foot,
cl_cBtn:cBtn,
onOk:function(){
location.href = hrefCont;
}
});
if(result.error == 0){
$('#' + comments_user_divId + ' .pb-bd').css({
'paddind' : '0px'
});
$('#' + comments_user_divId + ' .pb-ct .tip-box').css({
'width' : '360px',
'padding-top' : '12px',
'top' : '16px'
});
$('#' + comments_user_divId + ' .pb-ct .item-fore h3').css({
'line-height' : '18px'
});
$('#' + comments_user_divId + ' .pb-hd').addClass('hide');
}
}
function dis_comment(id)
{
var gid = document.getElementById('com_' + id);
if(gid.style.display == "block")
{
gid.style.display = 'none';
}
else
{
gid.style.display = "block";
}
}
$(function(){
//晒单点击
$(".user-bonus-temp").slide({titCell:".bonus-tabs li",mainCell:".bonus_content_list",trigger:"click"});
$(".comment_lists").slide({titCell:".tabs li",mainCell:".sc_mycomments",trigger:"click",titOnClassName:"curr"});
$(".btn-comment").click(function(){
var $this = $(this);
var tr =$this.parents("tr");
var comment = tr.find(".comment-box");
var uploadBtn = comment.find(".upload-img-box");
if(comment.is(":hidden")){
comment.show();
tr.siblings().find(".comment-box").hide();
tr.siblings().find(".comment-box .myupload .upload-img-box").unwrap();
//uploadBtn.wrap("<form class='myupload' action='comment.php?act=ajax_return_images' method='post' enctype='multipart/form-data'></form>");//晒单按钮
}else{
comment.hide();
//uploadBtn.unwrap();
}
});
/* 晒单上传图片 */
$('.SWFUpload_1111').click(function(){
$(this).next("input[name='SWFUpload']").click();
});
$("input[name='SWFUpload_1111']").change(function(){
var upimgbox = $(this).parents(".upload-btn").prev();
var imgbigbox = $(this).parents(".upload-img-box").find(".img-bigbox");
var img_num = $(this).parents(".upload-img-box").find("em");
$(".myupload").ajaxSubmit({
dataType: 'json',
success: function(data){
if(data.error == 1){
alert(data.msg);
}else if(data.error == 2){
alert(data.msg);
location.href = "user.php";
}else{
upimgbox.html(data.content); //小图
imgbigbox.find("img").attr("src", data.currentImg_path);
imgbigbox.find("img").attr("data-imgId", data.currentImg_id);
imgbigbox.show(); //大图
img_num.html(data.imglist_count);
}
}
});
});
/*评价星级*/
$("#p_rate a").on("click",function(e){
$(this).addClass("select").siblings().removeClass("select");
var index = $(this).index()+1;
$(this).parent().next().val(index);
$(this).parent().nextAll(".scoreerror").hide();
})
/*标签选择*/
$(".tips-list input[type='checkbox']").click(function(){
if($(this).prop("checked")==true){
$(this).parent().addClass("selected");
}else{
$(this).parent().removeClass("selected");
}
});
$(".tag-item a").click(function(){
var $this = $(this),val='',recid='';
if($this.hasClass("tag-txt-selected")){
$this.removeClass("tag-txt-selected");
}else{
$this.addClass("tag-txt-selected");
}
$this.parent().find(".tag-txt-selected").each(function(){
var tag_val=$(this).data('val');
var tag_recid=$this.data('recid');
val +=tag_val+",";
recid += tag_recid+",";
});
val = val.substring(0,val.length-1);
recid = recid.substring(0,recid.length-1);
$this.siblings("#impression").val(val); //隐藏input value值
});
//删除图片
$(".delete_commentImg").click(function(){
var box = $(this).parents(".upload-img-box");
var cur_imgId = $(this).prev().attr("data-imgid");
var order_id = box.find("input[name=order_id]").val();
var goods_id = box.find("input[name=goods_id]").val();
if(cur_imgId == ""){
alert('提交参数有误!');return false;
}
Ajax.call('comment.php?act=del_pictures', 'cur_imgId=' + cur_imgId+'&order_id='+order_id+'&goods_id='+goods_id, delCommentImgResponse, 'POST', 'JSON');
function delCommentImgResponse(data){
box.find(".img-list-ul").html(data.content);
box.find(".img-bigbox").hide();
}
});
});
//满意度星级
$("#votelist .commstar a").click(function(){
var arr = ['很差','不满','一般','满意','很满意'];
var index = $(this).index()+1;
var i = index-1;
var text = $(this).parents("dd").find(".degree-text");
$(this).addClass("active").siblings().removeClass("active");
$(this).parent().next().val(index);
text.next().hide();
switch(index){
case 1:
text.show();
text.addClass("d1");
text.text(arr[i]);
break;
case 2:
text.show();
text.addClass("d2");
text.text(arr[i]);
break;
case 3:
text.show();
text.addClass("d3");
text.text(arr[i]);
break;
case 4:
text.show();
text.addClass("d4");
text.text(arr[i]);
break;
case 5:
text.show();
text.addClass("d5");
text.text(arr[i]);
break;
}
});
function init() {
var clip = null;
var val = $("#affTextarea").text();
clip = new ZeroClipboard.Client();
ZeroClipboard.setMoviePath("themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/ZeroClipboard/ZeroClipboard.swf");
clip.setHandCursor(true);  
clip.addEventListener('mouseOver', function (client) {
clip.setText(val);
});
clip.addEventListener('complete', function (client, text) {
alert("该地址已经复制,你可以使用Ctrl+V 粘贴");
});
clip.glue('clip_button', 'clip_container' );
}
$(window).load(function(){
init();
})
</script>
</body>
</html>