Compare commits
No commits in common. "master" and "sjy" have entirely different histories.
@ -1,66 +0,0 @@
|
||||
kind: pipeline # 定义对象类型,还有secret和signature两种类型
|
||||
|
||||
type: docker # 定义流水线类型,还有kubernetes、exec、ssh等类型
|
||||
|
||||
name: filesystem-drone # 定义流水线名称
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
|
||||
- name: build-copy-vue
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
|
||||
settings:
|
||||
|
||||
host: 101.43.112.107 # 远程连接地址
|
||||
|
||||
username: root # 远程连接账号
|
||||
|
||||
password:
|
||||
|
||||
from_secret: ssh_password
|
||||
|
||||
port: 22 # 远程连接端口
|
||||
command_timeout: 20m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
- ssh root@47.118.40.3 "sh -c 'cd /build_project/allLikeMall/yudao-admin-vue3 && git pull origin master && /usr/bin/pnpm install && /usr/bin/pnpm run build:prod && zip -r dist-prod.zip dist-prod'"
|
||||
- scp root@47.118.40.3:/build_project/allLikeMall/yudao-admin-vue3/dist-prod.zip /build_package/
|
||||
- scp /build_package/dist-prod.zip root@1.14.205.126:/build_package/
|
||||
- name: build-java-and-vue
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
|
||||
settings:
|
||||
|
||||
host: 1.14.205.126 # 远程连接地址
|
||||
|
||||
username: root # 远程连接账号
|
||||
|
||||
password:
|
||||
|
||||
from_secret: ssh_password # 从Secret中读取SSH密码
|
||||
|
||||
port: 22 # 远程连接端口
|
||||
|
||||
command_timeout: 30m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
- echo "build-java......"
|
||||
- cd /root/allLikeMall
|
||||
- git fetch origin
|
||||
- git reset --hard origin/master
|
||||
- git clean -fd
|
||||
- /root/apache-maven-3.9.4/bin/mvn package -Dmaven.test.skip=true
|
||||
- cd yudao-server
|
||||
- chmod +x all.sh
|
||||
- ./all.sh
|
||||
- echo "build-vue......"
|
||||
- cd /build_package
|
||||
- rm -rf dist-prod
|
||||
- unzip dist-prod.zip
|
||||
- rm -rf /root/nginx/html/mall
|
||||
- mv dist-prod /root/nginx/html/mall
|
||||
|
@ -1,69 +0,0 @@
|
||||
kind: pipeline # 定义对象类型,还有secret和signature两种类型
|
||||
|
||||
type: docker # 定义流水线类型,还有kubernetes、exec、ssh等类型
|
||||
|
||||
name: filesystem-drone # 定义流水线名称
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
|
||||
- name: package-and-push-image
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
|
||||
settings:
|
||||
|
||||
host: 101.43.112.107 # 远程连接地址
|
||||
|
||||
username: root # 远程连接账号
|
||||
|
||||
password:
|
||||
|
||||
from_secret: ssh_password # 从Secret中读取SSH密码
|
||||
|
||||
port: 22 # 远程连接端口
|
||||
|
||||
command_timeout: 10m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
- cd /root/allLikeMall
|
||||
- git fetch origin
|
||||
- git reset --hard origin/master
|
||||
- git clean -fd
|
||||
- /root/apache-maven-3.9.4/bin/mvn package -Dmaven.test.skip=true
|
||||
- cd yudao-server
|
||||
- chmod +x push.sh
|
||||
- ./push.sh
|
||||
- scp run.sh root@1.14.205.126:/zymail/build
|
||||
# - ls
|
||||
# - scp -r /zymail/maven/build root@1.14.205.126:/zymail
|
||||
# - ssh root@1.14.205.126
|
||||
# - ls
|
||||
|
||||
# - chmod +x run.sh # 更改为可执行脚本
|
||||
|
||||
# - ./run.sh # 运行脚本打包应用镜像并运行
|
||||
- name: build-start
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
|
||||
settings:
|
||||
|
||||
host: 1.14.205.126 # 远程连接地址
|
||||
|
||||
username: root # 远程连接账号
|
||||
|
||||
password:
|
||||
|
||||
from_secret: ssh_password # 从Secret中读取SSH密码
|
||||
|
||||
port: 22 # 远程连接端口
|
||||
|
||||
command_timeout: 30m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
# - ls
|
||||
- cd /zymail/build
|
||||
- chmod +x run.sh # 更改为可执行脚本
|
||||
- ./run.sh # 运行脚本打包应用镜像并运行
|
@ -1,27 +0,0 @@
|
||||
kind: pipeline # 定义对象类型,还有secret和signature两种类型
|
||||
type: docker # 定义流水线类型,还有kubernetes、exec、ssh等类型
|
||||
name: filesystem-drone # 定义流水线名称
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
- name: build-java
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
settings:
|
||||
host: 1.14.205.126 # 远程连接地址
|
||||
username: root # 远程连接账号
|
||||
password:
|
||||
from_secret: ssh_password # 从Secret中读取SSH密码
|
||||
port: 22 # 远程连接端口
|
||||
command_timeout: 30m # 远程执行命令超时时间
|
||||
script:
|
||||
- echo "build-java......"
|
||||
- cd /root/allLikeMall
|
||||
- git fetch origin
|
||||
- git reset --hard origin/master
|
||||
- git clean -fd
|
||||
- /root/apache-maven-3.9.4/bin/mvn package -Dmaven.test.skip=true
|
||||
- cd yudao-server
|
||||
- chmod +x all.sh
|
||||
- ./all.sh
|
@ -1,57 +0,0 @@
|
||||
kind: pipeline # 定义对象类型,还有secret和signature两种类型
|
||||
|
||||
type: docker # 定义流水线类型,还有kubernetes、exec、ssh等类型
|
||||
|
||||
name: filesystem-drone # 定义流水线名称
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
|
||||
- name: build-copy-vue
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
|
||||
settings:
|
||||
|
||||
host: 101.43.112.107 # 远程连接地址
|
||||
|
||||
username: root # 远程连接账号
|
||||
|
||||
password:
|
||||
|
||||
from_secret: ssh_password
|
||||
|
||||
port: 22 # 远程连接端口
|
||||
command_timeout: 20m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
- ssh root@47.118.40.3 "sh -c 'cd /build_project/allLikeMall/yudao-admin-vue3 && git pull origin master && /usr/bin/pnpm install && /usr/bin/pnpm run build:prod && zip -r dist-prod.zip dist-prod'"
|
||||
- scp root@47.118.40.3:/build_project/allLikeMall/yudao-admin-vue3/dist-prod.zip /build_package/
|
||||
- scp /build_package/dist-prod.zip root@1.14.205.126:/build_package/
|
||||
- name: build-vue
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
|
||||
settings:
|
||||
|
||||
host: 1.14.205.126 # 远程连接地址
|
||||
|
||||
username: root # 远程连接账号
|
||||
|
||||
password:
|
||||
|
||||
from_secret: ssh_password # 从Secret中读取SSH密码
|
||||
|
||||
port: 22 # 远程连接端口
|
||||
|
||||
command_timeout: 30m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
- echo "build-vue......"
|
||||
- cd /build_package
|
||||
- rm -rf dist-prod
|
||||
- unzip dist-prod.zip
|
||||
- rm -rf /root/nginx/html/mall
|
||||
- mv dist-prod /root/nginx/html/mall
|
||||
|
98
.drone.yml
Normal file
@ -0,0 +1,98 @@
|
||||
kind: pipeline # 定义对象类型,还有secret和signature两种类型
|
||||
|
||||
type: docker # 定义流水线类型,还有kubernetes、exec、ssh等类型
|
||||
|
||||
name: filesystem-drone # 定义流水线名称
|
||||
|
||||
|
||||
steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
|
||||
- name: package # 流水线名称
|
||||
|
||||
image: maven:3-jdk-8 # 定义创建容器的Docker镜像
|
||||
|
||||
volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置
|
||||
|
||||
- name: maven-cache
|
||||
|
||||
path: /root/.m2 # 将maven下载依赖的目录挂载出来,防止重复下载
|
||||
|
||||
- name: maven-build
|
||||
|
||||
path: /app/build # 将应用打包好的Jar和执行脚本挂载出来
|
||||
|
||||
commands: # 定义在Docker容器中执行的shell命令
|
||||
|
||||
- mvn package -Dmaven.test.skip=true # 应用打包命令
|
||||
|
||||
# - cd yudao-server/target/
|
||||
# - ls
|
||||
|
||||
- cp yudao-server/target/yudao-server.jar /app/build/yudao-server.jar
|
||||
|
||||
- cp yudao-server/Dockerfile /app/build/Dockerfile
|
||||
|
||||
- cp yudao-server/run.sh /app/build/run.sh
|
||||
|
||||
|
||||
|
||||
- name: copy package
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
|
||||
settings:
|
||||
|
||||
host: 101.43.112.107 # 远程连接地址
|
||||
|
||||
username: root # 远程连接账号
|
||||
|
||||
password:
|
||||
|
||||
from_secret: ssh_password # 从Secret中读取SSH密码
|
||||
|
||||
port: 22 # 远程连接端口
|
||||
|
||||
command_timeout: 5m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
# - ls
|
||||
- scp -r /zymail/maven/build root@1.14.205.126:/zymail
|
||||
# - ssh root@1.14.205.126
|
||||
# - ls
|
||||
|
||||
# - chmod +x run.sh # 更改为可执行脚本
|
||||
|
||||
# - ./run.sh # 运行脚本打包应用镜像并运行
|
||||
- name: build-start
|
||||
|
||||
image: appleboy/drone-ssh # SSH工具镜像
|
||||
|
||||
settings:
|
||||
|
||||
host: 1.14.205.126 # 远程连接地址
|
||||
|
||||
username: root # 远程连接账号
|
||||
|
||||
password:
|
||||
|
||||
from_secret: ssh_password # 从Secret中读取SSH密码
|
||||
|
||||
port: 22 # 远程连接端口
|
||||
|
||||
command_timeout: 5m # 远程执行命令超时时间
|
||||
|
||||
script:
|
||||
# - ls
|
||||
- cd /zymail/build
|
||||
- chmod +x run.sh # 更改为可执行脚本
|
||||
- ./run.sh # 运行脚本打包应用镜像并运行
|
||||
|
||||
volumes: # 定义流水线挂载目录,用于共享数据
|
||||
|
||||
- name: maven-build
|
||||
host:
|
||||
path: /zymail/maven/build # 从宿主机中挂载的目录
|
||||
|
||||
- name: maven-cache
|
||||
host:
|
||||
path: /zymail/maven/cache # 从宿主机中挂载的目录
|
@ -4,13 +4,12 @@ NODE_ENV=development
|
||||
VITE_DEV=true
|
||||
|
||||
# 请求路径
|
||||
VITE_BASE_URL='https://zysc.fjptzykj.com'
|
||||
# VITE_BASE_URL='http://192.168.1.12:6127'
|
||||
VITE_BASE_URL='http://localhost:6127'
|
||||
|
||||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
|
||||
VITE_UPLOAD_TYPE=server
|
||||
# 上传路径
|
||||
VITE_UPLOAD_URL='https://zysc.fjptzykj.com/admin-api/infra/file/upload'
|
||||
VITE_UPLOAD_URL='http://localhost:6127/admin-api/infra/file/upload'
|
||||
|
||||
# 接口地址
|
||||
VITE_API_URL=/admin-api
|
||||
|
2
yudao-admin-vue3/.vscode/settings.json
vendored
@ -86,7 +86,7 @@
|
||||
"source.fixAll.eslint": "explicit"
|
||||
},
|
||||
"[vue]": {
|
||||
"editor.defaultFormatter": "Vue.volar"
|
||||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
||||
},
|
||||
"i18n-ally.localesPaths": ["src/locales"],
|
||||
"i18n-ally.keystyle": "nested",
|
||||
|
@ -136,7 +136,7 @@
|
||||
<div class="app-loading">
|
||||
<div class="app-loading-wrap">
|
||||
<div class="app-loading-title">
|
||||
<!-- <img src="/logo.gif" class="app-loading-logo" alt="Logo" />-->
|
||||
<img src="/logo.gif" class="app-loading-logo" alt="Logo" />
|
||||
<div class="app-loading-title">%VITE_APP_TITLE%</div>
|
||||
</div>
|
||||
<div class="app-loading-item">
|
||||
|
@ -1,92 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 代理商信息 VO
|
||||
export interface InfoVO {
|
||||
id: number // 代理商ID
|
||||
agentName: string // 代理商名称
|
||||
region: string // 所属区域
|
||||
agentLevelId: string // 代理商等级id
|
||||
address: string // 地址
|
||||
wxAvatar: string // 微信头像
|
||||
phone: string // 手机号
|
||||
performance: number // 业绩
|
||||
depositAmount: number // 保证金额
|
||||
teamSize: number // 团队成员数
|
||||
profitRatio: number // 分润结算比
|
||||
bankName: string // 开户行
|
||||
bankCardNo: string // 银行卡号
|
||||
cardholder: string // 持卡人
|
||||
idCardNo: string // 身份证号码
|
||||
userId: number // 用户id
|
||||
areaId: number // 区域编码
|
||||
endTime: string//到期时间
|
||||
contractStatus: number // 合同状态
|
||||
}
|
||||
|
||||
// 代理商信息 API
|
||||
export const InfoApi = {
|
||||
// 查询代理商信息分页
|
||||
getInfoPage: async (params: any) => {
|
||||
return await request.get({ url: `/agent/info/page`, params })
|
||||
},
|
||||
// 查询组织信息分页
|
||||
getOrgInfoPage: async (params: any) => {
|
||||
return await request.get({ url: `/agent/info/org-page`, params })
|
||||
},
|
||||
// 查询代理商信息详情
|
||||
getInfo: async (id: number) => {
|
||||
return await request.get({ url: `/agent/info/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增代理商信息
|
||||
createInfo: async (data: InfoVO) => {
|
||||
return await request.post({ url: `/agent/info/create`, data })
|
||||
},
|
||||
|
||||
// 修改代理商信息
|
||||
updateInfo: async (data: InfoVO) => {
|
||||
return await request.put({ url: `/agent/info/update`, data })
|
||||
},
|
||||
|
||||
// 删除代理商信息
|
||||
deleteInfo: async (id: number) => {
|
||||
return await request.delete({ url: `/agent/info/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出代理商信息 Excel
|
||||
exportInfo: async (params) => {
|
||||
return await request.download({ url: `/agent/info/export-excel`, params })
|
||||
},
|
||||
|
||||
// 导出事业部信息 Excel
|
||||
exportInfoOrg: async (params) => {
|
||||
return await request.download({ url: `/agent/info/export-org-excel`, params })
|
||||
},
|
||||
|
||||
// 查询代理商用户id列表
|
||||
getAgentList: async () => {
|
||||
return await request.get({ url: `/agent/info/get-agent-list` })
|
||||
},
|
||||
|
||||
// 查询代理商等级列表
|
||||
getAgentLevelList: async () => {
|
||||
return await request.get({ url: `/agent/level/get-agent-level-list` })
|
||||
},
|
||||
|
||||
// 取消代理商
|
||||
cancelAgent: async (data: InfoVO) => {
|
||||
return await request.put({ url: `/agent/info/cancel`, data})
|
||||
},
|
||||
|
||||
getBoundUserList: async () => {
|
||||
return await request.get({ url: `/agent/info/get-bound-userid-list` })
|
||||
},
|
||||
|
||||
getCascaderOptions: async () => {
|
||||
return await request.get({ url: `/agent/info/cascader-options` })
|
||||
},
|
||||
|
||||
getAreaList : async () => {
|
||||
return await request.get({ url: `/agent/info/getAreaList` })
|
||||
},
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 代理商等级 VO
|
||||
export interface LevelVO {
|
||||
id: number // 代理商等级ID
|
||||
levelName: string // 等级名称
|
||||
status: number // 状态
|
||||
}
|
||||
|
||||
// 代理商等级 API
|
||||
export const LevelApi = {
|
||||
// 查询代理商等级分页
|
||||
getLevelPage: async (params: any) => {
|
||||
return await request.get({ url: `/agent/level/page`, params })
|
||||
},
|
||||
|
||||
// 查询代理商等级详情
|
||||
getLevel: async (id: number) => {
|
||||
return await request.get({ url: `/agent/level/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增代理商等级
|
||||
createLevel: async (data: LevelVO) => {
|
||||
return await request.post({ url: `/agent/level/create`, data })
|
||||
},
|
||||
|
||||
// 修改代理商等级
|
||||
updateLevel: async (data: LevelVO) => {
|
||||
return await request.put({ url: `/agent/level/update`, data })
|
||||
},
|
||||
|
||||
// 删除代理商等级
|
||||
deleteLevel: async (id: number) => {
|
||||
return await request.delete({ url: `/agent/level/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出代理商等级 Excel
|
||||
exportLevel: async (params) => {
|
||||
return await request.download({ url: `/agent/level/export-excel`, params })
|
||||
},
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 代理商分红明细 VO
|
||||
export interface AgentOrderVO {
|
||||
id: number // id
|
||||
price: number // 订单支付金额,单位:分
|
||||
bonus: number // 分红金额,单位: 分
|
||||
agentId: number // 代理商id
|
||||
status: number // 支付状态
|
||||
bizId: string // 业务id
|
||||
bizType: number //业务类型
|
||||
title: string //标题
|
||||
// description: string //描述
|
||||
|
||||
agentLevel: number //等级id
|
||||
|
||||
agentName: string //代理商名称
|
||||
|
||||
productCount: number //商品数量
|
||||
|
||||
terminal: number //终端类型
|
||||
|
||||
userId: number //用户id
|
||||
|
||||
orderTime: Date // 创建时间
|
||||
|
||||
spuId: number //商品id
|
||||
|
||||
spuName: string //商品名称
|
||||
|
||||
picUrl: string //商品图片
|
||||
|
||||
productPrice: number //商品价格
|
||||
|
||||
payPrice: number //支付金额
|
||||
|
||||
payStatus: boolean //支付状态
|
||||
|
||||
tradeOrderStatus: number //交易订单状态
|
||||
}
|
||||
|
||||
// 代理商分红明细 API
|
||||
export const AgentOrderApi = {
|
||||
// 查询代理商分红明细分页
|
||||
getAgenPage: async (params: any) => {
|
||||
return await request.get({url: `/agent/order/page`, params})
|
||||
},
|
||||
|
||||
// 导出佣金提现 Excel
|
||||
exportAgentOrder: async (params: any) => {
|
||||
return await request.download({ url: `/agent/order/export-excel`, params })
|
||||
}
|
||||
}
|
||||
|
@ -1,43 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 会员卡档案 VO
|
||||
export interface CardBaseVO {
|
||||
id: number // 档案编号
|
||||
cardNum: string // 卡号
|
||||
scret: string // 卡密
|
||||
parentId: number // 上级id
|
||||
subId: number // 下级id
|
||||
}
|
||||
|
||||
// 会员卡档案 API
|
||||
export const CardBaseApi = {
|
||||
// 查询会员卡档案分页
|
||||
getCardBasePage: async (params: any) => {
|
||||
return await request.get({ url: `/mall/card-base/page`, params })
|
||||
},
|
||||
|
||||
// 查询会员卡档案详情
|
||||
getCardBase: async (id: number) => {
|
||||
return await request.get({ url: `/mall/card-base/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增会员卡档案
|
||||
createCardBase: async (data: CardBaseVO) => {
|
||||
return await request.post({ url: `/mall/card-base/create`, data })
|
||||
},
|
||||
|
||||
// 修改会员卡档案
|
||||
updateCardBase: async (data: CardBaseVO) => {
|
||||
return await request.put({ url: `/mall/card-base/update`, data })
|
||||
},
|
||||
|
||||
// 删除会员卡档案
|
||||
deleteCardBase: async (id: number) => {
|
||||
return await request.delete({ url: `/mall/card-base/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出会员卡档案 Excel
|
||||
exportCardBase: async (params) => {
|
||||
return await request.download({ url: `/mall/card-base/export-excel`, params })
|
||||
},
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 发卡记录 VO
|
||||
export interface CardLogVO {
|
||||
id: number // 编号
|
||||
nickName: string // 会员昵称
|
||||
phone: string // 手机号
|
||||
countNumber: number // 数量
|
||||
cardSection: number // 区间
|
||||
}
|
||||
|
||||
// 发卡记录 API
|
||||
export const CardLogApi = {
|
||||
// 查询发卡记录分页
|
||||
getCardLogPage: async (params: any) => {
|
||||
return await request.get({ url: `/send/card-log/page`, params })
|
||||
},
|
||||
|
||||
// 查询发卡记录详情
|
||||
getCardLog: async (id: number) => {
|
||||
return await request.get({ url: `/send/card-log/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增发卡记录
|
||||
createCardLog: async (data: CardLogVO) => {
|
||||
return await request.post({ url: `/send/card-log/create`, data })
|
||||
},
|
||||
|
||||
// 修改发卡记录
|
||||
updateCardLog: async (data: CardLogVO) => {
|
||||
return await request.put({ url: `/send/card-log/update`, data })
|
||||
},
|
||||
|
||||
// 删除发卡记录
|
||||
deleteCardLog: async (id: number) => {
|
||||
return await request.delete({ url: `/send/card-log/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出发卡记录 Excel
|
||||
exportCardLog: async (params) => {
|
||||
return await request.download({ url: `/send/card-log/export-excel`, params })
|
||||
},
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 会员卡 VO
|
||||
export interface CardVO {
|
||||
id: number // 会员卡编号
|
||||
parentId: number // 上级用户id
|
||||
subId: number // 下级用户id
|
||||
cardNumber: string // 会员卡号
|
||||
isActivate: number // 是否已激活(0:未激活 , 1:已激活)
|
||||
activateTime: number // 激活时间
|
||||
}
|
||||
|
||||
// 会员卡 API
|
||||
export const CardApi = {
|
||||
// 查询会员卡分页
|
||||
getCardPage: async (params: any) => {
|
||||
return await request.get({ url: `/club/card/page`, params })
|
||||
},
|
||||
|
||||
// 查询会员卡详情
|
||||
getCard: async (id: number) => {
|
||||
return await request.get({ url: `/club/card/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增会员卡
|
||||
createCard: async (data: CardVO) => {
|
||||
return await request.post({ url: `/club/card/create`, data })
|
||||
},
|
||||
|
||||
// 修改会员卡
|
||||
updateCard: async (data: CardVO) => {
|
||||
return await request.put({ url: `/club/card/update`, data })
|
||||
},
|
||||
|
||||
// 删除会员卡
|
||||
deleteCard: async (id: number) => {
|
||||
return await request.delete({ url: `/club/card/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出会员卡 Excel
|
||||
exportCard: async (params) => {
|
||||
return await request.download({ url: `/club/card/export-excel`, params })
|
||||
},
|
||||
}
|
@ -12,27 +12,12 @@ export const FollowUpRecordApi = {
|
||||
return await request.post({ url: `/intelligentForm/saveDynamicData`, data })
|
||||
},
|
||||
|
||||
//修改智能表单
|
||||
updateDynamicData: async (data) => {
|
||||
return await request.post({ url: `/intelligentForm/updateDynamicData`, data })
|
||||
},
|
||||
|
||||
//删除智能表单
|
||||
deleteDynamicDataById: async (id) => {
|
||||
return await request.get({ url: `/intelligentForm/deleteDynamicDataById?id=` + id, })
|
||||
},
|
||||
|
||||
// 查询文章管理列表
|
||||
collectDataList: async (id) => {
|
||||
return await request.get({ url: `/intelligentForm/collectDataList?id=` + id, })
|
||||
//查询对应表单的采集数据列表
|
||||
collectDataList: async(query) => {
|
||||
return await request.get({
|
||||
url: '/intelligentForm/collectDataList',
|
||||
method: 'get',
|
||||
params: {id:query}
|
||||
})
|
||||
}
|
||||
|
||||
// //查询对应表单的采集数据列表
|
||||
// collectDataList: async(query) => {
|
||||
// return await request.get({
|
||||
// url: '/intelligentForm/collectDataList',
|
||||
// method: 'get',
|
||||
// params: {id:query}
|
||||
// })
|
||||
// }
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ export interface FilePageReqVO extends PageParam {
|
||||
createTime?: Date[]
|
||||
}
|
||||
|
||||
|
||||
// 文件预签名地址 Response VO
|
||||
export interface FilePresignedUrlRespVO {
|
||||
// 文件配置编号
|
||||
@ -44,9 +43,3 @@ export const createFile = (data: any) => {
|
||||
export const updateFile = (data: any) => {
|
||||
return request.upload({ url: '/infra/file/upload', data })
|
||||
}
|
||||
|
||||
export const updatePicType = (id: number , picType: number) => {
|
||||
return request.get({ url: '/infra/file/updatePicType?id=' + id + `&picType=` + picType })
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,45 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 权益通知 VO
|
||||
export interface InterestVO {
|
||||
id: number // 权益编号
|
||||
title: string // 权益标题
|
||||
goodsName: string // 商品名称
|
||||
desc: string // 权益描述
|
||||
isUsed: string // 权益次数
|
||||
equity: string // 权益内容
|
||||
notice: string // 须知内容
|
||||
}
|
||||
|
||||
// 权益通知 API
|
||||
export const InterestApi = {
|
||||
// 查询权益通知分页
|
||||
getInterestPage: async (params: any) => {
|
||||
return await request.get({ url: `/notice/interest/page`, params })
|
||||
},
|
||||
|
||||
// 查询权益通知详情
|
||||
getInterest: async (id: number) => {
|
||||
return await request.get({ url: `/notice/interest/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增权益通知
|
||||
createInterest: async (data: InterestVO) => {
|
||||
return await request.post({ url: `/notice/interest/create`, data })
|
||||
},
|
||||
|
||||
// 修改权益通知
|
||||
updateInterest: async (data: InterestVO) => {
|
||||
return await request.put({ url: `/notice/interest/update`, data })
|
||||
},
|
||||
|
||||
// 删除权益通知
|
||||
deleteInterest: async (id: number) => {
|
||||
return await request.delete({ url: `/notice/interest/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出权益通知 Excel
|
||||
exportInterest: async (params) => {
|
||||
return await request.download({ url: `/notice/interest/export-excel`, params })
|
||||
},
|
||||
}
|
@ -56,8 +56,6 @@ export interface Spu {
|
||||
stock?: number // 商品库存
|
||||
createTime?: Date // 商品创建时间
|
||||
status?: number // 商品状态
|
||||
pointsStatus?: number // 商品使用积分状态
|
||||
usePointsMax?: number // 单商品积分使用上限
|
||||
}
|
||||
|
||||
// 获得 Spu 列表
|
||||
@ -109,13 +107,3 @@ export const exportSpu = async (params) => {
|
||||
export const getSpuSimpleList = async () => {
|
||||
return request.get({ url: '/product/spu/list-all-simple' })
|
||||
}
|
||||
|
||||
// 获得拼团商品 SPU 列表
|
||||
export const getSpuAdminSpuList = async () => {
|
||||
return request.get({ url: '/promotion/combination-activity/adminSpuList' })
|
||||
}
|
||||
|
||||
// 获得秒杀商品 SPU 列表
|
||||
export const getSpuMiaoShaAdminSpuList = async () => {
|
||||
return request.get({ url: '/promotion/seckill-activity/adminSpuList' })
|
||||
}
|
||||
|
@ -1,50 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 开屏广告 VO
|
||||
export interface AdvertisingVO {
|
||||
id: number // id
|
||||
status: number // 广告状态
|
||||
time: number // 广告时间(秒)
|
||||
property: string // 广告属性
|
||||
picData: []
|
||||
stat: boolean,
|
||||
}
|
||||
|
||||
// 开屏广告 API
|
||||
export const AdvertisingApi = {
|
||||
// 查询开屏广告分页
|
||||
getAdvertisingPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/advertising/page`, params })
|
||||
},
|
||||
|
||||
// 查询开屏广告详情
|
||||
getAdvertising: async () => {
|
||||
return await request.get({ url: `/promotion/advertising/getAdvertising`})
|
||||
},
|
||||
|
||||
// 新增开屏广告
|
||||
createAdvertising: async (data: AdvertisingVO) => {
|
||||
return await request.post({ url: `/promotion/advertising/create`, data })
|
||||
},
|
||||
|
||||
// 修改开屏广告
|
||||
updateAdvertising: async (data: AdvertisingVO) => {
|
||||
return await request.put({ url: `/promotion/advertising/update`, data })
|
||||
},
|
||||
|
||||
// 删除开屏广告
|
||||
deleteAdvertising: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/advertising/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出开屏广告 Excel
|
||||
exportAdvertising: async (params) => {
|
||||
return await request.download({ url: `/promotion/advertising/export-excel`, params })
|
||||
},
|
||||
|
||||
// 新增修稿开屏广告
|
||||
saveAdvertising: async (data: AdvertisingVO) => {
|
||||
return await request.post({ url: `/promotion/advertising/saveAdvertising`, data })
|
||||
},
|
||||
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 自动回复 VO
|
||||
export interface AutoResponseVO {
|
||||
id: number // id
|
||||
keyword: string // 关键字
|
||||
type: number // 回复类型,文字消息/0,图片消息/1
|
||||
content: string // 回复内容
|
||||
status: number // 是否开启,开启/1,关闭/0
|
||||
}
|
||||
|
||||
// 自动回复 API
|
||||
export const AutoResponseApi = {
|
||||
// 查询自动回复分页
|
||||
getAutoResponsePage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/auto-response/page`, params })
|
||||
},
|
||||
|
||||
// 查询自动回复详情
|
||||
getAutoResponse: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/auto-response/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增自动回复
|
||||
createAutoResponse: async (data: AutoResponseVO) => {
|
||||
return await request.post({ url: `/promotion/auto-response/create`, data })
|
||||
},
|
||||
|
||||
// 修改自动回复
|
||||
updateAutoResponse: async (data: AutoResponseVO) => {
|
||||
return await request.put({ url: `/promotion/auto-response/update`, data })
|
||||
},
|
||||
|
||||
// 删除自动回复
|
||||
deleteAutoResponse: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/auto-response/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出自动回复 Excel
|
||||
exportAutoResponse: async (params) => {
|
||||
return await request.download({ url: `/promotion/auto-response/export-excel`, params })
|
||||
}
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 客服配置 VO
|
||||
export interface ConfigurationVO {
|
||||
id: number // id
|
||||
type: number // 客服类型
|
||||
feedback: string // 客服反馈
|
||||
phone: string // 客服电话
|
||||
link: string // 客服链接
|
||||
enterpriseID: string // 企业ID
|
||||
}
|
||||
|
||||
// 客服配置 API
|
||||
export const ConfigurationApi = {
|
||||
// 查询客服配置分页
|
||||
getConfigurationPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/ke-fu-configuration/page`, params })
|
||||
},
|
||||
|
||||
// 查询客服配置详情
|
||||
getConfiguration: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/ke-fu-configuration/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增客服配置
|
||||
createConfiguration: async (data: ConfigurationVO) => {
|
||||
return await request.post({ url: `/promotion/ke-fu-configuration/create`, data })
|
||||
},
|
||||
|
||||
// 修改客服配置
|
||||
updateConfiguration: async (data: ConfigurationVO) => {
|
||||
return await request.put({ url: `/promotion/ke-fu-configuration/update`, data })
|
||||
},
|
||||
|
||||
// 删除客服配置
|
||||
deleteConfiguration: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/ke-fu-configuration/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出客服配置 Excel
|
||||
exportConfiguration: async (params) => {
|
||||
return await request.download({ url: `/promotion/ke-fu-configuration/export-excel`, params })
|
||||
}
|
||||
}
|
@ -56,32 +56,3 @@ export const getDiyTemplateProperty = async (id: number) => {
|
||||
export const updateDiyTemplateProperty = async (data: DiyTemplateVO) => {
|
||||
return await request.put({ url: `/promotion/diy-template/update-property`, data })
|
||||
}
|
||||
|
||||
|
||||
// 设置商品分类接口
|
||||
export const setDiyProjuctClass = async (id) => {
|
||||
return await request.get({
|
||||
url: `/system/dict-data/diy-template-goods?id=` + id
|
||||
})
|
||||
}
|
||||
|
||||
// 获取商品分类接口
|
||||
export const getDiyProjuctClass = async () => {
|
||||
return await request.get({
|
||||
url: `/system/dict-data/getGoods`
|
||||
})
|
||||
}
|
||||
|
||||
// 设置主题风格
|
||||
export const setDiyZtClass = async (id) => {
|
||||
return await request.get({
|
||||
url: `/system/dict-data/diy-template-theme?id=` + id
|
||||
})
|
||||
}
|
||||
|
||||
// 获取主题风格
|
||||
export const getDiyZtClass = async () => {
|
||||
return await request.get({
|
||||
url: `/system/dict-data/getTheme`
|
||||
})
|
||||
}
|
@ -25,8 +25,8 @@ export const saveDynamicData = async (data: ArticleVO) => {
|
||||
}
|
||||
|
||||
// 查询文章管理列表
|
||||
export const collectDataList = async (id: any) => {
|
||||
return await request.get({ url: `/intelligentForm/collectDataList?id=` + id, })
|
||||
export const collectDataList = async (query: any) => {
|
||||
return await request.get({ url: `/intelligentForm/collectDataList`, query })
|
||||
}
|
||||
|
||||
// // 修改文章管理
|
||||
|
@ -1,5 +1,4 @@
|
||||
import request from '@/config/axios'
|
||||
import { number } from 'vue-types'
|
||||
|
||||
export interface KeFuConversationRespVO {
|
||||
id: number // 编号
|
||||
@ -22,10 +21,6 @@ export const KeFuConversationApi = {
|
||||
getConversationList: async () => {
|
||||
return await request.get({ url: '/promotion/kefu-conversation/list' })
|
||||
},
|
||||
// 获得客服会话列表
|
||||
getConversationListByKefuId: async (kefuId: number , name: string) => {
|
||||
return await request.get({ url: '/promotion/kefu-conversation/list?kefuId=' + kefuId + `&name=` + name })
|
||||
},
|
||||
// 客服会话置顶
|
||||
updateConversationPinned: async (data: any) => {
|
||||
return await request.put({
|
||||
@ -35,10 +30,6 @@ export const KeFuConversationApi = {
|
||||
},
|
||||
// 删除客服会话
|
||||
deleteConversation: async (id: number) => {
|
||||
return await request.delete({ url: '/promotion/kefu-conversation/delete?id=' + id })
|
||||
},
|
||||
// 转接会话给其它客服
|
||||
transferConversion: async (id: number, kefuId: number) => {
|
||||
return await request.get({ url: `/promotion/kefu-conversation/transfer/${id}/${kefuId}`})
|
||||
return await request.get({ url: '/promotion/kefu-conversation/delete?id' + id })
|
||||
}
|
||||
}
|
||||
|
@ -32,10 +32,5 @@ export const KeFuMessageApi = {
|
||||
// 获得消息分页数据
|
||||
getKeFuMessagePage: async (params: any) => {
|
||||
return await request.get({ url: '/promotion/kefu-message/page', params })
|
||||
},
|
||||
|
||||
// 获得消息分页数据
|
||||
getBySenderIdStat: async (senderId: number) => {
|
||||
return await request.get({ url: '/promotion/kefu-message/getBySenderIdStat?senderId=' + senderId })
|
||||
}
|
||||
}
|
||||
|
@ -1,51 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 用户留言 VO
|
||||
export interface LeaveWordVO {
|
||||
id: number // id
|
||||
name: string // 昵称
|
||||
phone: string // 电话
|
||||
content: string // 内容
|
||||
response: string //回复内容
|
||||
status: number // 状态
|
||||
}
|
||||
|
||||
// 用户留言 API
|
||||
export const LeaveWordApi = {
|
||||
// 查询用户留言分页
|
||||
getLeaveWordPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/leave-word/page`, params })
|
||||
},
|
||||
|
||||
// 查询用户留言详情
|
||||
getLeaveWord: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/leave-word/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增用户留言
|
||||
createLeaveWord: async (data: LeaveWordVO) => {
|
||||
return await request.post({ url: `/promotion/leave-word/create`, data })
|
||||
},
|
||||
|
||||
// 修改用户留言
|
||||
updateLeaveWord: async (data: LeaveWordVO) => {
|
||||
return await request.put({ url: `/promotion/leave-word/update`, data })
|
||||
},
|
||||
|
||||
// 删除用户留言
|
||||
deleteLeaveWord: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/leave-word/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出用户留言 Excel
|
||||
exportLeaveWord: async (params) => {
|
||||
return await request.download({ url: `/promotion/leave-word/export-excel`, params })
|
||||
},
|
||||
|
||||
// 添加回复内容
|
||||
addResponse: async (id: number, content: string) => {
|
||||
return await request.get({ url: `/promotion/leave-word/addResponse?id=` + id +`&&response=` + content })
|
||||
},
|
||||
|
||||
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 付费会员权益 VO
|
||||
export interface PaidMemberBenefitVO {
|
||||
id: number // 编号
|
||||
benName: string // 权益名称
|
||||
showName: string // 展示名称
|
||||
iconUrl: string // 图标地址
|
||||
intro: string // 描述
|
||||
status: boolean // 状态:(默认)0隐藏 1显示
|
||||
sort: number // 排序
|
||||
}
|
||||
|
||||
// 付费会员权益 API
|
||||
export const PaidMemberBenefitApi = {
|
||||
// 查询付费会员权益分页
|
||||
getPaidMemberBenefitPage: async (params: any) => {
|
||||
return await request.get({ url: `/paidmemberbenefit/paid-member-benefit/page`, params })
|
||||
},
|
||||
|
||||
// 查询付费会员权益详情
|
||||
getPaidMemberBenefit: async (id: number) => {
|
||||
return await request.get({ url: `/paidmemberbenefit/paid-member-benefit/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增付费会员权益
|
||||
createPaidMemberBenefit: async (data: PaidMemberBenefitVO) => {
|
||||
return await request.post({ url: `/paidmemberbenefit/paid-member-benefit/create`, data })
|
||||
},
|
||||
|
||||
// 修改付费会员权益
|
||||
updatePaidMemberBenefit: async (data: PaidMemberBenefitVO) => {
|
||||
return await request.put({ url: `/paidmemberbenefit/paid-member-benefit/update`, data })
|
||||
},
|
||||
// 修改会员权益状态
|
||||
updatePaidMemberBenefitStatus: async (data: any) => {
|
||||
return await request.put({ url: `/paidmemberbenefit/paid-member-benefit/updateStatus`, data})
|
||||
},
|
||||
|
||||
// 删除付费会员权益
|
||||
deletePaidMemberBenefit: async (id: number) => {
|
||||
return await request.delete({ url: `/paidmemberbenefit/paid-member-benefit/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出付费会员权益 Excel
|
||||
exportPaidMemberBenefit: async (params) => {
|
||||
return await request.download({ url: `/paidmemberbenefit/paid-member-benefit/export-excel`, params })
|
||||
},
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
import { Sku, Spu } from '@/api/mall/product/spu' // 积分商城活动 VO
|
||||
|
||||
// 积分商城活动 VO
|
||||
export interface PointActivityVO {
|
||||
id: number // 积分商城活动编号
|
||||
spuId: number // 积分商城活动商品
|
||||
status: number // 活动状态
|
||||
stock: number // 积分商城活动库存
|
||||
totalStock: number // 积分商城活动总库存
|
||||
remark?: string // 备注
|
||||
sort: number // 排序
|
||||
createTime: string // 创建时间
|
||||
products: PointProductVO[] // 积分商城商品
|
||||
|
||||
// ========== 商品字段 ==========
|
||||
spuName: string // 商品名称
|
||||
picUrl: string // 商品主图
|
||||
marketPrice: number // 商品市场价,单位:分
|
||||
|
||||
//======================= 显示所需兑换积分最少的 sku 信息 =======================
|
||||
point: number // 兑换积分
|
||||
price: number // 兑换金额,单位:分
|
||||
}
|
||||
|
||||
// 秒杀活动所需属性
|
||||
export interface PointProductVO {
|
||||
id?: number // 积分商城商品编号
|
||||
activityId?: number // 积分商城活动 id
|
||||
spuId?: number // 商品 SPU 编号
|
||||
skuId: number // 商品 SKU 编号
|
||||
count: number // 可兑换数量
|
||||
point: number // 兑换积分
|
||||
price: number // 兑换金额,单位:分
|
||||
stock: number // 积分商城商品库存
|
||||
activityStatus?: number // 积分商城商品状态
|
||||
}
|
||||
|
||||
// 扩展 Sku 配置
|
||||
export type SkuExtension = Sku & {
|
||||
productConfig: PointProductVO
|
||||
}
|
||||
|
||||
export interface SpuExtension extends Spu {
|
||||
skus: SkuExtension[] // 重写类型
|
||||
}
|
||||
|
||||
export interface SpuExtension0 extends Spu {
|
||||
pointStock: number // 积分商城活动库存
|
||||
pointTotalStock: number // 积分商城活动总库存
|
||||
point: number // 兑换积分
|
||||
pointPrice: number // 兑换金额,单位:分
|
||||
}
|
||||
|
||||
// 积分商城活动 API
|
||||
export const PointActivityApi = {
|
||||
// 查询积分商城活动分页
|
||||
getPointActivityPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/point-activity/page`, params })
|
||||
},
|
||||
|
||||
// 查询积分商城活动详情
|
||||
getPointActivity: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/point-activity/get?id=` + id })
|
||||
},
|
||||
|
||||
// 查询积分商城活动列表,基于活动编号数组
|
||||
getPointActivityListByIds: async (ids: number[]) => {
|
||||
return request.get({ url: `/promotion/point-activity/list-by-ids?ids=${ids}` })
|
||||
},
|
||||
|
||||
// 新增积分商城活动
|
||||
createPointActivity: async (data: PointActivityVO) => {
|
||||
return await request.post({ url: `/promotion/point-activity/create`, data })
|
||||
},
|
||||
|
||||
// 修改积分商城活动
|
||||
updatePointActivity: async (data: PointActivityVO) => {
|
||||
return await request.put({ url: `/promotion/point-activity/update`, data })
|
||||
},
|
||||
|
||||
// 删除积分商城活动
|
||||
deletePointActivity: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/point-activity/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 关闭秒杀活动
|
||||
closePointActivity: async (id: number) => {
|
||||
return await request.put({ url: '/promotion/point-activity/close?id=' + id })
|
||||
}
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
import { Sku, Spu } from '@/api/mall/product/spu'
|
||||
|
||||
export interface CombinationActivityVO {
|
||||
id?: number
|
||||
name?: string
|
||||
spuId?: number
|
||||
totalLimitCount?: number
|
||||
singleLimitCount?: number
|
||||
startTime?: Date
|
||||
endTime?: Date
|
||||
userSize?: number
|
||||
totalCount?: number
|
||||
successCount?: number
|
||||
orderUserCount?: number
|
||||
virtualGroup?: number
|
||||
status?: number
|
||||
limitDuration?: number
|
||||
products: CombinationProductVO[]
|
||||
}
|
||||
|
||||
// 拼团活动所需属性
|
||||
export interface CombinationProductVO {
|
||||
spuId: number
|
||||
skuId: number
|
||||
combinationPrice: number // 拼团价格
|
||||
}
|
||||
|
||||
// 扩展 Sku 配置
|
||||
export type SkuExtension = Sku & {
|
||||
productConfig: CombinationProductVO
|
||||
}
|
||||
|
||||
export interface SpuExtension extends Spu {
|
||||
skus: SkuExtension[] // 重写类型
|
||||
}
|
||||
|
||||
// 查询拼团活动列表
|
||||
export const getCombinationActivityPage = async (params) => {
|
||||
return await request.get({ url: '/promotion/point-mall/page', params })
|
||||
}
|
||||
|
||||
// 查询拼团活动详情
|
||||
export const getCombinationActivity = async (id: number) => {
|
||||
return await request.get({ url: '/promotion/combination-activity/get?id=' + id })
|
||||
}
|
||||
|
||||
// 新增拼团活动
|
||||
export const createCombinationActivity = async (data: CombinationActivityVO) => {
|
||||
return await request.post({ url: '/promotion/point-mall/create', data })
|
||||
}
|
||||
|
||||
// 修改拼团活动
|
||||
export const updateCombinationActivity = async (data: CombinationActivityVO) => {
|
||||
return await request.put({ url: '/promotion/combination-activity/update', data })
|
||||
}
|
||||
|
||||
// 关闭拼团活动
|
||||
export const closeCombinationActivity = async (id: number) => {
|
||||
return await request.put({ url: '/promotion/point-mall/closePointMall?id=' + id })
|
||||
}
|
||||
|
||||
// 删除拼团活动
|
||||
export const deleteCombinationActivity = async (id: number) => {
|
||||
return await request.delete({ url: '/promotion/point-mall/delete?id=' + id })
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 积分商城 VO
|
||||
export interface PointMallVO {
|
||||
id: number // 编号
|
||||
productPicUrl: string // 商品主图
|
||||
title: string // 标题
|
||||
skuIds: string // sku数组
|
||||
spuId: number // spu编号
|
||||
exchangePointNum: number // 兑换积分
|
||||
limited: number // 限量
|
||||
surplusLimited: number // 剩余限量
|
||||
status: number // 状态
|
||||
sort: number // 排序
|
||||
}
|
||||
|
||||
// 积分商城 API
|
||||
export const PointMallApi = {
|
||||
// 查询积分商城分页
|
||||
getPointMallPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/point-mall/page`, params })
|
||||
},
|
||||
|
||||
// 查询积分商城详情
|
||||
getPointMall: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/point-mall/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增积分商城
|
||||
createPointMall: async (data: PointMallVO) => {
|
||||
return await request.post({ url: `/promotion/point-mall/create`, data })
|
||||
},
|
||||
|
||||
// 修改积分商城
|
||||
updatePointMall: async (data: PointMallVO) => {
|
||||
return await request.put({ url: `/promotion/point-mall/update`, data })
|
||||
},
|
||||
|
||||
// 删除积分商城
|
||||
deletePointMall: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/point-mall/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出积分商城 Excel
|
||||
exportPointMall: async (params) => {
|
||||
return await request.download({ url: `/promotion/point-mall/export-excel`, params })
|
||||
}
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 兑换记录 VO
|
||||
export interface PointOrderVO {
|
||||
id: number // id
|
||||
orderNumber: string // 订单号
|
||||
userId: number // 用户id
|
||||
productId: number // 商品id
|
||||
integral: number // 兑换积分
|
||||
orderStatus: number // 订单状态
|
||||
orderTime: Date // 下单时间
|
||||
userName: string
|
||||
productName: string
|
||||
imageUrl: string
|
||||
|
||||
}
|
||||
|
||||
// 兑换记录 API
|
||||
export const PointOrderApi = {
|
||||
// 查询兑换记录分页
|
||||
getPointOrderPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/point-order/page`, params })
|
||||
},
|
||||
|
||||
// 查询兑换记录详情
|
||||
getPointOrder: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/point-order/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增兑换记录
|
||||
createPointOrder: async (data: PointOrderVO) => {
|
||||
return await request.post({ url: `/promotion/point-order/create`, data })
|
||||
},
|
||||
|
||||
// 修改兑换记录
|
||||
updatePointOrder: async (data: PointOrderVO) => {
|
||||
return await request.put({ url: `/promotion/point-order/update`, data })
|
||||
},
|
||||
|
||||
// 删除兑换记录
|
||||
deletePointOrder: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/point-order/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出兑换记录 Excel
|
||||
exportPointOrder: async (params) => {
|
||||
return await request.download({ url: `/promotion/point-order/export-excel`, params })
|
||||
},
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 客服人员 VO
|
||||
export interface SupportStaffVO {
|
||||
id: number // ID
|
||||
name: string // 客服名称
|
||||
pic: string //头像
|
||||
phone: string // 手机号码
|
||||
account: string // 登录账号
|
||||
password: string // 登录密码
|
||||
status: number // 客服状态
|
||||
orderManage: number // 手机订单管理
|
||||
orderInform: number // 订单通知
|
||||
}
|
||||
|
||||
// 客服人员 API
|
||||
export const SupportStaffApi = {
|
||||
// 查询客服人员分页
|
||||
getSupportStaffPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/support-staff/page`, params })
|
||||
},
|
||||
|
||||
// 查询客服人员详情
|
||||
getSupportStaff: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/support-staff/get?id=` + id })
|
||||
},
|
||||
|
||||
|
||||
// 新增客服人员
|
||||
createSupportStaff: async (data: SupportStaffVO) => {
|
||||
return await request.post({ url: `/promotion/support-staff/create`, data })
|
||||
},
|
||||
|
||||
// 修改客服人员
|
||||
updateSupportStaff: async (data: SupportStaffVO) => {
|
||||
return await request.put({ url: `/promotion/support-staff/update`, data })
|
||||
},
|
||||
|
||||
// 删除客服人员
|
||||
deleteSupportStaff: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/support-staff/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出客服人员 Excel
|
||||
exportSupportStaff: async (params) => {
|
||||
return await request.download({ url: `/promotion/support-staff/export-excel`, params })
|
||||
},
|
||||
|
||||
|
||||
// 修改客服人员
|
||||
updateLineStatus: async (id: string,lineStatus: number) => {
|
||||
return await request.get({ url: `/promotion/support-staff/updateLineStatus?id=` + id + `&lineStatus=` + lineStatus })
|
||||
},
|
||||
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 客服话术 VO
|
||||
export interface VerbalTrickVO {
|
||||
id: number // id
|
||||
type: number // 分类
|
||||
title: string // 标题
|
||||
details: string // 详情
|
||||
}
|
||||
|
||||
// 客服话术 API
|
||||
export const VerbalTrickApi = {
|
||||
// 查询客服话术分页
|
||||
getVerbalTrickPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/verbal-trick/page`, params })
|
||||
},
|
||||
|
||||
// 查询客服话术详情
|
||||
getVerbalTrick: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/verbal-trick/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增客服话术
|
||||
createVerbalTrick: async (data: VerbalTrickVO) => {
|
||||
return await request.post({ url: `/promotion/verbal-trick/create`, data })
|
||||
},
|
||||
|
||||
// 修改客服话术
|
||||
updateVerbalTrick: async (data: VerbalTrickVO) => {
|
||||
return await request.put({ url: `/promotion/verbal-trick/update`, data })
|
||||
},
|
||||
|
||||
// 删除客服话术
|
||||
deleteVerbalTrick: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/verbal-trick/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出客服话术 Excel
|
||||
exportVerbalTrick: async (params) => {
|
||||
return await request.download({ url: `/promotion/verbal-trick/export-excel`, params })
|
||||
},
|
||||
|
||||
// 查询客服话术
|
||||
getVerbalTrickList: async (id: string) => {
|
||||
return await request.get({ url: `/promotion/verbal-trick/getVerbalTrickList?id=` +id })
|
||||
}
|
||||
}
|
@ -121,10 +121,3 @@ export const getMemberRegisterCountList = (
|
||||
params: { times: [formatDate(beginTime), formatDate(endTime)] }
|
||||
})
|
||||
}
|
||||
|
||||
// 获取自定义页面数据
|
||||
export const getDiyPage = () => {
|
||||
return request.get({
|
||||
url: '/promotion/diy-page/getDiyPage'
|
||||
})
|
||||
}
|
||||
|
@ -18,28 +18,6 @@ export interface BrokerageWithdrawVO {
|
||||
remark: string
|
||||
}
|
||||
|
||||
export interface withDrawSupplyVO {
|
||||
id: number,
|
||||
userId: number,
|
||||
agentPrice: number,
|
||||
brokeragePrice: number,
|
||||
frozenPrice: number,
|
||||
closingType: number,
|
||||
wechatAccountQrCodeUrl: string,
|
||||
aliyAccountQrCodeUrl: string,
|
||||
realName: string,
|
||||
accountNo: string,
|
||||
bankName: string,
|
||||
bankCardNo: string,
|
||||
supplyPrice: number,
|
||||
remark: string,
|
||||
wechatAccount: string,
|
||||
aliyAccount: string,
|
||||
agentId: number,
|
||||
agentName: string,
|
||||
}
|
||||
|
||||
|
||||
// 查询佣金提现列表
|
||||
export const getBrokerageWithdrawPage = async (params: any) => {
|
||||
return await request.get({ url: `/trade/brokerage-withdraw/page`, params })
|
||||
@ -59,13 +37,3 @@ export const approveBrokerageWithdraw = async (id: number) => {
|
||||
export const rejectBrokerageWithdraw = async (data: BrokerageWithdrawVO) => {
|
||||
return await request.put({ url: `/trade/brokerage-withdraw/reject`, data })
|
||||
}
|
||||
|
||||
// 结算申请
|
||||
export const createWithDraw = async (data: withDrawSupplyVO) => {
|
||||
return await request.post({ url: `/trade/brokerage-withdraw/create-supply`,data })
|
||||
}
|
||||
|
||||
// 导出佣金提现 Excel
|
||||
export const exportBrokerageWithDraw = async (params) => {
|
||||
return await request.download({ url: `/trade/brokerage-withdraw/export-excel`, params })
|
||||
}
|
||||
|
@ -1,56 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 发票管理 VO
|
||||
export interface InvoiceVO {
|
||||
id: number // id
|
||||
userId: number // 用户编号
|
||||
bizId: string // 业务编号
|
||||
bizType: number // 业务类型:1-订单,2-提现
|
||||
type: number // 发票类型
|
||||
price: number // 金额
|
||||
headerType: number // 发票抬头类型
|
||||
status: number // 状态:0-未开票,1-已开票
|
||||
name: string //发票名称
|
||||
no: string //订单流水号
|
||||
orderTime: Date// 订单时间
|
||||
tradeOrderStatus: number // 订单状态
|
||||
taxNumber: string // 税号
|
||||
|
||||
headerId: number // 发票抬头编号
|
||||
|
||||
headerName: string // 发票抬头名称
|
||||
|
||||
}
|
||||
|
||||
// 发票管理 API
|
||||
export const InvoiceApi = {
|
||||
// 查询发票管理分页
|
||||
getInvoicePage: async (params: any) => {
|
||||
return await request.get({ url: `/trade/invoice/page`, params })
|
||||
},
|
||||
|
||||
// 查询发票管理详情
|
||||
getInvoice: async (id: number) => {
|
||||
return await request.get({ url: `/trade/invoice/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增发票管理
|
||||
createInvoice: async (data: InvoiceVO) => {
|
||||
return await request.post({ url: `/trade/invoice/create`, data })
|
||||
},
|
||||
|
||||
// 修改发票管理
|
||||
updateInvoice: async (data: InvoiceVO) => {
|
||||
return await request.put({ url: `/trade/invoice/update`, data })
|
||||
},
|
||||
|
||||
// 删除发票管理
|
||||
deleteInvoice: async (id: number) => {
|
||||
return await request.delete({ url: `/trade/invoice/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出发票管理 Excel
|
||||
exportInvoice: async (params) => {
|
||||
return await request.download({ url: `/trade/invoice/export-excel`, params })
|
||||
},
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 发票抬头 VO
|
||||
export interface InvoiceHeaderVO {
|
||||
id: number // id
|
||||
userId: number // 用户编号
|
||||
name: string // 购方名称
|
||||
taxNumber: string // 纳税人识别号
|
||||
companyAddress: string // 公司地址
|
||||
companyTel: string // 公司电话
|
||||
bankName: string // 开户银行
|
||||
bankAccount: string // 发票
|
||||
isDefault: boolean // 是否默认
|
||||
type: boolean // 抬头类型
|
||||
}
|
||||
|
||||
// 发票抬头 API
|
||||
export const InvoiceHeaderApi = {
|
||||
// 查询发票抬头分页
|
||||
getInvoiceHeaderPage: async (params: any) => {
|
||||
return await request.get({ url: `/trade/invoice-header/page`, params })
|
||||
},
|
||||
|
||||
// 查询发票抬头详情
|
||||
getInvoiceHeader: async (id: number) => {
|
||||
return await request.get({ url: `/trade/invoice-header/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增发票抬头
|
||||
createInvoiceHeader: async (data: InvoiceHeaderVO) => {
|
||||
return await request.post({ url: `/trade/invoice-header/create`, data })
|
||||
},
|
||||
|
||||
// 修改发票抬头
|
||||
updateInvoiceHeader: async (data: InvoiceHeaderVO) => {
|
||||
return await request.put({ url: `/trade/invoice-header/update`, data })
|
||||
},
|
||||
|
||||
// 删除发票抬头
|
||||
deleteInvoiceHeader: async (id: number) => {
|
||||
return await request.delete({ url: `/trade/invoice-header/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出发票抬头 Excel
|
||||
exportInvoiceHeader: async (params) => {
|
||||
return await request.download({ url: `/trade/invoice-header/export-excel`, params })
|
||||
},
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 会员协议 VO
|
||||
export interface PaidMemberAgreeVO {
|
||||
id: number // 编号
|
||||
content: string // 内容
|
||||
}
|
||||
|
||||
// 会员协议 API
|
||||
export const PaidMemberAgreeApi = {
|
||||
// 查询会员协议
|
||||
getPaidMemberAgree: async () => {
|
||||
return await request.get({ url: `/member/paid-member-agree/get`})
|
||||
},
|
||||
|
||||
|
||||
// 保存会员协议
|
||||
savePaidMemberAgree: async (data: PaidMemberAgreeVO) => {
|
||||
return await request.put({ url: `/member/paid-member-agree/save`, data })
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 付费会员配置 VO
|
||||
export interface PaidMemberConfigVO {
|
||||
id: number // 编号
|
||||
openPaidMember: boolean // 开启付费会员
|
||||
paidMemberPrice: boolean // 商品付费会员价
|
||||
}
|
||||
|
||||
// 付费会员配置 API
|
||||
export const PaidMemberConfigApi = {
|
||||
// 查询付费会员配置详情
|
||||
getPaidMemberConfig: async () => {
|
||||
return await request.get({ url: `/member/paid-member-config/get` })
|
||||
},
|
||||
|
||||
// 保存付费会员配置
|
||||
savePaidMemberConfig: async (data: PaidMemberConfigVO) => {
|
||||
return await request.put({ url: `/member/paid-member-config/save`, data })
|
||||
}
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 付费会员 VO
|
||||
export interface PaidMemberUserVO {
|
||||
id: number // 编号
|
||||
mobile: string // 手机号
|
||||
password: string // 密码
|
||||
status: number // 状态
|
||||
registerIp: string // 注册 IP
|
||||
registerTerminal: number // 注册终端
|
||||
loginIp: string // 最后登录IP
|
||||
loginDate: Date // 最后登录时间
|
||||
nickname: string // 用户昵称
|
||||
avatar: string // 头像
|
||||
name: string // 真实名字
|
||||
sex: number // 性别
|
||||
birthday: Date // 出生日期
|
||||
areaId: number // 所在地
|
||||
mark: string // 用户备注
|
||||
point: number // 积分
|
||||
tagIds: string // 用户标签编号列表,以逗号分隔
|
||||
levelId: number // 等级编号
|
||||
experience: number // 经验
|
||||
groupId: number // 用户分组编号
|
||||
|
||||
paid: Boolean //是否支付,0:未支付,1:已支付
|
||||
|
||||
payTime: Date //支付时间
|
||||
|
||||
cardExpirationTime: Date; //到期时间
|
||||
|
||||
price:number //支付金额,单位为分
|
||||
|
||||
deadlineDay:string //期限天数
|
||||
|
||||
payType: string //支付方式
|
||||
|
||||
|
||||
payChannel: string//支付渠道
|
||||
|
||||
orderNo: string //订单号
|
||||
|
||||
payOrderId: number //支付订单编号
|
||||
|
||||
payMemberType: string//会员类型
|
||||
}
|
||||
|
||||
// 付费会员 API
|
||||
export const PaidMemberUserApi = {
|
||||
// 查询付费会员分页
|
||||
getPaidMemberUserPage: async (params: any) => {
|
||||
return await request.get({ url: `/member/paid-member-user/page`, params })
|
||||
},
|
||||
|
||||
// 查询付费会员详情
|
||||
getPaidMemberUser: async (id: number) => {
|
||||
return await request.get({ url: `/member/paid-member-user/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增付费会员
|
||||
createPaidMemberUser: async (data: PaidMemberUserVO) => {
|
||||
return await request.post({ url: `/member/paid-member-user/create`, data })
|
||||
},
|
||||
|
||||
// 修改付费会员
|
||||
updatePaidMemberUser: async (data: PaidMemberUserVO) => {
|
||||
return await request.put({ url: `/member/paid-member-user/update`, data })
|
||||
},
|
||||
|
||||
// 删除付费会员
|
||||
deletePaidMemberUser: async (id: number) => {
|
||||
return await request.delete({ url: `/member/paid-member-user/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出付费会员 Excel
|
||||
exportPaidMemberUser: async (params) => {
|
||||
return await request.download({ url: `/member/paid-member-user/export-excel`, params })
|
||||
},
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 会员卡类型 VO
|
||||
export interface cardVO {
|
||||
id: number // id
|
||||
name: string // 会员名
|
||||
vid: string // 有效期
|
||||
originalPrice: number // 原价
|
||||
specialPrice: number // 优惠价
|
||||
sort: string // 排序
|
||||
status: number// 是否禁用
|
||||
}
|
||||
|
||||
// 会员卡类型 API
|
||||
export const cardApi = {
|
||||
// 查询会员卡类型分页
|
||||
getcardPage: async (params: any) => {
|
||||
return await request.get({ url: `/paid/member/card/type/page`, params })
|
||||
},
|
||||
|
||||
// 查询会员卡类型详情
|
||||
getcard: async (id: number) => {
|
||||
return await request.get({ url: `/paid/member/card/type/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增会员卡类型
|
||||
createcard: async (data: cardVO) => {
|
||||
return await request.post({ url: `/paid/member/card/type/create`, data })
|
||||
},
|
||||
|
||||
// 修改会员卡类型
|
||||
updatecard: async (data: cardVO) => {
|
||||
return await request.put({ url: `/paid/member/card/type/update`, data })
|
||||
},
|
||||
|
||||
// 删除会员卡类型
|
||||
deletecard: async (id: number) => {
|
||||
return await request.delete({ url: `/paid/member/card/type/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出会员卡类型 Excel
|
||||
exportcard: async (params) => {
|
||||
return await request.download({ url: `/paid/member/card/type/export-excel`, params })
|
||||
},
|
||||
|
||||
// 获取会员卡类型下拉列表
|
||||
getcardlist: async () => {
|
||||
return await request.get({ url: `/paid/member/card/type/get-list`})
|
||||
},
|
||||
}
|
@ -20,7 +20,6 @@ export interface UserVO {
|
||||
point: number | undefined | null
|
||||
totalPoint: number | undefined | null
|
||||
experience: number | null | undefined
|
||||
groupName: string
|
||||
}
|
||||
|
||||
// 查询会员用户列表
|
||||
@ -52,23 +51,3 @@ export const updateUserPoint = async (data: any) => {
|
||||
export const updateUserBalance = async (data: any) => {
|
||||
return await request.put({ url: `/member/user/update-balance`, data })
|
||||
}
|
||||
|
||||
// 客服查询用户详情
|
||||
export const getUserInfo = async (id: number) => {
|
||||
return await request.get({ url: `/member/user/getUserInfo?id=` + id })
|
||||
}
|
||||
|
||||
// 查询当前代理商户可绑用户列表
|
||||
export const getUserListForAgent = async () => {
|
||||
return await request.get({ url: `/member/user/get-agent-list`})
|
||||
}
|
||||
|
||||
// 查询当前代理商户可绑用户列表
|
||||
export const getBrokerListForAgent = async () => {
|
||||
return await request.get({ url: `/member/user/get-broker-list`})
|
||||
}
|
||||
|
||||
// 导出支付订单
|
||||
export const exportUser = async (params) => {
|
||||
return await request.download({ url: '/member/user/export-excel', params })
|
||||
}
|
||||
|
@ -24,8 +24,3 @@ export const getWallet = async (params: PayWalletUserReqVO) => {
|
||||
export const getWalletPage = async (params) => {
|
||||
return await request.get({ url: `/pay/wallet/page`, params })
|
||||
}
|
||||
|
||||
// 修改会员钱包余额
|
||||
export const updateWalletBalance = async (data: any) => {
|
||||
return await request.put({ url: `/pay/wallet/update-balance`, data })
|
||||
}
|
||||
|
@ -1,56 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 钱包充值 VO
|
||||
export interface WalletRechargeVO {
|
||||
id: number // id
|
||||
walletId: number // 钱包编号
|
||||
totalPrice: number // 充值实际到账
|
||||
payPrice: number // 实际支付金额
|
||||
bonusPrice: number // 钱包赠送金额
|
||||
packageId: number // 充值套餐编号
|
||||
payStatus: boolean // 是否支付
|
||||
payOrderId: number // 支付订单编号
|
||||
payChannelCode: string // 支付成功的支付渠道
|
||||
payTime: Date // 订单支付时间
|
||||
payRefundId: number // 支付退款单编号
|
||||
refundTotalPrice: number // 退款金额(包含赠送金额)
|
||||
refundPayPrice: number // 退款支付金额
|
||||
refundBonusPrice: number // 退款钱包赠送金额
|
||||
refundTime: Date // 退款时间
|
||||
refundStatus: number // 退款状态
|
||||
name : string
|
||||
avatar: string
|
||||
}
|
||||
|
||||
// 钱包充值 API
|
||||
export const WalletRechargeApi = {
|
||||
// 查询钱包充值分页
|
||||
getWalletRechargePage: async (params: any) => {
|
||||
return await request.get({ url: `/pay/wallet-recharge/page`, params })
|
||||
},
|
||||
|
||||
// 查询钱包充值详情
|
||||
getWalletRecharge: async (id: number) => {
|
||||
return await request.get({ url: `/pay/wallet-recharge/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增钱包充值
|
||||
createWalletRecharge: async (data: WalletRechargeVO) => {
|
||||
return await request.post({ url: `/pay/wallet-recharge/create`, data })
|
||||
},
|
||||
|
||||
// 修改钱包充值
|
||||
updateWalletRecharge: async (data: WalletRechargeVO) => {
|
||||
return await request.put({ url: `/pay/wallet-recharge/update`, data })
|
||||
},
|
||||
|
||||
// 删除钱包充值
|
||||
deleteWalletRecharge: async (id: number) => {
|
||||
return await request.delete({ url: `/pay/wallet-recharge/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出钱包充值 Excel
|
||||
exportWalletRecharge: async (params) => {
|
||||
return await request.download({ url: `/pay/wallet-recharge/export-excel`, params })
|
||||
}
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 活动信息 VO
|
||||
export interface ActivityInfoVO {
|
||||
id: number // 活动唯一ID
|
||||
activityTitle: string // 活动标题
|
||||
activityLocation: string // 活动地点
|
||||
organizer: string // 活动主办方
|
||||
startTime: Date // 活动开始时间
|
||||
endTime: Date // 活动结束时间
|
||||
price: number // 活动票价
|
||||
status: string // 活动状态
|
||||
activityType: string // 活动类型
|
||||
capacity: number // 活动人数限制
|
||||
registeredCount: number // 已报名人数
|
||||
topicType: string // 专题类型
|
||||
}
|
||||
|
||||
// 活动信息 API
|
||||
export const ActivityInfoApi = {
|
||||
// 查询活动信息分页
|
||||
getActivityInfoPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/activity-info/page`, params })
|
||||
},
|
||||
|
||||
// 查询活动信息详情
|
||||
getActivityInfo: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/activity-info/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增活动信息
|
||||
createActivityInfo: async (data: ActivityInfoVO) => {
|
||||
return await request.post({ url: `/promotion/activity-info/create`, data })
|
||||
},
|
||||
|
||||
// 修改活动信息
|
||||
updateActivityInfo: async (data: ActivityInfoVO) => {
|
||||
return await request.put({ url: `/promotion/activity-info/update`, data })
|
||||
},
|
||||
|
||||
// 删除活动信息
|
||||
deleteActivityInfo: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/activity-info/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出活动信息 Excel
|
||||
exportActivityInfo: async (params) => {
|
||||
return await request.download({ url: `/promotion/activity-info/export-excel`, params })
|
||||
},
|
||||
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 活动报名 VO
|
||||
export interface RegistrationVO {
|
||||
userName: string // 用户姓名
|
||||
phoneNumber: string // 手机号
|
||||
companyName: string // 公司名称
|
||||
position: string // 职位
|
||||
operationPlatform: string // 运营平台
|
||||
mainCategory: string // 主营品类
|
||||
agencyCity: string // 代理城市
|
||||
productIntent: string // 产品意向
|
||||
purpose: string // 参会目的
|
||||
attendeeIdentity: string // 参会身份
|
||||
registrationStatus: string // 报名状态
|
||||
verificationCode: string // 核销码
|
||||
verificationStatus: string // 核销状态
|
||||
isPaid: string // 是否付费
|
||||
reviewStatus: string // 审核状态
|
||||
}
|
||||
|
||||
// 活动报名 API
|
||||
export const RegistrationApi = {
|
||||
// 查询活动报名分页
|
||||
getRegistrationPage: async (params: any) => {
|
||||
return await request.get({ url: `/promotion/registration/page`, params })
|
||||
},
|
||||
|
||||
// 查询活动报名详情
|
||||
getRegistration: async (id: number) => {
|
||||
return await request.get({ url: `/promotion/registration/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增活动报名
|
||||
createRegistration: async (data: RegistrationVO) => {
|
||||
return await request.post({ url: `/promotion/registration/create`, data })
|
||||
},
|
||||
|
||||
// 修改活动报名
|
||||
updateRegistration: async (data: RegistrationVO) => {
|
||||
return await request.put({ url: `/promotion/registration/update`, data })
|
||||
},
|
||||
|
||||
// 删除活动报名
|
||||
deleteRegistration: async (id: number) => {
|
||||
return await request.delete({ url: `/promotion/registration/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出活动报名 Excel
|
||||
exportRegistration: async (params) => {
|
||||
return await request.download({ url: `/promotion/registration/export-excel`, params })
|
||||
},
|
||||
// 查询活动名称数据
|
||||
getActivityNames: async () => {
|
||||
return await request.get({ url: `/promotion/registration/getOrganization` })
|
||||
},
|
||||
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 门店管理 VO
|
||||
export interface LitemallBrandVO {
|
||||
id: number // 门店id
|
||||
userId: string // 门店管理员id
|
||||
phone: string // 联系电话
|
||||
name: string // 门店名称
|
||||
mail: string // 门店邮箱
|
||||
picUrl: string // 门店图片
|
||||
address: string // 门店地址
|
||||
depict: string // 门店简介
|
||||
status: number // 门店状态
|
||||
weight: number // 权重
|
||||
remark: string // 备注
|
||||
}
|
||||
|
||||
// 门店管理 API
|
||||
export const LitemallBrandApi = {
|
||||
// 查询门店管理分页
|
||||
getLitemallBrandPage: async (params: any) => {
|
||||
return await request.get({ url: `/subscribe/litemall-brand/page`, params })
|
||||
},
|
||||
|
||||
// 查询门店管理详情
|
||||
getLitemallBrand: async (id: number) => {
|
||||
return await request.get({ url: `/subscribe/litemall-brand/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增门店管理
|
||||
createLitemallBrand: async (data: LitemallBrandVO) => {
|
||||
return await request.post({ url: `/subscribe/litemall-brand/create`, data })
|
||||
},
|
||||
|
||||
// 修改门店管理
|
||||
updateLitemallBrand: async (data: LitemallBrandVO) => {
|
||||
return await request.put({ url: `/subscribe/litemall-brand/update`, data })
|
||||
},
|
||||
|
||||
// 删除门店管理
|
||||
deleteLitemallBrand: async (id: number) => {
|
||||
return await request.delete({ url: `/subscribe/litemall-brand/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出门店管理 Excel
|
||||
exportLitemallBrand: async (params) => {
|
||||
return await request.download({ url: `/subscribe/litemall-brand/export-excel`, params })
|
||||
},
|
||||
|
||||
// 查询机构名称数据
|
||||
getOrganizations: async () => {
|
||||
return await request.get({ url: `/subscribe/litemall-brand/getOrganization`})
|
||||
},
|
||||
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 预约配置 VO
|
||||
export interface ConfigurationVO {
|
||||
id: number // id
|
||||
projectdayId: number
|
||||
serviceTime: string
|
||||
technicianId: number // 套餐id
|
||||
technicianName: string
|
||||
timeQuantum: string // 时间段
|
||||
availableNumber: number // 可预约数
|
||||
residueNumber: number // 剩余预约数
|
||||
status: number // 状态
|
||||
}
|
||||
|
||||
// 预约配置 API
|
||||
export const ConfigurationApi = {
|
||||
// 查询预约配置分页
|
||||
getConfigurationPage: async (params: any) => {
|
||||
return await request.get({ url: `/subscribe/configuration/page`, params })
|
||||
},
|
||||
|
||||
// 查询预约配置详情
|
||||
getConfiguration: async (id: number) => {
|
||||
return await request.get({ url: `/subscribe/configuration/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增预约配置
|
||||
createConfiguration: async (data: ConfigurationVO) => {
|
||||
return await request.post({ url: `/subscribe/configuration/create`, data })
|
||||
},
|
||||
|
||||
// 修改预约配置
|
||||
updateConfiguration: async (data: ConfigurationVO) => {
|
||||
return await request.put({ url: `/subscribe/configuration/update`, data })
|
||||
},
|
||||
|
||||
// 删除预约配置
|
||||
deleteConfiguration: async (id: number) => {
|
||||
return await request.delete({ url: `/subscribe/configuration/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出预约配置 Excel
|
||||
exportConfiguration: async (params) => {
|
||||
return await request.download({ url: `/subscribe/configuration/export-excel`, params })
|
||||
},
|
||||
|
||||
// addUpdConfiguration: async (projectdayId: number,technicianId: number,serviceTimes: string) => {
|
||||
// return await request.post({ url: `/subscribe/configuration/addUpdConfiguration?projectdayId=`+projectdayId+`&technicianId=`+technicianId+`&serviceTimes=`+serviceTimes })
|
||||
// },
|
||||
|
||||
|
||||
addUpdConfiguration: async (data: ConfigurationVO) => {
|
||||
return await request.post({ url: `/subscribe/configuration/addUpdConfiguration`, data })
|
||||
},
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 预约项目 VO
|
||||
export interface ProjectVO {
|
||||
id: number // ID
|
||||
brandId: number // 所属门店
|
||||
yuyueNum: number //可预约数量
|
||||
name: string // 项目名称
|
||||
pictrue: string // 项目图片
|
||||
content: string // 项目简介
|
||||
status: number // 状态
|
||||
timeInterval: string // 可预约日期
|
||||
brandName: string
|
||||
}
|
||||
|
||||
// 预约项目 API
|
||||
export const ProjectApi = {
|
||||
// 查询预约项目分页
|
||||
getProjectPage: async (params: any) => {
|
||||
return await request.get({ url: `/subscribe/project/page`, params })
|
||||
},
|
||||
|
||||
// 查询预约项目详情
|
||||
getProject: async (id: number) => {
|
||||
return await request.get({ url: `/subscribe/project/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增预约项目
|
||||
createProject: async (data: ProjectVO) => {
|
||||
return await request.post({ url: `/subscribe/project/create`, data })
|
||||
},
|
||||
|
||||
// 修改预约项目
|
||||
updateProject: async (data: ProjectVO) => {
|
||||
return await request.put({ url: `/subscribe/project/update`, data })
|
||||
},
|
||||
|
||||
// 删除预约项目
|
||||
deleteProject: async (id: number) => {
|
||||
return await request.delete({ url: `/subscribe/project/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出预约项目 Excel
|
||||
exportProject: async (params) => {
|
||||
return await request.download({ url: `/subscribe/project/export-excel`, params })
|
||||
},
|
||||
|
||||
getProjectName: async () => {
|
||||
return await request.get({ url: `/subscribe/project/getProjectName` })
|
||||
},
|
||||
|
||||
getProjectDay: async (id: number) => {
|
||||
return await request.get({ url: `/subscribe/project/getProjectDay?id=` + id })
|
||||
},
|
||||
|
||||
getConfiguration: async (id: number) => {
|
||||
return await request.get({ url: `/subscribe/configuration/getConfiguration?id=` + id })
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 预约订单 VO
|
||||
export interface LitemallReservationVO {
|
||||
id: number // id
|
||||
userId: number // 用户id
|
||||
nickname: string
|
||||
// type: number // 预约类型
|
||||
brandId: string // 门店id
|
||||
technicianId: string // 人员id
|
||||
|
||||
name: string
|
||||
phone: string
|
||||
brandName: string
|
||||
porjectName: string
|
||||
technicianName: string
|
||||
days: string
|
||||
timeQuantum: string
|
||||
|
||||
|
||||
// reAddTime: Date // 预约时间
|
||||
// hsstr: string // 预约时间段
|
||||
reStatus: number // 预约状态
|
||||
status: number // 审核状态
|
||||
remark: string // 备注
|
||||
}
|
||||
|
||||
// 预约订单 API
|
||||
export const LitemallReservationApi = {
|
||||
// 查询预约订单分页
|
||||
getLitemallReservationPage: async (params: any) => {
|
||||
return await request.get({ url: `/subscribe/litemall-reservation/page`, params })
|
||||
},
|
||||
|
||||
// 查询预约订单详情
|
||||
getLitemallReservation: async (id: number) => {
|
||||
return await request.get({ url: `/subscribe/litemall-reservation/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增预约订单
|
||||
createLitemallReservation: async (data: LitemallReservationVO) => {
|
||||
return await request.post({ url: `/subscribe/litemall-reservation/create`, data })
|
||||
},
|
||||
|
||||
// 修改预约订单
|
||||
updateLitemallReservation: async (data: LitemallReservationVO) => {
|
||||
return await request.put({ url: `/subscribe/litemall-reservation/update`, data })
|
||||
},
|
||||
|
||||
// 删除预约订单
|
||||
deleteLitemallReservation: async (id: number) => {
|
||||
return await request.delete({ url: `/subscribe/litemall-reservation/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出预约订单 Excel
|
||||
exportLitemallReservation: async (params) => {
|
||||
return await request.download({ url: `/subscribe/litemall-reservation/export-excel`, params })
|
||||
},
|
||||
|
||||
// 删除预约订单
|
||||
checkLitemallReservation: async (id: number,check: number) => {
|
||||
return await request.get({ url: `/subscribe/litemall-reservation/check?id=` + id + `&check=` + check })
|
||||
},
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 人员管理 VO
|
||||
export interface LitemallTechnicianVO {
|
||||
id: number // idd
|
||||
name: string
|
||||
projectId: number // 项目id
|
||||
brandName: string //项目名称
|
||||
photo: string // 照片
|
||||
serviceTime: string // 服务时间段
|
||||
serviceScope: string // 服务范围
|
||||
ym: number // 约满标记
|
||||
status: number // 状态
|
||||
content: string // 介绍
|
||||
remark: string // 备注
|
||||
serviceTimeArray: string
|
||||
}
|
||||
|
||||
// 人员管理 API
|
||||
export const LitemallTechnicianApi = {
|
||||
// 查询人员管理分页
|
||||
getLitemallTechnicianPage: async (params: any) => {
|
||||
return await request.get({ url: `/subscribe/litemall-technician/page`, params })
|
||||
},
|
||||
|
||||
// 查询人员管理详情
|
||||
getLitemallTechnician: async (id: number) => {
|
||||
return await request.get({ url: `/subscribe/litemall-technician/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增人员管理
|
||||
createLitemallTechnician: async (data: LitemallTechnicianVO) => {
|
||||
return await request.post({ url: `/subscribe/litemall-technician/create`, data })
|
||||
},
|
||||
|
||||
// 修改人员管理
|
||||
updateLitemallTechnician: async (data: LitemallTechnicianVO) => {
|
||||
return await request.put({ url: `/subscribe/litemall-technician/update`, data })
|
||||
},
|
||||
|
||||
// 删除人员管理
|
||||
deleteLitemallTechnician: async (id: number) => {
|
||||
return await request.delete({ url: `/subscribe/litemall-technician/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出人员管理 Excel
|
||||
exportLitemallTechnician: async (params) => {
|
||||
return await request.download({ url: `/subscribe/litemall-technician/export-excel`, params })
|
||||
},
|
||||
|
||||
// 查询机构名称数据
|
||||
getTechnicianName: async () => {
|
||||
return await request.get({ url: `/subscribe/litemall-technician/getTechnicianName`})
|
||||
},
|
||||
}
|
@ -47,33 +47,3 @@ export const deleteDictData = (id: number) => {
|
||||
export const exportDictData = (params) => {
|
||||
return request.download({ url: '/system/dict-data/export', params })
|
||||
}
|
||||
|
||||
// 图片素材管理分类
|
||||
export const getTypeList = () => {
|
||||
return request.get({ url: '/system/dict-data/getTypeList' })
|
||||
}
|
||||
|
||||
// 客服话术分类
|
||||
export const getHuaShuTypeList = () => {
|
||||
return request.get({ url: '/system/dict-data/getHuaShuTypeList' })
|
||||
}
|
||||
|
||||
// 新增字典数据,客服话术分类
|
||||
export const createType = (data: DictDataVO) => {
|
||||
return request.post({ url: '/system/dict-data/createType', data })
|
||||
}
|
||||
|
||||
// 新增字典数据,素材管理图片分类
|
||||
export const createPicType = (data: DictDataVO) => {
|
||||
return request.post({ url: '/system/dict-data/createPicType', data })
|
||||
}
|
||||
|
||||
// 新增字典数据,素材管理图片分类
|
||||
export const updateMenu = (id : number, name : string) => {
|
||||
return request.get({ url: '/system/dict-data/updateMenu?id='+ id + `&name=` + name })
|
||||
}
|
||||
|
||||
// 删除字典数据
|
||||
export const deleteMenu = (id: number | undefined) => {
|
||||
return request.delete({ url: '/system/dict-data/deleteMenu?id=' + id })
|
||||
}
|
||||
|
@ -1,45 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 会员卡划拨 VO
|
||||
export interface TransferVO {
|
||||
id: number // 编号
|
||||
cardNumber: string // 会员卡号
|
||||
assignorId: number // 合伙人
|
||||
transfereeId: number // 会员
|
||||
assignorPhone: string // 合伙人电话
|
||||
transfereePhone: string // 会员电话
|
||||
status: number // 状态
|
||||
}
|
||||
|
||||
// 会员卡划拨 API
|
||||
export const TransferApi = {
|
||||
// 查询会员卡划拨分页
|
||||
getTransferPage: async (params: any) => {
|
||||
return await request.get({ url: `/card/transfer/page`, params })
|
||||
},
|
||||
|
||||
// 查询会员卡划拨详情
|
||||
getTransfer: async (id: number) => {
|
||||
return await request.get({ url: `/card/transfer/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增会员卡划拨
|
||||
createTransfer: async (data: TransferVO) => {
|
||||
return await request.post({ url: `/card/transfer/create`, data })
|
||||
},
|
||||
|
||||
// 修改会员卡划拨
|
||||
updateTransfer: async (data: TransferVO) => {
|
||||
return await request.put({ url: `/card/transfer/update`, data })
|
||||
},
|
||||
|
||||
// 删除会员卡划拨
|
||||
deleteTransfer: async (id: number) => {
|
||||
return await request.delete({ url: `/card/transfer/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出会员卡划拨 Excel
|
||||
exportTransfer: async (params) => {
|
||||
return await request.download({ url: `/card/transfer/export-excel`, params })
|
||||
}
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 会员卡划拨记录 VO
|
||||
export interface TransferLogVO {
|
||||
id: number // 划拨id
|
||||
cardNumber: string // 会员卡号
|
||||
assignorId: number // 发起人
|
||||
transfereeId: number // 划拨人
|
||||
assignorPhone: string // 发起人手机
|
||||
transfereePhone: string // 划拨人手机
|
||||
status: number // 状态
|
||||
}
|
||||
|
||||
// 会员卡划拨记录 API
|
||||
export const TransferLogApi = {
|
||||
// 查询会员卡划拨记录分页
|
||||
getTransferLogPage: async (params: any) => {
|
||||
return await request.get({ url: `/card/transfer-log/page`, params })
|
||||
},
|
||||
|
||||
// 查询会员卡划拨记录详情
|
||||
getTransferLog: async (id: number) => {
|
||||
return await request.get({ url: `/card/transfer-log/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增会员卡划拨记录
|
||||
createTransferLog: async (data: TransferLogVO) => {
|
||||
return await request.post({ url: `/card/transfer-log/create`, data })
|
||||
},
|
||||
|
||||
// 修改会员卡划拨记录
|
||||
updateTransferLog: async (data: TransferLogVO) => {
|
||||
return await request.put({ url: `/card/transfer-log/update`, data })
|
||||
},
|
||||
|
||||
// 删除会员卡划拨记录
|
||||
deleteTransferLog: async (id: number) => {
|
||||
return await request.delete({ url: `/card/transfer-log/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出会员卡划拨记录 Excel
|
||||
exportTransferLog: async (params) => {
|
||||
return await request.download({ url: `/card/transfer-log/export-excel`, params })
|
||||
},
|
||||
}
|
Before Width: | Height: | Size: 640 B |
Before Width: | Height: | Size: 573 B |
Before Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 534 B |
Before Width: | Height: | Size: 466 B |
Before Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 514 B |
Before Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 545 B |
Before Width: | Height: | Size: 335 B |
Before Width: | Height: | Size: 529 B |
Before Width: | Height: | Size: 759 B |
Before Width: | Height: | Size: 609 B |
Before Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 821 B |
Before Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 339 B |
Before Width: | Height: | Size: 573 B |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 36 KiB |
@ -1,220 +1,207 @@
|
||||
<template>
|
||||
<Dialog v-model="dialogVisible" title="选择链接" width="65%">
|
||||
<div class="h-500px flex gap-8px">
|
||||
<!-- 左侧分组列表 -->
|
||||
<el-scrollbar wrap-class="h-full" ref="groupScrollbar" view-class="flex flex-col">
|
||||
<template v-for="(group, groupIndex) in APP_LINK_GROUP_LIST">
|
||||
<el-button v-if="groupIndex<7" :key="groupIndex" :class="[
|
||||
<Dialog v-model="dialogVisible" title="选择链接" width="65%">
|
||||
<div class="h-500px flex gap-8px">
|
||||
<!-- 左侧分组列表 -->
|
||||
<el-scrollbar wrap-class="h-full" ref="groupScrollbar" view-class="flex flex-col">
|
||||
<el-button
|
||||
v-for="(group, groupIndex) in APP_LINK_GROUP_LIST"
|
||||
:key="groupIndex"
|
||||
:class="[
|
||||
'm-r-16px m-l-0px! justify-start! w-90px',
|
||||
{ active: activeGroup === group.name }
|
||||
]" ref="groupBtnRefs" :text="activeGroup !== group.name"
|
||||
:type="activeGroup === group.name ? 'primary' : 'default'" @click="handleGroupSelected(group.name)">
|
||||
{{ group.name }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-scrollbar>
|
||||
<!-- 右侧链接列表 -->
|
||||
<el-scrollbar class="h-full flex-1" @scroll="handleScroll" ref="linkScrollbar">
|
||||
<div v-for="(group, groupIndex) in APP_LINK_GROUP_LIST" :key="groupIndex">
|
||||
<template v-if="activeGroup == group.name && groupIndex<7">
|
||||
<!-- 分组标题 -->
|
||||
<div class="font-bold" ref="groupTitleRefs">{{ group.name }}</div>
|
||||
<!-- 链接列表 -->
|
||||
<el-tooltip v-for="(appLink, appLinkIndex) in group.links" :key="appLinkIndex"
|
||||
:content="appLink.path" placement="bottom" :show-after="300">
|
||||
|
||||
<el-button class="m-b-8px m-r-8px m-l-0px!"
|
||||
:type="appLink.path == activeAppLink.path ? 'primary' : 'default'"
|
||||
@click="handleAppLinkSelected(appLink)">
|
||||
{{ appLink.name }}
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
<!-- 底部对话框操作按钮 -->
|
||||
<template #footer>
|
||||
<el-button type="primary" @click="handleSubmit">确 定</el-button>
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
</template>
|
||||
</Dialog>
|
||||
<Dialog v-model="detailSelectDialog.visible" title="" width="50%">
|
||||
<el-form class="min-h-200px">
|
||||
<el-form-item label="选择分类" v-if="detailSelectDialog.type === APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST">
|
||||
<ProductCategorySelect v-model="detailSelectDialog.id" :parent-id="0"
|
||||
@update:model-value="handleProductCategorySelected" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</Dialog>
|
||||
]"
|
||||
ref="groupBtnRefs"
|
||||
:text="activeGroup !== group.name"
|
||||
:type="activeGroup === group.name ? 'primary' : 'default'"
|
||||
@click="handleGroupSelected(group.name)"
|
||||
>
|
||||
{{ group.name }}
|
||||
</el-button>
|
||||
</el-scrollbar>
|
||||
<!-- 右侧链接列表 -->
|
||||
<el-scrollbar class="h-full flex-1" @scroll="handleScroll" ref="linkScrollbar">
|
||||
<div v-for="(group, groupIndex) in APP_LINK_GROUP_LIST" :key="groupIndex">
|
||||
<!-- 分组标题 -->
|
||||
<div class="font-bold" ref="groupTitleRefs">{{ group.name }}</div>
|
||||
<!-- 链接列表 -->
|
||||
<el-tooltip
|
||||
v-for="(appLink, appLinkIndex) in group.links"
|
||||
:key="appLinkIndex"
|
||||
:content="appLink.path"
|
||||
placement="bottom"
|
||||
:show-after="300"
|
||||
>
|
||||
<el-button
|
||||
class="m-b-8px m-r-8px m-l-0px!"
|
||||
:type="isSameLink(appLink.path, activeAppLink.path) ? 'primary' : 'default'"
|
||||
@click="handleAppLinkSelected(appLink)"
|
||||
>
|
||||
{{ appLink.name }}
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
<!-- 底部对话框操作按钮 -->
|
||||
<template #footer>
|
||||
<el-button type="primary" @click="handleSubmit">确 定</el-button>
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
</template>
|
||||
</Dialog>
|
||||
<Dialog v-model="detailSelectDialog.visible" title="" width="50%">
|
||||
<el-form class="min-h-200px">
|
||||
<el-form-item
|
||||
label="选择分类"
|
||||
v-if="detailSelectDialog.type === APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST"
|
||||
>
|
||||
<ProductCategorySelect
|
||||
v-model="detailSelectDialog.id"
|
||||
:parent-id="0"
|
||||
@update:model-value="handleProductCategorySelected"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</Dialog>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { APP_LINK_GROUP_LIST, APP_LINK_TYPE_ENUM, AppLink } from './data'
|
||||
import * as MemberStatisticsApi from '@/api/mall/statistics/member'
|
||||
import { ButtonInstance, ScrollbarInstance } from 'element-plus'
|
||||
import { split } from 'lodash-es'
|
||||
import ProductCategorySelect from '@/views/mall/product/category/components/ProductCategorySelect.vue'
|
||||
import { getUrlNumberValue } from '@/utils'
|
||||
// 假设你要追加的数据是一个新的对象
|
||||
const userComparison = ref([])
|
||||
/** 查询会员用户数量对照卡片数据 */
|
||||
const GetDiyPage = async () => {
|
||||
userComparison.value = await MemberStatisticsApi.getDiyPage()
|
||||
const arry = userComparison.value.map(link => {
|
||||
return {
|
||||
name: link.name,
|
||||
path: `/pages/index/page?id=${link.id}`
|
||||
};
|
||||
});
|
||||
userComparison.value = {
|
||||
name: '自定义页面',
|
||||
links:arry
|
||||
}
|
||||
APP_LINK_GROUP_LIST.push(userComparison.value);
|
||||
// userComparison.value = APP_LINK_GROUP_LIST
|
||||
// userComparison.value = APP_LINK_GROUP_LIST.push({qq:1})
|
||||
console.log(APP_LINK_GROUP_LIST, 'userComparison.value')
|
||||
}
|
||||
GetDiyPage()
|
||||
// APP 链接选择弹框
|
||||
defineOptions({ name: 'AppLinkSelectDialog' })
|
||||
// 选中的分组,默认选中第一个
|
||||
const activeGroup = ref(APP_LINK_GROUP_LIST[0].name)
|
||||
// 选中的 APP 链接
|
||||
const activeAppLink = ref({} as AppLink)
|
||||
import { APP_LINK_GROUP_LIST, APP_LINK_TYPE_ENUM, AppLink } from './data'
|
||||
import { ButtonInstance, ScrollbarInstance } from 'element-plus'
|
||||
import { split } from 'lodash-es'
|
||||
import ProductCategorySelect from '@/views/mall/product/category/components/ProductCategorySelect.vue'
|
||||
import { getUrlNumberValue } from '@/utils'
|
||||
|
||||
/** 打开弹窗 */
|
||||
const dialogVisible = ref(false)
|
||||
const open = (link : string) => {
|
||||
activeAppLink.value.path = link
|
||||
dialogVisible.value = true
|
||||
// APP 链接选择弹框
|
||||
defineOptions({ name: 'AppLinkSelectDialog' })
|
||||
// 选中的分组,默认选中第一个
|
||||
const activeGroup = ref(APP_LINK_GROUP_LIST[0].name)
|
||||
// 选中的 APP 链接
|
||||
const activeAppLink = ref({} as AppLink)
|
||||
|
||||
// 滚动到当前的链接
|
||||
const group = APP_LINK_GROUP_LIST.find((group) =>
|
||||
group.links.some((linkItem) => {
|
||||
const sameLink = isSameLink(linkItem.path, link)
|
||||
if (sameLink) {
|
||||
activeAppLink.value = { ...linkItem, path: link }
|
||||
}
|
||||
return sameLink
|
||||
})
|
||||
)
|
||||
if (group) {
|
||||
// 使用 nextTick 的原因:可能 Dom 还没生成,导致滚动失败
|
||||
nextTick(() => handleGroupSelected(group.name))
|
||||
}
|
||||
}
|
||||
defineExpose({ open })
|
||||
/** 打开弹窗 */
|
||||
const dialogVisible = ref(false)
|
||||
const open = (link: string) => {
|
||||
activeAppLink.value.path = link
|
||||
dialogVisible.value = true
|
||||
|
||||
// 处理 APP 链接选中
|
||||
const handleAppLinkSelected = (appLink : AppLink) => {
|
||||
if(!appLink.path.includes('/pages/index/page')){
|
||||
if (!isSameLink(appLink.path, activeAppLink.value.path)) {
|
||||
activeAppLink.value = appLink
|
||||
// console.log(activeAppLink.value,activeAppLink.value.path,"activeAppLink.value")
|
||||
}
|
||||
}else{
|
||||
activeAppLink.value.path = appLink.path
|
||||
console.log(activeAppLink.value.path,"activeAppLink.value.path")
|
||||
}
|
||||
switch (appLink.type) {
|
||||
case APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST:
|
||||
detailSelectDialog.value.visible = true
|
||||
detailSelectDialog.value.type = appLink.type
|
||||
// 返显
|
||||
detailSelectDialog.value.id =
|
||||
getUrlNumberValue('id', 'http://127.0.0.1' + activeAppLink.value.path) || undefined
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
// 滚动到当前的链接
|
||||
const group = APP_LINK_GROUP_LIST.find((group) =>
|
||||
group.links.some((linkItem) => {
|
||||
const sameLink = isSameLink(linkItem.path, link)
|
||||
if (sameLink) {
|
||||
activeAppLink.value = { ...linkItem, path: link }
|
||||
}
|
||||
return sameLink
|
||||
})
|
||||
)
|
||||
if (group) {
|
||||
// 使用 nextTick 的原因:可能 Dom 还没生成,导致滚动失败
|
||||
nextTick(() => handleGroupSelected(group.name))
|
||||
}
|
||||
}
|
||||
defineExpose({ open })
|
||||
|
||||
// 处理绑定值更新
|
||||
const emit = defineEmits<{
|
||||
change : [link: string]
|
||||
appLinkChange : [appLink: AppLink]
|
||||
}>()
|
||||
const handleSubmit = () => {
|
||||
dialogVisible.value = false
|
||||
emit('change', activeAppLink.value.path)
|
||||
emit('appLinkChange', activeAppLink.value)
|
||||
}
|
||||
// 处理 APP 链接选中
|
||||
const handleAppLinkSelected = (appLink: AppLink) => {
|
||||
if (!isSameLink(appLink.path, activeAppLink.value.path)) {
|
||||
activeAppLink.value = appLink
|
||||
}
|
||||
switch (appLink.type) {
|
||||
case APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST:
|
||||
detailSelectDialog.value.visible = true
|
||||
detailSelectDialog.value.type = appLink.type
|
||||
// 返显
|
||||
detailSelectDialog.value.id =
|
||||
getUrlNumberValue('id', 'http://127.0.0.1' + activeAppLink.value.path) || undefined
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// 分组标题引用列表
|
||||
const groupTitleRefs = ref<HTMLInputElement[]>([])
|
||||
/**
|
||||
* 处理右侧链接列表滚动
|
||||
* @param scrollTop 滚动条的位置
|
||||
*/
|
||||
const handleScroll = ({ scrollTop } : { scrollTop : number }) => {
|
||||
const titleEl = groupTitleRefs.value.find((titleEl : HTMLInputElement) => {
|
||||
// 获取标题的位置信息
|
||||
const { offsetHeight, offsetTop } = titleEl
|
||||
// 判断标题是否在可视范围内
|
||||
return scrollTop >= offsetTop && scrollTop < offsetTop + offsetHeight
|
||||
})
|
||||
// 只需处理一次
|
||||
if (titleEl && activeGroup.value !== titleEl.textContent) {
|
||||
activeGroup.value = titleEl.textContent || ''
|
||||
// 同步左侧的滚动条位置
|
||||
scrollToGroupBtn(activeGroup.value)
|
||||
}
|
||||
}
|
||||
// 处理绑定值更新
|
||||
const emit = defineEmits<{
|
||||
change: [link: string]
|
||||
appLinkChange: [appLink: AppLink]
|
||||
}>()
|
||||
const handleSubmit = () => {
|
||||
dialogVisible.value = false
|
||||
emit('change', activeAppLink.value.path)
|
||||
emit('appLinkChange', activeAppLink.value)
|
||||
}
|
||||
|
||||
// 右侧滚动条
|
||||
const linkScrollbar = ref<ScrollbarInstance>()
|
||||
// 处理分组选中
|
||||
const handleGroupSelected = (group : string) => {
|
||||
activeGroup.value = group
|
||||
// const titleRef = groupTitleRefs.value.find((item: HTMLInputElement) => item.textContent === group)
|
||||
// if (titleRef) {
|
||||
// // 滚动分组标题
|
||||
// linkScrollbar.value?.setScrollTop(titleRef.offsetTop)
|
||||
// }
|
||||
}
|
||||
// 分组标题引用列表
|
||||
const groupTitleRefs = ref<HTMLInputElement[]>([])
|
||||
/**
|
||||
* 处理右侧链接列表滚动
|
||||
* @param scrollTop 滚动条的位置
|
||||
*/
|
||||
const handleScroll = ({ scrollTop }: { scrollTop: number }) => {
|
||||
const titleEl = groupTitleRefs.value.find((titleEl: HTMLInputElement) => {
|
||||
// 获取标题的位置信息
|
||||
const { offsetHeight, offsetTop } = titleEl
|
||||
// 判断标题是否在可视范围内
|
||||
return scrollTop >= offsetTop && scrollTop < offsetTop + offsetHeight
|
||||
})
|
||||
// 只需处理一次
|
||||
if (titleEl && activeGroup.value !== titleEl.textContent) {
|
||||
activeGroup.value = titleEl.textContent || ''
|
||||
// 同步左侧的滚动条位置
|
||||
scrollToGroupBtn(activeGroup.value)
|
||||
}
|
||||
}
|
||||
|
||||
// 分组滚动条
|
||||
const groupScrollbar = ref<ScrollbarInstance>()
|
||||
// 分组引用列表
|
||||
const groupBtnRefs = ref<ButtonInstance[]>([])
|
||||
// 自动滚动分组按钮,确保分组按钮保持在可视区域内
|
||||
const scrollToGroupBtn = (group : string) => {
|
||||
const groupBtn = groupBtnRefs.value
|
||||
.map((btn : ButtonInstance) => btn['ref'])
|
||||
.find((ref : Node) => ref.textContent === group)
|
||||
if (groupBtn) {
|
||||
groupScrollbar.value?.setScrollTop(groupBtn.offsetTop)
|
||||
}
|
||||
}
|
||||
// 右侧滚动条
|
||||
const linkScrollbar = ref<ScrollbarInstance>()
|
||||
// 处理分组选中
|
||||
const handleGroupSelected = (group: string) => {
|
||||
activeGroup.value = group
|
||||
const titleRef = groupTitleRefs.value.find((item: HTMLInputElement) => item.textContent === group)
|
||||
if (titleRef) {
|
||||
// 滚动分组标题
|
||||
linkScrollbar.value?.setScrollTop(titleRef.offsetTop)
|
||||
}
|
||||
}
|
||||
|
||||
// 是否为相同的链接(不比较参数,只比较链接)
|
||||
const isSameLink = (link1 : string, link2 : string) => {
|
||||
return split(link1, '?', 1)[0] === split(link2, '?', 1)[0]
|
||||
}
|
||||
// 分组滚动条
|
||||
const groupScrollbar = ref<ScrollbarInstance>()
|
||||
// 分组引用列表
|
||||
const groupBtnRefs = ref<ButtonInstance[]>([])
|
||||
// 自动滚动分组按钮,确保分组按钮保持在可视区域内
|
||||
const scrollToGroupBtn = (group: string) => {
|
||||
const groupBtn = groupBtnRefs.value
|
||||
.map((btn: ButtonInstance) => btn['ref'])
|
||||
.find((ref: Node) => ref.textContent === group)
|
||||
if (groupBtn) {
|
||||
groupScrollbar.value?.setScrollTop(groupBtn.offsetTop)
|
||||
}
|
||||
}
|
||||
|
||||
// 详情选择对话框
|
||||
const detailSelectDialog = ref<{
|
||||
visible : boolean
|
||||
id ?: number
|
||||
type ?: APP_LINK_TYPE_ENUM
|
||||
}>({
|
||||
visible: false,
|
||||
id: undefined,
|
||||
type: undefined
|
||||
})
|
||||
// 处理详情选择
|
||||
const handleProductCategorySelected = (id : number) => {
|
||||
const url = new URL(activeAppLink.value.path, 'http://127.0.0.1')
|
||||
// 修改 id 参数
|
||||
url.searchParams.set('id', `${id}`)
|
||||
// 排除域名
|
||||
activeAppLink.value.path = `${url.pathname}${url.search}`
|
||||
// 关闭对话框
|
||||
detailSelectDialog.value.visible = false
|
||||
// 重置 id
|
||||
detailSelectDialog.value.id = undefined
|
||||
}
|
||||
// 是否为相同的链接(不比较参数,只比较链接)
|
||||
const isSameLink = (link1: string, link2: string) => {
|
||||
return split(link1, '?', 1)[0] === split(link2, '?', 1)[0]
|
||||
}
|
||||
|
||||
// 详情选择对话框
|
||||
const detailSelectDialog = ref<{
|
||||
visible: boolean
|
||||
id?: number
|
||||
type?: APP_LINK_TYPE_ENUM
|
||||
}>({
|
||||
visible: false,
|
||||
id: undefined,
|
||||
type: undefined
|
||||
})
|
||||
// 处理详情选择
|
||||
const handleProductCategorySelected = (id: number) => {
|
||||
const url = new URL(activeAppLink.value.path, 'http://127.0.0.1')
|
||||
// 修改 id 参数
|
||||
url.searchParams.set('id', `${id}`)
|
||||
// 排除域名
|
||||
activeAppLink.value.path = `${url.pathname}${url.search}`
|
||||
// 关闭对话框
|
||||
detailSelectDialog.value.visible = false
|
||||
// 重置 id
|
||||
detailSelectDialog.value.id = undefined
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
@ -65,11 +65,11 @@ export const APP_LINK_GROUP_LIST = [
|
||||
name: '商品搜索',
|
||||
path: '/pages/index/search'
|
||||
},
|
||||
// {
|
||||
// name: '自定义页面',
|
||||
// path: '/pages/index/page',
|
||||
// type: APP_LINK_TYPE_ENUM.DIY_PAGE_DETAIL
|
||||
// },
|
||||
{
|
||||
name: '自定义页面',
|
||||
path: '/pages/index/page',
|
||||
type: APP_LINK_TYPE_ENUM.DIY_PAGE_DETAIL
|
||||
},
|
||||
{
|
||||
name: '客服',
|
||||
path: '/pages/chat/index'
|
||||
@ -78,26 +78,10 @@ export const APP_LINK_GROUP_LIST = [
|
||||
name: '系统设置',
|
||||
path: '/pages/public/setting'
|
||||
},
|
||||
// {
|
||||
// name: '常见问题',
|
||||
// path: '/pages/public/faq'
|
||||
// },
|
||||
{
|
||||
name: '积分商城',
|
||||
path: '/pages/index/page?id=3'
|
||||
},
|
||||
{
|
||||
name:'我的积分',
|
||||
path:'/pages/user/wallet/score'
|
||||
},
|
||||
{
|
||||
name:'兑换记录',
|
||||
path:'/pages/activity/point/exchange_list'
|
||||
},
|
||||
{
|
||||
name:'积分商品列表',
|
||||
path:'/pages/activity/point/exchange_listall?id=3'
|
||||
}
|
||||
{
|
||||
name: '常见问题',
|
||||
path: '/pages/public/faq'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -122,16 +106,6 @@ export const APP_LINK_GROUP_LIST = [
|
||||
name: '秒杀商品详情',
|
||||
path: '/pages/goods/seckill',
|
||||
type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_SECKILL
|
||||
},
|
||||
// {
|
||||
// name: '促销列表',
|
||||
// path: '/pages/goods/sales',
|
||||
// type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_SECKILL
|
||||
// },
|
||||
{
|
||||
name: '门店管理',
|
||||
path: '/pages/user/goods_details_store/index',
|
||||
type: APP_LINK_TYPE_ENUM.PRODUCT_DETAIL_SECKILL
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -208,11 +182,6 @@ export const APP_LINK_GROUP_LIST = [
|
||||
name: '充值记录',
|
||||
path: '/pages/pay/recharge-log'
|
||||
}
|
||||
// ,
|
||||
// {
|
||||
// name: '核销记录',
|
||||
// path: '/pages/pay/recharge-log'
|
||||
// }
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -253,53 +222,7 @@ export const APP_LINK_GROUP_LIST = [
|
||||
{
|
||||
name: '用户积分',
|
||||
path: '/pages/user/wallet/score'
|
||||
},
|
||||
{
|
||||
name: '联系客服',
|
||||
path: '/pages/chat/index'
|
||||
},
|
||||
{
|
||||
name: '会员中心',
|
||||
path: '/pages/user/user_vip/index'
|
||||
},
|
||||
{
|
||||
name:'付费会员',
|
||||
path:'/pages/user/user_vip/list'
|
||||
},
|
||||
{
|
||||
name:'预约中心',
|
||||
path:'/pages/subscribe/subscribe'
|
||||
},
|
||||
{
|
||||
name:'预约记录',
|
||||
path:'pages/reservation_record/reservation_record'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
// ,
|
||||
// {
|
||||
// name: '自定义页面',
|
||||
// links: [
|
||||
// {
|
||||
// name: '促销页面',
|
||||
// path: 'ss'
|
||||
// },
|
||||
// {
|
||||
// name: '关于我们',
|
||||
// path: '/pages/pay/recharge-lo'
|
||||
// },
|
||||
// {
|
||||
// name: '产品与服务',
|
||||
// path: '/pages/pay/recharge-l'
|
||||
// },
|
||||
// {
|
||||
// name: '自定义页面',
|
||||
// path: '/pages/pay/recharge-'
|
||||
// },
|
||||
// {
|
||||
// name: '个人中心',
|
||||
// path: '/pages/pay/recharge'
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
] as AppLinkGroup[]
|
||||
|
@ -23,11 +23,8 @@
|
||||
<div>
|
||||
<div class="drag-placement">组件放置区域</div>
|
||||
<div class="component">
|
||||
<!-- <Icon :icon="element.icon" :size="32" /> -->
|
||||
<div>
|
||||
<img :src="element.icon" />
|
||||
</div>
|
||||
<span class="text-12px">{{ element.name }}</span>
|
||||
<Icon :icon="element.icon" :size="32" />
|
||||
<span class="mt-4px text-12px">{{ element.name }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -131,8 +128,8 @@ const handleCloneComponent = (component: DiyComponent<any>) => {
|
||||
width: 86px;
|
||||
height: 86px;
|
||||
cursor: move;
|
||||
// border-right: 1px solid var(--el-border-color-lighter);
|
||||
// border-bottom: 1px solid var(--el-border-color-lighter);
|
||||
border-right: 1px solid var(--el-border-color-lighter);
|
||||
border-bottom: 1px solid var(--el-border-color-lighter);
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@ -145,9 +142,8 @@ const handleCloneComponent = (component: DiyComponent<any>) => {
|
||||
|
||||
.component.active,
|
||||
.component:hover {
|
||||
// color: var(--el-color-white);
|
||||
// background: var(--el-color-primary);
|
||||
background: #f6f6f6;
|
||||
color: var(--el-color-white);
|
||||
background: var(--el-color-primary);
|
||||
|
||||
.el-icon {
|
||||
color: var(--el-color-white);
|
||||
|
@ -26,13 +26,12 @@ export interface CarouselItemProperty {
|
||||
// 跳转链接
|
||||
url: string
|
||||
}
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-09.png'
|
||||
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'Carousel',
|
||||
name: '轮播图',
|
||||
// icon: 'system-uicons:carousel',
|
||||
icon: logo,
|
||||
icon: 'system-uicons:carousel',
|
||||
property: {
|
||||
type: 'default',
|
||||
indicator: 'dot',
|
||||
|
@ -1,51 +0,0 @@
|
||||
import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
|
||||
|
||||
/** 轮播图属性 */
|
||||
export interface CarouselProperty {
|
||||
// 类型:默认 | 卡片
|
||||
type: 'default' | 'card'
|
||||
// 指示器样式:点 | 数字
|
||||
indicator: 'dot' | 'number'
|
||||
// 是否自动播放
|
||||
autoplay: boolean
|
||||
// 播放间隔
|
||||
interval: number
|
||||
// 轮播内容
|
||||
items: CarouselItemProperty[]
|
||||
// 组件样式
|
||||
style: ComponentStyle
|
||||
}
|
||||
// 轮播内容属性
|
||||
export interface CarouselItemProperty {
|
||||
// 类型:图片 | 视频
|
||||
type: 'img' | 'video'
|
||||
// 图片链接
|
||||
imgUrl: string
|
||||
// 视频链接
|
||||
videoUrl: string
|
||||
// 跳转链接
|
||||
url: string
|
||||
}
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-09.png'
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'CarouselLong',
|
||||
name: '长轮播图',
|
||||
// icon: 'system-uicons:carousel',
|
||||
icon: logo,
|
||||
property: {
|
||||
type: 'default',
|
||||
indicator: 'dot',
|
||||
autoplay: false,
|
||||
interval: 3,
|
||||
items: [
|
||||
{ type: 'img', imgUrl: 'https://static.iocoder.cn/mall/banner-01.jpg', videoUrl: '' },
|
||||
{ type: 'img', imgUrl: 'https://static.iocoder.cn/mall/banner-02.jpg', videoUrl: '' }
|
||||
] as CarouselItemProperty[],
|
||||
style: {
|
||||
bgType: 'color',
|
||||
bgColor: '#fff',
|
||||
marginBottom: 8
|
||||
} as ComponentStyle
|
||||
}
|
||||
} as DiyComponent<CarouselProperty>
|
@ -1,33 +0,0 @@
|
||||
<template>
|
||||
<!-- 无图片 -->
|
||||
<div class="h-250px flex items-center justify-center bg-gray-3" v-if="property.items.length === 0">
|
||||
<Icon icon="tdesign:image" class="text-gray-8 text-120px!" />
|
||||
</div>
|
||||
<div v-else class="relative">
|
||||
<el-carousel height="calc(100vh - 50px)" :type="property.type === 'card' ? 'card' : ''"
|
||||
:autoplay="property.autoplay" :interval="property.interval * 1000"
|
||||
:indicator-position="property.indicator === 'number' ? 'none' : undefined" @change="handleIndexChange">
|
||||
<el-carousel-item v-for="(item, index) in property.items" :key="index">
|
||||
<el-image class="h-full w-full" :src="item.imgUrl" />
|
||||
</el-carousel-item>
|
||||
</el-carousel>
|
||||
<div v-if="property.indicator === 'number'"
|
||||
class="absolute bottom-10px right-10px rounded-xl bg-black p-x-8px p-y-2px text-10px text-white opacity-40">{{
|
||||
currentIndex }} / {{ property.items.length }}</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { CarouselProperty } from './config'
|
||||
|
||||
/** 轮播图 */
|
||||
defineOptions({ name: 'Carousel' })
|
||||
|
||||
defineProps<{ property: CarouselProperty }>()
|
||||
|
||||
const currentIndex = ref(0)
|
||||
const handleIndexChange = (index: number) => {
|
||||
currentIndex.value = index + 1
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
@ -1,106 +0,0 @@
|
||||
<template>
|
||||
<ComponentContainerProperty v-model="formData.style">
|
||||
<el-form label-width="80px" :model="formData">
|
||||
<el-card header="样式设置" class="property-group" shadow="never">
|
||||
<el-form-item label="样式" prop="type">
|
||||
<el-radio-group v-model="formData.type">
|
||||
<el-tooltip class="item" content="默认" placement="bottom">
|
||||
<el-radio-button label="default">
|
||||
<Icon icon="system-uicons:carousel" />
|
||||
</el-radio-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip class="item" content="卡片" placement="bottom">
|
||||
<el-radio-button label="card">
|
||||
<Icon icon="ic:round-view-carousel" />
|
||||
</el-radio-button>
|
||||
</el-tooltip>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="指示器" prop="indicator">
|
||||
<el-radio-group v-model="formData.indicator">
|
||||
<el-radio label="dot">小圆点</el-radio>
|
||||
<el-radio label="number">数字</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否轮播" prop="autoplay">
|
||||
<el-switch v-model="formData.autoplay" />
|
||||
</el-form-item>
|
||||
<el-form-item label="播放间隔" prop="interval" v-if="formData.autoplay">
|
||||
<el-slider
|
||||
v-model="formData.interval"
|
||||
:max="10"
|
||||
:min="0.5"
|
||||
:step="0.5"
|
||||
show-input
|
||||
input-size="small"
|
||||
:show-input-controls="false"
|
||||
/>
|
||||
<el-text type="info">单位:秒</el-text>
|
||||
</el-form-item>
|
||||
</el-card>
|
||||
<el-card header="内容设置" class="property-group" shadow="never">
|
||||
<Draggable v-model="formData.items" :empty-item="{ type: 'img' }">
|
||||
<template #default="{ element }">
|
||||
<el-form-item label="类型" prop="type" class="m-b-8px!" label-width="40px">
|
||||
<el-radio-group v-model="element.type">
|
||||
<el-radio label="img">图片</el-radio>
|
||||
<el-radio label="video">视频</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="图片"
|
||||
class="m-b-8px!"
|
||||
label-width="40px"
|
||||
v-if="element.type === 'img'"
|
||||
>
|
||||
<UploadImg
|
||||
v-model="element.imgUrl"
|
||||
draggable="false"
|
||||
height="80px"
|
||||
width="100%"
|
||||
class="min-w-80px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<template v-else>
|
||||
<el-form-item label="封面" class="m-b-8px!" label-width="40px">
|
||||
<UploadImg
|
||||
v-model="element.imgUrl"
|
||||
draggable="false"
|
||||
height="80px"
|
||||
width="100%"
|
||||
class="min-w-80px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="视频" class="m-b-8px!" label-width="40px">
|
||||
<UploadFile
|
||||
v-model="element.videoUrl"
|
||||
:file-type="['mp4']"
|
||||
:limit="1"
|
||||
:file-size="100"
|
||||
class="min-w-80px"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<el-form-item label="链接" class="m-b-8px!" label-width="40px">
|
||||
<AppLinkInput v-model="element.url" />
|
||||
</el-form-item>
|
||||
</template>
|
||||
</Draggable>
|
||||
</el-card>
|
||||
</el-form>
|
||||
</ComponentContainerProperty>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { CarouselProperty } from './config'
|
||||
import { usePropertyForm } from '@/components/DiyEditor/util'
|
||||
|
||||
// 轮播图属性面板
|
||||
defineOptions({ name: 'CarouselProperty' })
|
||||
|
||||
const props = defineProps<{ modelValue: CarouselProperty }>()
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const { formData } = usePropertyForm(props.modelValue, emit)
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
@ -67,8 +67,7 @@ export const CouponValidTerm = defineComponent({
|
||||
coupon.validEndTime,
|
||||
'YYYY-MM-DD'
|
||||
)}`
|
||||
// : `领取后第 ${coupon.fixedStartTerm} - ${coupon.fixedEndTerm} 天内可用`
|
||||
: `领取后 ${coupon.fixedEndTerm} 天内可用`
|
||||
: `领取后第 ${coupon.fixedStartTerm} - ${coupon.fixedEndTerm} 天内可用`
|
||||
return () => <div>{text}</div>
|
||||
}
|
||||
})
|
||||
|
@ -22,13 +22,12 @@ export interface CouponCardProperty {
|
||||
// 组件样式
|
||||
style: ComponentStyle
|
||||
}
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-19.png'
|
||||
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'CouponCard',
|
||||
name: '优惠券',
|
||||
// icon: 'ep:ticket',
|
||||
icon: logo,
|
||||
icon: 'ep:ticket',
|
||||
property: {
|
||||
columns: 1,
|
||||
bgImg: '',
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-scrollbar class="z-1 min-h-30px" wrap-class="w-full" ref="containerRef">
|
||||
<div
|
||||
class="new-class flex-row text-12px"
|
||||
class="flex flex-row text-12px"
|
||||
:style="{
|
||||
gap: `${property.space}px`,
|
||||
width: scrollbarWidth
|
||||
@ -13,19 +13,20 @@
|
||||
background: property.bgImg
|
||||
? `url(${property.bgImg}) 100% center / 100% 100% no-repeat`
|
||||
: '#fff',
|
||||
width: `150px`,
|
||||
padding: `10px 10px`,
|
||||
width: `${couponWidth}px`,
|
||||
color: property.textColor
|
||||
}"
|
||||
v-for="(coupon, index) in couponList"
|
||||
:key="index"
|
||||
style="padding-left: 0px;padding-right: 4px;"
|
||||
>
|
||||
<!-- 布局1:1列-->
|
||||
<!-- <div v-if="property.columns === 1" class="m-l-16px flex flex-row justify-between p-8px">
|
||||
<div v-if="property.columns === 1" class="m-l-16px flex flex-row justify-between p-8px">
|
||||
<div class="flex flex-col justify-evenly gap-4px">
|
||||
<!-- 优惠值 -->
|
||||
<CouponDiscount :coupon="coupon" />
|
||||
<!-- 优惠描述 -->
|
||||
<CouponDiscountDesc :coupon="coupon" />
|
||||
<!-- 有效期 -->
|
||||
<CouponValidTerm :coupon="coupon" />
|
||||
</div>
|
||||
<div class="flex flex-col justify-evenly">
|
||||
@ -39,21 +40,20 @@
|
||||
立即领取
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- 布局2:2列-->
|
||||
<!-- v-else-if="property.columns === 2"s -->
|
||||
<div
|
||||
class="flex flex-row justify-between"
|
||||
style=""
|
||||
v-else-if="property.columns === 2"
|
||||
class="m-l-16px flex flex-row justify-between p-8px"
|
||||
>
|
||||
<div class="flex flex-col justify-evenly gap-4px" style="flex:1;">
|
||||
<div class="flex flex-col justify-evenly gap-4px">
|
||||
<!-- 优惠值 -->
|
||||
<CouponDiscount :coupon="coupon" style="text-align:center;" />
|
||||
<div style="text-align:center;">{{ coupon.name }}</div>
|
||||
<CouponDiscount :coupon="coupon" />
|
||||
<div>{{ coupon.name }}</div>
|
||||
</div>
|
||||
<div class="flex flex-col" style="writing-mode: vertical-rl;">
|
||||
<div class="flex flex-col">
|
||||
<div
|
||||
class="h-full w-20px rounded-20px text-center"
|
||||
class="h-full w-20px rounded-20px p-x-2px p-y-8px text-center"
|
||||
:style="{
|
||||
color: property.button.color,
|
||||
background: property.button.bgColor
|
||||
@ -64,7 +64,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 布局3:3列-->
|
||||
<!-- <div v-else class="flex flex-col items-center justify-around gap-4px p-4px">
|
||||
<div v-else class="flex flex-col items-center justify-around gap-4px p-4px">
|
||||
<!-- 优惠值 -->
|
||||
<CouponDiscount :coupon="coupon" />
|
||||
<div>{{ coupon.name }}</div>
|
||||
<div
|
||||
@ -76,7 +77,7 @@
|
||||
>
|
||||
立即领取
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
@ -138,14 +139,4 @@ onMounted(() => {
|
||||
phoneWidth.value = containerRef.value?.wrapRef?.offsetWidth || 375
|
||||
})
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.new-class{
|
||||
margin-left: 10px;
|
||||
overflow-x:scroll;
|
||||
white-space: nowrap;
|
||||
.box-content{
|
||||
margin-right:10px;
|
||||
display:inline-block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style scoped lang="scss"></style>
|
||||
|
@ -23,7 +23,7 @@
|
||||
</el-form-item>
|
||||
</el-card>
|
||||
<el-card header="优惠券样式" class="property-group" shadow="never">
|
||||
<!-- <el-form-item label="列数" prop="type">
|
||||
<el-form-item label="列数" prop="type">
|
||||
<el-radio-group v-model="formData.columns">
|
||||
<el-tooltip class="item" content="一列" placement="bottom">
|
||||
<el-radio-button :label="1">
|
||||
@ -41,7 +41,7 @@
|
||||
</el-radio-button>
|
||||
</el-tooltip>
|
||||
</el-radio-group>
|
||||
</el-form-item> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="背景图片" prop="bgImg">
|
||||
<UploadImg v-model="formData.bgImg" height="80px" width="100%" class="min-w-160px" />
|
||||
</el-form-item>
|
||||
@ -85,7 +85,7 @@ defineOptions({ name: 'CouponCardProperty' })
|
||||
const props = defineProps<{ modelValue: CouponCardProperty }>()
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const { formData } = usePropertyForm(props.modelValue, emit)
|
||||
formData.value.columns = '3';
|
||||
|
||||
// 优惠券列表
|
||||
const couponList = ref<CouponTemplateApi.CouponTemplateVO[]>([])
|
||||
const couponSelectDialog = ref()
|
||||
|
@ -13,13 +13,12 @@ export interface DividerProperty {
|
||||
// 类型
|
||||
borderType: 'solid' | 'dashed' | 'dotted' | 'none'
|
||||
}
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-12.png'
|
||||
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'Divider',
|
||||
name: '分割线',
|
||||
// icon: 'tdesign:component-divider-vertical',
|
||||
icon: logo,
|
||||
icon: 'tdesign:component-divider-vertical',
|
||||
property: {
|
||||
height: 30,
|
||||
lineWidth: 1,
|
||||
|
@ -21,13 +21,12 @@ export interface FloatingActionButtonItemProperty {
|
||||
// 文字颜色
|
||||
textColor: string
|
||||
}
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-07.png'
|
||||
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'FloatingActionButton',
|
||||
name: '悬浮按钮',
|
||||
// icon: 'tabler:float-right',
|
||||
icon: logo,
|
||||
icon: 'tabler:float-right',
|
||||
position: 'fixed',
|
||||
property: {
|
||||
direction: 'vertical',
|
||||
|
@ -25,13 +25,12 @@ export interface HotZoneItemProperty {
|
||||
// 左
|
||||
left: number
|
||||
}
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-14.png'
|
||||
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'HotZone',
|
||||
name: '热区',
|
||||
// icon: 'tabler:hand-click',
|
||||
icon: logo,
|
||||
icon: 'tabler:hand-click',
|
||||
property: {
|
||||
imgUrl: '',
|
||||
list: [] as HotZoneItemProperty[],
|
||||
|
@ -9,13 +9,12 @@ export interface ImageBarProperty {
|
||||
// 组件样式
|
||||
style: ComponentStyle
|
||||
}
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-08.png'
|
||||
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'ImageBar',
|
||||
name: '图片展示',
|
||||
// icon: 'ep:picture',
|
||||
icon: logo,
|
||||
icon: 'ep:picture',
|
||||
property: {
|
||||
imgUrl: '',
|
||||
url: '',
|
||||
|
@ -29,13 +29,12 @@ export interface MagicCubeItemProperty {
|
||||
// 左
|
||||
left: number
|
||||
}
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-13.png'
|
||||
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'MagicCube',
|
||||
name: '广告魔方',
|
||||
// icon: 'bi:columns',
|
||||
icon: logo,
|
||||
icon: 'bi:columns',
|
||||
property: {
|
||||
borderRadiusTop: 0,
|
||||
borderRadiusBottom: 0,
|
||||
|
@ -49,13 +49,12 @@ export const EMPTY_MENU_GRID_ITEM_PROPERTY = {
|
||||
bgColor: '#FF6000'
|
||||
}
|
||||
} as MenuGridItemProperty
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-04.png'
|
||||
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'MenuGrid',
|
||||
name: '宫格导航',
|
||||
// icon: 'bi:grid-3x3-gap',
|
||||
icon: logo,
|
||||
icon: 'bi:grid-3x3-gap',
|
||||
property: {
|
||||
column: 3,
|
||||
list: [cloneDeep(EMPTY_MENU_GRID_ITEM_PROPERTY)],
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div
|
||||
v-for="(item, index) in property.list"
|
||||
:key="index"
|
||||
class="relative flex flex-col items-center"
|
||||
class="relative flex flex-col items-center p-b-14px p-t-20px"
|
||||
:style="{ width: `${100 * (1 / property.column)}%` }"
|
||||
>
|
||||
<!-- 右上角角标 -->
|
||||
@ -14,11 +14,11 @@
|
||||
>
|
||||
{{ item.badge.text }}
|
||||
</span>
|
||||
<el-image v-if="item.iconUrl" class="h-40px w-40px" :src="item.iconUrl" />
|
||||
<el-image v-if="item.iconUrl" class="h-28px w-28px" :src="item.iconUrl" />
|
||||
<span class="m-t-8px h-16px text-12px leading-16px" :style="{ color: item.titleColor }">
|
||||
{{ item.title }}
|
||||
</span>
|
||||
<span v-if="item.subtitle" class="m-t-6px h-12px text-10px leading-12px" :style="{ color: item.subtitleColor }">
|
||||
<span class="m-t-6px h-12px text-10px leading-12px" :style="{ color: item.subtitleColor }">
|
||||
{{ item.subtitle }}
|
||||
</span>
|
||||
</div>
|
||||
@ -32,9 +32,4 @@ defineOptions({ name: 'MenuGrid' })
|
||||
defineProps<{ property: MenuGridProperty }>()
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
.items-center{
|
||||
margin:5px 0;
|
||||
}
|
||||
</style>
|
||||
<style scoped lang="scss"></style>
|
||||
|
@ -6,7 +6,6 @@
|
||||
<el-radio-group v-model="formData.column">
|
||||
<el-radio :label="3">3个</el-radio>
|
||||
<el-radio :label="4">4个</el-radio>
|
||||
<el-radio :label="5">5个</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
||||
|
@ -1,80 +0,0 @@
|
||||
import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
|
||||
import { cloneDeep } from 'lodash-es'
|
||||
|
||||
/** 宫格导航属性 */
|
||||
export interface MenuGridProperty {
|
||||
// 列数
|
||||
column: number
|
||||
// 导航菜单列表
|
||||
list: MenuGridItemProperty[]
|
||||
// 组件样式
|
||||
style: ComponentStyle
|
||||
}
|
||||
|
||||
/** 宫格导航项目属性 */
|
||||
export interface MenuGridItemProperty {
|
||||
// 图标链接
|
||||
iconUrl: string
|
||||
// 标题
|
||||
title: string
|
||||
// 标题颜色
|
||||
titleColor: string
|
||||
// 副标题
|
||||
subtitle: string
|
||||
// 副标题颜色
|
||||
subtitleColor: string
|
||||
// 链接
|
||||
url: string
|
||||
// 角标
|
||||
badge: {
|
||||
// 是否显示
|
||||
show: boolean
|
||||
// 角标文字
|
||||
text: string
|
||||
// 角标文字颜色
|
||||
textColor: string
|
||||
// 角标背景颜色
|
||||
bgColor: string
|
||||
}
|
||||
}
|
||||
|
||||
export const EMPTY_MENU_GRID_ITEM_PROPERTY = {
|
||||
title: '标题',
|
||||
titleColor: '#333',
|
||||
subtitle: '副标题',
|
||||
subtitleColor: '#bbb',
|
||||
badge: {
|
||||
show: false,
|
||||
textColor: '#fff',
|
||||
bgColor: '#FF6000'
|
||||
}
|
||||
} as MenuGridItemProperty
|
||||
import logo from '@/assets/imgs/DiyEditorImges/组件图标-04.png'
|
||||
// 定义组件
|
||||
export const component = {
|
||||
id: 'MenuGridTow',
|
||||
name: '魔方',
|
||||
// icon: 'bi:grid-3x3-gap',
|
||||
icon: logo,
|
||||
property: {
|
||||
column: 3,
|
||||
list: [cloneDeep(EMPTY_MENU_GRID_ITEM_PROPERTY)],
|
||||
style: {
|
||||
bgType: 'color',
|
||||
bgColor: '#fff',
|
||||
marginBottom: 8,
|
||||
marginLeft: 8,
|
||||
marginRight: 8,
|
||||
padding: 8,
|
||||
paddingTop: 8,
|
||||
paddingRight: 8,
|
||||
paddingBottom: 8,
|
||||
paddingLeft: 8,
|
||||
borderRadius: 8,
|
||||
borderTopLeftRadius: 8,
|
||||
borderTopRightRadius: 8,
|
||||
borderBottomRightRadius: 8,
|
||||
borderBottomLeftRadius: 8
|
||||
} as ComponentStyle
|
||||
}
|
||||
} as DiyComponent<MenuGridProperty>
|
@ -1,201 +0,0 @@
|
||||
<template>
|
||||
<div class='new_czbk'>
|
||||
<div class="t">
|
||||
<text class="left-font">超值爆款</text>
|
||||
<div class="sub">美好生活由此开始</div>
|
||||
</div>
|
||||
<div class="new-list">
|
||||
<!-- <div class="item" @click="sheep.$router.go('/pages/goods/sales', {
|
||||
activityType: 'recommendBest',
|
||||
});"> -->
|
||||
<div class="item" >
|
||||
<div class="nei">
|
||||
<div class="l">
|
||||
<div class="t">今日推荐</div>
|
||||
<div class="c">店主诚意推荐品质商品</div>
|
||||
<div class="b">
|
||||
<!-- GO! -->
|
||||
<img src="https://zysc.fjptzykj.com/admin-api/infra/file/25/get/40a7582be7aeb5a6047415ab3a6728439a2798a4752ffcc1c063d66a534aa630.png"
|
||||
class="img"/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="r">
|
||||
<img
|
||||
src="https://zysc.fjptzykj.com/admin-api/infra/file/25/get/c80faeeeb2d6dadcdbe7e6d1a4caa06869b94301612cdf157414a10559b38267.png"
|
||||
class="img"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="item" @click="sheep.$router.go('/pages/goods/sales', {
|
||||
activityType: 'recommendHot',
|
||||
});"> -->
|
||||
<div class="item">
|
||||
<div class="nei">
|
||||
<div class="l">
|
||||
<div class="t">热门榜单</div>
|
||||
<div class="c">店主诚意推荐品质商品</div>
|
||||
<div class="b">
|
||||
<!-- GO! -->
|
||||
<img
|
||||
src="https://zysc.fjptzykj.com/admin-api/infra/file/25/get/5c72fc99989bf0a7e59b57f519c76c9a98cb20478384e20b1b934aa8f80cc598.png"
|
||||
class="img"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="r">
|
||||
<img
|
||||
src="https://zysc.fjptzykj.com/admin-api/infra/file/25/get/904fd4848fde8025ccc17693662efd5b7bf5ec3f2656ecc7de407c8c46f910b2.png"
|
||||
class="img"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="item" @click="sheep.$router.go('/pages/goods/sales', {
|
||||
activityType: 'recommendNew',
|
||||
});"> -->
|
||||
<div class="item">
|
||||
<div class="nei">
|
||||
<div class="l">
|
||||
<div class="t">首发新品</div>
|
||||
<div class="c">新品上架等 你来拿</div>
|
||||
<div class="b">
|
||||
<!-- GO! -->
|
||||
<img
|
||||
src="https://zysc.fjptzykj.com/admin-api/infra/file/25/get/ebb2fc0512d1bd6a6d21a2c07f6603bfd2ea6f7e23377eb4cd8118d89d666589.png"
|
||||
class="img"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="r">
|
||||
<img
|
||||
src="https://zysc.fjptzykj.com/admin-api/infra/file/25/get/7c71cbf2c757418302ea9ef2952893c24e1d46c4cc35a821f56be0f315bcabb0.png"
|
||||
class="img"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="item" @click="sheep.$router.go('/pages/goods/sales', {
|
||||
activityType: 'recommendGood',
|
||||
});"> -->
|
||||
<div class="item">
|
||||
<div class="nei">
|
||||
<div class="l">
|
||||
<div class="t">促销单品</div>
|
||||
<div class="c">综合评选好 产品</div>
|
||||
<div class="b">
|
||||
<!-- GO! -->
|
||||
<img
|
||||
src="https://zysc.fjptzykj.com/admin-api/infra/file/25/get/aac8baa7a6feb9ee3459d1cf75ba9a7e8bacb5d93c88ac95c1b0ecd29b847f96.png"
|
||||
class="img"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="r">
|
||||
<img
|
||||
src="https://zysc.fjptzykj.com/admin-api/infra/file/25/get/8a61c35d82702c61f97ef3db43a8d6755b2eca3d78a22dbaa55851e815e96a23.png"
|
||||
class="img" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { MenuGridProperty } from './config'
|
||||
/** 宫格导航 */
|
||||
defineOptions({ name: 'MenuGridTow' })
|
||||
defineProps<{ property: MenuGridProperty }>()
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.new_czbk {
|
||||
width: 100%;
|
||||
background: rgba(255, 229, 227);
|
||||
border-radius: 5px;
|
||||
margin: 0 auto;
|
||||
padding: 5px 0;
|
||||
// margin-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 10px;
|
||||
&>.t {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding:0 10px;
|
||||
.left-font {
|
||||
color: rgba(252, 60, 62);
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sub {
|
||||
background: rgba(248, 79, 43);
|
||||
color: white;
|
||||
border-radius: 20px 0px 20px 0px;
|
||||
padding: 0 13px;
|
||||
margin-left: 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.new-list {
|
||||
// width: 100%;
|
||||
margin-right:10px;
|
||||
.item {
|
||||
float: left;
|
||||
width: 50%;
|
||||
|
||||
.nei {
|
||||
margin: 10px;
|
||||
margin-right:0;
|
||||
margin-bottom: 0;
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
padding: 8px 10px;
|
||||
display: flex;
|
||||
|
||||
.l {
|
||||
width: 50%;
|
||||
|
||||
.t {
|
||||
// font-size: 17px;
|
||||
}
|
||||
|
||||
.c {
|
||||
color: rgba(153, 153, 153);
|
||||
font-size: 12px;
|
||||
margin: 3px 0;
|
||||
}
|
||||
|
||||
.b {
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: space-around;
|
||||
// background: #329cff;
|
||||
// margin: 0 3px;
|
||||
// border-radius: 15px;
|
||||
// color: white;
|
||||
// font-weight: 700;
|
||||
// padding: 0px 9px;
|
||||
// font-style: oblique;
|
||||
|
||||
.img {
|
||||
width: 76%;
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.r {
|
||||
width: 49%;
|
||||
|
||||
.img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</style>
|