Skip to content

Commit f545dcc

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 09d1dbe + 6f47069 commit f545dcc

File tree

76 files changed

+4191
-2401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+4191
-2401
lines changed

pnpm-lock.yaml

Lines changed: 1280 additions & 1280 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/ai/mindmap/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getAccessToken } from '@/utils/auth'
22
import { fetchEventSource } from '@microsoft/fetch-event-source'
33
import { config } from '@/config/axios/config'
4-
import request from '@/config/axios'
4+
import request from '@/config/axios' // AI 思维导图 VO
55

66
// AI 思维导图 VO
77
export interface MindMapVO {

src/api/mall/promotion/combination/combinationActivity.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface CombinationActivityVO {
1616
virtualGroup?: number
1717
status?: number
1818
limitDuration?: number
19+
combinationPrice?: number
1920
products: CombinationProductVO[]
2021
}
2122

@@ -36,7 +37,7 @@ export interface SpuExtension extends Spu {
3637
}
3738

3839
// 查询拼团活动列表
39-
export const getCombinationActivityPage = async (params) => {
40+
export const getCombinationActivityPage = async (params: any) => {
4041
return await request.get({ url: '/promotion/combination-activity/page', params })
4142
}
4243

@@ -45,6 +46,11 @@ export const getCombinationActivity = async (id: number) => {
4546
return await request.get({ url: '/promotion/combination-activity/get?id=' + id })
4647
}
4748

49+
// 获得拼团活动列表,基于活动编号数组
50+
export const getCombinationActivityListByIds = (ids: number[]) => {
51+
return request.get({ url: `/promotion/combination-activity/list-by-ids?ids=${ids}` })
52+
}
53+
4854
// 新增拼团活动
4955
export const createCombinationActivity = async (data: CombinationActivityVO) => {
5056
return await request.post({ url: '/promotion/combination-activity/create', data })

src/api/mall/promotion/coupon/couponTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function getCouponTemplatePage(params: PageParam) {
7474
}
7575

7676
// 获得优惠劵模板分页
77-
export function getCouponTemplateList(ids: number[]) {
77+
export function getCouponTemplateList(ids: number[]): Promise<CouponTemplateVO[]> {
7878
return request.get({
7979
url: `/promotion/coupon-template/list?ids=${ids}`
8080
})

src/api/mall/promotion/reward/rewardActivity.ts

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,39 @@
11
import request from '@/config/axios'
22

3-
export interface DiscountActivityVO {
3+
export interface RewardActivityVO {
44
id?: number
55
name?: string
66
startTime?: Date
77
endTime?: Date
8+
startAndEndTime?: Date[] // 只前端使用
89
remark?: string
910
conditionType?: number
1011
productScope?: number
12+
rules: RewardRule[]
13+
// 如下仅用于表单,不提交
14+
productScopeValues?: number[] // 商品范围:值为品类编号列表、商品编号列表
15+
productCategoryIds?: number[]
1116
productSpuIds?: number[]
12-
rules?: DiscountProductVO[]
1317
}
1418

1519
// 优惠规则
16-
export interface DiscountProductVO {
17-
limit: number
18-
discountPrice: number
19-
freeDelivery: boolean
20+
export interface RewardRule {
21+
limit?: number
22+
discountPrice?: number
23+
freeDelivery?: boolean
2024
point: number
21-
couponIds: number[]
22-
couponCounts: number[]
25+
giveCouponTemplateCounts?: {
26+
[key: number]: number
27+
}
2328
}
2429

2530
// 新增满减送活动
26-
export const createRewardActivity = async (data: DiscountActivityVO) => {
31+
export const createRewardActivity = async (data: RewardActivityVO) => {
2732
return await request.post({ url: '/promotion/reward-activity/create', data })
2833
}
2934

3035
// 更新满减送活动
31-
export const updateRewardActivity = async (data: DiscountActivityVO) => {
36+
export const updateRewardActivity = async (data: RewardActivityVO) => {
3237
return await request.put({ url: '/promotion/reward-activity/update', data })
3338
}
3439

src/api/mall/promotion/seckill/seckillActivity.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export interface SeckillActivityVO {
1818
singleLimitCount?: number
1919
stock?: number
2020
totalStock?: number
21+
seckillPrice?: number
2122
products?: SeckillProductVO[]
2223
}
2324

@@ -43,6 +44,11 @@ export const getSeckillActivityPage = async (params) => {
4344
return await request.get({ url: '/promotion/seckill-activity/page', params })
4445
}
4546

47+
// 查询秒杀活动列表,基于活动编号数组
48+
export const getSeckillActivityListByIds = (ids: number[]) => {
49+
return request.get({ url: `/promotion/seckill-activity/list-by-ids?ids=${ids}` })
50+
}
51+
4652
// 查询秒杀活动详情
4753
export const getSeckillActivity = async (id: number) => {
4854
return await request.get({ url: '/promotion/seckill-activity/get?id=' + id })

src/api/member/user/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,3 @@ export const updateUserLevel = async (data: any) => {
4646
export const updateUserPoint = async (data: any) => {
4747
return await request.put({ url: `/member/user/update-point`, data })
4848
}
49-
50-
// 修改会员用户余额
51-
export const updateUserBalance = async (data: any) => {
52-
return await request.put({ url: `/member/user/update-balance`, data })
53-
}

src/api/pay/wallet/balance/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import request from '@/config/axios'
44
export interface PayWalletUserReqVO {
55
userId: number
66
}
7+
78
/** 钱包 VO */
89
export interface WalletVO {
910
id: number
@@ -20,7 +21,12 @@ export const getWallet = async (params: PayWalletUserReqVO) => {
2021
return await request.get<WalletVO>({ url: `/pay/wallet/get`, params })
2122
}
2223

23-
// 查询会员钱包列表
24-
export const getWalletPage = async (params) => {
24+
/** 查询会员钱包列表 */
25+
export const getWalletPage = async (params: any) => {
2526
return await request.get({ url: `/pay/wallet/page`, params })
2627
}
28+
29+
/** 修改会员钱包余额 */
30+
export const updateWalletBalance = async (data: any) => {
31+
return await request.put({ url: `/pay/wallet/update-balance`, data })
32+
}

src/components/DictTag/src/DictTag.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script lang="tsx">
2-
import { defineComponent, PropType, computed } from 'vue'
2+
import { computed, defineComponent, PropType } from 'vue'
33
import { isHexColor } from '@/utils/color'
44
import { ElTag } from 'element-plus'
55
import { DictDataType, getDictOptions } from '@/utils/dict'
6-
import { isArray, isString, isNumber, isBoolean } from '@/utils/is'
6+
import { isArray, isBoolean, isNumber, isString } from '@/utils/is'
77
88
export default defineComponent({
99
name: 'DictTag',

src/components/DiyEditor/components/mobile/FloatingActionButton/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ defineOptions({ name: 'FloatingActionButton' })
4444
defineProps<{ property: FloatingActionButtonProperty }>()
4545
4646
// 是否展开
47-
const expanded = ref(true)
47+
const expanded = ref(false)
4848
// 处理展开/折叠
4949
const handleToggleFab = () => {
5050
expanded.value = !expanded.value

0 commit comments

Comments
 (0)