|
@@ -54,11 +54,8 @@ export function cloud_card(data) {
|
|
|
* 云卡有效期查询(查询)
|
|
|
*/
|
|
|
export function cloud_cardTtl(data) {
|
|
|
- const params = Object.keys(data)
|
|
|
- .map((key) => key + '=' + encodeURIComponent(data[key]))
|
|
|
- .join('&')
|
|
|
return request({
|
|
|
- url: `/api/wechat/front/cloud_card/ttl?${params}`,
|
|
|
+ url: `/api/wechat/front/cloud_card/ttl?${qs.stringify(data)}`,
|
|
|
method: 'post',
|
|
|
data,
|
|
|
})
|
|
@@ -76,116 +73,6 @@ export function apiUserInfo(data) {
|
|
|
}
|
|
|
|
|
|
|
|
|
- * apiOrgList
|
|
|
- */
|
|
|
-export function apiOrgList(data) {
|
|
|
- return request({
|
|
|
- url: `/api/wechat/front/common/wechatPublicOrgList`,
|
|
|
- method: 'get',
|
|
|
- params: data,
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * apiServesList
|
|
|
- */
|
|
|
-export function apiServesList(data) {
|
|
|
- return request({
|
|
|
- url: `/api/wechat/front/common/serves`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * apiIndexServes
|
|
|
- */
|
|
|
-export function apiIndexServes(data) {
|
|
|
- return request({
|
|
|
- url: `/api/wechat/front/common/indexServes`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * apiUserSign
|
|
|
- */
|
|
|
-export function apiUserSign(data) {
|
|
|
- return request({
|
|
|
- url: `/api/wechat/front/login`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * apiUserCode
|
|
|
- */
|
|
|
-export function apiUserCode(data) {
|
|
|
- return request({
|
|
|
- url: `/api/wechat/front/smsCode`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * apiUserOtherInfo
|
|
|
- */
|
|
|
-export function apiUserOtherInfo(data) {
|
|
|
- return request({
|
|
|
- url: `/api/organisation/wechat/front/user/getOtherUserInfo`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * apiGetRecommendInfo
|
|
|
- */
|
|
|
-export function apiGetRecommendInfo(data) {
|
|
|
- return request({
|
|
|
- url: `/api/wechat/front/common/getRecommendInfo`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * apiGetNoticeList
|
|
|
- */
|
|
|
-export function apiGetNoticeList(data) {
|
|
|
- return request({
|
|
|
- url: `${getAPI('origin')}/super_service/wechat/notice/noticeList`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * apiGetBannerList
|
|
|
- */
|
|
|
-export function apiGetBannerList(data) {
|
|
|
- return request({
|
|
|
- url: `${getAPI('origin')}/super_service/wechat/notice/bannerList`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * changeMobile
|
|
|
- */
|
|
|
-export function changeMobile(data) {
|
|
|
- return request({
|
|
|
- url: `/api/wechat/front/changeMobile`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
* logout
|
|
|
*/
|
|
|
export function logout(data) {
|
|
@@ -197,82 +84,6 @@ export function logout(data) {
|
|
|
}
|
|
|
|
|
|
|
|
|
- * getBanner
|
|
|
- */
|
|
|
-export function getBanner(data) {
|
|
|
- return request({
|
|
|
- url: `/api/notify/wechat/notice/getBanner`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * 企业邀请码
|
|
|
- */
|
|
|
-export function getCompInviteURL(data) {
|
|
|
- return request({
|
|
|
- url: `/api/wechat/front/common/getCompInviteURL`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * addUserToVir
|
|
|
- */
|
|
|
-export function addUserToVir(data) {
|
|
|
- return request({
|
|
|
- url: `/api/organisation/wechat/front/user/addUserToVir`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * 加入企业
|
|
|
- */
|
|
|
-export function addVirWhiteUser(data) {
|
|
|
- return request({
|
|
|
- url: `/api/organisation/wechat/front/user/addVirWhiteUser`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * getEnterVirInfo
|
|
|
- */
|
|
|
-export function getEnterVirInfo(data) {
|
|
|
- return request({
|
|
|
- url: `/api/organisation/wechat/front/user/getVirInfo`,
|
|
|
- method: 'post',
|
|
|
- data: qs.stringify(data),
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
- * 获取企业列表
|
|
|
- */
|
|
|
-export function getVirSelectList(key, data) {
|
|
|
- return request({
|
|
|
- url: `/api/organisation/wechat/front/user/getVirSelectList/${key}`,
|
|
|
- method: 'get',
|
|
|
- params: data,
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * getVirAndUser
|
|
|
- */
|
|
|
-export function getVirAndUser(key, data) {
|
|
|
- return request({
|
|
|
- url: `/api/organisation/wechat/front/user/getVirAndUser/${key}`,
|
|
|
- method: 'get',
|
|
|
- params: data,
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
* 微信签名权限验证接口
|
|
|
*/
|
|
|
export function getFenXiang(data) {
|
|
@@ -322,26 +133,9 @@ export function getWxConfig() {
|
|
|
}
|
|
|
|
|
|
export default {
|
|
|
-
|
|
|
cloud_card,
|
|
|
cloud_cardTtl,
|
|
|
apiUserInfo,
|
|
|
- apiOrgList,
|
|
|
- apiServesList,
|
|
|
- apiIndexServes,
|
|
|
- apiUserSign,
|
|
|
- apiUserCode,
|
|
|
- apiUserOtherInfo,
|
|
|
- apiGetRecommendInfo,
|
|
|
- apiGetNoticeList,
|
|
|
- apiGetBannerList,
|
|
|
- getCompInviteURL,
|
|
|
- addUserToVir,
|
|
|
- addVirWhiteUser,
|
|
|
- getEnterVirInfo,
|
|
|
- getVirSelectList,
|
|
|
- getVirAndUser,
|
|
|
- changeMobile,
|
|
|
logout,
|
|
|
|
|
|
getFenXiang,
|