Blame view

src/store/modules/detailStandard_k.js 832 Bytes
c4c4f1251   尹聃   修改镜框选购页
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  import urlAlias from '../url';
  import request from '../request';
  
  const {
      detailStandardList
  } = urlAlias
  
  const state = {
      list:[],
  };
  
  const mutations = {
      INIT: (state, detailStandardList) => {
        state.detailStandardList = detailStandardList;
      },
  };
  
  const actions = {
      getList({ commit }, param){
          request({
              detailStandardList,
              success: (res) => {
  		  
                  commit('INIT', res.data.data)
                  console,log('success')
                },
                fail: (res) => {
                  console.log("detail status === > ", res);
                },
                complete: (res) => {
                  console.log("detail compete status === > ", res);
              },
          })
      }
  } 
  
  export default {
      namespaced: true,
      state,
      mutations,
      actions,
  }