1 line
2.9 KiB
Plaintext
1 line
2.9 KiB
Plaintext
{"version":3,"file":"social.js","sources":["../../../../../../src/sheep/api/member/social.js"],"sourcesContent":["import request from '@/sheep/request'\r\n\r\nconst SocialApi = {\r\n // 获得社交用户\r\n getSocialUser: (type) => {\r\n return request({\r\n url: '/member/social-user/get',\r\n method: 'GET',\r\n params: {\r\n type,\r\n },\r\n custom: {\r\n showLoading: false,\r\n },\r\n })\r\n },\r\n // 社交绑定\r\n socialBind: (type, code, state) => {\r\n return request({\r\n url: '/member/social-user/bind',\r\n method: 'POST',\r\n data: {\r\n type,\r\n code,\r\n state,\r\n },\r\n custom: {\r\n custom: {\r\n showSuccess: true,\r\n loadingMsg: '绑定中',\r\n successMsg: '绑定成功',\r\n },\r\n },\r\n })\r\n },\r\n // 社交绑定\r\n socialUnbind: (type, openid) => {\r\n return request({\r\n url: '/member/social-user/unbind',\r\n method: 'DELETE',\r\n data: {\r\n type,\r\n openid,\r\n },\r\n custom: {\r\n showLoading: false,\r\n loadingMsg: '解除绑定',\r\n successMsg: '解绑成功',\r\n },\r\n })\r\n },\r\n // 获取订阅消息模板列表\r\n getSubscribeTemplateList: () =>\r\n request({\r\n url: '/member/social-user/get-subscribe-template-list',\r\n method: 'GET',\r\n custom: {\r\n showError: false,\r\n showLoading: false,\r\n },\r\n }),\r\n // 获取微信小程序码\r\n getWxaQrcode: async (path, query) => {\r\n return await request({\r\n url: '/member/social-user/wxa-qrcode',\r\n method: 'POST',\r\n data: {\r\n scene: query,\r\n path,\r\n checkPath: false, // TODO 开发环境暂不检查 path 是否存在\r\n },\r\n })\r\n },\r\n}\r\n\r\nexport default SocialApi\r\n"],"names":["request"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEK,MAAC,YAAY;AAAA;AAAA,EAEhB,eAAe,CAAC,SAAS;AACvB,WAAOA,4BAAQ;AAAA,MACb,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ;AAAA,QACN;AAAA,MACD;AAAA,MACD,QA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