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