Compare commits

...

4 Commits

Author SHA1 Message Date
文武 f49eb80388 build 6 months ago
文武 0cc664874a build 6 months ago
文武 75151954ce test 6 months ago
文武 5ced92dba0 init 6 months ago
  1. 49
      .drone.yml
  2. 3
      .eslintignore
  3. 7
      .eslintrc.js
  4. 21
      .gitignore
  5. 32
      .kube/config
  6. 17
      .lintstagedrc
  7. 2
      .npmrc
  8. 11
      .prettierignore
  9. 8
      .prettierrc
  10. 3
      .stylelintignore
  11. 3
      .stylelintrc.js
  12. 150
      CHANGELOG.md
  13. 8
      DockerfileDev
  14. 8
      DockerfileUat
  15. 2
      README.md
  16. 41
      config/config.ts
  17. 10
      config/dist/config.dev.js
  18. 41
      config/dist/config.js
  19. 11
      config/dist/config.local.js
  20. 21
      config/dist/dist/proxy.dev.js
  21. 22
      config/dist/proxy.js
  22. 162
      config/dist/routes.js
  23. 42
      config/proxy.ts
  24. 160
      config/routes.ts
  25. 39
      deployDev.yaml
  26. 39
      deployUat.yaml
  27. 1
      dist/390.46193c73.async.js
  28. 69
      dist/633.18b8fbeb.async.js
  29. 6
      dist/704.59d4dc46.async.js
  30. 11
      dist/934.0292fa6c.async.js
  31. BIN
      dist/favicon.ico
  32. 16
      dist/index.html
  33. BIN
      dist/menu/funds.png
  34. BIN
      dist/menu/goods.png
  35. BIN
      dist/menu/order.png
  36. BIN
      dist/menu/task.png
  37. 1
      dist/p__FundsAccount__index.9c337e0b.async.js
  38. 1
      dist/p__FundsConfirm__index.db0fd11f.async.js
  39. 1
      dist/p__FundsManage__index.794d0db5.chunk.css
  40. 1
      dist/p__FundsManage__index.f38982af.async.js
  41. 1
      dist/p__FundsWithdraw__index.fdcc80a7.async.js
  42. 1
      dist/p__GoodsList__index.9829b6f2.async.js
  43. 1
      dist/p__GoodsPublish__index.935e8278.async.js
  44. 1
      dist/p__GoodsPublish__index.ce4b61d7.chunk.css
  45. 1
      dist/p__GoodsSell__index.eaa1a932.async.js
  46. 1
      dist/p__LoginResult__index.bfad3652.async.js
  47. 1
      dist/p__LoginResult__index.edc229de.chunk.css
  48. 5
      dist/p__Login__index.4af993b4.chunk.css
  49. 1
      dist/p__Login__index.b244d9da.async.js
  50. 1
      dist/p__OrderBackList__index.b857287c.async.js
  51. 1
      dist/p__OrderBackList__index.c6490525.chunk.css
  52. 1
      dist/p__OrderDetail__index.effcd4bb.async.js
  53. 1
      dist/p__OrderExpress__index.e07171b7.async.js
  54. 1
      dist/p__OrderList__index.74546455.async.js
  55. 1
      dist/p__OrderList__index.c6490525.chunk.css
  56. 1
      dist/p__TaskAuditList__index.c51c0411.async.js
  57. 1
      dist/p__TaskDetail__index.50b94ad8.async.js
  58. 1
      dist/p__TaskDetail__index.63830a07.chunk.css
  59. 1
      dist/p__TaskList__index.c3d05b9d.async.js
  60. 1
      dist/p__TaskOrderDetail__index.20324a25.async.js
  61. 1
      dist/p__TaskOrderList__index.19739504.async.js
  62. 1
      dist/p__TaskOrderList__index.c6490525.chunk.css
  63. 1
      dist/p__TaskPublish__index.e89eedc5.async.js
  64. BIN
      dist/static/bg.222daa2d.png
  65. BIN
      dist/static/cbg.88753c37.png
  66. BIN
      dist/static/ctbg.75d7c415.png
  67. BIN
      dist/static/lb.34cb85ec.png
  68. BIN
      dist/static/mask.3f10ebc2.png
  69. BIN
      dist/static/r.807bab19.png
  70. 1
      dist/t__plugin-layout__Layout.74b4118c.chunk.css
  71. 2
      dist/t__plugin-layout__Layout.83a3812f.async.js
  72. 397
      dist/umi.192e5741.js
  73. 1
      dist/umi.4282ac36.css
  74. 6
      fetchMethodPath.ts
  75. 20
      mock/userAPI.ts
  76. 31
      nginxDev.conf
  77. 31
      nginxUat.conf
  78. 47
      package.json
  79. 9089
      pnpm-lock.yaml
  80. 14
      pont-config.json
  81. 33
      pontFetchMethodPath.ts
  82. 59
      pontTemplate.ts
  83. 6
      pontTransfrom.ts
  84. BIN
      public/favicon.ico
  85. BIN
      public/menu/funds.png
  86. BIN
      public/menu/goods.png
  87. BIN
      public/menu/order.png
  88. BIN
      public/menu/task.png
  89. 10
      src/access.ts
  90. 18730
      src/apis/api-lock.json
  91. 5203
      src/apis/api.d.ts
  92. 2961
      src/apis/baseClass.ts
  93. 4
      src/apis/index.ts
  94. 8
      src/apis/mods/account/index.ts
  95. 20
      src/apis/mods/account/postLogin.ts
  96. 20
      src/apis/mods/account/postRecoverPassword.ts
  97. 20
      src/apis/mods/account/postRegister.ts
  98. 23
      src/apis/mods/attribute/getAttributeList.ts
  99. 6
      src/apis/mods/attribute/index.ts
  100. 16
      src/apis/mods/authority/index.ts

