12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import request from './request';
- //查询省
- export const getProvince = () => {
- return request({
- url: `area/PROVINCE`,
- method: 'get'
- })
- }
- //查询市
- export const getCityByPro = params => {
- return request({
- url: `area/CITY/${params.id}`,
- method: 'get'
- })
- }
- //查询区
- export const getDistrictByCity = params => {
- return request({
- url: `area/DISTRICT/${params.id}`,
- method: 'get'
- })
- }
- // 查询用户头像和昵称是否已存在
- export const findWxUserInfo = (params) => {
- return request({
- url: `wxuser/findWxUserInfo`,
- method: 'post',
- data:params
- }).then(res=>res.data)
- }
- // 更新用户头像和昵称信息
- export const wxUserUpdate = (params) => {
- return request({
- url: `wxuser/update`,
- method: 'post',
- data:params
- }).then(res=>res.data)
- }
- // 获取用户信息
- export const getCurrUserInfo = (params) => {
- return request({
- url: 'employee/findCurrent',
- data:params,
- method: 'get'
- })
- }
- // 根据字典code查询选项
- export const getLookUpDatas = (params) => {
- return request({
- url: `lookup/findByLookup/${params.type}`,
- method: 'get'
- })
- }
- // 根据字典code查询所有数据
- export const getAllLookUpDatas = (params) => {
- return request({
- url: `lookup/findAllByLookup/${params.type}`,
- method: 'get'
- })
- }
- // 查询所有数据字典
- export const listLookUp = (params) => {
- let url = `lookup/findAll`
- return request({
- url: url,
- method: 'post'
- })
- }
- // 发送验证码
- export const sendPhoneVerifyCode = (params) => {
- let url = `mobileVerifyCode/sendCode`
- return request({
- url: url,
- data: params,
- method: 'post'
- })
- }
- // 验证验证码输入是否正确
- export const verifyPhoneCode = (params) => {
- let url = `mobileVerifyCode/verifyCode`
- return request({
- url: url,
- data: params,
- method: 'post'
- })
- }
|