Blame view

src/store/modules/statusConfirm.js 401 Bytes
29c972fd5   范牧   再次购买、确认订单修改
1
2
  import urlAlias from '../url'
  import request from '../request'
9a8f39ae3   BigBoss   订单
3
4
  
  const {
29c972fd5   范牧   再次购买、确认订单修改
5
6
    statusConfirm,
  } = urlAlias
9a8f39ae3   BigBoss   订单
7
8
  const actions = {
    confirm({ commit }, param) {
29c972fd5   范牧   再次购买、确认订单修改
9
10
11
12
13
14
15
16
17
      return new Promise((resolve) => request({
        url: statusConfirm,
        data: param || {},
        success: (res) => {
          console.log(res.data)
          resolve(res)
        },
      }))
    },
9a8f39ae3   BigBoss   订单
18
19
20
21
22
  }
  
  export default {
    namespaced: true,
    actions,
29c972fd5   范牧   再次购买、确认订单修改
23
  }