49
.drone.yml

@ -0,0 +1,49 @@
workspace:
base: /project
path: src/demo
branches: [ master,develop,uat ]
pipeline:
# install:
# image: node:16-alpine
# commands:
# - yarn config delete proxy
# - yarn config set sass_binary_site https://cdn.npm.taobao.org/dist/node-sass -g
# - yarn config set registry https://npm_registry.mangguonews.com
# - yarn install # 也可以使用 npm install
# build:
# image: node:16-alpine
# commands:
# - yarn run build:test
# when:
# event: push
# branch: develop
docker-dev:
image: plugins/docker
repo: registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller
registry: registry.cn-shenzhen.aliyuncs.com
use_cache: true
dockerfile: DockerfileDev
secrets: [ docker_username, docker_password ]
tags: bseller-web
when:
branch: develop
deploy-dev:
image: appleboy/drone-ssh
host: 1.92.109.79
username: root
password:
from_secret: ssh_password
port: 22 # 可选,指定 SSH 端口,默认为 22
script:
- docker rm -f bseller-web
- docker pull registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller:bseller-web
- docker run --name=bseller-web -p 30102:83 -d registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller:bseller-web
when:
branch: develop

3
.eslintignore

@ -0,0 +1,3 @@
/src/apis
dist
/src/assets

7
.eslintrc.js

@ -0,0 +1,7 @@
module.exports = {
rules: {
'jsx-quotes': 0,
'react/self-closing-comp': ['error'],
},
extends: require.resolve('@umijs/max/eslint'),
};

21
.gitignore

@ -0,0 +1,21 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/npm-debug.log*
/yarn-error.log
# production
# /dist
*.zip
*.bak
# misc
.DS_Store
# umi
/src/.umi
/src/.umi-production
/src/.umi-test
/.env.local
# /src/**/dist/

32
.kube/config

@ -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"

17
.lintstagedrc

@ -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"
]
}

2
.npmrc

@ -0,0 +1,2 @@
registry=https://registry.npmjs.org/
strict-peer-dependencies=false

11
.prettierignore

@ -0,0 +1,11 @@
**/*.md
**/*.svg
**/*.ejs
**/*.html
package.json
node_modules
.umi
.umi-production
/dist
/src/assets
global.less

8
.prettierrc

@ -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"]
}

3
.stylelintignore

@ -0,0 +1,3 @@
/dist
/src/assets
global.less

3
.stylelintrc.js

@ -0,0 +1,3 @@
module.exports = {
extends: require.resolve('@umijs/max/stylelint'),
};

150
CHANGELOG.md

@ -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))

8
DockerfileDev

@ -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

8
DockerfileUat

@ -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

2
README.md

@ -1,2 +1,2 @@
# bkb-seller-web # README

41
config/config.ts

@ -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'],
});

10
config/dist/config.dev.js

@ -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/'
});

41
config/dist/config.js

@ -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']
});

11
config/dist/config.local.js

@ -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']
});

21
config/dist/dist/proxy.dev.js

@ -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']: '',
}
}
}
};

22
config/dist/proxy.js

@ -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)
}
}
};

162
config/dist/routes.js

@ -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' },
]
},
];

42
config/proxy.ts

@ -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: { '^': '' },
// },
// },
};

