|
@@ -0,0 +1,76 @@
|
|
|
|
+import request from '../index'
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 获取用户大会员、超级订阅权限等信息
|
|
|
|
+ * @type {post}
|
|
|
|
+ */
|
|
|
|
+export function ajaxGetUserPower() {
|
|
|
|
+ return request({
|
|
|
|
+ url: '/bigmember/use/isAdd',
|
|
|
|
+ method: 'post'
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 获取用户头像、昵称等信息
|
|
|
|
+ * @type {post}
|
|
|
|
+ */
|
|
|
|
+export function ajaxGetUserInfo() {
|
|
|
|
+ return request({
|
|
|
|
+ url: '/jypay/user/getSimpleData',
|
|
|
|
+ method: 'post'
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 退出登录
|
|
|
|
+ * @type {post}
|
|
|
|
+ * @param data
|
|
|
|
+ */
|
|
|
|
+export function ajaxSetSignOut(data) {
|
|
|
|
+ return request({
|
|
|
|
+ url: '/front/signOut',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 检查是否登录状态
|
|
|
|
+ * @type {post}
|
|
|
|
+ * @param data
|
|
|
|
+ */
|
|
|
|
+export function ajaxCheckUserLoginStatus(data) {
|
|
|
|
+ return request({
|
|
|
|
+ url: '/front/hasSign',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 获取用户身份列表
|
|
|
|
+ * @type {post}
|
|
|
|
+ */
|
|
|
|
+export function ajaxGetIdentityList() {
|
|
|
|
+ return request({
|
|
|
|
+ url: '/publicapply/identity/list',
|
|
|
|
+ method: 'post'
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 根据Token切换用户身份
|
|
|
|
+ * @type {post}
|
|
|
|
+ * @param data.token - 选中身份对应的Token
|
|
|
|
+ */
|
|
|
|
+export function ajaxSwitchIdentity(data) {
|
|
|
|
+ return request({
|
|
|
|
+ url: '/publicapply/identity/switch',
|
|
|
|
+ method: 'post',
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'multipart/form-data'
|
|
|
|
+ },
|
|
|
|
+ data
|
|
|
|
+ })
|
|
|
|
+}
|