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 +}