160
config/routes.ts

@ -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' },
],
},
];

39
deployDev.yaml

@ -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

39
deployUat.yaml

@ -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

1
dist/390.46193c73.async.js

@ -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})}}}]);

69
dist/633.18b8fbeb.async.js

File diff suppressed because one or more lines are too long

6
dist/704.59d4dc46.async.js

File diff suppressed because one or more lines are too long

11
dist/934.0292fa6c.async.js

File diff suppressed because one or more lines are too long

BIN
dist/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

16
dist/index.html

@ -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="/umi.4282ac36.css">
</head>
<body>
<div id="root"></div>
<script src="/umi.192e5741.js"></script>
</body></html>

BIN
dist/menu/funds.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 B

BIN
dist/menu/goods.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 935 B

BIN
dist/menu/order.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
dist/menu/task.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

1
dist/p__FundsAccount__index.9c337e0b.async.js

File diff suppressed because one or more lines are too long

1
dist/p__FundsConfirm__index.db0fd11f.async.js

File diff suppressed because one or more lines are too long

1
dist/p__FundsManage__index.794d0db5.chunk.css

@ -0,0 +1 @@
.topBanner___JRYFU{margin-bottom:24px}.ant-card-head{border-bottom:none!important}

1
dist/p__FundsManage__index.f38982af.async.js

File diff suppressed because one or more lines are too long

1
dist/p__FundsWithdraw__index.fdcc80a7.async.js

File diff suppressed because one or more lines are too long

1
dist/p__GoodsList__index.9829b6f2.async.js

File diff suppressed because one or more lines are too long

1
dist/p__GoodsPublish__index.935e8278.async.js

File diff suppressed because one or more lines are too long

1
dist/p__GoodsPublish__index.ce4b61d7.chunk.css

@ -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}

1
dist/p__GoodsSell__index.eaa1a932.async.js

@ -0,0 +1 @@
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[560],{83418:function(j,r,e){e.r(r),e.d(r,{default:function(){return h}});var u=e(15009),a=e.n(u),i=e(97857),o=e.n(i),b=e(99289),m=e.n(b),p=e(8702),c=e(31821),E=e(85893);function h(){var v=[{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"title",key:"title"},{title:"sku",hideInSearch:!0,dataIndex:"sku_name",key:"sku_name"},{title:"\u4ECA\u5929\u9500\u552E",hideInSearch:!0,dataIndex:"today_sale",key:"today_sale"},{title:"\u8FD1\u4E03\u5929\u9500\u552E",hideInSearch:!0,dataIndex:"seven_sale",key:"seven_sale"},{title:"\u8FD130\u5929\u9500\u552E",hideInSearch:!0,dataIndex:"thirty_sale",key:"thirty_sale"},{title:"\u5E93\u5B58\u6570\u636E",hideInSearch:!0,dataIndex:"stock",key:"stock"}],k=function(){var D=m()(a()().mark(function d(t){var _,n,l;return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,c.Hd.request(o()(o()({},t),{},{page:t.current,page_size:t.pageSize}),{});case 2:if(_=s.sent,console.log(_),(_==null?void 0:_.code)!==0){s.next=6;break}return s.abrupt("return",{success:!0,data:_==null||(n=_.data)===null||n===void 0?void 0:n.list,total:_==null||(l=_.data)===null||l===void 0?void 0:l.total});case 6:case"end":return s.stop()}},d)}));return function(t){return D.apply(this,arguments)}}();return(0,E.jsx)(p.QVr,{rowKey:"id",request:k,scroll:{x:"max-content"},options:{reload:!1},bordered:!0,toolBarRender:!1,tooltip:null,columns:v})}}}]);

1
dist/p__LoginResult__index.bfad3652.async.js

@ -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}}]);

1
dist/p__LoginResult__index.edc229de.chunk.css

@ -0,0 +1 @@
.loginResult___kqvMS{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}

5
dist/p__Login__index.4af993b4.chunk.css

File diff suppressed because one or more lines are too long

1
dist/p__Login__index.b244d9da.async.js

File diff suppressed because one or more lines are too long

1
dist/p__OrderBackList__index.b857287c.async.js

File diff suppressed because one or more lines are too long

1
dist/p__OrderBackList__index.c6490525.chunk.css

@ -0,0 +1 @@
#table .ant-table-pagination-right{display:none}

1
dist/p__OrderDetail__index.effcd4bb.async.js

File diff suppressed because one or more lines are too long

1
dist/p__OrderExpress__index.e07171b7.async.js

