Authored by lea guo

订单: 接口缓存&支付金额增加两位精度

... ... @@ -43,7 +43,6 @@ export default {
const isOk = await this.deleteOrder({
orderCode,
owner,
status
});
if (isOk) {
... ... @@ -53,7 +52,7 @@ export default {
this.filterOrderList({
orderCode,
owner,
status
status,
});
}
}
... ... @@ -124,8 +123,8 @@ export default {
}
this.$createOrderPayType({
orderCode,
price: parseFloat(price || ''),
desc: '',
price: parseFloat(price || '').toFixed(2),
desc: '金额',
extra: JSON.stringify({
back: {
name: pageBackName,
... ... @@ -142,7 +141,7 @@ export default {
case orderActionsMap.PAY_DEPOSIT.name: {
this.$createOrderPayType({
orderCode,
price: parseFloat(bidDepositInfo.depositAmount),
price: parseFloat(bidDepositInfo.depositAmount).toFixed(2),
desc: '支付定金',
extra: JSON.stringify({
forward: {
... ...
... ... @@ -63,7 +63,7 @@ export default {
this.$createOrderPayType({
orderCode,
price: earnestMoney,
price: parseFloat(`${earnestMoney}`).toFixed(2),
desc: '保证金',
// 支付成功会跳route
... ...
... ... @@ -84,7 +84,7 @@ export default function() {
actions: {
async fetchEntryOrderList({ dispatch, commit, state: { entryOrder } }) {
const { page } = entryOrder;
const res = await this.$api.get('/api/ufo/seller/entryPrdList', {
const res = await this.$api.post('/api/ufo/seller/entryPrdList', {
page,
// TODO 注释type含义
... ... @@ -104,7 +104,7 @@ export default function() {
},
async fetchNotEntryOrderList({ commit, state: { notEntryOrder } }) {
const { page } = notEntryOrder;
const res = await this.$api.get('/api/ufo/seller/notEntryPrdList', {
const res = await this.$api.post('/api/ufo/seller/notEntryPrdList', {
page,
type: 1,
});
... ...
... ... @@ -30,7 +30,7 @@ export default function() {
* }
*/
async fetchOrderDetail({ commit }, { owner, code } = {}) {
const res = await this.$api.get('/api/order/detail', {
const res = await this.$api.post('/api/order/detail', {
tabType: owner,
orderCode: +code,
});
... ...
... ... @@ -18,7 +18,7 @@ export default function() {
* @returns ts ILogisticsInfo
*/
async fetchLogisticInfo({ commit }, { owner, code } = {}) {
const res = await this.$api.get('/api/order/express', {
const res = await this.$api.post('/api/order/express', {
tabType: owner,
orderCode: +code,
});
... ... @@ -27,17 +27,17 @@ export default function() {
commit('initData', res.data);
}
},
async flawReject({commit}, {orderCode} = {}) {
async flawReject(_, { orderCode } = {}) {
return this.$api.get('/api/order/flawreject', {
orderCode
})
orderCode,
});
},
async flawAccept({commit}, {orderCode} = {}) {
async flawAccept(_, { orderCode } = {}) {
return this.$api.get('/api/order/flawaccept', {
orderCode
})
}
orderCode,
});
},
},
};
}
... ...