UNPKG

@tplc/business

Version:

71 lines (65 loc) 1.67 kB
import { LcbActionViewProps } from '../../lcb-action-view/types' import { ActionView } from '../../../action' import { ButtonProps } from '@tplc/wot/types/components/wd-button/types' export interface PageBtnProps { buttonList: IPageBtn[] size?: 'small' | 'medium' | 'large' } export interface IPageBtn { buttonKey: string buttonName: string buttonType: number popUpFlag: boolean popUpTip: string content: string requestParam?: RequestParam jumpType?: 1 | 2 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 88 jumpUrl: string requestUrl: string jumpPage?: string styleContent: StyleContent2 buttonProps?: ButtonProps } interface StyleContent2 { buttonType: string style: Style } interface Style { width: string } interface RequestParam { orderNo: string } export interface CurrentRightsDetail { coverImg: string effectiveDate: string sumPoint: number upgradeTips: string usePoint: number usedPoint: number userLevelName: string userLevelRightsList: UserLevelRightsList[] waitPoint: number button?: LcbActionViewProps & { buttonName: string } } export interface UserLevelRightsList extends ActionView { categoryId: string categoryName: string categoryTags: string icon: string userRightsConfigId: string userRightsContent: string buttonList: IPageBtn[] userRightsSubTitle: string userRightsTitle: string link: LcbActionViewProps userRightsType: string weightSort: string qrCode: string qrCodeTips: string otherConfig: { textColor: string } } export const currentRightsDetail = () => uni.$lcb.http.post<CurrentRightsDetail>('/userLevel/currentRightsDetail')