diff --git a/package2/shop/orderDetail.vue b/package2/shop/orderDetail.vue index 159bbd3..3041f9d 100644 --- a/package2/shop/orderDetail.vue +++ b/package2/shop/orderDetail.vue @@ -12,34 +12,133 @@ - #0001 + {{'#'+data.numberCode}} 期望送达 明天 06:30 - 待消费 + + {{data.status == 0?'待支付':data.status == 1?' 待成团':data.status == 2?'待消费':data.status == 3?'待接单':data.status == 4?'待取货':data.status == 5?'待送达':data.status == 6?'已完成':data.status == 7?'待退款':data.status == 8?'已退款':data.status == 9?'已取消':data.status == 11?'售后中':data.status == 12?'已售后':""}} + - 配送订单 - + {{data.deliveryType == 2?'自取订单':'配送订单'}} - - 配送员:张三 + + 配送员:{{data.deliveryInfo.workerName}} - + - - + + - 收货人:田(先生) + 收货人:{{data.deliveryInfo.receiverName}} - 河北省沧州市东川建设集团优先公司5楼右转右手边第一个门 + {{data.deliveryInfo.receiverAddress}} + + + + + + + + + + 商品 共{{data.goodsNum}}件 + + + + {{item.productName}} + + + {{'x'+ item.quantity}} + + + {{'¥'+ item.price}} + + + + + + + 商品金额 + + + {{'¥' + data.goodsAmount}} + + + + + 配送费 + + + {{'¥' + data.deliveryFee}} + + + + + 客户实际支付 + + + {{'¥'+ data.totalAmount}} + + + + + 平台服务费 + + + ¥12.00假的 + + + - + + + 订单编号 + + + {{data.id}} + + + + + 下单时间 + + + {{data.createTime | formatISOTime}} + + + + + 用户账号 + + + 13521030111假的 + + + + + + + + + 预计收入 + + + ¥10.32假的 + + + + + 打印小票 + + + 取消订单 @@ -51,6 +150,7 @@ data() { return { menuButtonInfo: {}, + data:{} } }, filters:{ @@ -70,14 +170,20 @@ }, onLoad(option) { this.shopId = option.id + this.getDetail() }, methods: { - getList(){ + getDetail(){ let that = this - that.tui.request("/mall/order/page", "POST", this.searchForm, false, false).then((res) => { - that.loadStatus = 'nomore'; + that.tui.request("/mall/order/detail/"+ this.shopId, "get", {}, false, false).then((res) => { if (res.code == 200) { + that.data = res.result + that.data.goodsNum = 0 + for(let m=0;m {}); }, + makeCall(phone){ + uni.makePhoneCall({ + phoneNumber: phone + }); + }, back() { uni.navigateBack() }, @@ -144,4 +255,23 @@ border-radius: 20rpx; padding: 20rpx; } + .bottom{ + position: fixed; + bottom: 0; + height: 90px; + width: 100%; + background: #fff; + padding: 0 10px; + } + .btn{ + height: 25px; + width: 65px; + line-height: 25px; + background: linear-gradient(90deg, #e3ff96, #a6ffea); + text-align: center; + border-radius: 7px; + font-weight: 700; + float: right; + margin-left: 10px; + } \ No newline at end of file