File diff suppressed because one or more lines are too long

1
dist/p__OrderList__index.74546455.async.js

File diff suppressed because one or more lines are too long

1
dist/p__OrderList__index.c6490525.chunk.css

@ -0,0 +1 @@
#table .ant-table-pagination-right{display:none}

1
dist/p__TaskAuditList__index.c51c0411.async.js

File diff suppressed because one or more lines are too long

1
dist/p__TaskDetail__index.50b94ad8.async.js

File diff suppressed because one or more lines are too long

1
dist/p__TaskDetail__index.63830a07.chunk.css

@ -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}

1
dist/p__TaskList__index.c3d05b9d.async.js

File diff suppressed because one or more lines are too long

1
dist/p__TaskOrderDetail__index.20324a25.async.js

File diff suppressed because one or more lines are too long

1
dist/p__TaskOrderList__index.19739504.async.js

File diff suppressed because one or more lines are too long

1
dist/p__TaskOrderList__index.c6490525.chunk.css

@ -0,0 +1 @@
#table .ant-table-pagination-right{display:none}

1
dist/p__TaskPublish__index.e89eedc5.async.js

File diff suppressed because one or more lines are too long

BIN
dist/static/bg.222daa2d.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

BIN
dist/static/cbg.88753c37.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

BIN
dist/static/ctbg.75d7c415.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
dist/static/lb.34cb85ec.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
dist/static/mask.3f10ebc2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
dist/static/r.807bab19.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

1
dist/t__plugin-layout__Layout.74b4118c.chunk.css

@ -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}

2
dist/t__plugin-layout__Layout.83a3812f.async.js

File diff suppressed because one or more lines are too long

397
dist/umi.192e5741.js

File diff suppressed because one or more lines are too long

1
dist/umi.4282ac36.css

File diff suppressed because one or more lines are too long

6
fetchMethodPath.ts

@ -0,0 +1,6 @@
import fetch from 'node-fetch';
export default function (url: string): string {
return fetch(url).then(res => res.text())
}

20
mock/userAPI.ts

@ -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,
});
},
};

31
nginxDev.conf

@ -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://1.92.109.79:30203/;
}
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 {
}
}

31
nginxUat.conf

@ -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 {
}
}

47
package.json

@ -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"
}
}

9089
pnpm-lock.yaml

File diff suppressed because it is too large

14
pont-config.json

@ -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"
}

33
pontFetchMethodPath.ts

@ -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,
};
}),
});
});
}

59
pontTemplate.ts

@ -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 || {}),
});
}
`;
}
}

6
pontTransfrom.ts

@ -0,0 +1,6 @@
import { StandardDataSource } from 'pont-engine';
// 根据 Mod.name进行过滤
export default function transform(data: StandardDataSource) {
return data;
}

BIN
public/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
public/menu/funds.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 B

BIN
public/menu/goods.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 935 B

BIN
public/menu/order.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
public/menu/task.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

10
src/access.ts

@ -0,0 +1,10 @@
export default (initialState: API.UserInfo) => {
// 在这里按照初始化数据定义项目中的权限,统一管理
// 参考文档 https://next.umijs.org/docs/max/access
const canSeeAdmin = !!(
initialState && initialState.name !== 'dontHaveAccess'
);
return {
canSeeAdmin,
};
};

18730
src/apis/api-lock.json

File diff suppressed because it is too large

5203
src/apis/api.d.ts

File diff suppressed because it is too large

2961
src/apis/baseClass.ts

File diff suppressed because it is too large

4
src/apis/index.ts

@ -0,0 +1,4 @@
import * as defs from './baseClass';
import './mods/';
(window as any).defs = defs;

8
src/apis/mods/account/index.ts

@ -0,0 +1,8 @@
/**
* @description
*/
import * as postLogin from './postLogin';
import * as postRecoverPassword from './postRecoverPassword';
import * as postRegister from './postRegister';
export { postLogin, postRecoverPassword, postRegister };

20
src/apis/mods/account/postLogin.ts

@ -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 || {}),
});
}

20
src/apis/mods/account/postRecoverPassword.ts

@ -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 || {}),
});
}

20
src/apis/mods/account/postRegister.ts

@ -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 || {}),
});
}

23
src/apis/mods/attribute/getAttributeList.ts

@ -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 || {}),
});
}

6
src/apis/mods/attribute/index.ts

@ -0,0 +1,6 @@
/**
* @description
*/
import * as getAttributeList from './getAttributeList';
export { getAttributeList };

16
src/apis/mods/authority/index.ts

@ -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,
};

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save