Commit 98f22d1a by wujiabao

更改 TokeStoke reducer

parent c20a24a6
import fetch from 'isomorphic-fetch' import fetch from 'isomorphic-fetch'
//初始的任务 返回工单
fetch(url,{
credentials : 'include',
method : 'POST',
mode : 'cors',
headers: {
'content-type':'application/json;charset=UTF-8',
},
body:{}
}).then(response=>response.json())
.then((data)=>{
console.log(data)
}).catch(e=>{console.log('err'+e)})
//点击提交后台核对商品数量 后台应该返回我ture 或者 false
fetch(url,{
credentials : 'include',
method : 'POST',
mode : 'cors',
headers: {
'content-type':'application/json;charset=UTF-8',
},
body:{}
}).then(response=>response.json())
.then((data)=>{
console.log(data)
}).catch(e=>{console.log('err'+e)})
\ No newline at end of file
import actionType from '../actiontype/TokeStokeContainer' import {GET_TOKESTOKE_INFO , SUBMIT_NUM} from '../actiontype/TokeStokeContainer'
\ No newline at end of file const addTokeState=(state,data)=>{
return Object.assign({},state,data)
}
export default function (state={},action){
switch(action.type){
case GET_TOKESTOKE_INFO :
break;
case SUBMIT_NUM :
break;
default :
return state;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment