From 82430ae52ad9204791f0ec4d42631e8b91a519cb Mon Sep 17 00:00:00 2001 From: hupeng Date: Wed, 8 Jan 2020 12:16:28 +0800 Subject: [PATCH] =?UTF-8?q?yshop1.7.1,=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=AD=89=E9=97=AE=E9=A2=98=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yxStoreOrder.js | 18 +- src/utils/index.js | 18 ++ src/views/activity/bargain/form.vue | 4 +- src/views/activity/bargain/index.vue | 4 +- src/views/shop/order/detail.vue | 51 ++-- src/views/shop/order/edit.vue | 196 ++++++++++++++++ src/views/shop/order/form-bak.vue | 337 --------------------------- src/views/shop/order/form.vue | 22 +- src/views/shop/order/index.vue | 212 +++++++++++++---- src/views/shop/order/refund.vue | 10 +- src/views/shop/order/remark.vue | 193 +++++++++++++++ 11 files changed, 640 insertions(+), 425 deletions(-) create mode 100644 src/views/shop/order/edit.vue delete mode 100644 src/views/shop/order/form-bak.vue create mode 100644 src/views/shop/order/remark.vue diff --git a/src/api/yxStoreOrder.js b/src/api/yxStoreOrder.js index 986ba50..70e0116 100644 --- a/src/api/yxStoreOrder.js +++ b/src/api/yxStoreOrder.js @@ -31,9 +31,25 @@ export function refund(data) { }) } +export function editOrder(data) { + return request({ + url: 'api/yxStoreOrder/edit', + method: 'post', + data + }) +} + +export function remark(data) { + return request({ + url: 'api/yxStoreOrder/remark', + method: 'post', + data + }) +} + export function get() { return request({ url: 'api/yxExpress', - method: 'get' + method: 'get', }) } diff --git a/src/utils/index.js b/src/utils/index.js index ab7ad30..f224280 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -91,6 +91,24 @@ export function formatTime(time, option) { } } +export function formatTimeTwo(time) { + time = time * 1000 + const d = new Date(time) + return ( + d.getFullYear()+'年'+ + (d.getMonth() + 1) + + '月' + + d.getDate() + + '日' + + d.getHours() + + '时' + + d.getMinutes() + + '分' + ) + +} + + /** * @param {string} url * @returns {Object} diff --git a/src/views/activity/bargain/form.vue b/src/views/activity/bargain/form.vue index ea61169..feda6a0 100644 --- a/src/views/activity/bargain/form.vue +++ b/src/views/activity/bargain/form.vue @@ -11,7 +11,7 @@ - + - + @@ -103,7 +115,7 @@ export default { rules: { unique: [ { required: true, message: 'please enter', trigger: 'blur' } - ] + ], } } }, @@ -210,5 +222,12 @@ export default { diff --git a/src/views/shop/order/edit.vue b/src/views/shop/order/edit.vue new file mode 100644 index 0000000..b95882d --- /dev/null +++ b/src/views/shop/order/edit.vue @@ -0,0 +1,196 @@ + + + + + diff --git a/src/views/shop/order/form-bak.vue b/src/views/shop/order/form-bak.vue deleted file mode 100644 index 6db8a9f..0000000 --- a/src/views/shop/order/form-bak.vue +++ /dev/null @@ -1,337 +0,0 @@ - - - - - diff --git a/src/views/shop/order/form.vue b/src/views/shop/order/form.vue index e4d269f..adad0c6 100644 --- a/src/views/shop/order/form.vue +++ b/src/views/shop/order/form.vue @@ -1,19 +1,18 @@ + +