diff --git a/src/components/layout/HeaderNav.vue b/src/components/layout/HeaderNav.vue index 1d4ec3b..95e5c84 100644 --- a/src/components/layout/HeaderNav.vue +++ b/src/components/layout/HeaderNav.vue @@ -94,10 +94,11 @@
-
+
联系电话 0512-680541 {{ diff --git a/src/libs/utils.js b/src/libs/utils.js index 94ec3c9..22b897e 100644 --- a/src/libs/utils.js +++ b/src/libs/utils.js @@ -60,7 +60,7 @@ export default { if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) { return img; } else { - return 'https://static.ticket.sz-trip.com' + img; + return process.env.VUE_APP_URL + img; } }, @@ -73,6 +73,20 @@ export default { } }); }, + + copyId(value) { + const input = document.createElement('input'); + input.value = value; + document.body.appendChild(input); + input.select(); + document.execCommand('copy'); + document.body.removeChild(input); + + Vue.prototype.$message({ + message: '复制成功', + type: 'success' + }); + }, } } } diff --git a/src/views/Order/Index.vue b/src/views/Order/Index.vue index 41d80e6..131b115 100644 --- a/src/views/Order/Index.vue +++ b/src/views/Order/Index.vue @@ -79,7 +79,7 @@ @@ -364,13 +364,15 @@ export default { ...this.titleForm, }; - this.post(this.titleForm).then((res) => { - if (res.code == 1) { - this.getInvoiceList(); - this.$message.success("发票抬头添加成功"); - this.invoiceTitleDialogVisible = false; + this.post(this.titleForm, "/api/enterprise_invoice/create").then( + (res) => { + if (res.code == 1) { + this.getInvoiceList(); + this.$message.success("发票抬头添加成功"); + this.invoiceTitleDialogVisible = false; + } } - }); + ); } }); }, diff --git a/src/views/Order/OrderDetail.vue b/src/views/Order/OrderDetail.vue index 13fc867..22a0a5a 100644 --- a/src/views/Order/OrderDetail.vue +++ b/src/views/Order/OrderDetail.vue @@ -33,15 +33,22 @@ >
- 在线付款 - 打印订单在线付款 +
- + -
{{ item.remark }}
+
+ {{ item.remark }} +
{{ i + 1 }} @@ -61,41 +68,41 @@ > {{ - orderInfo.orderNumber + info.order_id }} {{ - orderInfo.status + info.state_text }} {{ - orderInfo.orderTime + info.create_time }} {{ - deliveryInfo.receiver + info.order_product_list[0].consignee_info.name }} {{ - deliveryInfo.address + info.order_product_list[0].consignee_info.address }} {{ - deliveryInfo.phone + info.order_product_list[0].consignee_info.tel }} - {{ + - + {{ - paymentInfo.paymentMethod + info.pay_method_text }} - {{ + {{ - paymentInfo.paymentTime + info.pay_at }}
@@ -106,24 +113,32 @@ + > + + @@ -144,14 +159,14 @@
¥{{ totalPrice.productTotal }}¥{{ info.total_money / 100 }} ¥{{ totalPrice.shippingFee }}¥{{ info.total_post_fee / 100 }} ¥{{ totalPrice.actualPayment }}¥{{ info.paid_money / 100 }} @@ -183,24 +198,7 @@ export default { paymentStatus: "已支付", paymentTime: "2025-08-01 15:35:00", }, - productList: [ - { - name: "商品1", - spec: "规格1", - price: 100, - quantity: 1, - subtotal: 100, - image: "https://picsum.photos/200/200?random=1", - }, - { - name: "商品2", - spec: "规格2", - price: 200, - quantity: 2, - subtotal: 400, - image: "https://picsum.photos/200/200?random=1", - }, - ], + productList: [], totalPrice: { productTotal: 500, shippingFee: 0, @@ -222,6 +220,11 @@ export default { "/api/order/query" ).then((res) => { this.info = res.data; + this.productList = this.info.order_product_list; + this.info.order_product_list.forEach((item) => { + if (item.product_model === "post" && item.consignee_info) + item.consignee_info = JSON.parse(item.consignee_info); + }); }); // 订单流程记录 @@ -258,7 +261,7 @@ export default { display: flex; flex-direction: column; align-items: center; - justify-content: space-between; + justify-content: space-around; .order-no { color: #999; .el-button { @@ -309,12 +312,12 @@ export default { color: #666; font-weight: bold; font-size: 14px; - margin-top: -70px; + margin-top: 20px; } .process-description { color: #666; font-size: 12px; - margin-top: 45px; + // margin-top: 45px; } ::v-deep .is-finish .el-step__icon { background: #67c23a; diff --git a/src/views/User/ContractList.vue b/src/views/User/ContractList.vue index 548b19f..ba19df7 100644 --- a/src/views/User/ContractList.vue +++ b/src/views/User/ContractList.vue @@ -1,27 +1,38 @@ diff --git a/src/views/User/Index.vue b/src/views/User/Index.vue index 0f25887..e12e95f 100644 --- a/src/views/User/Index.vue +++ b/src/views/User/Index.vue @@ -27,7 +27,7 @@ export default { // {title: '我的收藏' ,path:""}, - {title: '我的足迹',path:"/User/ViewHistory" }, + // {title: '我的足迹',path:"/User/ViewHistory" }, {title: '消息中心',path:"/User/MessageList" }, {title: '个人信息',path:"/User/UserInfo" }, {title: '采购人信息',path:"/User/PurchaserAdd" }, diff --git a/src/views/User/OrderList.vue b/src/views/User/OrderList.vue index 647c2b7..37113d8 100644 --- a/src/views/User/OrderList.vue +++ b/src/views/User/OrderList.vue @@ -1,12 +1,12 @@