优惠券
This commit is contained in:
@@ -215,8 +215,14 @@
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>运费 :
|
||||
</span>
|
||||
<span>¥</span>{{ orderContet.shippingMoney }}
|
||||
<span>¥</span>{{ orderContet.shippingMoney }}
|
||||
</view>
|
||||
<view class="orderReal" v-if="orderContet.couponId && orderContet.couponId != null">
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>优惠券 :
|
||||
</span>
|
||||
<span>- ¥</span>{{ orderContet.couponAmount }}
|
||||
</view>
|
||||
<view class="orderReal" v-if="orderContet.orderType == 'order'">
|
||||
<span style="color: #666; margin-right: 10rpx; float: left"
|
||||
>积分 :
|
||||
@@ -888,11 +894,33 @@ export default {
|
||||
orderTabCLi(e) {
|
||||
this.orderListTab = e;
|
||||
},
|
||||
async getCouponDetail(id){
|
||||
await this.$http
|
||||
.request({
|
||||
url: "common/coupon/getCouponHistoryInfo",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
id
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
if(res.code != 0) return this.$commonJS.showToast(res.errMsg);
|
||||
this.orderContet.couponAmount = res.couponHistory.couponEntity.couponAmount
|
||||
|
||||
}).catch(e => {
|
||||
console.log(e);
|
||||
this.$commonJS.showToast(e.errMsg);
|
||||
})
|
||||
},
|
||||
// 获取订单详情
|
||||
getOrderList() {
|
||||
async getOrderList() {
|
||||
console.log("this.orderType", this.orderType);
|
||||
|
||||
this.$http
|
||||
await this.$http
|
||||
.request({
|
||||
url: "common/buyOrder/commonOrderDetail",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
@@ -904,12 +932,16 @@ export default {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
.then(async (res) => {
|
||||
this.customButton = [];
|
||||
console.log("订单详情", res);
|
||||
this.orderContet = res.data.buyOrder;
|
||||
this.goodsList = res.data.productInfo;
|
||||
this.consigneeShow = true;
|
||||
// 存在优惠券信息,就查询优惠券集体金额
|
||||
if(this.orderContet.couponId && this.orderContet.couponId != null){
|
||||
await this.getCouponDetail(this.orderContet.couponId)
|
||||
}
|
||||
if (
|
||||
this.orderContet.orderStatus == 2 &&
|
||||
this.sheetList.length > 0 &&
|
||||
|
||||
Reference in New Issue
Block a user