@ -0,0 +1,66 @@ |
|||||
|
workspace: |
||||
|
base: /project |
||||
|
path: src/demo |
||||
|
|
||||
|
branches: [ master,develop,uat ] |
||||
|
|
||||
|
|
||||
|
pipeline: |
||||
|
# build: |
||||
|
# image: node |
||||
|
# commands: |
||||
|
# - yarn config set registry https://registry.npm.taobao.org/ |
||||
|
# - yarn install |
||||
|
# - yarn build:dev |
||||
|
|
||||
|
docker-dev: |
||||
|
image: plugins/docker |
||||
|
repo: registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller-web |
||||
|
registry: registry.cn-shenzhen.aliyuncs.com |
||||
|
use_cache: true |
||||
|
dockerfile: DockerfileDev |
||||
|
secrets: [ docker_username, docker_password ] |
||||
|
tags: latest |
||||
|
when: |
||||
|
branch: develop |
||||
|
|
||||
|
docker-uat: |
||||
|
image: plugins/docker |
||||
|
repo: registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller-web |
||||
|
registry: registry.cn-shenzhen.aliyuncs.com |
||||
|
use_cache: true |
||||
|
dockerfile: DockerfileUat |
||||
|
secrets: [ docker_username, docker_password ] |
||||
|
tags: latest |
||||
|
when: |
||||
|
branch: uat |
||||
|
|
||||
|
docker-prod: |
||||
|
image: plugins/docker |
||||
|
repo: registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller-web |
||||
|
registry: registry.cn-shenzhen.aliyuncs.com |
||||
|
use_cache: true |
||||
|
dockerfile: DockerfileProd |
||||
|
secrets: [ docker_username, docker_password ] |
||||
|
tags: v1.0.0 |
||||
|
when: |
||||
|
branch: master |
||||
|
|
||||
|
deploy-dev: |
||||
|
image: roffe/kubectl |
||||
|
commands: |
||||
|
- rm -rf /root/.kube && cp -r .kube /root |
||||
|
- kubectl delete -f deployUat.yaml || true |
||||
|
- kubectl apply -f deployUat.yaml |
||||
|
when: |
||||
|
branch: develop |
||||
|
|
||||
|
|
||||
|
deploy-dev: |
||||
|
image: roffe/kubectl |
||||
|
commands: |
||||
|
- rm -rf /root/.kube && cp -r .kube /root |
||||
|
- kubectl delete -f deployDev.yaml || true |
||||
|
- kubectl apply -f deployDev.yaml |
||||
|
when: |
||||
|
branch: uat |
@ -0,0 +1,3 @@ |
|||||
|
/src/apis |
||||
|
dist |
||||
|
/src/assets |
@ -0,0 +1,7 @@ |
|||||
|
module.exports = { |
||||
|
rules: { |
||||
|
'jsx-quotes': 0, |
||||
|
'react/self-closing-comp': ['error'], |
||||
|
}, |
||||
|
extends: require.resolve('@umijs/max/eslint'), |
||||
|
}; |
@ -0,0 +1,14 @@ |
|||||
|
/node_modules |
||||
|
/.env.local |
||||
|
/.umirc.local.ts |
||||
|
/config/config.local.ts |
||||
|
/src/.umi |
||||
|
/src/.umi-production |
||||
|
/src/.umi-test |
||||
|
/.umi |
||||
|
/.umi-production |
||||
|
/.umi-test |
||||
|
/.mfsu |
||||
|
*.history |
||||
|
|
||||
|
.mocks/ |
@ -0,0 +1,32 @@ |
|||||
|
apiVersion: v1 |
||||
|
kind: Config |
||||
|
clusters: |
||||
|
- name: "mg-k3s-dev1" |
||||
|
cluster: |
||||
|
server: "https://47.100.197.34/k8s/clusters/c-m-8pjlrkrv" |
||||
|
certificate-authority-data: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJwekNDQ\ |
||||
|
VUyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQTdNUnd3R2dZRFZRUUtFeE5rZVc1aGJXbGoKY\ |
||||
|
kdsemRHVnVaWEl0YjNKbk1Sc3dHUVlEVlFRREV4SmtlVzVoYldsamJHbHpkR1Z1WlhJdFkyRXdIa\ |
||||
|
GNOTWpFeApNREl3TURNME9UUTFXaGNOTXpFeE1ERTRNRE0wT1RRMVdqQTdNUnd3R2dZRFZRUUtFe\ |
||||
|
E5rZVc1aGJXbGpiR2x6CmRHVnVaWEl0YjNKbk1Sc3dHUVlEVlFRREV4SmtlVzVoYldsamJHbHpkR\ |
||||
|
1Z1WlhJdFkyRXdXVEFUQmdjcWhrak8KUFFJQkJnZ3Foa2pPUFFNQkJ3TkNBQVNwNlpuL1V1UHZWa\ |
||||
|
Ct5N0ZMYXc5QlY5cjVnOUdpcFR4ekJMMmJlRmZNVQo0d0Z0VmpwaS9YdEpGaHhHSlp0UEhQMDluS\ |
||||
|
EROeTE5SU5LOGZxUGNETm1HMG8wSXdRREFPQmdOVkhROEJBZjhFCkJBTUNBcVF3RHdZRFZSMFRBU\ |
||||
|
UgvQkFVd0F3RUIvekFkQmdOVkhRNEVGZ1FVYnJxZnRrZ2wwYkh0VElwQm9TWlIKZTdJZDRzUXdDZ\ |
||||
|
1lJS29aSXpqMEVBd0lEU0FBd1JRSWdRTHZzT3BROHJac1BlOGhOQUVwdU4xVTJ3VmovOHI2MQp0T\ |
||||
|
3Y3T2VqK3BFTUNJUURCblpoZ3RXbnFXTXJFQXNDRTk3RDZYandpWHAySnQrZmVqVHVFTUloWXpnP\ |
||||
|
T0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==" |
||||
|
|
||||
|
users: |
||||
|
- name: "mg-k3s-dev1" |
||||
|
user: |
||||
|
token: "kubeconfig-user-mp9tsfh6lh:5vg7rmv5jscg58s6ll7cb2zzsjgs69v8nc6xw8xdwgwh48gvtwlmtr" |
||||
|
|
||||
|
|
||||
|
contexts: |
||||
|
- name: "mg-k3s-dev1" |
||||
|
context: |
||||
|
user: "mg-k3s-dev1" |
||||
|
cluster: "mg-k3s-dev1" |
||||
|
|
||||
|
current-context: "mg-k3s-dev1" |
@ -0,0 +1,17 @@ |
|||||
|
{ |
||||
|
"*.{md,json}": [ |
||||
|
"prettier --cache --write" |
||||
|
], |
||||
|
"*.{js,jsx}": [ |
||||
|
"max lint --fix --eslint-only", |
||||
|
"prettier --cache --write" |
||||
|
], |
||||
|
"*.{css,less}": [ |
||||
|
"max lint --fix --stylelint-only", |
||||
|
"prettier --cache --write" |
||||
|
], |
||||
|
"*.ts?(x)": [ |
||||
|
"max lint --fix --eslint-only", |
||||
|
"prettier --cache --parser=typescript --write" |
||||
|
] |
||||
|
} |
@ -0,0 +1,2 @@ |
|||||
|
registry=https://registry.npmjs.org/ |
||||
|
strict-peer-dependencies=false |
@ -0,0 +1,11 @@ |
|||||
|
**/*.md |
||||
|
**/*.svg |
||||
|
**/*.ejs |
||||
|
**/*.html |
||||
|
package.json |
||||
|
node_modules |
||||
|
.umi |
||||
|
.umi-production |
||||
|
/dist |
||||
|
/src/assets |
||||
|
global.less |
@ -0,0 +1,8 @@ |
|||||
|
{ |
||||
|
"printWidth": 80, |
||||
|
"singleQuote": true, |
||||
|
"trailingComma": "all", |
||||
|
"proseWrap": "never", |
||||
|
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }], |
||||
|
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson"] |
||||
|
} |
@ -0,0 +1,3 @@ |
|||||
|
/dist |
||||
|
/src/assets |
||||
|
global.less |
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
extends: require.resolve('@umijs/max/stylelint'), |
||||
|
}; |
@ -0,0 +1,150 @@ |
|||||
|
# (2022-10-31) |
||||
|
|
||||
|
|
||||
|
### Features |
||||
|
|
||||
|
* ✨ API接口更新 ([44b5e36](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/44b5e368994fcd5a3c8e2373f07add5a47c6cc99)) |
||||
|
* ✨ API更新 ([d5c34fd](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/d5c34fd213981afe92edbe284440cace9916b777)) |
||||
|
* ✨ bugfix ([a203a18](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/a203a185a23610977b64ff60b59a5a7c265b1c00)) |
||||
|
* ✨ build ([80f4d36](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/80f4d3653f6ed47ff970274eea39abfa88c78803)) |
||||
|
* ✨ build ([f97b6b3](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f97b6b3e89f08238afdcdc70fb01c18bbc3920db)) |
||||
|
* ✨ build ([4a6d92f](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/4a6d92fef4badac275fb636e47b7ceca710ffab4)) |
||||
|
* ✨ build ([c9b6cca](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/c9b6cca695ce39e0988a30ad3078fe484b74bb36)) |
||||
|
* ✨ html不缓存 ([d717a3e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/d717a3e1d4d1adedbf88dcd45d7f8fd184b90179)) |
||||
|
* ✨ ico ([f6ab771](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f6ab77177a6d918efbd2d7eba82de9f65152be9f)) |
||||
|
* ✨ phone_code标准化 ([164a92d](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/164a92d02a4523c1c7cc65a3b02318a24a5fae2f)) |
||||
|
* ✨ 交互优化 ([5d55ae8](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/5d55ae86976c23e2bf2a5e3c8728ed969bcfa436)) |
||||
|
* ✨ 任务详情完善 ([600347c](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/600347c2acd923c171e65e769b062e46f8942bc8)) |
||||
|
* ✨ 任务详情接口调整 ([46901c9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/46901c95a3149ef7252b912229ea55fbbb928c0a)) |
||||
|
* ✨ 删除优化 ([e0a95af](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/e0a95af7a140d82f353593a3db0b43fb3642c6d3)) |
||||
|
* ✨ 去重 ([023273a](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/023273a3553d2c10ff4003adbce6e502c17f363c)) |
||||
|
* ✨ 商品上传图片修改,有问题就返回 ([b9fa749](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/b9fa7497a671802308d5675e6d095f5669485a66)) |
||||
|
* ✨ 商品发布自测 ([27b3397](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/27b33973bc04f6aa597b2ac381cff06e8a6c9f1e)) |
||||
|
* ✨ 商品组件拆分 ([5be87b9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/5be87b9186fa739426fb379817b49c4117d97475)) |
||||
|
* ✨ 商品详情优化 ([badc712](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/badc7129034e7c7d8b43333a98dd8c6dff36dcbe)) |
||||
|
* ✨ 图片预览 ([b69f81e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/b69f81e9fb119931ca7f96d64cb501555ef28f32)) |
||||
|
* ✨ 字段取值交换 ([862c0db](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/862c0db12b1e85ba2d575ea08e036bd7880c51aa)) |
||||
|
* ✨ 字段长度调整 ([79e2077](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/79e2077dc9b6c66051371f2fbf4e52108c91cb44)) |
||||
|
* ✨ 导入方式修改 ([080501a](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/080501a5b19852acbd188999d5a37a2564d5fdb2)) |
||||
|
* ✨ 导出 ([2a3cfad](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2a3cfadf37bef7a3f8821627f7e3647ddcb2e8f9)) |
||||
|
* ✨ 导航栏优化 ([5af3a54](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/5af3a548e655bb414d98815db31089500eddb2b5)) |
||||
|
* ✨ 小屏幕适配 ([3c7faa9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3c7faa932730574e6dc6e9731267350744e43280)) |
||||
|
* ✨ 忽略assets目录 ([2bc865b](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2bc865b26a9366aee83ee57db0728aefe994a0f8)) |
||||
|
* ✨ 手机端样式优化 ([be5b256](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/be5b2560a64aa9b9fc9ba11013437c58d3713b59)) |
||||
|
* ✨ 手机端样式适配 ([3abeb6e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3abeb6e6c803a46627003ca68b6f7c41e52945a9)) |
||||
|
* ✨ 接口model更新 ([9b6c814](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/9b6c814bd5466fbfa35737c3ed9f3bb1820ec08f)) |
||||
|
* ✨ 接口文档更新 ([f3fbc5a](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f3fbc5a6ea3f252bfd173d6cf6d5a594cb991273)) |
||||
|
* ✨ 文案修改 ([a384f61](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/a384f619486ab8b0cb4850c04cb461cc2717f33a)) |
||||
|
* ✨ 文案修改 ([c50e26e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/c50e26e7d32fa0280b139a5bf51ebce2f3d60c5f)) |
||||
|
* ✨ 文案修改、照片上传次数修改 ([fa4e07d](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/fa4e07d42e633f4d8772e3a4e13923e27042bf25)) |
||||
|
* ✨ 时间选择器修改 ([0ab2f75](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/0ab2f75f952517568527edeab86871a09be41207)) |
||||
|
* ✨ 更正配置文件 ([de5e512](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/de5e512a5091cc3451729edc9e722583cbbbc86c)) |
||||
|
* ✨ 样式优化 ([71b30d9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/71b30d97b4a3f13b76dc767937d3ec38824737fb)) |
||||
|
* ✨ 样式修改 ([7846661](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/784666119f0536da2d1b42248d7ec4a37a22d8bc)) |
||||
|
* ✨ 注册和忘记密码添加phonecode ([c6b4854](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/c6b485464c22aa18384d5c48ac2067395a4f17b7)) |
||||
|
* ✨ 注册逻辑 ([2a4a034](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2a4a03469ccf2d9e279015d038b1117864cbfa0d)) |
||||
|
* ✨ 添加icon ([1753105](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/1753105aa11f08cc37f556e215b73eb9ebbaebda)) |
||||
|
* ✨ 登录 ([2d5b8a0](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2d5b8a023988ab5359dd7f6038a7e2a87fa1adf8)) |
||||
|
* ✨ 登录动画 ([f38c7cb](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f38c7cbe83e52bbaff04d18561e9a927cb38361c)) |
||||
|
* ✨ 登录去掉自动登录 ([3decad5](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3decad54af6495776ff670604d954a8eb363a1b1)) |
||||
|
* ✨ 登录页优化 ([4fee625](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/4fee625f5c6625665ddacc8707d3fb3c9e82f855)) |
||||
|
* ✨ 登录页调整 ([3605f08](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3605f0869786bb9c67fdbb60354bd6d13b86663c)) |
||||
|
* ✨ 登录页面优化 ([f8fe941](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f8fe9411ac47e169cad61e67887e1137ecba0560)) |
||||
|
* ✨ 移动端适配 ([b33f6ae](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/b33f6ae48862562811b555956fbaaa7b0a9558e7)) |
||||
|
* ✨ 等待签收的状态 ([5a686c1](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/5a686c1d3e77e826f9514fc5bd13b455b2d285f1)) |
||||
|
* ✨ 组件船只 ([2081a18](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2081a18f84cc079b86b5661a0d7b1a03b02758e3)) |
||||
|
* ✨ 细节优化 ([28575b8](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/28575b88ddb96fbba8e3d8e38777d0e23e949db5)) |
||||
|
* ✨ 细节优化 ([56022ba](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/56022ba4e155c7eb5cae7649738f0a99174719fb)) |
||||
|
* ✨ 细节优化 ([3e75d6c](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3e75d6c9f46545046d283b5971670ca2f5e1cde6)) |
||||
|
* ✨ 细节调整 ([14fcfdb](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/14fcfdb14f239163760583cb9fe8386524e11f96)) |
||||
|
* ✨ 细节调整 ([63b9658](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/63b9658cfa6588bba6514e67a44fae3feb6cfd8d)) |
||||
|
* ✨ 网红详情订单列表 ([9d7c671](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/9d7c671e71f1f58f82e142f8ff77d57eaaa13aa0)) |
||||
|
* ✨ 自测 ([c1d1dcb](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/c1d1dcbe49bdd76a7464f1ec56e52f49aa3cf23f)) |
||||
|
* ✨ 自测 ([cf182f8](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/cf182f8a40a3b0fa7b3f45e2091b7bd595af4eea)) |
||||
|
* ✨ 解绑功能添加 ([b5fcb0d](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/b5fcb0dee2465f5ad085678bd43a4c237aa3b0da)) |
||||
|
* ✨ 详情添加规格 ([414dde1](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/414dde11aa8b4faad06844c3944002cda57a043a)) |
||||
|
* ✨ 账号登录时去掉phonecode ([168d8e9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/168d8e9442f304a82d3801dc19bf4ad95b152d9e)) |
||||
|
* ✨ 超出后自动滚动 ([9bc19a4](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/9bc19a4a0dd4f9b0ff4e2080981a54b27dcc78c6)) |
||||
|
* ✨ 面包屑bug修复 ([3de731e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3de731e4cbb0b949e25d1fc941729b3f921fb0b7)) |
||||
|
* ✨ 验证码暂时都用type:1 ([fe56560](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/fe56560eab94501420831f36cf2b4705985f61af)) |
||||
|
* ✨ 默认展示当日 ([3c5b704](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3c5b7049c74c551e1fafec3a261eb06af0be04a9)) |
||||
|
* ✨任务详情 ([3f780e9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3f780e96f1a665fe4f9b09a888cd6fdfea6e2272)) |
||||
|
* ✨文件到处方法 ([50656f9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/50656f98fd0c1497710f624853e6f66dbdc9147d)) |
||||
|
|
||||
|
|
||||
|
|
||||
|
# (2022-10-31) |
||||
|
|
||||
|
|
||||
|
### Features |
||||
|
|
||||
|
* ✨ API接口更新 ([44b5e36](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/44b5e368994fcd5a3c8e2373f07add5a47c6cc99)) |
||||
|
* ✨ API更新 ([d5c34fd](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/d5c34fd213981afe92edbe284440cace9916b777)) |
||||
|
* ✨ bugfix ([a203a18](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/a203a185a23610977b64ff60b59a5a7c265b1c00)) |
||||
|
* ✨ build ([80f4d36](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/80f4d3653f6ed47ff970274eea39abfa88c78803)) |
||||
|
* ✨ build ([f97b6b3](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f97b6b3e89f08238afdcdc70fb01c18bbc3920db)) |
||||
|
* ✨ build ([4a6d92f](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/4a6d92fef4badac275fb636e47b7ceca710ffab4)) |
||||
|
* ✨ build ([c9b6cca](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/c9b6cca695ce39e0988a30ad3078fe484b74bb36)) |
||||
|
* ✨ html不缓存 ([d717a3e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/d717a3e1d4d1adedbf88dcd45d7f8fd184b90179)) |
||||
|
* ✨ ico ([f6ab771](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f6ab77177a6d918efbd2d7eba82de9f65152be9f)) |
||||
|
* ✨ phone_code标准化 ([164a92d](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/164a92d02a4523c1c7cc65a3b02318a24a5fae2f)) |
||||
|
* ✨ 交互优化 ([5d55ae8](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/5d55ae86976c23e2bf2a5e3c8728ed969bcfa436)) |
||||
|
* ✨ 任务详情完善 ([600347c](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/600347c2acd923c171e65e769b062e46f8942bc8)) |
||||
|
* ✨ 任务详情接口调整 ([46901c9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/46901c95a3149ef7252b912229ea55fbbb928c0a)) |
||||
|
* ✨ 删除优化 ([e0a95af](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/e0a95af7a140d82f353593a3db0b43fb3642c6d3)) |
||||
|
* ✨ 去重 ([023273a](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/023273a3553d2c10ff4003adbce6e502c17f363c)) |
||||
|
* ✨ 商品上传图片修改,有问题就返回 ([b9fa749](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/b9fa7497a671802308d5675e6d095f5669485a66)) |
||||
|
* ✨ 商品发布自测 ([27b3397](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/27b33973bc04f6aa597b2ac381cff06e8a6c9f1e)) |
||||
|
* ✨ 商品组件拆分 ([5be87b9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/5be87b9186fa739426fb379817b49c4117d97475)) |
||||
|
* ✨ 商品详情优化 ([badc712](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/badc7129034e7c7d8b43333a98dd8c6dff36dcbe)) |
||||
|
* ✨ 图片预览 ([b69f81e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/b69f81e9fb119931ca7f96d64cb501555ef28f32)) |
||||
|
* ✨ 字段取值交换 ([862c0db](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/862c0db12b1e85ba2d575ea08e036bd7880c51aa)) |
||||
|
* ✨ 字段长度调整 ([79e2077](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/79e2077dc9b6c66051371f2fbf4e52108c91cb44)) |
||||
|
* ✨ 导入方式修改 ([080501a](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/080501a5b19852acbd188999d5a37a2564d5fdb2)) |
||||
|
* ✨ 导出 ([2a3cfad](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2a3cfadf37bef7a3f8821627f7e3647ddcb2e8f9)) |
||||
|
* ✨ 导航栏优化 ([5af3a54](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/5af3a548e655bb414d98815db31089500eddb2b5)) |
||||
|
* ✨ 小屏幕适配 ([3c7faa9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3c7faa932730574e6dc6e9731267350744e43280)) |
||||
|
* ✨ 忽略assets目录 ([2bc865b](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2bc865b26a9366aee83ee57db0728aefe994a0f8)) |
||||
|
* ✨ 手机端样式优化 ([be5b256](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/be5b2560a64aa9b9fc9ba11013437c58d3713b59)) |
||||
|
* ✨ 手机端样式适配 ([3abeb6e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3abeb6e6c803a46627003ca68b6f7c41e52945a9)) |
||||
|
* ✨ 接口model更新 ([9b6c814](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/9b6c814bd5466fbfa35737c3ed9f3bb1820ec08f)) |
||||
|
* ✨ 接口文档更新 ([f3fbc5a](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f3fbc5a6ea3f252bfd173d6cf6d5a594cb991273)) |
||||
|
* ✨ 文案修改 ([a384f61](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/a384f619486ab8b0cb4850c04cb461cc2717f33a)) |
||||
|
* ✨ 文案修改 ([c50e26e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/c50e26e7d32fa0280b139a5bf51ebce2f3d60c5f)) |
||||
|
* ✨ 文案修改、照片上传次数修改 ([fa4e07d](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/fa4e07d42e633f4d8772e3a4e13923e27042bf25)) |
||||
|
* ✨ 时间选择器修改 ([0ab2f75](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/0ab2f75f952517568527edeab86871a09be41207)) |
||||
|
* ✨ 更正配置文件 ([de5e512](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/de5e512a5091cc3451729edc9e722583cbbbc86c)) |
||||
|
* ✨ 样式优化 ([71b30d9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/71b30d97b4a3f13b76dc767937d3ec38824737fb)) |
||||
|
* ✨ 样式修改 ([7846661](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/784666119f0536da2d1b42248d7ec4a37a22d8bc)) |
||||
|
* ✨ 注册和忘记密码添加phonecode ([c6b4854](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/c6b485464c22aa18384d5c48ac2067395a4f17b7)) |
||||
|
* ✨ 注册逻辑 ([2a4a034](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2a4a03469ccf2d9e279015d038b1117864cbfa0d)) |
||||
|
* ✨ 添加icon ([1753105](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/1753105aa11f08cc37f556e215b73eb9ebbaebda)) |
||||
|
* ✨ 登录 ([2d5b8a0](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2d5b8a023988ab5359dd7f6038a7e2a87fa1adf8)) |
||||
|
* ✨ 登录动画 ([f38c7cb](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f38c7cbe83e52bbaff04d18561e9a927cb38361c)) |
||||
|
* ✨ 登录去掉自动登录 ([3decad5](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3decad54af6495776ff670604d954a8eb363a1b1)) |
||||
|
* ✨ 登录页优化 ([4fee625](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/4fee625f5c6625665ddacc8707d3fb3c9e82f855)) |
||||
|
* ✨ 登录页调整 ([3605f08](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3605f0869786bb9c67fdbb60354bd6d13b86663c)) |
||||
|
* ✨ 登录页面优化 ([f8fe941](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/f8fe9411ac47e169cad61e67887e1137ecba0560)) |
||||
|
* ✨ 移动端适配 ([b33f6ae](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/b33f6ae48862562811b555956fbaaa7b0a9558e7)) |
||||
|
* ✨ 等待签收的状态 ([5a686c1](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/5a686c1d3e77e826f9514fc5bd13b455b2d285f1)) |
||||
|
* ✨ 组件船只 ([2081a18](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/2081a18f84cc079b86b5661a0d7b1a03b02758e3)) |
||||
|
* ✨ 细节优化 ([28575b8](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/28575b88ddb96fbba8e3d8e38777d0e23e949db5)) |
||||
|
* ✨ 细节优化 ([56022ba](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/56022ba4e155c7eb5cae7649738f0a99174719fb)) |
||||
|
* ✨ 细节优化 ([3e75d6c](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3e75d6c9f46545046d283b5971670ca2f5e1cde6)) |
||||
|
* ✨ 细节调整 ([14fcfdb](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/14fcfdb14f239163760583cb9fe8386524e11f96)) |
||||
|
* ✨ 细节调整 ([63b9658](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/63b9658cfa6588bba6514e67a44fae3feb6cfd8d)) |
||||
|
* ✨ 网红详情订单列表 ([9d7c671](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/9d7c671e71f1f58f82e142f8ff77d57eaaa13aa0)) |
||||
|
* ✨ 自测 ([c1d1dcb](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/c1d1dcbe49bdd76a7464f1ec56e52f49aa3cf23f)) |
||||
|
* ✨ 自测 ([cf182f8](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/cf182f8a40a3b0fa7b3f45e2091b7bd595af4eea)) |
||||
|
* ✨ 解绑功能添加 ([b5fcb0d](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/b5fcb0dee2465f5ad085678bd43a4c237aa3b0da)) |
||||
|
* ✨ 详情添加规格 ([414dde1](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/414dde11aa8b4faad06844c3944002cda57a043a)) |
||||
|
* ✨ 账号登录时去掉phonecode ([168d8e9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/168d8e9442f304a82d3801dc19bf4ad95b152d9e)) |
||||
|
* ✨ 超出后自动滚动 ([9bc19a4](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/9bc19a4a0dd4f9b0ff4e2080981a54b27dcc78c6)) |
||||
|
* ✨ 面包屑bug修复 ([3de731e](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3de731e4cbb0b949e25d1fc941729b3f921fb0b7)) |
||||
|
* ✨ 验证码暂时都用type:1 ([fe56560](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/fe56560eab94501420831f36cf2b4705985f61af)) |
||||
|
* ✨ 默认展示当日 ([3c5b704](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3c5b7049c74c551e1fafec3a261eb06af0be04a9)) |
||||
|
* ✨任务详情 ([3f780e9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/3f780e96f1a665fe4f9b09a888cd6fdfea6e2272)) |
||||
|
* ✨文件到处方法 ([50656f9](https://gitea.sumweal.com/BKB/bkb-seller-web/commits/50656f98fd0c1497710f624853e6f66dbdc9147d)) |
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,8 @@ |
|||||
|
FROM registry.cn-shanghai.aliyuncs.com/lj-go/nginx |
||||
|
LABEL maintainer "wenwu" |
||||
|
|
||||
|
WORKDIR /react |
||||
|
COPY . /react |
||||
|
COPY dist /usr/share/nginx/html/ |
||||
|
COPY nginxDev.conf /etc/nginx/conf.d/default.conf |
||||
|
EXPOSE 83 |
@ -0,0 +1,8 @@ |
|||||
|
FROM registry.cn-shanghai.aliyuncs.com/lj-go/nginx |
||||
|
LABEL maintainer "wenwu" |
||||
|
|
||||
|
WORKDIR /react |
||||
|
COPY . /react |
||||
|
COPY dist /usr/share/nginx/html/ |
||||
|
COPY nginxUat.conf /etc/nginx/conf.d/default.conf |
||||
|
EXPOSE 83 |
@ -1,2 +1,2 @@ |
|||||
# bkb-seller-web |
# README |
||||
|
|
||||
|
@ -0,0 +1,41 @@ |
|||||
|
import { defineConfig } from '@umijs/max'; |
||||
|
import proxy from './proxy'; |
||||
|
import routes from './routes'; |
||||
|
|
||||
|
const { UMI_ENV } = process.env; |
||||
|
|
||||
|
export default defineConfig({ |
||||
|
hash: true, |
||||
|
antd: {}, |
||||
|
access: {}, |
||||
|
model: {}, |
||||
|
initialState: {}, |
||||
|
fastRefresh: true, |
||||
|
request: { |
||||
|
// @ts-ignore
|
||||
|
dataField: 'data', |
||||
|
}, |
||||
|
lessLoader: { |
||||
|
modifyVars: { |
||||
|
'primary-color': '#FF4144', |
||||
|
}, |
||||
|
javascriptEnabled: true, |
||||
|
}, |
||||
|
layout: { |
||||
|
locale: false, |
||||
|
primaryColor: '#FF4144', |
||||
|
title: ' ', |
||||
|
}, |
||||
|
favicons: ['/favicon.ico'], |
||||
|
metas: [ |
||||
|
{ 'http-equiv': 'X-UA-Compatible', content: 'IE=Edge,chrome=1' }, |
||||
|
{ 'http-equiv': 'Expires', content: '0' }, |
||||
|
{ 'http-equiv': 'Pragma', content: 'no-cache' }, |
||||
|
{ 'http-equiv': 'Cache-control', content: 'no-cache' }, |
||||
|
{ 'http-equiv': 'Cache', content: 'no-cache' }, |
||||
|
], |
||||
|
routes: routes, |
||||
|
npmClient: 'yarn', |
||||
|
// @ts-ignore
|
||||
|
proxy: proxy[UMI_ENV || 'dev'], |
||||
|
}); |
@ -0,0 +1,10 @@ |
|||||
|
"use strict"; |
||||
|
exports.__esModule = true; |
||||
|
var max_1 = require("@umijs/max"); |
||||
|
exports["default"] = max_1.defineConfig({ |
||||
|
define: { |
||||
|
'process.env.UMI_ENV': 'dev' |
||||
|
}, |
||||
|
base: '/seller', |
||||
|
publicPath: '/seller/' |
||||
|
}); |
@ -0,0 +1,41 @@ |
|||||
|
"use strict"; |
||||
|
exports.__esModule = true; |
||||
|
var max_1 = require("@umijs/max"); |
||||
|
var proxy_1 = require("./proxy"); |
||||
|
var routes_1 = require("./routes"); |
||||
|
var UMI_ENV = process.env.UMI_ENV; |
||||
|
exports["default"] = max_1.defineConfig({ |
||||
|
hash: true, |
||||
|
antd: {}, |
||||
|
access: {}, |
||||
|
model: {}, |
||||
|
initialState: {}, |
||||
|
fastRefresh: true, |
||||
|
request: { |
||||
|
// @ts-ignore
|
||||
|
dataField: 'data' |
||||
|
}, |
||||
|
lessLoader: { |
||||
|
modifyVars: { |
||||
|
'primary-color': '#FF4144' |
||||
|
}, |
||||
|
javascriptEnabled: true |
||||
|
}, |
||||
|
layout: { |
||||
|
locale: false, |
||||
|
primaryColor: '#FF4144', |
||||
|
title: ' ' |
||||
|
}, |
||||
|
favicons: ['/favicon.ico'], |
||||
|
metas: [ |
||||
|
{ 'http-equiv': 'X-UA-Compatible', content: 'IE=Edge,chrome=1' }, |
||||
|
{ 'http-equiv': 'Expires', content: '0' }, |
||||
|
{ 'http-equiv': 'Pragma', content: 'no-cache' }, |
||||
|
{ 'http-equiv': 'Cache-control', content: 'no-cache' }, |
||||
|
{ 'http-equiv': 'Cache', content: 'no-cache' }, |
||||
|
], |
||||
|
routes: routes_1["default"], |
||||
|
npmClient: 'yarn', |
||||
|
// @ts-ignore
|
||||
|
proxy: proxy_1["default"][UMI_ENV || 'dev'] |
||||
|
}); |
@ -0,0 +1,11 @@ |
|||||
|
"use strict"; |
||||
|
exports.__esModule = true; |
||||
|
var max_1 = require("@umijs/max"); |
||||
|
var proxy_1 = require("./proxy"); |
||||
|
exports["default"] = max_1.defineConfig({ |
||||
|
define: { |
||||
|
'process.env.UMI_ENV': 'local' |
||||
|
}, |
||||
|
publicPath: '/', |
||||
|
proxy: proxy_1["default"]['dev'] |
||||
|
}); |
@ -0,0 +1,21 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
var _a; |
||||
|
|
||||
|
exports.__esModule = true; |
||||
|
exports['default'] = { |
||||
|
dev: { |
||||
|
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
|
'/api': { |
||||
|
target: 'https://seller-api-dev.bkbackground.com/', |
||||
|
changeOrigin: true, |
||||
|
pathRewrite: (_a = {}, _a['^/api'] = '/', _a) |
||||
|
}, |
||||
|
'/bkbupload': { |
||||
|
target: 'https://admin-fmweb-dev.mangguonews.com/', |
||||
|
changeOrigin: true, |
||||
|
pathRewrite: {// ['^/bkbupload']: '',
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}; |
@ -0,0 +1,22 @@ |
|||||
|
"use strict"; |
||||
|
var _a, _b; |
||||
|
exports.__esModule = true; |
||||
|
exports["default"] = { |
||||
|
dev: { |
||||
|
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
|
'/api': { |
||||
|
target: 'https://seller-api-dev.bkbackground.com/', |
||||
|
changeOrigin: true, |
||||
|
pathRewrite: (_a = {}, |
||||
|
_a['^/api'] = '/', |
||||
|
_a) |
||||
|
}, |
||||
|
'/bkbupload': { |
||||
|
target: 'https://upload-service-dev.bkbackground.com/', |
||||
|
changeOrigin: true, |
||||
|
pathRewrite: (_b = {}, |
||||
|
_b['^/bkbupload'] = '/', |
||||
|
_b) |
||||
|
} |
||||
|
} |
||||
|
}; |
@ -0,0 +1,162 @@ |
|||||
|
"use strict"; |
||||
|
exports.__esModule = true; |
||||
|
exports["default"] = [ |
||||
|
{ |
||||
|
path: '/', |
||||
|
redirect: '/goods_manage/list' |
||||
|
}, |
||||
|
{ |
||||
|
path: '/login', |
||||
|
component: './Login', |
||||
|
layout: false |
||||
|
}, |
||||
|
{ |
||||
|
path: '/login_result', |
||||
|
component: './LoginResult', |
||||
|
layout: false |
||||
|
}, |
||||
|
{ |
||||
|
name: '商品管理', |
||||
|
path: '/goods_manage', |
||||
|
icon: '/menu/goods.png', |
||||
|
routes: [ |
||||
|
{ |
||||
|
name: '商品列表', |
||||
|
path: 'list', |
||||
|
component: './GoodsList', |
||||
|
exact: true |
||||
|
}, |
||||
|
{ |
||||
|
name: '销售管理', |
||||
|
path: 'sell', |
||||
|
component: './GoodsSell', |
||||
|
exact: true |
||||
|
}, |
||||
|
{ |
||||
|
name: '发布新商品', |
||||
|
path: 'publish', |
||||
|
component: './GoodsPublish', |
||||
|
exact: true |
||||
|
}, |
||||
|
{ |
||||
|
name: '商品详情', |
||||
|
path: 'detail', |
||||
|
component: './GoodsPublish', |
||||
|
hideInMenu: true, |
||||
|
exact: true |
||||
|
}, |
||||
|
{ path: '/goods_manage', redirect: '/goods_manage/list' }, |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
name: '任务管理', |
||||
|
path: '/task_manage', |
||||
|
icon: '/menu/task.png', |
||||
|
routes: [ |
||||
|
{ |
||||
|
name: '任务列表', |
||||
|
path: 'list', |
||||
|
component: './TaskList', |
||||
|
exact: true |
||||
|
}, |
||||
|
{ |
||||
|
name: '任务审核', |
||||
|
path: 'auditlist', |
||||
|
component: './TaskAuditList', |
||||
|
exact: true |
||||
|
}, |
||||
|
{ |
||||
|
name: '新建任务', |
||||
|
path: 'publish', |
||||
|
component: './TaskPublish', |
||||
|
exact: true |
||||
|
}, |
||||
|
{ |
||||
|
name: '任务详情', |
||||
|
path: 'detail', |
||||
|
component: './TaskDetail', |
||||
|
hideInMenu: true, |
||||
|
exact: true |
||||
|
}, |
||||
|
{ path: '/task_manage', redirect: '/task_manage/list' }, |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
name: '资金管理', |
||||
|
path: '/funds_manage', |
||||
|
icon: '/menu/funds.png', |
||||
|
routes: [ |
||||
|
{ |
||||
|
name: '资金管理', |
||||
|
path: 'list', |
||||
|
exact: true, |
||||
|
component: './FundsManage' |
||||
|
}, |
||||
|
{ |
||||
|
name: '对账中心', |
||||
|
path: 'confirm', |
||||
|
exact: true, |
||||
|
component: './FundsConfirm' |
||||
|
}, |
||||
|
{ |
||||
|
name: '提现管理', |
||||
|
path: 'withdraw', |
||||
|
exact: true, |
||||
|
component: './FundsWithdraw' |
||||
|
}, |
||||
|
{ |
||||
|
name: '账户管理', |
||||
|
path: 'account', |
||||
|
exact: true, |
||||
|
component: './FundsAccount' |
||||
|
}, |
||||
|
{ path: '/funds_manage', redirect: '/funds_manage/list' }, |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
name: '订单管理', |
||||
|
path: '/order_manage', |
||||
|
icon: '/menu/order.png', |
||||
|
routes: [ |
||||
|
{ |
||||
|
name: '订单列表', |
||||
|
path: 'list', |
||||
|
exact: true, |
||||
|
component: './OrderList' |
||||
|
}, |
||||
|
{ |
||||
|
name: '退款审核', |
||||
|
path: 'backlist', |
||||
|
exact: true, |
||||
|
component: './OrderBackList' |
||||
|
}, |
||||
|
{ |
||||
|
name: '发货管理', |
||||
|
path: 'express', |
||||
|
exact: true, |
||||
|
component: './OrderExpress' |
||||
|
}, |
||||
|
{ |
||||
|
name: '订单详情', |
||||
|
path: 'detail', |
||||
|
component: './OrderDetail', |
||||
|
exact: true, |
||||
|
hideInMenu: true |
||||
|
}, |
||||
|
{ |
||||
|
name: '任务订单', |
||||
|
path: 'task_order_list', |
||||
|
exact: true, |
||||
|
component: './TaskOrderList' |
||||
|
}, |
||||
|
{ |
||||
|
name: '订单详情', |
||||
|
path: 'task_order_detail', |
||||
|
component: './TaskOrderDetail', |
||||
|
exact: true, |
||||
|
hideInMenu: true |
||||
|
}, |
||||
|
{ path: '/order_manage', redirect: '/order_manage/list' }, |
||||
|
] |
||||
|
}, |
||||
|
]; |
@ -0,0 +1,42 @@ |
|||||
|
interface Map { |
||||
|
[key: string]: any; |
||||
|
[index: number]: any; |
||||
|
} |
||||
|
|
||||
|
export default <Map>{ |
||||
|
dev: { |
||||
|
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
|
'/api': { |
||||
|
target: 'https://seller-api-dev.bkbackground.com/', |
||||
|
changeOrigin: true, |
||||
|
pathRewrite: { |
||||
|
['^/api']: '/', |
||||
|
}, |
||||
|
}, |
||||
|
'/bkbupload': { |
||||
|
target: 'https://upload-service-dev.bkbackground.com/', |
||||
|
changeOrigin: true, |
||||
|
pathRewrite: { |
||||
|
['^/bkbupload']: '/', |
||||
|
}, |
||||
|
}, |
||||
|
}, |
||||
|
// /**
|
||||
|
// * @name 详细的代理配置
|
||||
|
// * @doc https://github.com/chimurai/http-proxy-middleware
|
||||
|
// */
|
||||
|
// test: {
|
||||
|
// '/api/': {
|
||||
|
// target: 'https://proapi.azurewebsites.net',
|
||||
|
// changeOrigin: true,
|
||||
|
// pathRewrite: { '^': '' },
|
||||
|
// },
|
||||
|
// },
|
||||
|
// pre: {
|
||||
|
// '/api/': {
|
||||
|
// target: 'your pre url',
|
||||
|
// changeOrigin: true,
|
||||
|
// pathRewrite: { '^': '' },
|
||||
|
// },
|
||||
|
// },
|
||||
|
}; |
@ -0,0 +1,160 @@ |
|||||
|
export default [ |
||||
|
{ |
||||
|
path: '/', |
||||
|
redirect: '/goods_manage/list', |
||||
|
}, |
||||
|
{ |
||||
|
path: '/login', |
||||
|
component: './Login', |
||||
|
layout: false, |
||||
|
}, |
||||
|
{ |
||||
|
path: '/login_result', |
||||
|
component: './LoginResult', |
||||
|
layout: false, |
||||
|
}, |
||||
|
{ |
||||
|
name: '商品管理', |
||||
|
path: '/goods_manage', |
||||
|
icon: '/menu/goods.png', |
||||
|
routes: [ |
||||
|
{ |
||||
|
name: '商品列表', |
||||
|
path: 'list', |
||||
|
component: './GoodsList', |
||||
|
exact: true, |
||||
|
}, |
||||
|
{ |
||||
|
name: '销售管理', |
||||
|
path: 'sell', |
||||
|
component: './GoodsSell', |
||||
|
exact: true, |
||||
|
}, |
||||
|
{ |
||||
|
name: '发布新商品', |
||||
|
path: 'publish', |
||||
|
component: './GoodsPublish', |
||||
|
exact: true, |
||||
|
}, |
||||
|
{ |
||||
|
name: '商品详情', |
||||
|
path: 'detail', |
||||
|
component: './GoodsPublish', |
||||
|
hideInMenu: true, |
||||
|
exact: true, |
||||
|
}, |
||||
|
{ path: '/goods_manage', redirect: '/goods_manage/list' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: '任务管理', |
||||
|
path: '/task_manage', |
||||
|
icon: '/menu/task.png', |
||||
|
routes: [ |
||||
|
{ |
||||
|
name: '任务列表', |
||||
|
path: 'list', |
||||
|
component: './TaskList', |
||||
|
exact: true, |
||||
|
}, |
||||
|
{ |
||||
|
name: '任务审核', |
||||
|
path: 'auditlist', |
||||
|
component: './TaskAuditList', |
||||
|
exact: true, |
||||
|
}, |
||||
|
{ |
||||
|
name: '新建任务', |
||||
|
path: 'publish', |
||||
|
component: './TaskPublish', |
||||
|
exact: true, |
||||
|
}, |
||||
|
{ |
||||
|
name: '任务详情', |
||||
|
path: 'detail', |
||||
|
component: './TaskDetail', |
||||
|
hideInMenu: true, |
||||
|
exact: true, |
||||
|
}, |
||||
|
{ path: '/task_manage', redirect: '/task_manage/list' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: '资金管理', |
||||
|
path: '/funds_manage', |
||||
|
icon: '/menu/funds.png', |
||||
|
routes: [ |
||||
|
{ |
||||
|
name: '资金管理', |
||||
|
path: 'list', |
||||
|
exact: true, |
||||
|
component: './FundsManage', |
||||
|
}, |
||||
|
{ |
||||
|
name: '对账中心', |
||||
|
path: 'confirm', |
||||
|
exact: true, |
||||
|
component: './FundsConfirm', |
||||
|
}, |
||||
|
{ |
||||
|
name: '提现管理', |
||||
|
path: 'withdraw', |
||||
|
exact: true, |
||||
|
component: './FundsWithdraw', |
||||
|
}, |
||||
|
{ |
||||
|
name: '账户管理', |
||||
|
path: 'account', |
||||
|
exact: true, |
||||
|
component: './FundsAccount', |
||||
|
}, |
||||
|
{ path: '/funds_manage', redirect: '/funds_manage/list' }, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
name: '订单管理', |
||||
|
path: '/order_manage', |
||||
|
icon: '/menu/order.png', |
||||
|
routes: [ |
||||
|
{ |
||||
|
name: '订单列表', |
||||
|
path: 'list', |
||||
|
exact: true, |
||||
|
component: './OrderList', |
||||
|
}, |
||||
|
{ |
||||
|
name: '退款审核', |
||||
|
path: 'backlist', |
||||
|
exact: true, |
||||
|
component: './OrderBackList', |
||||
|
}, |
||||
|
{ |
||||
|
name: '发货管理', |
||||
|
path: 'express', |
||||
|
exact: true, |
||||
|
component: './OrderExpress', |
||||
|
}, |
||||
|
{ |
||||
|
name: '订单详情', |
||||
|
path: 'detail', |
||||
|
component: './OrderDetail', |
||||
|
exact: true, |
||||
|
hideInMenu: true, |
||||
|
}, |
||||
|
{ |
||||
|
name: '任务订单', |
||||
|
path: 'task_order_list', |
||||
|
exact: true, |
||||
|
component: './TaskOrderList', |
||||
|
}, |
||||
|
{ |
||||
|
name: '订单详情', |
||||
|
path: 'task_order_detail', |
||||
|
component: './TaskOrderDetail', |
||||
|
exact: true, |
||||
|
hideInMenu: true, |
||||
|
}, |
||||
|
{ path: '/order_manage', redirect: '/order_manage/list' }, |
||||
|
], |
||||
|
}, |
||||
|
]; |
@ -0,0 +1,39 @@ |
|||||
|
kind: Service |
||||
|
apiVersion: v1 |
||||
|
metadata: |
||||
|
name: bkb-seller-web-dev |
||||
|
namespace: web |
||||
|
spec: |
||||
|
selector: |
||||
|
app: bkb-seller-web-dev |
||||
|
type: NodePort |
||||
|
ports: |
||||
|
- protocol: TCP |
||||
|
port: 83 |
||||
|
targetPort: 83 |
||||
|
nodePort: 30302 |
||||
|
--- |
||||
|
apiVersion: apps/v1 |
||||
|
kind: Deployment |
||||
|
metadata: |
||||
|
name: bkb-seller-web-dev |
||||
|
namespace: web |
||||
|
labels: |
||||
|
app: bkb-seller-web-dev |
||||
|
spec: |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: bkb-seller-web-dev |
||||
|
template: |
||||
|
metadata: |
||||
|
labels: |
||||
|
app: bkb-seller-web-dev |
||||
|
version: v1 |
||||
|
spec: |
||||
|
imagePullSecrets: |
||||
|
- name: mgkey2 |
||||
|
containers: |
||||
|
- name: bkb-seller-web-dev |
||||
|
image: registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller-web |
||||
|
ports: |
||||
|
- containerPort: 83 |
@ -0,0 +1,39 @@ |
|||||
|
kind: Service |
||||
|
apiVersion: v1 |
||||
|
metadata: |
||||
|
name: bkb-seller-web-uat |
||||
|
namespace: web |
||||
|
spec: |
||||
|
selector: |
||||
|
app: bkb-seller-web-uat |
||||
|
type: NodePort |
||||
|
ports: |
||||
|
- protocol: TCP |
||||
|
port: 83 |
||||
|
targetPort: 83 |
||||
|
nodePort: 30202 |
||||
|
--- |
||||
|
apiVersion: apps/v1 |
||||
|
kind: Deployment |
||||
|
metadata: |
||||
|
name: bkb-seller-web-uat |
||||
|
namespace: web |
||||
|
labels: |
||||
|
app: bkb-seller-web-uat |
||||
|
spec: |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: bkb-seller-web-uat |
||||
|
template: |
||||
|
metadata: |
||||
|
labels: |
||||
|
app: bkb-seller-web-uat |
||||
|
version: v1 |
||||
|
spec: |
||||
|
imagePullSecrets: |
||||
|
- name: mgkey2 |
||||
|
containers: |
||||
|
- name: bkb-seller-web-uat |
||||
|
image: registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller-web |
||||
|
ports: |
||||
|
- containerPort: 83 |
@ -0,0 +1 @@ |
|||||
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[390],{96390:function(e,n,t){t.r(n),t.d(n,{default:function(){return s}});var o=t(67294),u=t(88593),E=t(85893);function s(){var O=(0,u.useOutletContext)();return(0,E.jsx)(u.Outlet,{context:O})}}}]); |
After Width: | Height: | Size: 9.4 KiB |
@ -0,0 +1,16 @@ |
|||||
|
<!DOCTYPE html><html><head> |
||||
|
<meta charset="utf-8"> |
||||
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
||||
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> |
||||
|
<meta http-equiv="Expires" content="0"> |
||||
|
<meta http-equiv="Pragma" content="no-cache"> |
||||
|
<meta http-equiv="Cache-control" content="no-cache"> |
||||
|
<meta http-equiv="Cache" content="no-cache"> |
||||
|
<link rel="shortcut icon" href="/favicon.ico"> |
||||
|
<link rel="stylesheet" href="/seller/umi.4282ac36.css"> |
||||
|
</head> |
||||
|
<body> |
||||
|
<div id="root"></div> |
||||
|
<script src="/seller/umi.b9589e99.js"></script> |
||||
|
|
||||
|
</body></html> |
After Width: | Height: | Size: 809 B |
After Width: | Height: | Size: 935 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.3 KiB |
@ -0,0 +1 @@ |
|||||
|
.topBanner___JRYFU{margin-bottom:24px}.ant-card-head{border-bottom:none!important} |
@ -0,0 +1 @@ |
|||||
|
.mask___nbd6H{width:320px;height:600px;margin:auto;background-image:url(./static/mask.3f10ebc2.png);background-size:100% 100%;background-repeat:no-repeat;padding:50px 10px 20px;box-sizing:border-box;overflow:hidden}.container___jSYfs{height:530px;width:100%;overflow-x:hidden}.workbench___zvMMV .ant-image{width:100%}{}::-webkit-scrollbar{width:0;height:0}::-webkit-scrollbar-track{border-radius:3px;background:rgba(0,0,0,.06);box-shadow:inset 0 0 5px #00000014}::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(0,0,0,.12);box-shadow:inset 0 0 10px #0003}.ant-upload-span a{color:#000000d9!important}@media screen and (max-width: 600px){.ant-card-body{overflow-x:scroll}}.GoodesDetail___dWMwa{margin:auto}@media (max-width: 767px){.GoodesDetail___dWMwa{width:100%;margin:auto}}.title___Wz0uT{margin-bottom:20px}.SkuItem___quG7r .ant-upload.ant-upload-select-picture-card,.SkuItem___quG7r .ant-upload-list-picture-card-container{width:40px;height:40px;margin-bottom:0}.SkuItem___quG7r .ant-upload-list-picture .ant-upload-list-item,.SkuItem___quG7r .ant-upload-list-picture-card .ant-upload-list-item{padding:0}.goodsItem___cFIbT .ant-list-split .ant-list-item,.goodsItem___cFIbT .ant-list-split .ant-list-header{border:none} |
@ -0,0 +1 @@ |
|||||
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[560],{83418:function(o,t,e){e.r(t),e.d(t,{default:function(){return r}});var n=e(8702),l=e(85893);function r(){var u=[{title:"\u5546\u54C1\u540D\u79F0"},{title:"sku",hideInSearch:!0},{title:"\u4ECA\u5929\u9500\u552E",hideInSearch:!0},{title:"\u8FD1\u4E03\u5929\u9500\u552E",hideInSearch:!0},{title:"\u8FD130\u5929\u9500\u552E",hideInSearch:!0},{title:"\u5E93\u5B58\u6570\u636E",hideInSearch:!0}];return(0,l.jsx)(n.QVr,{scroll:{x:"max-content"},options:{reload:!1},bordered:!0,toolBarRender:!1,tooltip:null,columns:u})}}}]); |
@ -0,0 +1 @@ |
|||||
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[425],{65070:function(g,n,s){s.r(n),s.d(n,{default:function(){return i}});var a=s(5574),l=s.n(a),o=s(33859),r=s(71577),m=s(67294),t=s(88593),c={loginResult:"loginResult___kqvMS"},u=s(85893),e=function(){var v=(0,t.useSearchParams)(),d=l()(v,1),h=d[0];return(0,u.jsx)("div",{className:c.loginResult,children:(0,u.jsx)(o.ZP,{status:"success",title:"\u4F60\u7684\u8D26\u6237".concat(h.get("account")||"","\u6CE8\u518C\u6210\u529F"),extra:[(0,u.jsx)(r.Z,{onClick:function(){t.history.push("/login")},children:"\u7ACB\u5373\u767B\u5F55"},"console")]})})},i=e}}]); |
@ -0,0 +1 @@ |
|||||
|
.loginResult___kqvMS{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)} |
@ -0,0 +1 @@ |
|||||
|
#table .ant-table-pagination-right{display:none} |
@ -0,0 +1 @@ |
|||||
|
#table .ant-table-pagination-right{display:none} |
@ -0,0 +1 @@ |
|||||
|
.rankPannel___Jve1M::-webkit-scrollbar{width:6px;height:6px}.rankPannel___Jve1M::-webkit-scrollbar-track{border-radius:3px;background:rgba(0,0,0,.06);box-shadow:inset 0 0 5px #0000000d}.rankPannel___Jve1M::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(0,0,0,.12);box-shadow:inset 0 0 10px #0003}.profile___mTrjF{position:relative;overflow:hidden;padding-bottom:20px}.pTop___nSGuX{width:100%;height:120px;background:linear-gradient(90deg,#8195ff 0%,#2b5bea 100%)}.pAvatar___DcmWT{height:106px;width:100%;position:absolute;top:85px;left:50%;transform:translate(-50%);text-align:center}.pAvatar___DcmWT img{width:69px;height:69px;border-radius:100%}.pContent___HPNee{padding:99px 20px 10px;box-sizing:border-box;background:#f9faff;border-radius:4px;overflow-y:auto}.pContent___HPNee::-webkit-scrollbar{display:none}.pcIcon___pNlGw{width:28px;height:28px;object-fit:cover}.pcText___ZmqCE{font-size:14px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#000000e6}.tag___qev74{font-size:14px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#000000e6;padding:6px 12px;border-radius:14.5px;background:#ffe0f0;margin-bottom:10px;display:inline-block}#table1 .ant-table-pagination-right{display:none} |
@ -0,0 +1 @@ |
|||||
|
#table .ant-table-pagination-right{display:none} |
After Width: | Height: | Size: 234 KiB |
After Width: | Height: | Size: 292 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 29 KiB |
@ -0,0 +1 @@ |
|||||
|
@media screen and (max-width: 480px){.umi-plugin-layout-container{width:100%!important}.umi-plugin-layout-container>*{border-radius:0!important}}.umi-plugin-layout-menu .anticon{margin-right:8px}.umi-plugin-layout-menu .ant-dropdown-menu-item{min-width:160px}.umi-plugin-layout-right{display:flex!important;float:right;height:100%;margin-left:auto;overflow:hidden}.umi-plugin-layout-right .umi-plugin-layout-action{display:flex;align-items:center;height:100%;padding:0 12px;cursor:pointer;transition:all .3s}.umi-plugin-layout-right .umi-plugin-layout-action>i{color:#ffffffd9;vertical-align:middle}.umi-plugin-layout-right .umi-plugin-layout-action:hover{background:rgba(0,0,0,.025)}.umi-plugin-layout-right .umi-plugin-layout-action:global(.opened){background:rgba(0,0,0,.025)}.umi-plugin-layout-right .umi-plugin-layout-search{padding:0 12px}.umi-plugin-layout-right .umi-plugin-layout-search:hover{background:transparent}.umi-plugin-layout-name{margin-left:8px} |
@ -0,0 +1,6 @@ |
|||||
|
|
||||
|
import fetch from 'node-fetch'; |
||||
|
|
||||
|
export default function (url: string): string { |
||||
|
return fetch(url).then(res => res.text()) |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
const users = [ |
||||
|
{ id: 0, name: 'Umi', nickName: 'U', gender: 'MALE' }, |
||||
|
{ id: 1, name: 'Fish', nickName: 'B', gender: 'FEMALE' }, |
||||
|
]; |
||||
|
|
||||
|
export default { |
||||
|
'GET /api/v1/queryUserList': (req: any, res: any) => { |
||||
|
res.json({ |
||||
|
success: true, |
||||
|
data: { list: users }, |
||||
|
errorCode: 0, |
||||
|
}); |
||||
|
}, |
||||
|
'PUT /api/v1/user/': (req: any, res: any) => { |
||||
|
res.json({ |
||||
|
success: true, |
||||
|
errorCode: 0, |
||||
|
}); |
||||
|
}, |
||||
|
}; |
@ -0,0 +1,31 @@ |
|||||
|
server { |
||||
|
listen 83; |
||||
|
root /usr/share/nginx/html/; |
||||
|
include /etc/nginx/default.d/*.conf; |
||||
|
|
||||
|
|
||||
|
location / { |
||||
|
index index.html index.htm; |
||||
|
error_page 405 =200 /index.html; |
||||
|
try_files $uri $uri/ /index.html; |
||||
|
client_max_body_size 500m; |
||||
|
} |
||||
|
|
||||
|
location /api/ { |
||||
|
client_max_body_size 500m; |
||||
|
proxy_pass http://ax-api.sumweal.com/bkb-seller/; |
||||
|
} |
||||
|
|
||||
|
location /minio/ { |
||||
|
client_max_body_size 500m; |
||||
|
proxy_pass https://ax-api.sumweal.com/minio/; |
||||
|
} |
||||
|
|
||||
|
error_page 404 /404.html; |
||||
|
location = /40x.html { |
||||
|
} |
||||
|
|
||||
|
error_page 500 502 503 504 /50x.html; |
||||
|
location = /50x.html { |
||||
|
} |
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
server { |
||||
|
listen 83; |
||||
|
root /usr/share/nginx/html/; |
||||
|
include /etc/nginx/default.d/*.conf; |
||||
|
|
||||
|
|
||||
|
location / { |
||||
|
index index.html index.htm; |
||||
|
error_page 405 =200 /index.html; |
||||
|
try_files $uri $uri/ /index.html; |
||||
|
client_max_body_size 500m; |
||||
|
} |
||||
|
|
||||
|
location /api/ { |
||||
|
client_max_body_size 500m; |
||||
|
proxy_pass http://ax-api.sumweal.com/bkb-seller-uat/; |
||||
|
} |
||||
|
|
||||
|
location /minio/ { |
||||
|
client_max_body_size 500m; |
||||
|
proxy_pass https://ax-api.sumweal.com/minio/; |
||||
|
} |
||||
|
|
||||
|
error_page 404 /404.html; |
||||
|
location = /40x.html { |
||||
|
} |
||||
|
|
||||
|
error_page 500 502 503 504 /50x.html; |
||||
|
location = /50x.html { |
||||
|
} |
||||
|
} |
@ -0,0 +1,47 @@ |
|||||
|
{ |
||||
|
"private": true, |
||||
|
"author": "River <white9172@gmail.com>", |
||||
|
"scripts": { |
||||
|
"build:dev": "max build", |
||||
|
"build": "max build", |
||||
|
"dev": "UMI_ENV=dev max dev", |
||||
|
"format": "prettier --cache --write .", |
||||
|
"postinstall": "max setup", |
||||
|
"setup": "max setup", |
||||
|
"changelog": "conventional-changelog -p angular -u -i CHANGELOG.md -s" |
||||
|
}, |
||||
|
"dependencies": { |
||||
|
"@ant-design/charts": "^1.4.2", |
||||
|
"@ant-design/icons": "^4.7.0", |
||||
|
"@ant-design/pro-components": "^2.0.1", |
||||
|
"@umijs/max": "^4.0.24", |
||||
|
"@wangeditor/editor": "^5.1.23", |
||||
|
"@wangeditor/editor-for-react": "^1.0.6", |
||||
|
"ahooks": "^3.7.2", |
||||
|
"antd": "^4.20.7", |
||||
|
"file-saver": "^2.0.5", |
||||
|
"immutability-helper": "^3.1.1", |
||||
|
"immutable": "^4.1.0", |
||||
|
"js-storage": "^1.1.0", |
||||
|
"pont-engine": "1.5.12", |
||||
|
"rc-virtual-list": "^3.4.10", |
||||
|
"react-dnd": "^16.0.1", |
||||
|
"react-dnd-html5-backend": "^16.0.1", |
||||
|
"react-sortablejs": "^6.1.4", |
||||
|
"react-transition-group": "^4.4.5", |
||||
|
"sortablejs": "^1.15.0", |
||||
|
"use-deep-compare-effect": "^1.8.1", |
||||
|
"use-immer": "^0.7.0", |
||||
|
"xlsx": "^0.18.5" |
||||
|
}, |
||||
|
"devDependencies": { |
||||
|
"@types/react": "^18.0.0", |
||||
|
"@types/react-dom": "^18.0.0", |
||||
|
"@types/react-transition-group": "^4.4.5", |
||||
|
"lint-staged": "^13.0.3", |
||||
|
"prettier": "^2.7.1", |
||||
|
"prettier-plugin-organize-imports": "^2", |
||||
|
"prettier-plugin-packagejson": "^2", |
||||
|
"typescript": "^4.1.2" |
||||
|
} |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
{ |
||||
|
"originUrl": "https://seller-api-dev.bkbackground.com/swagger/doc.json", |
||||
|
"templatePath": "./pontTemplate", |
||||
|
"transformPath": "./pontTransfrom", |
||||
|
"outDir": "./src/apis", |
||||
|
"mocks": { |
||||
|
"enable": true, |
||||
|
"basePath": "", |
||||
|
"port": 3009, |
||||
|
"wrapper": "{\"code\": 0, \"data\": {response}, \"message\": \"\"}" |
||||
|
}, |
||||
|
"templateType": "fetch", |
||||
|
"fetchMethodPath": "./pontFetchMethodPath" |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
import axios from 'axios'; |
||||
|
|
||||
|
export default async function (url: string): Promise<string> { |
||||
|
console.log(url); |
||||
|
return axios.get(url).then((res: any) => { |
||||
|
const tags: string | any[] = []; |
||||
|
for (const key in res.data.paths) { |
||||
|
if (Object.prototype.hasOwnProperty.call(res.data.paths, key)) { |
||||
|
const element = res.data.paths[key]; |
||||
|
for (const key in element) { |
||||
|
if (Object.prototype.hasOwnProperty.call(element, key)) { |
||||
|
const innerElement = element[key]; |
||||
|
console.log(innerElement); |
||||
|
if ( |
||||
|
innerElement?.tags?.length > 0 && |
||||
|
!tags.includes(innerElement.tags[0]) |
||||
|
) { |
||||
|
tags.push(innerElement.tags[0]); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return JSON.stringify({ |
||||
|
...res.data, |
||||
|
tags: tags?.map((item) => { |
||||
|
return { |
||||
|
name: item, |
||||
|
}; |
||||
|
}), |
||||
|
}); |
||||
|
}); |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
import { Interface, BaseClass, Property, CodeGenerator } from 'pont-engine'; |
||||
|
|
||||
|
export default class MyGenerator extends CodeGenerator { |
||||
|
getInterfaceContentInDeclaration(inter: Interface) { |
||||
|
const requestParams = inter.getRequestParams(); |
||||
|
const paramsCode = inter.getParamsCode('Params'); |
||||
|
|
||||
|
return ` |
||||
|
export ${paramsCode} |
||||
|
|
||||
|
export type Response = ${inter.responseType} |
||||
|
|
||||
|
export const init: Response; |
||||
|
|
||||
|
export function request(${requestParams}): Promise<Response>; |
||||
|
`;
|
||||
|
} |
||||
|
|
||||
|
getBaseClassInDeclaration(base: BaseClass) { |
||||
|
const originProps = base.properties; |
||||
|
|
||||
|
base.properties = base.properties.map((prop) => { |
||||
|
return new Property({ |
||||
|
...prop, |
||||
|
required: false, |
||||
|
}); |
||||
|
}); |
||||
|
|
||||
|
const result = super.getBaseClassInDeclaration(base); |
||||
|
base.properties = originProps; |
||||
|
|
||||
|
return result; |
||||
|
} |
||||
|
|
||||
|
getInterfaceContent(inter: Interface) { |
||||
|
const method = inter.method.toUpperCase(); |
||||
|
const requestParams = inter.getRequestParams(this.surrounding); |
||||
|
const paramsCode = inter.getParamsCode('Params', this.surrounding); |
||||
|
const bodyParamsCode = inter.getBodyParamsCode(); |
||||
|
return ` |
||||
|
/** |
||||
|
* @desc ${inter.description} |
||||
|
*/ |
||||
|
|
||||
|
import { request as Request } from '@umijs/max'; |
||||
|
|
||||
|
export ${paramsCode} |
||||
|
|
||||
|
export function request(${requestParams}) { |
||||
|
return Request('${inter.path}', { |
||||
|
method: '${method}', |
||||
|
params: { ...params, }, |
||||
|
data: ${bodyParamsCode ? '{ ...body }' : '{}'}, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
||||
|
`;
|
||||
|
} |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
import { StandardDataSource } from 'pont-engine'; |
||||
|
|
||||
|
// 根据 Mod.name进行过滤
|
||||
|
export default function transform(data: StandardDataSource) { |
||||
|
return data; |
||||
|
} |
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 809 B |
After Width: | Height: | Size: 935 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.3 KiB |
@ -0,0 +1,10 @@ |
|||||
|
export default (initialState: API.UserInfo) => { |
||||
|
// 在这里按照初始化数据定义项目中的权限,统一管理
|
||||
|
// 参考文档 https://next.umijs.org/docs/max/access
|
||||
|
const canSeeAdmin = !!( |
||||
|
initialState && initialState.name !== 'dontHaveAccess' |
||||
|
); |
||||
|
return { |
||||
|
canSeeAdmin, |
||||
|
}; |
||||
|
}; |
@ -0,0 +1,4 @@ |
|||||
|
import * as defs from './baseClass'; |
||||
|
import './mods/'; |
||||
|
|
||||
|
(window as any).defs = defs; |
@ -0,0 +1,8 @@ |
|||||
|
/** |
||||
|
* @description |
||||
|
*/ |
||||
|
import * as postLogin from './postLogin'; |
||||
|
import * as postRecoverPassword from './postRecoverPassword'; |
||||
|
import * as postRegister from './postRegister'; |
||||
|
|
||||
|
export { postLogin, postRecoverPassword, postRegister }; |
@ -0,0 +1,20 @@ |
|||||
|
/** |
||||
|
* @desc 用户登录【v1.0】 |
||||
|
*/ |
||||
|
|
||||
|
import { request as Request } from '@umijs/max'; |
||||
|
|
||||
|
export class Params {} |
||||
|
|
||||
|
export function request( |
||||
|
params: Params, |
||||
|
body: defs.request_UserLogin, |
||||
|
options?: any, |
||||
|
) { |
||||
|
return Request('/base/login', { |
||||
|
method: 'POST', |
||||
|
params: { ...params }, |
||||
|
data: { ...body }, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
/** |
||||
|
* @desc 找回密码【v1.0】 |
||||
|
*/ |
||||
|
|
||||
|
import { request as Request } from '@umijs/max'; |
||||
|
|
||||
|
export class Params {} |
||||
|
|
||||
|
export function request( |
||||
|
params: Params, |
||||
|
body: defs.request_RecoverPassword, |
||||
|
options?: any, |
||||
|
) { |
||||
|
return Request('/base/recoverPassword', { |
||||
|
method: 'POST', |
||||
|
params: { ...params }, |
||||
|
data: { ...body }, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
/** |
||||
|
* @desc 注册账号【v1.0】 |
||||
|
*/ |
||||
|
|
||||
|
import { request as Request } from '@umijs/max'; |
||||
|
|
||||
|
export class Params {} |
||||
|
|
||||
|
export function request( |
||||
|
params: Params, |
||||
|
body: defs.request_UserRegister, |
||||
|
options?: any, |
||||
|
) { |
||||
|
return Request('/base/register', { |
||||
|
method: 'POST', |
||||
|
params: { ...params }, |
||||
|
data: { ...body }, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
/** |
||||
|
* @desc 分页获取规格属性列表 |
||||
|
*/ |
||||
|
|
||||
|
import { request as Request } from '@umijs/max'; |
||||
|
|
||||
|
export class Params { |
||||
|
/** name */ |
||||
|
name?: string; |
||||
|
/** 页码 */ |
||||
|
page?: number; |
||||
|
/** 每页大小 */ |
||||
|
page_size?: number; |
||||
|
} |
||||
|
|
||||
|
export function request(params: Params, options?: any) { |
||||
|
return Request('/attribute/attribute-list', { |
||||
|
method: 'GET', |
||||
|
params: { ...params }, |
||||
|
data: {}, |
||||
|
...(options || {}), |
||||
|
}); |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
/** |
||||
|
* @description |
||||
|
*/ |
||||
|
import * as getAttributeList from './getAttributeList'; |
||||
|
|
||||
|
export { getAttributeList }; |
@ -0,0 +1,16 @@ |
|||||
|
/** |
||||
|
* @description |
||||
|
*/ |
||||
|
import * as postCopyAuthority from './postCopyAuthority'; |
||||
|
import * as postCreateAuthority from './postCreateAuthority'; |
||||
|
import * as postDeleteAuthority from './postDeleteAuthority'; |
||||
|
import * as postGetAuthorityList from './postGetAuthorityList'; |
||||
|
import * as putUpdateAuthority from './putUpdateAuthority'; |
||||
|
|
||||
|
export { |
||||
|
postCopyAuthority, |
||||
|
postCreateAuthority, |
||||
|
postDeleteAuthority, |
||||
|
postGetAuthorityList, |
||||
|
putUpdateAuthority, |
||||
|
}; |