|
|
@ -29,7 +29,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="order_content"> |
|
|
<view class="order_content"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)"> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_image" > |
|
|
<view class="good_info_image" > |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
@ -82,6 +82,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<!-- 已完成订单 --> |
|
|
<!-- 已完成订单 --> |
|
|
<template v-if="item.pay_status_code==2 && item.shipping_status_code==2"> |
|
|
<template v-if="item.pay_status_code==2 && item.shipping_status_code==2"> |
|
|
|
|
|
<button class="cancel" @click.stop="goLogistics(item.order_id)">LOGISTICS</button> |
|
|
<button class="cancel" @click.stop="openTips(item.order_id,1)">DELETE ORDER</button> |
|
|
<button class="cancel" @click.stop="openTips(item.order_id,1)">DELETE ORDER</button> |
|
|
<button class="pay" @click.stop="goComment(item)" v-if="item.comment_status_code==0">COMMENT</button> |
|
|
<button class="pay" @click.stop="goComment(item)" v-if="item.comment_status_code==0">COMMENT</button> |
|
|
</template> |
|
|
</template> |
|
|
@ -105,7 +106,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="order_content"> |
|
|
<view class="order_content"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)"> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_image" > |
|
|
<view class="good_info_image" > |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
@ -164,7 +165,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="order_content"> |
|
|
<view class="order_content"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)"> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_image" > |
|
|
<view class="good_info_image" > |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
@ -213,7 +214,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="order_content"> |
|
|
<view class="order_content"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)"> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_image" > |
|
|
<view class="good_info_image" > |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
@ -266,7 +267,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="order_content"> |
|
|
<view class="order_content"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)"> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_image" > |
|
|
<view class="good_info_image" > |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
@ -299,6 +300,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<view class="good_price">total:US${{item.total_fee_o}}</view> |
|
|
<view class="good_price">total:US${{item.total_fee_o}}</view> |
|
|
<view class="order_button"> |
|
|
<view class="order_button"> |
|
|
|
|
|
<button class="cancel" @click.stop="goLogistics(item.order_id)">LOGISTICS</button> |
|
|
<button class="cancel" @click.stop="openTips(item.order_id,1)">DELETE ORDER</button> |
|
|
<button class="cancel" @click.stop="openTips(item.order_id,1)">DELETE ORDER</button> |
|
|
<button class="pay" @click.stop="goComment(item)" v-if="item.comment_status_code==0">COMMENT</button> |
|
|
<button class="pay" @click.stop="goComment(item)" v-if="item.comment_status_code==0">COMMENT</button> |
|
|
</view> |
|
|
</view> |
|
|
@ -319,7 +321,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="order_content"> |
|
|
<view class="order_content"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)"> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_image" > |
|
|
<view class="good_info_image" > |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
@ -371,7 +373,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="order_content"> |
|
|
<view class="order_content"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<template v-if="item.order_goods.length==1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1"> |
|
|
<view class="good_info" v-for="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)"> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_image" > |
|
|
<view class="good_info_image" > |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
<image :src="item1.goods_img" mode=""></image> |
|
|
@ -414,7 +416,9 @@ |
|
|
<view class="order1"> |
|
|
<view class="order1"> |
|
|
<image src="../../static/img/order_nodate.png" mode=""></image> |
|
|
<image src="../../static/img/order_nodate.png" mode=""></image> |
|
|
<text>You made no order yet!</text> |
|
|
<text>You made no order yet!</text> |
|
|
<button>Continue shopping</button> |
|
|
<navigator url="/pages/category/index" open-type="switchTab"> |
|
|
|
|
|
<button>Continue shopping</button> |
|
|
|
|
|
</navigator> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
</view> |
|
|
</view> |
|
|
@ -473,7 +477,7 @@ |
|
|
<image src="../../static/img/close1.png" mode="" @click="isShow=false"></image> |
|
|
<image src="../../static/img/close1.png" mode="" @click="isShow=false"></image> |
|
|
</view> |
|
|
</view> |
|
|
<view class="order_popup_commodity" > |
|
|
<view class="order_popup_commodity" > |
|
|
<view class="good_info" v-for="(item,index) in goods_list " :key="index"> |
|
|
<view class="good_info" v-for="(item,index) in goods_list " :key="index" @click.stop="goGoodsDetails(item.goods_id)"> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_left "> |
|
|
<view class="good_info_image" > |
|
|
<view class="good_info_image" > |
|
|
<image :src="item.goods_img" mode=""></image> |
|
|
<image :src="item.goods_img" mode=""></image> |
|
|
@ -534,6 +538,12 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
// 跳转商品详情 |
|
|
|
|
|
goGoodsDetails(id){ |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url:'/pages/productDetails/index?goods_id='+id |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
// 跳转评论页面 |
|
|
// 跳转评论页面 |
|
|
goComment(item){ |
|
|
goComment(item){ |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
@ -555,15 +565,15 @@ |
|
|
goDetails(item,id){ |
|
|
goDetails(item,id){ |
|
|
let index |
|
|
let index |
|
|
if(item.pay_status_code==0 && item.order_status_code==0){ |
|
|
if(item.pay_status_code==0 && item.order_status_code==0){ |
|
|
index=3 |
|
|
index=0 |
|
|
}else if(item.order_status_code==2){ |
|
|
}else if(item.order_status_code==2){ |
|
|
index=1 |
|
|
index=4 |
|
|
}else if(item.pay_status_code==2 && item.shipping_status_code==0){ |
|
|
}else if(item.pay_status_code==2 && item.shipping_status_code==0){ |
|
|
index=0 |
|
|
index=1 |
|
|
}else if(item.pay_status_code==2 && item.shipping_status_code==1 || item.shipping_status_code==4){ |
|
|
}else if(item.pay_status_code==2 && item.shipping_status_code==1 || item.shipping_status_code==4){ |
|
|
index=4 |
|
|
|
|
|
}else if(item.pay_status_code==2 && item.shipping_status_code==2){ |
|
|
|
|
|
index=2 |
|
|
index=2 |
|
|
|
|
|
}else if(item.pay_status_code==2 && item.shipping_status_code==2){ |
|
|
|
|
|
index=3 |
|
|
}else if(item.order_status_code==4){ |
|
|
}else if(item.order_status_code==4){ |
|
|
// 退货 |
|
|
// 退货 |
|
|
index=5 |
|
|
index=5 |
|
|
@ -650,6 +660,11 @@ |
|
|
console.info(res) |
|
|
console.info(res) |
|
|
if(res.error==0){ |
|
|
if(res.error==0){ |
|
|
this.orderList=res.data |
|
|
this.orderList=res.data |
|
|
|
|
|
if(this.orderList.length==0){ |
|
|
|
|
|
this.isList=false |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.isList=true |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|