作者 郭鑫
1 个管道 的构建 通过 耗费 1 秒

个人中心

... ... @@ -47,12 +47,12 @@ function def() {
success: function (res) {
var html = '';
$.each(res.data,function (index,val) {
html += " <div class=\"allist_item\">\n" +
html += "<div class=\"allist_item\">\n" +
" <div class=\"item_head\">\n" +
" <div class=\"order\">\n" +
" <p class=\"ordername\">订单号:</p>\n" +
" <p class=\"ordernum\">"+val.order_sn+"</p>\n" +
" </div>\n";
" </div>\n"
if(val.orderStatus == 2){
html += "<div class=\"orderstate\">待审核</div>\n" ;
}else if(val.orderStatus == 3){
... ... @@ -68,16 +68,17 @@ function def() {
}else if(val.orderStatus == 8){
html += "<div class=\"orderstate\">已评价</div>\n" ;
}
html +=
" </div>\n" +
" <div class=\"item_body\" onclick='jump("+val.id+")'>\n" +
" <div class=\"item_body\" onclick='jump("+val.id+")'>\n" +
" <p class=\"itembody_name\">"+val.title+"</p>\n" +
" <p class=\"itembody_price\">¥"+val.money+"/天</p>\n" +
" <p class=\"itembody_date\">工作时间:"+val.start_time+"-"+val.start_time+"</p>\n" +
" <p class=\"itembody_date\">雇佣人员:王晓明</p>\n" +
" <p class=\"itembody_date\">联系电话:12345678901</p>"
" <p class=\"itembody_date\">雇佣人员:王晓明</p>\n" +
" <p class=\"itembody_date\">联系电话:12345678901</p>\n" +
" </div>\n" +
" <div class=\"footbtn\">\n";
" <div class=\"footbtn\">\n" ;
// 2待审核,3审核通过,待付款,4审核未通过,5已取消,6待完成,7待评价,8已评价
if(val.orderStatus == 3){
html += "<p class=\"cancelorder\" onclick='change("+val.id+",1)'>取消订单</p>\n" +
... ...