Commit 7f0d87d4 authored by Aivs's avatar Aivs

feat:接口对接,切换到行知探索的企业微信配置

parent 78a4e998
import axios from 'axios' import axios from 'axios'
import qs from 'qs'
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded';
// 后端地址 // 后端地址
// const baseURL = 'http://192.168.30.239:5000' // const baseURL = 'http://192.168.30.239:5000'
...@@ -96,5 +98,30 @@ export const unlinkData = async (params:any) => { ...@@ -96,5 +98,30 @@ export const unlinkData = async (params:any) => {
}) })
return response.data; return response.data;
} }
//获取标签
export const getWxLabel = async (params:any) => {
const response = await api.get('/user_center/getWxLabel', {
params
})
return response.data;
}
// 创建标签
export const addWxLabel = async (params:any) => {
const response = await api.get('/user_center/addWxLabel', {
params
})
return response.data;
}
// 删除
export const deleteWxLabel = async (data:any) => {
const response = await api.post('/user_center/deleteWxLabel',
[...data]
)
return response.data;
}
// 更新用户信息
export const updateBaseInfoFromCompanyWx = async (data:any) => {
const response = await api.post('/user_center/updateBaseInfoFromCompanyWx', data)
return response.data;
}
export default api export default api
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
padding:0 10px; padding:0 10px;
line-height: 24px; line-height: 24px;
margin-right:10px; margin-right:10px;
margin-bottom:10px;
} }
.grey{ .grey{
width:100%; width:100%;
...@@ -131,6 +132,7 @@ ...@@ -131,6 +132,7 @@
border-radius: 4px !important; border-radius: 4px !important;
height: 25px !important; height: 25px !important;
line-height: 24px !important; line-height: 24px !important;
margin-bottom:10px !important
} }
.labelAdd{ .labelAdd{
border-bottom: 1px solid #F3F3F3; border-bottom: 1px solid #F3F3F3;
...@@ -144,6 +146,7 @@ ...@@ -144,6 +146,7 @@
align-items: center; align-items: center;
margin-right:10px; margin-right:10px;
border-radius: 4px; border-radius: 4px;
border:0 !important;
} }
.innerline{ .innerline{
width: 16px; width: 16px;
...@@ -232,3 +235,25 @@ ...@@ -232,3 +235,25 @@
font-size: 17px; font-size: 17px;
margin-bottom:18px; margin-bottom:18px;
} }
.save{
background-color: #e55151!important;
border-color:#e55151 !important;
}
.border0{
border: 1px solid rgba(1,113,194,.4)!important;
}
.border1{
border: 1px solid #038924 !important;
}
.border2{
border: 1px solid #F7B500 !important;
}
.border3{
border: 1px solid #C21C07 !important;
}
.border4{
border: 1px solid #8C8C8C !important;
}
.none{
display: none;
}
\ No newline at end of file
...@@ -23,7 +23,7 @@ const initSdk = async (config: Config, getSignatures: GetSignatures) => { ...@@ -23,7 +23,7 @@ const initSdk = async (config: Config, getSignatures: GetSignatures) => {
const configRes = await jsSdk.config({ const configRes = await jsSdk.config({
beta: true, beta: true,
debug: false, debug: false,
appId: 'ww25792c97eaa37ba7', appId: corpId,
timestamp: signaturesRes.meta.timestamp, timestamp: signaturesRes.meta.timestamp,
nonceStr: signaturesRes.meta.noncestr, nonceStr: signaturesRes.meta.noncestr,
signature: signaturesRes.corp.signature, signature: signaturesRes.corp.signature,
......
This diff is collapsed.
...@@ -112,6 +112,7 @@ const Actions: React.FC = () => { ...@@ -112,6 +112,7 @@ const Actions: React.FC = () => {
}, [msg]) }, [msg])
const getUserBase = async () => { const getUserBase = async () => {
const res = await jsSdk.invoke<{ userId?: string }>('getCurExternalContact', {}) const res = await jsSdk.invoke<{ userId?: string }>('getCurExternalContact', {})
console.log(res)
if (!res || !res.userId) return if (!res || !res.userId) return
let data:any = {...listQuery} let data:any = {...listQuery}
data.wxId=res.userId data.wxId=res.userId
......
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