From 37ccd9675758a32b96d0c9a759a0e9385733e144 Mon Sep 17 00:00:00 2001 From: yr <1308291615@qq.com> Date: Tue, 26 May 2020 13:52:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/myOrderPaying/myOrderPaying.vue | 7 +++--- src/store/modules/detailStandard_k.js | 2 +- src/store/modules/myOrder.js | 2 +- src/store/modules/orderRead.js | 38 +++++++++++++++---------------- 4 files changed, 25 insertions(+), 24 deletions(-) diff --git a/src/pages/myOrderPaying/myOrderPaying.vue b/src/pages/myOrderPaying/myOrderPaying.vue index 23db451..f9686be 100644 --- a/src/pages/myOrderPaying/myOrderPaying.vue +++ b/src/pages/myOrderPaying/myOrderPaying.vue @@ -80,13 +80,13 @@ 实付 - ¥{{orderInfo.order_info.total_fee}} + ¥{{orderInfo.order_info[0].total_fee}} - 订单号:{{orderInfo.prepay_id}} + 订单号:{{payId}} - 下单时间:{{orderInfo.pay_time}} + 下单时间:{{orderInfo.order_info[0].pay_time}} @@ -164,6 +164,7 @@ export default { }, orderInfoList () { const orderInfoList = this.orderInfo.order_info[0].list + // console.log(this.orderInfo.order_info[0].list.p_name + 'sssss') return orderInfoList }, // 获取订单地址信息 diff --git a/src/store/modules/detailStandard_k.js b/src/store/modules/detailStandard_k.js index 39422ad..2b10f9c 100644 --- a/src/store/modules/detailStandard_k.js +++ b/src/store/modules/detailStandard_k.js @@ -21,7 +21,7 @@ const actions = { url: detailStandardUrl, data: param, success: (res) => { - commit('INIT', res.data); + commit('INIT', res.data) }, fail: (res) => { console.log(" detail fail status === > ", res); diff --git a/src/store/modules/myOrder.js b/src/store/modules/myOrder.js index a52a483..2a93e23 100644 --- a/src/store/modules/myOrder.js +++ b/src/store/modules/myOrder.js @@ -3,7 +3,7 @@ import request from '../request'; const { myOrderList -} = urlAlias; +} = urlAlias // const data = { // data: [ diff --git a/src/store/modules/orderRead.js b/src/store/modules/orderRead.js index 0639069..eeaa8cd 100644 --- a/src/store/modules/orderRead.js +++ b/src/store/modules/orderRead.js @@ -1,35 +1,35 @@ - import urlAlias from '../url'; - import request from '../request'; +import urlAlias from '../url' +import request from '../request' - const { +const { orderRead - } = urlAlias; +} = urlAlias const state = { - orderInfo: {}, -}; + orderInfo: {} +} const mutations = { INIT: (state, orderInfo) => { - state.orderInfo = orderInfo; - }, -}; + state.orderInfo = orderInfo + } +} const actions = { getOrderInfo({ commit }, param) { - request({ - url: orderRead, - data: param, - success: (res) => { - commit("INIT", res.data.data); - }, + request({ + url: orderRead, + data: param, + success: (res) => { + commit("INIT", res.data.data) + } }) - }, -}; + } +} export default { namespaced: true, state, mutations, - actions, -}; + actions +} -- 2.0.0