-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,362 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<el-tooltip | ||
effect="dark" | ||
:content="`<p>${$t('common.message.helpWechat')}: yuxingzou</p><p>${$t( | ||
'common.message.helpWechat2' | ||
)}: sunbitty</p>`" | ||
placement="top-start" | ||
raw-content | ||
> | ||
<el-button class="button"> | ||
<font-awesome-icon icon="fa-solid fa-question" /> | ||
</el-button> | ||
</el-tooltip> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { ElTooltip, ElButton } from 'element-plus'; | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; | ||
export default defineComponent({ | ||
name: 'HelpEntry', | ||
components: { | ||
ElTooltip, | ||
ElButton, | ||
FontAwesomeIcon | ||
} | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.button { | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 10px; | ||
border: none; | ||
background-color: var(--el-bg-color-page); | ||
&.active, | ||
&:hover, | ||
&:focus { | ||
background-color: var(--el-button-hover-bg-color); | ||
color: var(--el-button-active-text-color); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
detail: '查看详情', | ||
withdrawal: '提现' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default { | ||
id: '分销ID', | ||
percentage: '分成比例', | ||
price: '订单金额', | ||
reward: '分销奖励', | ||
createdAt: '分销时间', | ||
level: '级别', | ||
threshold: '分销门槛', | ||
inviteeId: '邀请人ID', | ||
isVerified: '是否实名', | ||
userId: '用户ID' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import field from './field'; | ||
import title from './title'; | ||
import message from './message'; | ||
import button from './button'; | ||
|
||
export default { | ||
field, | ||
title, | ||
message, | ||
button | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default { | ||
deltaPriceForNextLevel: '距离下一级别还差', | ||
developingWithDrawal: '提现功能正在加急开发中,敬请期待!', | ||
howToWithdrawal: '请添加客服处理提现,提现需扣除 5% 的所得税,提供发票可进行抵扣', | ||
technicalDetail: '技术细节', | ||
distributionQrDescription: '分销二维码(内容同链接)', | ||
distributionDescription: | ||
'您可通过链接邀请新客户注册,该客户会永久绑定为您的下级客户,该客户在该平台的所有消费订单会按照当前分成比例返还到您的账户中,并随时可提现。', | ||
distributionLinkDescription: | ||
'如果客户通过该链接或二维码注册本平台,该客户将永久被绑定为您的下级客户,该客户在该平台的所有消费订单会按照当前分成比例返还到您的账户中。', | ||
distributionLinkDescription2: | ||
'该链接中包含您的用户 ID,客户打开链接之后您的用户 ID 将以 Cookies 形式记录到客户的浏览器,有效期七天。在七天内,如果客户扫码注册本平台,您的用户 ID 将会随着 Cookies 上传至注册服务器,该客户便可绑定成为您的下游客户。' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default { | ||
price: '分销订单总金额', | ||
reward: '分销总奖励', | ||
level: '分销级别', | ||
percentage: '分成比例', | ||
currentLevel: '当前级别', | ||
nextLevel: '下一级别', | ||
currentPercentage: '当前分成比例', | ||
nextPercentage: '下级分成比例', | ||
levelInfo: '级别信息', | ||
distributionLink: '分销链接', | ||
inviteesCount: '累计邀请人数' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
id: '用户ID', | ||
isVerified: '是否实名', | ||
nickname: '昵称', | ||
username: '用户名', | ||
dateJoined: '注册时间' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import field from './field'; | ||
|
||
export default { | ||
field | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './operator'; | ||
export * from './models'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { IOrder } from '../order'; | ||
|
||
export interface IDistributionHistory { | ||
id: string; | ||
user_id: string; | ||
invitee_id: string; | ||
order?: IOrder; | ||
order_id?: string; | ||
price: number; | ||
reward: number; | ||
percentage: number; | ||
created_at?: string; | ||
updated_at?: string; | ||
} | ||
|
||
export interface IDistributionLevel { | ||
id: string; | ||
level: number; | ||
threshold: number; | ||
percentage: number; | ||
created_at?: string; | ||
updated_at?: string; | ||
} | ||
|
||
export interface IDistributionStatus { | ||
id: string; | ||
user_id: string; | ||
price: number; | ||
reward: number; | ||
level_id?: string; | ||
level?: IDistributionLevel; | ||
percentage: number; | ||
created_at?: string; | ||
updated_at?: string; | ||
} | ||
|
||
export interface IDistributionStatusListResponse { | ||
count: number; | ||
items: IDistributionStatus[]; | ||
} | ||
|
||
export type IDistributionStatusDetailResponse = IDistributionStatus; | ||
|
||
export interface IDistributionHistoryListResponse { | ||
count: number; | ||
items: IDistributionHistory[]; | ||
} | ||
|
||
export type IDistributionHistoryDetailResponse = IDistributionHistory; | ||
|
||
export interface IDistributionLevelListResponse { | ||
count: number; | ||
items: IDistributionLevel[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { AxiosResponse } from 'axios'; | ||
import { httpClient } from '../instance'; | ||
import { | ||
IDistributionHistoryListResponse, | ||
IDistributionLevelListResponse, | ||
IDistributionStatusDetailResponse, | ||
IDistributionStatusListResponse | ||
} from './models'; | ||
|
||
export interface IDistributionHistoryQuery { | ||
user_id?: string; | ||
offset?: number; | ||
limit?: number; | ||
ordering: string; | ||
} | ||
|
||
class DistributionHistoryService { | ||
key = 'distribution-histories'; | ||
|
||
async getAll(query: IDistributionHistoryQuery): Promise<AxiosResponse<IDistributionHistoryListResponse>> { | ||
return await httpClient.get(`/${this.key}/`, { | ||
params: query | ||
}); | ||
} | ||
} | ||
|
||
export const distributionHistoryOperator = new DistributionHistoryService(); | ||
|
||
export interface IDistributionStatusQuery { | ||
user_id?: string; | ||
} | ||
|
||
class DistributionStatusService { | ||
key = 'distribution-statuses'; | ||
|
||
async getAll(query: IDistributionStatusQuery): Promise<AxiosResponse<IDistributionStatusListResponse>> { | ||
return await httpClient.get(`/${this.key}/`, { | ||
params: query | ||
}); | ||
} | ||
|
||
async initialize(): Promise<AxiosResponse<IDistributionStatusDetailResponse>> { | ||
return await httpClient.post(`/${this.key}/initialize/`); | ||
} | ||
} | ||
|
||
export const distributionStatusOperator = new DistributionStatusService(); | ||
|
||
class DistributionLevelService { | ||
key = 'distribution-levels'; | ||
|
||
async getAll(): Promise<AxiosResponse<IDistributionLevelListResponse>> { | ||
return await httpClient.get(`/${this.key}/`); | ||
} | ||
} | ||
|
||
export const distributionLevelOperator = new DistributionLevelService(); |
Oops, something went wrong.