wpfw_ewei_shopv2/plugin/exchange/template/web/tabs.html
2023-02-14 19:57:32 +08:00

82 lines
4.1 KiB
HTML

<style type='text/css'>
.order-list a {
position: relative;
}
.order-list span {
float:right;margin-right:20px;
}
</style>
<ul class="menu-head-top">
<li {if $_W['action']=='history.statistics'} class="active" {/if}><a href="{php echo webUrl('exchange');}">兑换中心 <i class="fa fa-caret-right"></i></a></li>
</ul>
<div class='menu-header'>兑换分类</div>
<ul>
{ifp 'exchange.goods'}<li {if substr($_W['action'],0,5)=='goods'}class="active"{/if}><a href="{php echo webUrl('exchange.goods');}">商品兑换</a></li>{/if}
{ifp 'exchange.balance'}<li {if substr($_W['action'],0,7)=='balance'}class="active"{/if}><a href="{php echo webUrl('exchange.balance');}">余额兑换</a></li>{/if}
{ifp 'exchange.redpacket'}<li {if substr($_W['action'],0,9)=='redpacket'}class="active"{/if}><a href="{php echo webUrl('exchange.redpacket');}">红包兑换</a></li>{/if}
{ifp 'exchange.score'}<li {if substr($_W['action'],0,5)=='score'}class="active"{/if}><a href="{php echo webUrl('exchange.score');}">积分兑换</a></li>{/if}
{ifp 'exchange.coupon'}<li {if substr($_W['action'],0,6)=='coupon'}class="active"{/if}><a href="{php echo webUrl('exchange.coupon');}">优惠券兑换</a></li>{/if}
{ifp 'exchange.group'}<li {if substr($_W['action'],0,5)=='group'}class="active"{/if}><a href="{php echo webUrl('exchange.group');}">组合兑换</a></li>{/if}
</ul>
<div class='menu-header lynn_order'>商品订单</div>
<ul class="order-list">
{ifp 'exchange.record.daifahuo'}
<li {if $_W['action']=='record.daifahuo'}class="active"{/if}>
<a href="{php echo webUrl('exchange/record/daifahuo');}">待发货<span class='text-danger status1'>--</span></a>
</li>
{/if}
{ifp 'exchange.record.daishouhuo'}
<li {if $_W['action']=='record.daishouhuo'}class="active"{/if}>
<a href="{php echo webUrl('exchange/record/daishouhuo');}">待收货<span class='text-warning status2'>--</span></a>
</li>
{/if}
{ifp 'exchange.record.daifukuan'}
<li {if $_W['action']=='record.daifukuan'}class="active"{/if}>
<a href="{php echo webUrl('exchange/record/daifukuan');}">待付款<span class=" status3">--</span></a>
</li>
{/if}
{ifp 'exchange.record.yiguanbi'}
<li {if $_W['action']=='record.yiguanbi'}class="active"{/if}>
<a href="{php echo webUrl('exchange/record/yiguanbi');}">已关闭<span class="status5">--</span></a>
</li>
{/if}
{ifp 'exchange.record.yiwancheng'}
<li {if $_W['action']=='record.yiwancheng'}class="active"{/if}>
<a href="{php echo webUrl('exchange/record/yiwancheng');}">已完成<span class='text-primary status4'>--</span></a>
</li>
{/if}
{ifp 'exchange.record.main'}
<li {if $_W['action']=='record'}class="active"{/if}>
<a href="{php echo webUrl('exchange/record');}">全部订单<span class="all">--</span></a>
</li>
{/if}
</ul>
<div class='menu-header'>其他</div>
<ul>
{ifp 'exchange.history'}<li {if $_W['action']=='history'}class="active"{/if}><a href="{php echo webUrl('exchange.history');}">兑换记录</a></li>{/if}
{ifp 'exchange.setting.download'}<li {if $_W['action']=='setting.download'}class="active"{/if}><a href="{php echo webUrl('exchange.setting.download');}">文件管理</a></li>{/if}
{ifp 'exchange.setting.other'}<li {if $_W['action']=='setting.other'}class="active"{/if}><a href="{php echo webUrl('exchange.setting.other');}">其他设置</a></li>{/if}
</ul>
<script type="text/javascript">
$(document).ready(function () {
$.ajax({url: "{php echo webUrl('exchange/record/ajaxorder');}",
success: function(msg){
var str = '';
for (var i = 2;i < msg.length-2;i++){
str += msg[i];
}
var arr = str.split('","');
$(".status1").text(arr[0]);//daifahuo
$(".status2").text(arr[2]);//daishouhuo
$(".status3").text(arr[1]);//weifukuan
$(".status5").text(arr[4]);//yiguanbi
$(".status4").text(arr[3]);//yiwancheng
$(".all").text(arr[5]);//all
}
});
});
</script>