更新接口调用
This commit is contained in:
parent
f21ef5a3c5
commit
95ec210988
3
App.vue
3
App.vue
@ -6,7 +6,7 @@
|
|||||||
version
|
version
|
||||||
} from './package.json'
|
} from './package.json'
|
||||||
import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
|
import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
|
||||||
import { USERKEY } from "@/store/actionKey"
|
import { USERKEY, COMMONKEY } from "@/store/actionKey"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
globalData: {
|
globalData: {
|
||||||
@ -14,6 +14,7 @@
|
|||||||
},
|
},
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
this.$store.dispatch(USERKEY.GETUSERINFO)
|
this.$store.dispatch(USERKEY.GETUSERINFO)
|
||||||
|
this.$store.dispatch(COMMONKEY.GETDIST)
|
||||||
|
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
@ -8,3 +8,18 @@ export const getEmisCountry = (data = {})=> {
|
|||||||
export const getEmisRegion = (data = {})=> {
|
export const getEmisRegion = (data = {})=> {
|
||||||
return coreRequest(url.getEmisRegion, data, {}, 'GET')
|
return coreRequest(url.getEmisRegion, data, {}, 'GET')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getDicDataJson = (data = {})=> {
|
||||||
|
return coreRequest(url.getDicDataJson, data, {}, 'GET')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getTransLineList = (data = {})=> {
|
||||||
|
return coreRequest(url.getTransLineList, data, {}, 'GET')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getTransProductList = (data = {})=> {
|
||||||
|
return coreRequest(url.getTransProductList, data, {}, 'GET')
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,9 +2,21 @@
|
|||||||
export const host = 'http://47.102.220.189:58089/api/bizsvr'
|
export const host = 'http://47.102.220.189:58089/api/bizsvr'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
loginByApp: `/loginByApp`,
|
loginByApp: `/loginByApp`, // 登录
|
||||||
getInfoByApp: `/getInfoByApp`,
|
getInfoByApp: `/getInfoByApp`,// 获取用户基本信息
|
||||||
getEmisCountry: `/emis/emisCountry/list`,
|
getEmisCountry: `/emis/emisCountry/list`, // 获取国家列表
|
||||||
getEmisRegion: `/emis/emisRegion/list`,
|
getEmisRegion: `/emis/emisRegion/list`,// 获取省市区列表
|
||||||
|
getDicDataJson: `/common/getDicDataJson`, // 获取枚举字段
|
||||||
|
|
||||||
|
getTransLineList: `/emis/emisTransLine/listSimple`, // 获取路线列表
|
||||||
|
getTransProductList: `/emis/emisTransLine/listSimple`, // 获取产品列表
|
||||||
|
|
||||||
|
createOrderNo: `/emis/common/realMatchWaybill`, // 创建运单号
|
||||||
|
submitOrder: `/emis/emisWaybill/realSubmitOrder`, // 提交订单
|
||||||
|
getCustomerUserList: `/emis/emisCustomerUser/listSimple`, // 获取网点客户列表
|
||||||
|
getCustomerUserAddressList: `/emis/emisCustomerAddress/listSimple`, // 获取客户地址列表
|
||||||
|
getPickStaffList: `/emis/emisStaff/getPickStaffList`, // 获取取件员用户列表
|
||||||
|
getGoodsList: `/emis/emisGoods/listSimple`, // 获取货物列表
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,3 +3,8 @@ export const USERKEY = {
|
|||||||
GETUSERINFO: "GETUSERINFO",
|
GETUSERINFO: "GETUSERINFO",
|
||||||
LOGOUT: "LOGOUT",
|
LOGOUT: "LOGOUT",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const COMMONKEY = {
|
||||||
|
GETDIST: 'GETDIST'
|
||||||
|
}
|
||||||
@ -1,4 +1,5 @@
|
|||||||
import user from "./modules/user"
|
import user from "./modules/user"
|
||||||
|
import common from "./modules/common"
|
||||||
|
|
||||||
// #ifndef VUE3
|
// #ifndef VUE3
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
@ -12,7 +13,8 @@ import { createStore } from 'vuex'
|
|||||||
const store = createStore({
|
const store = createStore({
|
||||||
// #endif
|
// #endif
|
||||||
modules: {
|
modules: {
|
||||||
user
|
user,
|
||||||
|
common
|
||||||
},
|
},
|
||||||
state: {
|
state: {
|
||||||
hasLogin: false,
|
hasLogin: false,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user