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.
1082 lines
40 KiB
1082 lines
40 KiB
{template 'header', 'member'}
|
|
<script type="text/javascript">var errimg = '{DT_SKIN}image/nopic60.gif';</script>
|
|
<div class="menu">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="tab" id="action"><a href="?action=index"><span>我的订单</span></a></td>
|
|
<td class="tab" id="action_muti"><a href="?action=muti"><span>批量付款</span></a></td>
|
|
<td class="tab" id="action_express"><a href="?action=express"><span>我的快递</span></a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{if $action == 'update'}
|
|
{if $step == 'detail'}
|
|
{if !in_array($td[status], array(8, 9))}
|
|
<table cellpadding="0" cellspacing="0" align="center">
|
|
<tr align="center" class="f_gray">
|
|
<td>买家下单</td>
|
|
<td id="pay_n">买家付款</td>
|
|
<td>卖家发货</td>
|
|
{if $td[status] == 5 || $td[status] == 6}
|
|
<td>申请退款</td>
|
|
<td>退款成功</td>
|
|
{else}
|
|
<td>交易成功</td>
|
|
<td>双方互评</td>
|
|
{/if}
|
|
</tr>
|
|
<tr height="60">
|
|
<td><img src="image/state_2.gif" id="state_1"/></td>
|
|
<td id="pay_s"><img src="image/state_1.gif" id="state_2"/></td>
|
|
<td><img src="image/state_1.gif" id="state_3"/></td>
|
|
<td><img src="image/state_1.gif" id="state_4"/></td>
|
|
<td><img src="image/state_1.gif" id="state_5"/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var s1 = Dd('state_2').src;
|
|
var s2 = Dd('state_1').src;
|
|
function Dstate(n) {
|
|
for(var i = 2; i <= n; i++) {
|
|
Dd('state_'+i).src = s2;
|
|
}
|
|
}
|
|
{if $td[status] == 2}
|
|
Dstate(2);
|
|
{elseif $td[status] == 3}
|
|
Dstate(3);
|
|
{elseif $td[status] == 4}
|
|
{if $td[buyer_star] && $td[seller_star]}
|
|
Dstate(5);
|
|
{else}
|
|
Dstate(4);
|
|
{/if}
|
|
{elseif $td[status] == 5}
|
|
Dstate(4);
|
|
{elseif $td[status] == 6}
|
|
Dstate(5);
|
|
{elseif $td[status] == 7}
|
|
{if $td[send_time]}Dstate(3);{/if}
|
|
{/if}
|
|
{if $td[status] == 5 || $td[status] == 6}
|
|
{if !$td[send_time]}Dd('state_3').src = s1;{/if}
|
|
{/if}
|
|
{if $td[cod]}Dh('pay_n');Dh('pay_s');{/if}
|
|
</script>
|
|
{/if}
|
|
{template 'goods', 'chip'}
|
|
<div class="t2">快递信息</div>
|
|
<table cellspacing="1" cellpadding="10" class="tb">
|
|
<tr>
|
|
<td class="tl">邮编</td>
|
|
<td class="tr">{$td[buyer_postcode]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">地址</td>
|
|
<td class="tr">{$td[buyer_address]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">姓名</td>
|
|
<td class="tr">{$td[buyer_name]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">手机</td>
|
|
<td class="tr">{$td[buyer_mobile]}</td>
|
|
</tr>
|
|
{if $td[send_time]}
|
|
<tr>
|
|
<td class="tl">发货日期</td>
|
|
<td class="tr">{$td[send_time]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">快递类型</td>
|
|
<td class="tr">{$td[send_type]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">快递单号</td>
|
|
<td class="tr">{$td[send_no]}{if $td[send_type] && $td[send_no]} <a href="###" class="t" onclick="Ds('express_t');$('#express').load(AJPath+'?action=express&moduleid=2&auth={$auth}');">[快递追踪]</a>{/if}</td>
|
|
</tr>
|
|
<tr id="express_t" style="display:none;">
|
|
<td class="tl">追踪结果</td>
|
|
<td class="tr" style="line-height:200%;"><div id="express"><img src="image/loading.gif" align="absmiddle"/> 正在查询...</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">快递状态</td>
|
|
<td class="tr">{$_send_status[$td[send_status]]}</td>
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
|
|
<div class="t2">订单详情</div>
|
|
<table cellspacing="1" cellpadding="10" class="tb">
|
|
<tr>
|
|
<td class="tl">联系卖家</td>
|
|
<td class="tr">{if $DT[im_web]}{im_web($td[seller])} {/if}<a href="message.php?action=send&touser={$td[seller]}"><img src="image/ico_message.gif" title="发送站内信" align="absmiddle"/></a> <a href="{userurl($td[seller], 'file=contact')}" target="_blank" class="t">{$td[seller]}</a></td>
|
|
</tr>
|
|
{if $logs}
|
|
<tr>
|
|
<td class="tl">订单进程</td>
|
|
<td class="tr">
|
|
<div style="line-height:24px;">
|
|
{loop $logs $v}
|
|
{$v[adddate]} - {$v[title]}<br/>
|
|
{/loop}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{else}
|
|
<tr>
|
|
<td class="tl">下单时间</td>
|
|
<td class="tr">{$td[adddate]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">最后更新</td>
|
|
<td class="tr">{$td[updatedate]}</td>
|
|
</tr>
|
|
{if $td[send_time]}
|
|
<tr>
|
|
<td class="tl">发货时间</td>
|
|
<td class="tr">{$td[send_time]}</td>
|
|
</tr>
|
|
{/if}
|
|
{/if}
|
|
<tr>
|
|
<td class="tl">订单状态</td>
|
|
<td class="tr">{$_status[$td[status]]}</td>
|
|
</tr>
|
|
{if $td[buyer_reason]}
|
|
<tr>
|
|
<td class="tl">退款理由</td>
|
|
<td class="tr">{$td[buyer_reason]}</td>
|
|
</tr>
|
|
{/if}
|
|
{if $td[refund_reason]}
|
|
<tr>
|
|
<td class="tl">操作原因</td>
|
|
<td class="tr">{$td[refund_reason]}</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr">
|
|
{if $td[status] == 1}
|
|
<input type="button" value=" 付 款 " class="btn_g" onclick="Go('?itemid={$td[itemid]}&action=update&step=pay');"/>
|
|
{/if}
|
|
<input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">s('order');m('action');</script>
|
|
{elseif $step == 'express'}
|
|
{template 'goods', 'chip'}
|
|
<div class="t2">快递信息</div>
|
|
<table cellspacing="1" cellpadding="10" class="tb">
|
|
<tr>
|
|
<td class="tl">发货日期</td>
|
|
<td class="tr">{$td[send_time]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">快递类型</td>
|
|
<td class="tr">{$td[send_type]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">快递单号</td>
|
|
<td class="tr">{$td[send_no]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">追踪结果</td>
|
|
<td class="tr" style="line-height:200%;"><div id="express"><img src="image/loading.gif" align="absmiddle"/> 正在查询...</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">快递状态</td>
|
|
<td class="tr">{$_send_status[$td[send_status]]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr"><input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$('#express').load(AJPath+'?action=express&moduleid=2&auth={$auth}');
|
|
});
|
|
</script>
|
|
<script type="text/javascript">s('order');m('action_express');</script>
|
|
{elseif $step == 'pay'}
|
|
<form method="post" action="?" onsubmit="return check();" id="dform">
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
<input type="hidden" name="step" value="{$step}"/>
|
|
<input type="hidden" name="itemid" value="{$itemid}"/>
|
|
{template 'goods', 'chip'}
|
|
<div class="t2">订单支付</div>
|
|
<table cellspacing="1" cellpadding="10" class="tb">
|
|
<tr>
|
|
<td class="tl">联系卖家</td>
|
|
<td class="tr">{if $DT[im_web]}{im_web($td[seller])} {/if}<a href="{userurl($td[seller], 'file=contact')}" target="_blank" class="t">{$td[seller]}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">下单时间</td>
|
|
<td class="tr">{$td[adddate]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">应付金额</td>
|
|
<td class="tr f_red">{$DT[money_sign]}{number_format($money, 2, '.', '')}</td>
|
|
</tr>
|
|
<tr id="mymoney" style="display:none;">
|
|
<td class="tl">帐户余额</td>
|
|
<td class="tr f_blue">{$DT[money_sign]}{$_money}</td>
|
|
</tr>
|
|
<tr id="payword" style="display:none;">
|
|
<td class="tl"><span class="f_red">*</span> 支付密码</td>
|
|
<td class="tr">{template 'password', 'chip'} <span id="dpassword" class="f_red"></span></td>
|
|
</tr>
|
|
<tr id="paytype" style="display:none;">
|
|
<td class="tl"><span class="f_red">*</span> 支付方式</td>
|
|
<td class="tr">
|
|
<table cellspacing="5" cellpadding="5">
|
|
{php $PAYLIST = get_paylist();}
|
|
<input type="hidden" name="bank" id="bank" value="{$PAYLIST[0][bank]}"/>
|
|
{loop $PAYLIST $k $v}
|
|
<tr onclick="$('#bank').val($('#paytype :checked').val());">
|
|
<td><input type="radio" name="bank" value="{$v[bank]}" id="bank-{$v[bank]}"{if $k==0} checked{/if}/></td>
|
|
<td><label for="bank-{$v[bank]}" class="c_p"><img src="{DT_PATH}api/pay/{$v[bank]}/logo.gif" alt=""/></label></td>
|
|
<td>{if $v[percent]>0}手续费 {$v[percent]}%{/if}</td>
|
|
</tr>
|
|
{/loop}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{if $DT[sms]}
|
|
<tr>
|
|
<td class="tl"></td>
|
|
<td class="tr"><input type="checkbox" name="sendsms" value="1"/> 短信通知卖家发货 (<a href="sms.php" target="_blank" class="t">我的可用短信 <strong class="f_blue">{$_sms}</strong> 条</a>)</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr">
|
|
{if $could_pay}
|
|
<input type="submit" name="submit" value=" 立即支付 " class="btn_g"/>
|
|
{else}
|
|
<input type="button" value=" 库存不足 " class="btn" onclick="alert('抱歉,商品库存不足,请重新选择');"/>
|
|
{/if}
|
|
<input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<script type="text/javascript">
|
|
var money = {$money};
|
|
function check() {
|
|
if(money > {$_money}) {
|
|
Go('charge.php?action=pay&reason=trade|{$itemid}&amount='+money+'&bank='+$('#bank').val());
|
|
return false;
|
|
}
|
|
if(money > {$DT[quick_pay]}){
|
|
if(Dd('password').value.length < 6) {
|
|
Dmsg('请填写支付密码', 'password');
|
|
return false;
|
|
}
|
|
}
|
|
return confirm('您确认此订单,并立即支付吗?');
|
|
}
|
|
window.setInterval(
|
|
function() {
|
|
if(money > {$_money} || {$_money} < 0.01) {
|
|
$('#mymoney').hide();$('#paytype').show();$('#payword').hide();
|
|
} else {
|
|
$('#mymoney').show();$('#paytype').hide();if(money > {$DT[quick_pay]}){$('#payword').show();}else{$('#payword').hide();}
|
|
}
|
|
},
|
|
500);
|
|
</script>
|
|
<script type="text/javascript">s('order');m('action');</script>
|
|
{elseif $step == 'remind'}
|
|
<form action="message.php" method="post" id="remind">
|
|
<input type="hidden" name="action" value="send"/>
|
|
<input type="hidden" name="forward" value="{$MOD[linkurl]}order.php?itemid={$itemid}"/>
|
|
<input type="hidden" name="touser" value="{$td[seller]}"/>
|
|
<input type="hidden" name="title" value="[发货提醒]订单(ID:{$itemid})已经付款,请尽快发货"/>
|
|
<textarea name="content" style="display:none;">
|
|
{$td[seller]},您好:<br/>
|
|
订单 <a href="{$MOD[linkurl]}trade.php?action=update&step=detail&itemid={$itemid}" target="_blank">{$td[title]} (ID:{$itemid})</a> 已经付款。请尽快发货!
|
|
</textarea>
|
|
</form>
|
|
<script type="text/javascript">s('order');m('action');Dd('remind').submit();</script>
|
|
{elseif $step == 'refund'}
|
|
<form method="post" action="?" onsubmit="return check();" id="dform">
|
|
<input type="hidden" name="forward" value="{$forward}"/>
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
<input type="hidden" name="step" value="{$step}"/>
|
|
<input type="hidden" name="itemid" value="{$itemid}"/>
|
|
{template 'goods', 'chip'}
|
|
<div class="t2">申请退款</div>
|
|
<table cellspacing="1" cellpadding="10" class="tb">
|
|
<tr>
|
|
<td class="tl">联系卖家</td>
|
|
<td class="tr">{if $DT[im_web]}{im_web($td[seller])} {/if}<a href="{userurl($td[seller], 'file=contact')}" target="_blank" class="t">{$td[seller]}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">下单时间</td>
|
|
<td class="tr">{$td[adddate]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 退款原因</td>
|
|
<td class="tr"><textarea name="content" id="content" class="dsn"></textarea>
|
|
{deditor($moduleid, 'content', 'Simple', '100%', 200)}<br/><span class="f_gray">请客观、如实填写,此申请一经提交,将不可再撤销</span><span id="dcontent" class="f_red"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 支付密码</td>
|
|
<td class="tr">{template 'password', 'chip'} <span id="dpassword" class="f_red"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr">
|
|
<input type="submit" name="submit" value=" 确 定 " class="btn_g"/> <input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<script type="text/javascript">
|
|
function check() {
|
|
var len = EditorLen();
|
|
if(len < 10) {
|
|
Dmsg('退款原因不能少于10个字,当前已输入'+len+'个字', 'content');
|
|
return false;
|
|
}
|
|
if(Dd('password').value.length < 6) {
|
|
Dmsg('请填写支付密码', 'password');
|
|
return false;
|
|
}
|
|
return confirm('您确认您提供的退款原因无误,并申请退款吗?');
|
|
}
|
|
</script>
|
|
<script type="text/javascript">s('order');m('action');</script>
|
|
{elseif $step == 'comment'}
|
|
<style type="text/css">
|
|
.stars {width:200px;height:16px;}
|
|
.stars span {width:16px;height:16px;display:inline-block;float:left;cursor:pointer;}
|
|
.stars b {height:16px;line-height:16px;display:inline-block;float:left;font-weight:normal;color:#666666;margin-left:16px;}
|
|
</style>
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/player.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/url2video.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/webuploader.min.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<script type="text/javascript">
|
|
var album_max = parseInt({$DT[thumb_max]});
|
|
if(album_max < 5 || album_max > 99) album_max = 9;
|
|
function addAlbum(url, id) {
|
|
for(var i = 0; i < album_max; i++) {
|
|
if($('#thumb'+id+i).length) {
|
|
if($('#thumb'+id+i).val() == '') {
|
|
$('#thumb'+id+i).val(url);
|
|
$('#showthumb'+id+i).attr('src', url);
|
|
return;
|
|
}
|
|
} else {
|
|
$('#thumbs-'+id).append($('#thumbtpl-'+id).html().replace(/-99/g, i));
|
|
$('#thumb'+id+i).val(url);
|
|
$('#showthumb'+id+i).attr('src', url);
|
|
return;
|
|
}
|
|
}
|
|
Dmsg('最多上传'+album_max+'张图片', 'thumb-'+id);
|
|
$('#thumbmuti-'+id).hide();
|
|
}
|
|
function vs(id) {
|
|
UpdateURL(id);
|
|
if(Dd('video-'+id).value.length > 5) {
|
|
Ds('v_player-'+id);
|
|
Inner('v_play-'+id, player(Dd('video-'+id).value,400,300,1));
|
|
} else {
|
|
Dmsg('视频地址为空', 'video-'+id);
|
|
vh(id);
|
|
}
|
|
}
|
|
function vh(id) {Inner('v_play-'+id, '');Dh('v_player-'+id);}
|
|
function UpdateURL(id) {
|
|
var str = url2video(Dd('video-'+id).value);
|
|
if(str) Dd('video-'+id).value = str;
|
|
}
|
|
$(function(){
|
|
$('.stars span').mouseover(function() {
|
|
var id = $(this).data('id');
|
|
$(this).parent().css('background', "url('{DT_SKIN}image/star"+id+".png') no-repeat");
|
|
$(this).siblings('b').html($(this).attr('title'));
|
|
});
|
|
$('.stars span').mouseleave(function() {
|
|
var id = $(this).parent().siblings('input').val();
|
|
$(this).parent().css('background', "url('{DT_SKIN}image/star"+id+".png') no-repeat");
|
|
$(this).siblings('b').html($(this).siblings('[data-id="'+id+'"]').attr('title'));
|
|
});
|
|
$('.stars span').click(function() {
|
|
var id = $(this).data('id');
|
|
$(this).parent().css('background', "url('{DT_SKIN}image/star"+id+".png') no-repeat");
|
|
$(this).siblings('b').html($(this).attr('title'));
|
|
$(this).parent().siblings('input').val(id);
|
|
});
|
|
});
|
|
</script>
|
|
<form method="post" action="?" onsubmit="return check();" id="dform">
|
|
<input type="hidden" name="forward" value="{$forward}"/>
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
<input type="hidden" name="step" value="{$step}"/>
|
|
<input type="hidden" name="itemid" value="{$itemid}"/>
|
|
{template 'goods', 'chip'}
|
|
{loop $lists $k $v}
|
|
<div class="t2">交易评价 - {$v[title]}</div>
|
|
<table cellpadding="10" cellspacing="1" class="tb">
|
|
<tr>
|
|
<td class="tl">商品评分</td>
|
|
<td class="tr">
|
|
<input type="hidden" name="stars[{$v[itemid]}]" value="5"/>
|
|
<div class="stars" style="background:url('{DT_SKIN}image/star5.png') no-repeat;">
|
|
<span title="非常差" data-id="1"></span>
|
|
<span title="差" data-id="2"></span>
|
|
<span title="一般" data-id="3"></span>
|
|
<span title="好" data-id="4"></span>
|
|
<span title="非常好" data-id="5"></span>
|
|
<b>非常好</b>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">物流服务</td>
|
|
<td class="tr">
|
|
<input type="hidden" name="stars_express[{$v[itemid]}]" value="5"/>
|
|
<div class="stars" style="background:url('{DT_SKIN}image/star5.png') no-repeat;">
|
|
<span title="非常差" data-id="1"></span>
|
|
<span title="差" data-id="2"></span>
|
|
<span title="一般" data-id="3"></span>
|
|
<span title="好" data-id="4"></span>
|
|
<span title="非常好" data-id="5"></span>
|
|
<b>非常好</b>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">商家态度</td>
|
|
<td class="tr">
|
|
<input type="hidden" name="stars_service[{$v[itemid]}]" value="5"/>
|
|
<div class="stars" style="background:url('{DT_SKIN}image/star5.png') no-repeat;">
|
|
<span title="非常差" data-id="1"></span>
|
|
<span title="差" data-id="2"></span>
|
|
<span title="一般" data-id="3"></span>
|
|
<span title="好" data-id="4"></span>
|
|
<span title="非常好" data-id="5"></span>
|
|
<b>非常好</b>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">详细评价</td>
|
|
<td class="tr f_gray">
|
|
<textarea onkeyup="S({$v[itemid]});" name="contents[{$v[itemid]}]" id="content_{$v[itemid]}" style="width:360px;height:60px;margin:0 0 6px 0;"></textarea><br/>
|
|
请您对此次交易做出客观、公正的评价以帮助更多想买的人<br/>
|
|
(内容限0至500字) 当前已经输入 <span style="color:red;" id="chars_{$v[itemid]}">0</span> 字
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">上传图片</td>
|
|
<td class="tr">
|
|
<div id="thumbs-{$v[itemid]}"></div>
|
|
<div class="dsn" id="thumbtpl-{$v[itemid]}">
|
|
<div class="thumbs">
|
|
<input type="hidden" name="thumbs[{$v[itemid]}][]" id="thumb{$v[itemid]}-99" value=""/>
|
|
<div><img src="{DT_SKIN}image/waitpic.gif" width="100" height="100" id="showthumb{$v[itemid]}-99" title="上传/预览图片" alt="" onclick="if(this.src.indexOf('waitpic.gif') == -1){_preview(Dd('showthumb{$v[itemid]}-99').src, 1);}else{Dalbum({$v[itemid]}-99,{$moduleid},{$MOD[thumb_width]},{$MOD[thumb_height]}, Dd('thumb{$v[itemid]}-99').value, true);}"/></div>
|
|
<p><img src="{DT_STATIC}file/image/ico-upl.png" width="11" height="11" title="重新上传" onclick="Dalbum({$v[itemid]}-99,{$moduleid},{$MOD[thumb_width]},{$MOD[thumb_height]}, Dd('thumb{$v[itemid]}-99').value, true);" style="margin-right:11px;"/><img src="{DT_STATIC}file/image/ico-del.png" width="11" height="11" title="删除" onclick="delAlbum({$v[itemid]}-99,'wait');"/></p>
|
|
</div>
|
|
</div>
|
|
<div class="thumbs" id="thumbmuti-{$v[itemid]}" title="批量上传图片,按Ctrl键多选">
|
|
<div id="file-picker-{$v[itemid]}"><img src="{DT_SKIN}image/addpic.gif" width="100" height="100" alt=""/></div>
|
|
<p>批量上传<span id="file-progress-{$v[itemid]}"></span></p>
|
|
</div>
|
|
<span id="dthumb-{$v[itemid]}" class="f_red"></span>
|
|
<script type="text/javascript">
|
|
var fileu{$v[itemid]} = WebUploader.create({
|
|
auto: true,
|
|
server: UPPath+'?moduleid={$moduleid}&action=webuploader&from=album&width={$MOD[thumb_width]}&height={$MOD[thumb_height]}',
|
|
pick: '#file-picker-{$v[itemid]}',
|
|
accept: {
|
|
title: 'image',
|
|
extensions: 'jpg,jpeg,png,gif',
|
|
mimeTypes: 'image/*'
|
|
},
|
|
resize: false
|
|
});
|
|
fileu{$v[itemid]}.on('fileQueued', function(file) {
|
|
$('#file-progress-{$v[itemid]}').html('0%');
|
|
});
|
|
fileu{$v[itemid]}.on('uploadProgress-{$v[itemid]}', function(file, percentage) {
|
|
var p = parseInt(percentage * 100);
|
|
if(p >= 100) p = 100;
|
|
$('#file-progress-{$v[itemid]}').html(p+'%');
|
|
});
|
|
fileu{$v[itemid]}.on( 'uploadSuccess', function(file, data) {
|
|
if(data.error) {
|
|
Dmsg(data.message, 'thumb-{$v[itemid]}');
|
|
} else {
|
|
addAlbum(data.url, {$v[itemid]});
|
|
}
|
|
});
|
|
fileu{$v[itemid]}.on( 'uploadError', function(file, data) {
|
|
Dmsg(data.message, 'thumb-{$v[itemid]}');
|
|
});
|
|
fileu{$v[itemid]}.on('uploadFinished', function(file) {
|
|
$('#file-progress-{$v[itemid]}').html('');
|
|
if($("#thumbs-{$v[itemid]} input[value!='']").length >= album_max) $('#thumbmuti-{$v[itemid]}').hide();
|
|
});
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">上传视频</td>
|
|
<td class="tr"><input name="videos[{$v[itemid]}]" type="text" id="video-{$v[itemid]}" size="60" onblur="UpdateURL();"/> <span id="video-picker-{$v[itemid]}" class="jt">[上传]</span> <span onclick="vs({$v[itemid]});" class="jt">[预览]</span> <span onclick="Dd('video-{$v[itemid]}').value='';vh({$v[itemid]});$('#video-progress-{$v[itemid]}').html('');" class="jt">[删除]</span> <span id="video-progress-{$v[itemid]}" class="f_gray"></span> <span id="dvideo-{$v[itemid]}" class="f_red"></span>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
var filev{$v[itemid]} = WebUploader.create({
|
|
auto: true,
|
|
server: UPPath+'?moduleid={$moduleid}&action=webuploader&from=file',
|
|
pick: '#video-picker-{$v[itemid]}',
|
|
accept: {
|
|
title: 'video',
|
|
extensions: 'mp4',
|
|
mimeTypes: 'video/*'
|
|
},
|
|
resize: false
|
|
});
|
|
filev{$v[itemid]}.on('fileQueued', function(file) {
|
|
$('#video-progress-{$v[itemid]}').html('0%');
|
|
});
|
|
filev{$v[itemid]}.on('uploadProgress', function(file, percentage) {
|
|
var p = parseInt(percentage * 100);
|
|
if(p >= 100) p = 100;
|
|
$('#video-progress-{$v[itemid]}').html(p+'%');
|
|
});
|
|
filev{$v[itemid]}.on( 'uploadSuccess', function(file, data) {
|
|
if(data.error) {
|
|
Dmsg(data.message, 'video-{$v[itemid]}');
|
|
} else {
|
|
$('#video-progress-{$v[itemid]}').html('100%');
|
|
$('#video-{$v[itemid]}').val(data.url);
|
|
}
|
|
});
|
|
filev{$v[itemid]}.on( 'uploadError', function(file, data) {
|
|
Dmsg(data.message, 'video-{$v[itemid]}');
|
|
});
|
|
filev{$v[itemid]}.on('uploadComplete', function(file) {
|
|
$('#video-progress-{$v[itemid]}').html('100%');
|
|
});
|
|
});
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<tr id="v_player-{$v[itemid]}" style="display:none;">
|
|
<td class="tl">视频预览</td>
|
|
<td><div id="v_play-{$v[itemid]}"></div><div style="padding-top:10px;"><a href="javascript:" onclick="vh({$v[itemid]});" class="t">[关闭预览]</a></div></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">匿名评价</td>
|
|
<td><input type="checkbox" name="hiddens[{$v[itemid]}]" value="1"/> 不公开您的头像和昵称</td>
|
|
</tr>
|
|
</table>
|
|
{/loop}
|
|
<table cellpadding="10" cellspacing="1" class="tb">
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr">
|
|
<input type="submit" name="submit" value=" 确 定 " class="btn_g"/> <input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
{load('clear.js')}
|
|
<script type="text/javascript">
|
|
function check() {
|
|
{loop $lists $k $v}
|
|
if(Dd('content_{$v[itemid]}').value.length > 500) {
|
|
alert('评价内容不能超过500字');
|
|
return false;
|
|
}
|
|
{/loop}
|
|
return confirm('您确认提交此评价吗?提交后评价分数和内容将不可更改');
|
|
}
|
|
function S(id) {
|
|
Inner('chars_'+id, Dd('content_'+id).value.length);
|
|
}
|
|
</script>
|
|
<script type="text/javascript">s('order');m('action');</script>
|
|
{elseif $step == 'comment_detail'}
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/player.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
{template 'goods', 'chip'}
|
|
<div style="display:none;" id="explain">
|
|
<div class="t2">我的解释</div>
|
|
<form method="post" action="?" onsubmit="return check();" id="dform">
|
|
<input type="hidden" name="forward" value="{$forward}"/>
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
<input type="hidden" name="step" value="{$step}"/>
|
|
<input type="hidden" name="itemid" value="{$itemid}"/>
|
|
<input type="hidden" name="oid" value="0" id="oid"/>
|
|
<table cellspacing="1" cellpadding="10" class="tb">
|
|
<tr>
|
|
<td class="tl" id="E0"></td>
|
|
<td class="tr" id="E1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span>我的解释</td>
|
|
<td class="tr f_gray">
|
|
<textarea onkeyup="S();" name="content" id="content" style="width:300px;height:60px;margin:0 0 6px 0;"></textarea><br/>
|
|
请您对此次评价做出客观、合理的解释<br/>
|
|
(内容限2至500字) 当前已经输入 <span style="color:red;" id="chars">0</span> 字
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr">
|
|
<input type="submit" name="submit" value=" 确 定 " class="btn_g"/> <input type="button" value=" 取 消 " class="btn" onclick="$('#explain').slideUp(300);"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<div class="t2">卖家评价</div>
|
|
<table cellspacing="1" cellpadding="10" class="tb">
|
|
{loop $lists $k $v}
|
|
<tr>
|
|
<td class="tl">商品名称</td>
|
|
<td class="tr"><a href="{$v[linkurl]}" target="_blank" class="t">{$v[title]}</a></td>
|
|
</tr>
|
|
{if $comments[$k][buyer_star]}
|
|
<tr>
|
|
<td class="tl">卖家评分</td>
|
|
<td class="tr"><img src="{DT_STATIC}file/image/star{$comments[$k][buyer_star]}.gif" alt="" align="absmiddle"/> {$STARS[$comments[$k][buyer_star]]}
|
|
{if !$comments[$k][seller_reply]}
|
|
<a href="javascript:;" onclick="E({$v[itemid]});" class="t">[解释]</a>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl" id="E0_{$v[itemid]}">卖家评价</td>
|
|
<td class="tr" id="E1_{$v[itemid]}">{nl2br($comments[$k][buyer_comment])}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">评价时间</td>
|
|
<td class="tr">{timetodate($comments[$k][buyer_ctime], 6)}</td>
|
|
</tr>
|
|
{if $comments[$k][seller_reply]}
|
|
<tr>
|
|
<td class="tl">我的解释</td>
|
|
<td class="tr" style="color:#D9251D;">{nl2br($comments[$k][seller_reply])}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">解释时间</td>
|
|
<td class="tr">{timetodate($comments[$k][seller_rtime], 6)}</td>
|
|
</tr>
|
|
{/if}
|
|
{else}
|
|
<tr>
|
|
<td class="tl">卖家评价</td>
|
|
<td class="tr">暂未评价</td>
|
|
</tr>
|
|
{/if}
|
|
{/loop}
|
|
</table>
|
|
<div class="t2">我的评价</div>
|
|
<table cellspacing="1" cellpadding="10" class="tb">
|
|
{loop $lists $k $v}
|
|
<tr>
|
|
<td class="tl">商品名称</td>
|
|
<td class="tr"><a href="{$v[linkurl]}" target="_blank" class="t">{$v[title]}</a></td>
|
|
</tr>
|
|
{if $comments[$k][seller_star]}
|
|
<tr>
|
|
<td class="tl">商品评分</td>
|
|
<td class="tr"><img src="{DT_STATIC}file/image/star{$comments[$k][seller_star]}.gif" alt="" align="absmiddle"/> {$STARS[$comments[$k][seller_star]]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">物流服务</td>
|
|
<td class="tr"><img src="{DT_STATIC}file/image/star{$comments[$k][seller_star_express]}.gif" alt="" align="absmiddle"/> {$STARS[$comments[$k][seller_star_express]]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">商家态度</td>
|
|
<td class="tr"><img src="{DT_STATIC}file/image/star{$comments[$k][seller_star_service]}.gif" alt="" align="absmiddle"/> {$STARS[$comments[$k][seller_star_service]]}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">买家评价</td>
|
|
<td class="tr">{nl2br($comments[$k][seller_comment])}</td>
|
|
</tr>
|
|
{if $comments[$k][seller_thumbs]}
|
|
<tr>
|
|
<td class="tl">买家图片</td>
|
|
<td class="tr">
|
|
{loop $comments[$k][seller_thumbs] $v}
|
|
<div class="thumbs"><img src="{$v}" onclick="_preview(this.src, 1);"/></div>
|
|
{/loop}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
{if $comments[$k][seller_video]}
|
|
<tr>
|
|
<td class="tl">买家视频</td>
|
|
<td class="tr"><script type="text/javascript">document.write(player('{$comments[$k][seller_video]}',400,300,0));</script></td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td class="tl">评价时间</td>
|
|
<td class="tr">{timetodate($comments[$k][seller_ctime], 6)}</td>
|
|
</tr>
|
|
{if $comments[$k][buyer_reply]}
|
|
<tr>
|
|
<td class="tl">卖家解释</td>
|
|
<td class="tr" style="color:#D9251D;">{nl2br($comments[$k][buyer_reply])}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">解释时间</td>
|
|
<td class="tr">{timetodate($comments[$k][buyer_rtime], 6)}</td>
|
|
</tr>
|
|
{/if}
|
|
{else}
|
|
<tr>
|
|
<td class="tl">买家评价</td>
|
|
<td class="tr">暂未评价</td>
|
|
</tr>
|
|
{/if}
|
|
{/loop}
|
|
</table>
|
|
<script type="text/javascript">
|
|
function check() {
|
|
if(Dd('content').value.length < 2) {
|
|
alert('解释内容不能少于2字');
|
|
return false;
|
|
}
|
|
if(Dd('content').value.length > 500) {
|
|
alert('解释内容不能超过500字');
|
|
return false;
|
|
}
|
|
return confirm('您确认提交此解释吗?提交后解释内容将不可更改');
|
|
}
|
|
function S() {
|
|
Inner('chars', Dd('content').value.length);
|
|
}
|
|
function E(oid) {
|
|
$('#explain').hide();
|
|
$("html, body").animate({scrollTop:$('#explain').offset().top}, 200);
|
|
$('#E0').html($('#E0_'+oid).html());
|
|
$('#E1').html($('#E1_'+oid).html());
|
|
$('#oid').val(oid);
|
|
$('#explain').slideDown(300);
|
|
}
|
|
</script>
|
|
<script type="text/javascript">s('order');m('action');</script>
|
|
{/if}
|
|
{elseif $action == 'express'}
|
|
<!--[我的快递]-->
|
|
<div class="tt">
|
|
<form action="?">
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
{$fields_select}
|
|
<input type="text" size="30" name="kw" value="{$kw}" title="关键词"/>
|
|
{$status_select}
|
|
<input type="submit" value=" 搜 索 " class="btn"/>
|
|
<input type="button" value=" 重 置 " class="btn" onclick="Go('?action={$action}');"/><br/>
|
|
</div>
|
|
</form>
|
|
<div class="bd">
|
|
<table cellpadding="10" cellspacing="0" class="tb">
|
|
<tr>
|
|
<th>快递公司</th>
|
|
<th>快递单号</th>
|
|
<th width="100">快递状态</th>
|
|
<th width="150">下单时间</th>
|
|
<th width="150">更新时间</th>
|
|
<th width="40">订单</th>
|
|
</tr>
|
|
{loop $lists $k $v}
|
|
<tr align="center">
|
|
<td>{$v[send_type]}</td>
|
|
<td title="快递追踪"><a href="?itemid={$v[itemid]}&action=update&step=express" class="t">{$v[send_no]}</a></td>
|
|
<td>{$v[dstatus]}</td>
|
|
<td>{$v[addtime]}</td>
|
|
<td>{$v[updatetime]}</td>
|
|
<td><a href="?itemid={$v[itemid]}&action=update&step=detail" class="t">查看</a></td>
|
|
</tr>
|
|
{/loop}
|
|
</table>
|
|
</div>
|
|
<div class="pages">{$pages}</div>
|
|
<script type="text/javascript">s('order');m('action_express');</script>
|
|
{elseif $action == 'muti'}
|
|
<!--[批量付款]-->
|
|
<form method="post" action="?" onsubmit="return check();" id="dform">
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
<div class="ls">
|
|
<table cellpadding="10" cellspacing="0" class="tb">
|
|
<tr>
|
|
<th width="20"><input type="checkbox" onclick="checkall(this.form);calculate();"/></th>
|
|
<th width="100">图片</th>
|
|
<th>商品</th>
|
|
<th width="100">单价</th>
|
|
<th width="100">数量</th>
|
|
<th width="150">订单金额</th>
|
|
<th width="150">下单时间</th>
|
|
<th width="40">订单</th>
|
|
</tr>
|
|
{loop $lists $k $v}
|
|
<tr align="center">
|
|
<td><input type="checkbox" name="itemid[]" value="{$v[itemid]}" checked id="check_{$v[itemid]}" onclick="calculate({$v[itemid]})"/></td>
|
|
<td><a href="javascript:_preview('{$v[thumb]}');"><img src="{if $v[thumb]}{$v[thumb]}{else}{DT_SKIN}image/nopic60.gif{/if}" width="60" height="60" onerror="this.src=errimg;" style="margin:10px;"/></a></td>
|
|
<td align="left" valign="top" class="f_gray lh18"><a href="{$v[linkurl]}" target="_blank" class="t">{$v[title]}</a><br/>{$v[par]}{if $v[note]}备注:{$v[note]}{/if}
|
|
<input type="hidden" id="money_{$v[itemid]}" value="{$v[money]}"/>
|
|
</td>
|
|
<td>{$v[price]}</td>
|
|
<td>{$v[number]}</td>
|
|
<td class="f_red">{$DT[money_sign]}{$v[money]}</td>
|
|
<td>{$v[addtime]}</td>
|
|
<td><a href="?itemid={$v[itemid]}&action=update&step=detail" target="_blank" class="t">详情</a>
|
|
</tr>
|
|
{if isset($tags[$v[itemid]])}
|
|
{loop $tags[$v[itemid]] $i $t}
|
|
<tr align="center">
|
|
<td></td>
|
|
<td><a href="javascript:_preview('{$t[thumb]}');"><img src="{if $t[thumb]}{$t[thumb]}{else}{DT_SKIN}image/nopic60.gif{/if}" width="60" height="60" onerror="this.src=errimg;"/></a></td>
|
|
<td align="left" valign="top" class="f_gray lh18"><a href="{$t[linkurl]}" target="_blank" class="t">{$t[title]}</a><br/>{$t[par]}{if $t[note]}备注:{$t[note]}{/if}</td>
|
|
<td>{$t[price]}</td>
|
|
<td>{$t[number]}</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
{/loop}
|
|
{/if}
|
|
{/loop}
|
|
</table>
|
|
</div>
|
|
<br/>
|
|
<table cellpadding="10" cellspacing="1" class="tb">
|
|
<tr>
|
|
<td class="tl">订单数量</td>
|
|
<td class="tr"><span id="total_good"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">应付金额</td>
|
|
<td class="tr"><span class="f_red" id="total_amount"></span> {$DT[money_unit]}</td>
|
|
</tr>
|
|
<tr id="mymoney" style="display:none;">
|
|
<td class="tl">账户余额</td>
|
|
<td class="tr"><span class="f_blue">{$_money}</span> {$DT[money_unit]}</td>
|
|
</tr>
|
|
<tr id="payword" style="display:none;">
|
|
<td class="tl"><span class="f_red">*</span> 支付密码</td>
|
|
<td class="tr">{template 'password', 'chip'} <span id="dpassword" class="f_red"></span></td>
|
|
</tr>
|
|
<tr id="paytype" style="display:none;">
|
|
<td class="tl"><span class="f_red">*</span> 支付方式</td>
|
|
<td class="tr">
|
|
<table cellspacing="5" cellpadding="5">
|
|
{php $PAYLIST = get_paylist();}
|
|
<input type="hidden" name="bank" id="bank" value="{$PAYLIST[0][bank]}"/>
|
|
{loop $PAYLIST $k $v}
|
|
<tr onclick="$('#bank').val($('#paytype :checked').val());">
|
|
<td><input type="radio" name="bank" value="{$v[bank]}" id="bank-{$v[bank]}"{if $k==0} checked{/if}/></td>
|
|
<td><label for="bank-{$v[bank]}" class="c_p"><img src="{DT_PATH}api/pay/{$v[bank]}/logo.gif" alt=""/></label></td>
|
|
<td>{if $v[percent]>0}手续费 {$v[percent]}%{/if}</td>
|
|
</tr>
|
|
{/loop}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{if $DT[sms]}
|
|
<tr>
|
|
<td class="tl"></td>
|
|
<td class="tr"><input type="checkbox" name="sendsms" value="1"/> 短信通知卖家发货 (<a href="sms.php" target="_blank" class="t">我的可用短信 <strong class="f_blue">{$_sms}</strong> 条</a>)</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr" height="50"><input type="submit" name="submit" value=" 立即支付 " class="btn_g"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<script type="text/javascript">
|
|
var amount = 0;
|
|
var itemids = [{$itemids}];
|
|
function calculate(id) {
|
|
var _good = _amount = 0;
|
|
for(var i = 0; i < itemids.length; i++) {
|
|
var itemid = itemids[i];
|
|
if(Dd('check_'+itemid).checked) {
|
|
_good++;
|
|
_amount += parseFloat(Dd('money_'+itemid).value);
|
|
}
|
|
}
|
|
if(_good < 1) {
|
|
alert('至少需要选择一个订单');
|
|
Dd('check_'+(id ? id : itemid)).checked = true;
|
|
setTimeout('calculate()', 1000);
|
|
}
|
|
amount = _amount;
|
|
Dd('total_good').innerHTML = _good;
|
|
Dd('total_amount').innerHTML = _amount.toFixed(2);
|
|
}
|
|
calculate();
|
|
function check() {
|
|
if(amount > {$_money}) {
|
|
var k = '';
|
|
for(var i = 0; i < itemids.length; i++) {
|
|
var itemid = itemids[i];
|
|
if(Dd('check_'+itemid).checked) {
|
|
k += k ? ','+itemid : itemid;
|
|
}
|
|
}
|
|
Go('charge.php?action=pay&reason=trades|'+k+'&amount='+amount+'&bank='+$('#bank').val());
|
|
return false;
|
|
}
|
|
var f,l;
|
|
f = 'password';
|
|
l = Dd(f).value.length;
|
|
if(l < 6) {
|
|
Dmsg('请填写支付密码', f);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
window.setInterval(
|
|
function() {
|
|
if(amount > {$_money} || {$_money} < 0.01) {
|
|
$('#payword').hide();$('#mymoney').hide();$('#paytype').show();
|
|
} else {
|
|
$('#payword').show();$('#mymoney').show();$('#paytype').hide();
|
|
}
|
|
},
|
|
500);
|
|
</script>
|
|
<script type="text/javascript">s('order');m('action_muti');</script>
|
|
{else}
|
|
<!--[我发出的订单]-->
|
|
<div class="tt">
|
|
<form action="?">
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
{$fields_select}
|
|
<input type="text" size="10" name="kw" value="{$kw}" title="关键词"/>
|
|
{$status_select}
|
|
{dcalendar('fromdate', $fromdate)} 至 {dcalendar('todate', $todate)}
|
|
<input type="submit" value=" 搜 索 " class="btn"/>
|
|
<input type="button" value=" 重 置 " class="btn" onclick="Go('?action=index');"/><br/>
|
|
<div class="b10"></div>
|
|
<div>
|
|
单号:<input type="text" size="10" name="itemid" value="{$itemid}"/>
|
|
商品ID:<input type="text" size="10" name="mallid" value="{$mallid}"/>
|
|
卖家:<input type="text" size="20" name="seller" value="{$seller}"/>
|
|
<input type="checkbox" name="cod" value="1"{if $cod} checked{/if}/>货到付款
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<div class="nav">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="{if !in_array($nav, array(0,1,2,3,4,5,6))}nav_2{else}nav_1{/if}"><a href="?action=index">全部订单</a></td>
|
|
<td class="{if $nav==0}nav_2{else}nav_1{/if}"><a href="?nav=0">待确认 <span>({php echo $db->count($table, "buyer='$_username' AND status=0");})</span></a></td>
|
|
<td class="{if $nav==1}nav_2{else}nav_1{/if}"><a href="?nav=1">待付款 <span>({php echo $db->count($table, "buyer='$_username' AND status=1");})</span></a></td>
|
|
<td class="{if $nav==2}nav_2{else}nav_1{/if}"><a href="?nav=2">待发货 <span>({php echo $db->count($table, "buyer='$_username' AND status=2");})</span></a></td>
|
|
<td class="{if $nav==3}nav_2{else}nav_1{/if}"><a href="?nav=3">待收货 <span>({php echo $db->count($table, "buyer='$_username' AND status=3");})</span></a></td>
|
|
<td class="{if $nav==5}nav_2{else}nav_1{/if}"><a href="?nav=5">待退款 <span>({php echo $db->count($table, "buyer='$_username' AND status=5");})</span></a></td>
|
|
<td class="{if $nav==6}nav_2{else}nav_1{/if}"><a href="?nav=6">已退款 <span>({php echo $db->count($table, "buyer='$_username' AND status=6");})</span></a></td>
|
|
<td class="{if $nav==4}nav_2{else}nav_1{/if}"><a href="?nav=4">待评价 <span>({php echo $db->count($table, "buyer='$_username' AND status=4 AND seller_star=0");})</span></a></td>
|
|
<td> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="bd">
|
|
<table cellpadding="10" cellspacing="0" class="tb">
|
|
<tr>
|
|
<th>商品信息</th>
|
|
<th width="120">单价</th>
|
|
<th width="60">数量</th>
|
|
<th width="120">订单金额</th>
|
|
<th width="100">商家</th>
|
|
<th width="120">订单状态</th>
|
|
</tr>
|
|
</table>
|
|
{loop $lists $k $v}
|
|
<table cellpadding="10" cellspacing="0" class="tb">
|
|
<tr bgcolor="#F5F5F5">
|
|
<td colspan="7" class="f_gray">
|
|
<span class="f_r">
|
|
{if $v[status] == 0}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=close" onclick="return confirm('确实要关闭此交易吗?此操作将不可撤销');">关闭交易</a> |
|
|
{elseif $v[status] == 1}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=pay">立即付款</a> |
|
|
<a href="?itemid={$v[itemid]}&action=update&step=close" onclick="return confirm('确实要关闭此交易吗?此操作将不可撤销');">关闭交易</a> |
|
|
{elseif $v[status] == 2}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=remind">提醒发货</a> |
|
|
<a href="?itemid={$v[itemid]}&action=update&step=refund">申请退款</a> |
|
|
{elseif $v[status] == 3}
|
|
{if $v[lefttime]}
|
|
<span class="f_blue" title="如果逾期未处理,系统将自动付款给卖家"><img src="{DT_STATIC}file/image/clock.gif" width="12" height="12"/> 距处理此订单还剩{$v[lefttime]}</span>
|
|
<a href="?itemid={$v[itemid]}&action=update&step=receive_goods" onclick="return confirm('确认已收到货且质量与数量无误吗?\n\n请注意:确认后您的钱将直接支付给卖家');">确认到货</a> |
|
|
{if $v[send_type] && $v[send_no]}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=express">快递追踪</a> |
|
|
{/if}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=refund">申请退款</a> |
|
|
{else}
|
|
<span class="f_red">订单处理已超时,等待卖家收款</span>
|
|
{/if}
|
|
{elseif $v[status] == 4}
|
|
{if $MODULE[$v[mid]][module] == 'mall'}
|
|
{if $v[seller_star]}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=comment_detail">评价详情</a> |
|
|
{else}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=comment">评价</a> |
|
|
{/if}
|
|
{/if}
|
|
{elseif $v[status] == 9}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=close" onclick="return confirm('确实要删除此交易吗?此操作将不可撤销');">删除订单</a> |
|
|
{/if}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=detail">订单详情</a>
|
|
</span>
|
|
<span class="c_p" onclick="Go('?itemid={$v[itemid]}&action=update&step=detail');"> {$v[addtime]} 订单号:{$v[itemid]}<span>
|
|
</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td width="70"><a href="javascript:_preview('{$v[thumb]}');"><img src="{if $v[thumb]}{$v[thumb]}{else}{DT_SKIN}image/nopic60.gif{/if}" width="60" height="60" onerror="this.src=errimg;"/></a></td>
|
|
<td align="left" valign="top" class="f_gray lh18"><a href="{$v[linkurl]}" target="_blank" class="t">{$v[title]}</a><br/>{$v[par]}{if $v[note]}备注:{$v[note]}{/if}
|
|
<td width="120">{$v[price]}</td>
|
|
<td width="60">{$v[number]}</td>
|
|
<td width="120">{$DT[money_sign]}{$v[money]}</td>
|
|
<td width="100"><div style="margin-bottom:15px;"><a href="{userurl($v[seller], 'file=contact')}" target="_blank">{$v[seller]}</a></div>{if $DT[im_web]}{im_web($v[seller].'&mid=16&itemid='.$v[mallid])} {/if}<a href="message.php?action=send&touser={$v[seller]}"><img src="image/ico_message.gif" title="发送站内信" align="absmiddle"/></a></td>
|
|
<td width="120">
|
|
{$v[dstatus]}
|
|
{if $v[status] == 1}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=pay"><span class="trade_step">付款</span></a>
|
|
{elseif $v[status] == 3}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=receive_goods" onclick="return confirm('确认已收到货且质量与数量无误吗?\n\n请注意:确认后您的钱将直接支付给卖家');"><span class="trade_step">收货</span></a>
|
|
{elseif $v[status] == 4}
|
|
{if $MODULE[$v['mid']]['module'] == 'mall' && !$v[seller_star]}
|
|
<a href="?itemid={$v[itemid]}&action=update&step=comment"><span class="trade_step">评价</span></a>
|
|
{/if}
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{if isset($tags[$v[itemid]])}
|
|
{loop $tags[$v[itemid]] $i $t}
|
|
<tr align="center">
|
|
<td><a href="javascript:_preview('{$t[thumb]}');"><img src="{if $t[thumb]}{$t[thumb]}{else}{DT_SKIN}image/nopic60.gif{/if}" width="60" height="60" onerror="this.src=errimg;"/></a></td>
|
|
<td align="left" valign="top" class="f_gray lh18"><a href="{$t[linkurl]}" target="_blank" class="t">{$t[title]}</a><br/>{$t[par]}{if $t[note]}备注:{$t[note]}{/if}</td>
|
|
<td>{$t[price]}</td>
|
|
<td>{$t[number]}</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
{/loop}
|
|
{/if}
|
|
</table>
|
|
{/loop}
|
|
</div>
|
|
<div class="pages">{$pages}</div>
|
|
<script type="text/javascript">s('order');m('action');</script>
|
|
{/if}
|
|
{template 'footer', 'member'}
|