component-sanzhizhou 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/Ad/index.d.ts +11 -0
- package/dist/Ad/index.js +143 -0
- package/dist/Ad/index.less +12 -0
- package/dist/Auth/index.d.ts +16 -0
- package/dist/Auth/index.js +374 -0
- package/dist/AuthClient/index.js +30 -0
- package/dist/AuthClient/login-reg.css.js +6 -0
- package/dist/AuthClient/login-reg.js +78 -0
- package/dist/AuthClient/login.css.js +6 -0
- package/dist/AuthClient/login.d.ts +14 -0
- package/dist/AuthClient/login.js +198 -0
- package/dist/AuthClient/qr/h5-we-public-login.d.ts +2 -0
- package/dist/AuthClient/qr/h5-we-public-login.js +22 -0
- package/dist/AuthClient/qr/index.css.js +9 -0
- package/dist/AuthClient/qr/index.d.ts +15 -0
- package/dist/AuthClient/qr/index.js +348 -0
- package/dist/AuthClient/qr/typings.d.ts +22 -0
- package/dist/AuthClient/qr/ws.js +253 -0
- package/dist/AuthClient/reg.js +185 -0
- package/dist/AuthClient/user-offline.js +41 -0
- package/dist/Buy/index.css.js +6 -0
- package/dist/Buy/index.d.ts +14 -0
- package/dist/Buy/index.js +121 -0
- package/dist/Buy/qr.css.js +6 -0
- package/dist/Buy/qr.d.ts +11 -0
- package/dist/Buy/qr.js +354 -0
- package/dist/Buy/trial-member.css.js +6 -0
- package/dist/Buy/trial-member.d.ts +8 -0
- package/dist/Buy/trial-member.js +45 -0
- package/dist/Client/ClientUpdate/index.js +92 -0
- package/dist/Client/ClientUpdate/index.less +23 -0
- package/dist/Login/index.js +5 -0
- package/dist/Notice/index.js +36 -0
- package/dist/PhonePublish/account-manage/home.d.ts +11 -0
- package/dist/PhonePublish/account-manage/home.js +242 -0
- package/dist/PhonePublish/account-manage/home.less +28 -0
- package/dist/PhonePublish/account-manage/index.d.ts +3 -0
- package/dist/PhonePublish/account-manage/index.js +56 -0
- package/dist/PhonePublish/account-manage/index.less +59 -0
- package/dist/PhonePublish/account-manage/list.d.ts +17 -0
- package/dist/PhonePublish/account-manage/list.js +443 -0
- package/dist/PhonePublish/account-manage/list.less +95 -0
- package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
- package/dist/PhonePublish/account-manage/setting/index.js +199 -0
- package/dist/PhonePublish/account-manage/setting/index.less +11 -0
- package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
- package/dist/PhonePublish/create-task/base/index.js +386 -0
- package/dist/PhonePublish/create-task/base/index.less +64 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
- package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
- package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
- package/dist/PhonePublish/create-task/index.d.ts +11 -0
- package/dist/PhonePublish/create-task/index.js +449 -0
- package/dist/PhonePublish/create-task/index.less +75 -0
- package/dist/PhonePublish/create-task/select-list.css.js +6 -0
- package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
- package/dist/PhonePublish/create-task/select-list.js +304 -0
- package/dist/PhonePublish/create-task/task-list.css.js +6 -0
- package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
- package/dist/PhonePublish/create-task/task-list.js +323 -0
- package/dist/PhonePublish/index.css.js +35 -0
- package/dist/PhonePublish/index.d.ts +15 -0
- package/dist/PhonePublish/index.js +192 -0
- package/dist/PhonePublish/index.less +55 -0
- package/dist/PhonePublish/lib/chrome-quit.js +20 -0
- package/dist/PhonePublish/log/index.d.ts +8 -0
- package/dist/PhonePublish/log/index.js +186 -0
- package/dist/PhonePublish/log/index.less +81 -0
- package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
- package/dist/PhonePublish/publish-task-plan/index.js +32 -0
- package/dist/PhonePublish/publish-task-plan/index.less +4 -0
- package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
- package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
- package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
- package/dist/PhonePublish/task-list/index.d.ts +8 -0
- package/dist/PhonePublish/task-list/index.js +224 -0
- package/dist/PhonePublish/task-list/index.less +8 -0
- package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
- package/dist/PhonePublish/task-list/plan/list.js +290 -0
- package/dist/PhonePublish/task-list/plan/list.less +87 -0
- package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/operate.js +145 -0
- package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/query.js +89 -0
- package/dist/PhonePublish/task-list/plan/query.less +9 -0
- package/dist/PhonePublish/task-list/plan/status.js +53 -0
- package/dist/PhonePublish/task-list/query.js +76 -0
- package/dist/PhonePublish/task-list/query.less +19 -0
- package/dist/PhonePublish/task-list/who-can-view.js +37 -0
- package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
- package/dist/PhonePublish/video-account/ban/index.js +94 -0
- package/dist/PhonePublish/video-account/ban/index.less +4 -0
- package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
- package/dist/PhonePublish/video-account/base-info.js +75 -0
- package/dist/PhonePublish/video-account/base-info.less +92 -0
- package/dist/PhonePublish/video-account/create.d.ts +8 -0
- package/dist/PhonePublish/video-account/create.js +174 -0
- package/dist/PhonePublish/video-account/group.d.ts +9 -0
- package/dist/PhonePublish/video-account/group.js +255 -0
- package/dist/PhonePublish/video-account/group.less +10 -0
- package/dist/PhonePublish/video-account/index.d.ts +8 -0
- package/dist/PhonePublish/video-account/index.js +403 -0
- package/dist/PhonePublish/video-account/index.less +92 -0
- package/dist/PhonePublish/video-account/query.d.ts +8 -0
- package/dist/PhonePublish/video-account/query.js +115 -0
- package/dist/PhonePublish/video-account/query.less +18 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
- package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
- package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
- package/dist/Product/dict.d.ts +16 -0
- package/dist/Product/dict.js +93 -0
- package/dist/Product/index.js +36 -0
- package/dist/UI/DialogDrawer.css.js +6 -0
- package/dist/UI/DialogDrawer.js +74 -0
- package/dist/UI/DialogDrawerFooter.css.js +6 -0
- package/dist/UI/DialogDrawerFooter.js +22 -0
- package/dist/UI/FileSize.css.js +6 -0
- package/dist/UI/FileSize.js +63 -0
- package/dist/UI/LayoutContent.js +73 -0
- package/dist/UI/LayoutContent.less +64 -0
- package/dist/UI/LoadError.css.js +6 -0
- package/dist/UI/LoadError.js +36 -0
- package/dist/UI/Money/index.css.js +6 -0
- package/dist/UI/Money/index.js +40 -0
- package/dist/UI/PageContentWarp.js +80 -0
- package/dist/UI/PageContentWarp.less +56 -0
- package/dist/UI/PageLoading.js +11 -0
- package/dist/UI/PageLoading.less +7 -0
- package/dist/UI/Time.js +21 -0
- package/dist/UI/duration.css.js +6 -0
- package/dist/UI/duration.js +49 -0
- package/dist/UI/enabled.js +28 -0
- package/dist/UI/text-input.js +110 -0
- package/dist/UI/text-input.less +22 -0
- package/dist/VideoPublish/account-manage/home.d.ts +11 -0
- package/dist/VideoPublish/account-manage/home.js +232 -0
- package/dist/VideoPublish/account-manage/home.less +58 -0
- package/dist/VideoPublish/account-manage/index.d.ts +3 -0
- package/dist/VideoPublish/account-manage/index.js +56 -0
- package/dist/VideoPublish/account-manage/index.less +59 -0
- package/dist/VideoPublish/account-manage/list.d.ts +17 -0
- package/dist/VideoPublish/account-manage/list.js +501 -0
- package/dist/VideoPublish/account-manage/list.less +95 -0
- package/dist/VideoPublish/account-manage/setting/index.d.ts +6 -0
- package/dist/VideoPublish/account-manage/setting/index.js +199 -0
- package/dist/VideoPublish/account-manage/setting/index.less +11 -0
- package/dist/VideoPublish/create-task/base/index.d.ts +10 -0
- package/dist/VideoPublish/create-task/base/index.js +386 -0
- package/dist/VideoPublish/create-task/base/index.less +64 -0
- package/dist/VideoPublish/create-task/getVideoGoodsUrl.d.ts +2 -0
- package/dist/VideoPublish/create-task/getVideoGoodsUrl.js +136 -0
- package/dist/VideoPublish/create-task/hour-enabled.js +42 -0
- package/dist/VideoPublish/create-task/hour-enabled.less +24 -0
- package/dist/VideoPublish/create-task/index.d.ts +11 -0
- package/dist/VideoPublish/create-task/index.js +449 -0
- package/dist/VideoPublish/create-task/index.less +75 -0
- package/dist/VideoPublish/create-task/select-list.css.js +6 -0
- package/dist/VideoPublish/create-task/select-list.d.ts +8 -0
- package/dist/VideoPublish/create-task/select-list.js +304 -0
- package/dist/VideoPublish/create-task/task-list.css.js +6 -0
- package/dist/VideoPublish/create-task/task-list.d.ts +9 -0
- package/dist/VideoPublish/create-task/task-list.js +323 -0
- package/dist/VideoPublish/index.css.js +35 -0
- package/dist/VideoPublish/index.d.ts +15 -0
- package/dist/VideoPublish/index.js +235 -0
- package/dist/VideoPublish/index.less +55 -0
- package/dist/VideoPublish/lib/chrome-quit.js +20 -0
- package/dist/VideoPublish/log/index.d.ts +8 -0
- package/dist/VideoPublish/log/index.js +186 -0
- package/dist/VideoPublish/log/index.less +81 -0
- package/dist/VideoPublish/proxy/create.d.ts +8 -0
- package/dist/VideoPublish/proxy/create.js +176 -0
- package/dist/VideoPublish/proxy/list.d.ts +9 -0
- package/dist/VideoPublish/proxy/list.js +276 -0
- package/dist/VideoPublish/proxy/list.less +10 -0
- package/dist/VideoPublish/proxy/query.d.ts +9 -0
- package/dist/VideoPublish/proxy/query.js +75 -0
- package/dist/VideoPublish/proxy/query.less +10 -0
- package/dist/VideoPublish/proxy/select.d.ts +10 -0
- package/dist/VideoPublish/proxy/select.js +110 -0
- package/dist/VideoPublish/proxy/select.less +17 -0
- package/dist/VideoPublish/publish-task-plan/index.d.ts +9 -0
- package/dist/VideoPublish/publish-task-plan/index.js +32 -0
- package/dist/VideoPublish/publish-task-plan/index.less +4 -0
- package/dist/VideoPublish/publish-task-plan/tool-bak.txt +219 -0
- package/dist/VideoPublish/publish-task-plan/tool.d.ts +29 -0
- package/dist/VideoPublish/publish-task-plan/tool.js +720 -0
- package/dist/VideoPublish/task-list/index.d.ts +8 -0
- package/dist/VideoPublish/task-list/index.js +224 -0
- package/dist/VideoPublish/task-list/index.less +8 -0
- package/dist/VideoPublish/task-list/plan/list.d.ts +12 -0
- package/dist/VideoPublish/task-list/plan/list.js +290 -0
- package/dist/VideoPublish/task-list/plan/list.less +87 -0
- package/dist/VideoPublish/task-list/plan/operate.d.ts +8 -0
- package/dist/VideoPublish/task-list/plan/operate.js +145 -0
- package/dist/VideoPublish/task-list/plan/query.d.ts +8 -0
- package/dist/VideoPublish/task-list/plan/query.js +89 -0
- package/dist/VideoPublish/task-list/plan/query.less +9 -0
- package/dist/VideoPublish/task-list/plan/status.js +53 -0
- package/dist/VideoPublish/task-list/query.js +76 -0
- package/dist/VideoPublish/task-list/query.less +19 -0
- package/dist/VideoPublish/task-list/who-can-view.js +37 -0
- package/dist/VideoPublish/video-account/ban/index.d.ts +10 -0
- package/dist/VideoPublish/video-account/ban/index.js +94 -0
- package/dist/VideoPublish/video-account/ban/index.less +4 -0
- package/dist/VideoPublish/video-account/base-info.d.ts +13 -0
- package/dist/VideoPublish/video-account/base-info.js +75 -0
- package/dist/VideoPublish/video-account/base-info.less +92 -0
- package/dist/VideoPublish/video-account/create.d.ts +8 -0
- package/dist/VideoPublish/video-account/create.js +174 -0
- package/dist/VideoPublish/video-account/group.d.ts +9 -0
- package/dist/VideoPublish/video-account/group.js +255 -0
- package/dist/VideoPublish/video-account/group.less +10 -0
- package/dist/VideoPublish/video-account/index.d.ts +8 -0
- package/dist/VideoPublish/video-account/index.js +403 -0
- package/dist/VideoPublish/video-account/index.less +92 -0
- package/dist/VideoPublish/video-account/query.d.ts +8 -0
- package/dist/VideoPublish/video-account/query.js +115 -0
- package/dist/VideoPublish/video-account/query.less +18 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/index.d.ts +2 -0
- package/dist/VideoPublish/video-publish-statistic/index.js +37 -0
- package/dist/VideoPublish/video-publish-statistic/kind.js +57 -0
- package/dist/VideoPublish/video-publish-statistic/operation/list.d.ts +7 -0
- package/dist/VideoPublish/video-publish-statistic/operation/list.js +242 -0
- package/dist/VideoPublish/video-publish-statistic/operation/list.less +10 -0
- package/dist/VideoPublish/video-publish-statistic/operation/query.js +56 -0
- package/dist/VideoPublish/video-publish-statistic/operation/query.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +257 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.less +105 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +79 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.less +3 -0
- package/dist/VideoPublish/video-topic/add.d.ts +9 -0
- package/dist/VideoPublish/video-topic/add.js +89 -0
- package/dist/VideoPublish/video-topic/add.less +3 -0
- package/dist/VideoPublish/video-topic/index.d.ts +8 -0
- package/dist/VideoPublish/video-topic/index.js +301 -0
- package/dist/VideoPublish/video-topic/index.less +37 -0
- package/dist/VideoPublish/video-topic/select.d.ts +11 -0
- package/dist/VideoPublish/video-topic/select.js +172 -0
- package/dist/VideoPublish/video-topic/select.less +3 -0
- package/dist/VipCompare/commend.css.js +6 -0
- package/dist/VipCompare/commend.js +28 -0
- package/dist/VipCompare/index.css.js +6 -0
- package/dist/VipCompare/index.d.ts +8 -0
- package/dist/VipCompare/index.js +325 -0
- package/dist/VipList/index.css.js +6 -0
- package/dist/VipList/index.d.ts +15 -0
- package/dist/VipList/index.js +397 -0
- package/dist/active-code/index.d.ts +7 -0
- package/dist/active-code/index.js +78 -0
- package/dist/active-code/user-vip.d.ts +3 -0
- package/dist/active-code/user-vip.js +84 -0
- package/dist/active-code/user-vip.less +3 -0
- package/dist/asset/image/platform/bilibili.png +0 -0
- package/dist/asset/image/platform/buyin.png +0 -0
- package/dist/asset/image/platform/douyin.png +0 -0
- package/dist/asset/image/platform/douyu.png +0 -0
- package/dist/asset/image/platform/huya.png +0 -0
- package/dist/asset/image/platform/kuaishou.png +0 -0
- package/dist/asset/image/platform/tiktok.png +0 -0
- package/dist/asset/image/platform/youtube.png +0 -0
- package/dist/base/DealerUrlDict.js +7 -0
- package/dist/base/fileList.d.ts +2 -0
- package/dist/base/fileList.js +61 -0
- package/dist/base/fileListContent.d.ts +2 -0
- package/dist/base/fileListContent.js +61 -0
- package/dist/base/fileSelect.d.ts +2 -0
- package/dist/base/fileSelect.js +54 -0
- package/dist/base/folderCreate.d.ts +2 -0
- package/dist/base/folderCreate.js +56 -0
- package/dist/base/folderOpen.d.ts +2 -0
- package/dist/base/folderOpen.js +54 -0
- package/dist/base/folderSelect.d.ts +2 -0
- package/dist/base/folderSelect.js +54 -0
- package/dist/base/index.js +57 -0
- package/dist/base/openInFolder.d.ts +2 -0
- package/dist/base/openInFolder.js +54 -0
- package/dist/base/soundInfo.d.ts +8 -0
- package/dist/base/soundInfo.js +55 -0
- package/dist/component/AccountBan/index.js +10 -0
- package/dist/component/AccountBan/index.less +12 -0
- package/dist/component/file-select.d.ts +18 -0
- package/dist/component/file-select.js +163 -0
- package/dist/component/file-select.less +24 -0
- package/dist/component/folder-select.d.ts +19 -0
- package/dist/component/folder-select.js +224 -0
- package/dist/component/folder-select.less +22 -0
- package/dist/component/is-installed-chrome.d.ts +2 -0
- package/dist/component/is-installed-chrome.js +7 -0
- package/dist/component/isFileExist.js +50 -0
- package/dist/component/markdown/github-markdown-light.less +1102 -0
- package/dist/component/markdown/index.d.ts +8 -0
- package/dist/component/markdown/index.js +69 -0
- package/dist/component/markdown/index.less +55 -0
- package/dist/component/media-kind.js +24 -0
- package/dist/component/media-show/index.js +59 -0
- package/dist/component/media-show/index.less +0 -0
- package/dist/component/media-show/render.js +112 -0
- package/dist/component/media-show/render.less +54 -0
- package/dist/component/param.js +9 -0
- package/dist/component/product-dict.js +11 -0
- package/dist/component/product-type.js +20 -0
- package/dist/component/sse.js +66 -0
- package/dist/component/video-platform/logo.js +61 -0
- package/dist/component/video-platform/logo.less +49 -0
- package/dist/component/videoKindTag/index.js +44 -0
- package/dist/component/websocket/index.js +139 -0
- package/dist/config/apiUrls.js +25 -0
- package/dist/global.less +34 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +35 -0
- package/dist/lib/Tool.js +1175 -0
- package/dist/lib/accountManageSettingConfig.js +24 -0
- package/dist/lib/allow-mine-type.js +19 -0
- package/dist/lib/call-mini-url.js +8 -0
- package/dist/lib/component/getImageUrl.js +9 -0
- package/dist/lib/component/getSoundUrl.js +9 -0
- package/dist/lib/component/getVideoUrl.js +9 -0
- package/dist/lib/event.js +59 -0
- package/dist/lib/file-type.js +156 -0
- package/dist/lib/fs.d.ts +14 -0
- package/dist/lib/fs.js +480 -0
- package/dist/lib/getApiUrl.js +80 -0
- package/dist/lib/getFileExt.js +6 -0
- package/dist/lib/getLocalUserInfo.js +19 -0
- package/dist/lib/getPublishExtensionDir.d.ts +2 -0
- package/dist/lib/getPublishExtensionDir.js +55 -0
- package/dist/lib/getWorkServerUploadToken.d.ts +8 -0
- package/dist/lib/getWorkServerUploadToken.js +12 -0
- package/dist/lib/goAuth.js +28 -0
- package/dist/lib/isInClient.js +5 -0
- package/dist/lib/js-error.js +30 -0
- package/dist/lib/math.js +146 -0
- package/dist/lib/moneySimple.js +27 -0
- package/dist/lib/notification.js +43 -0
- package/dist/lib/openChrome.d.ts +2 -0
- package/dist/lib/openChrome.js +257 -0
- package/dist/lib/platform.js +57 -0
- package/dist/lib/postMessage.js +8 -0
- package/dist/lib/request.js +145 -0
- package/dist/lib/save-path.d.ts +17 -0
- package/dist/lib/save-path.js +177 -0
- package/dist/lib/save-path.less +21 -0
- package/dist/lib/saveSid.d.ts +2 -0
- package/dist/lib/saveSid.js +64 -0
- package/dist/lib/sleep.js +23 -0
- package/dist/lib/store.js +36 -0
- package/dist/lib/toast.js +8 -0
- package/dist/lib/toastError.js +8 -0
- package/dist/lib/updateUserInfo.js +40 -0
- package/dist/lib/user-agent.d.ts +2 -0
- package/dist/lib/user-agent.js +10 -0
- package/dist/lib/video-api/open-chrome.js +51 -0
- package/dist/lib/video-api/quit-chrome.d.ts +2 -0
- package/dist/lib/video-api/quit-chrome.js +51 -0
- package/dist/renewal-vip/index.d.ts +2 -0
- package/dist/renewal-vip/index.js +77 -0
- package/dist/service/api/ActiveAccountModeSettingController.d.ts +2 -0
- package/dist/service/api/ActiveAccountModeSettingController.js +53 -0
- package/dist/service/api/AdController.d.ts +6 -0
- package/dist/service/api/AdController.js +27 -0
- package/dist/service/api/AuthController.js +77 -0
- package/dist/service/api/ClientVersionController.js +27 -0
- package/dist/service/api/JsErrorController.js +27 -0
- package/dist/service/api/ProductController.js +77 -0
- package/dist/service/api/PublishTaskPlanStatisticController.d.ts +1 -0
- package/dist/service/api/PublishTaskPlanStatisticController.js +28 -0
- package/dist/service/api/SubClientController.d.ts +7 -0
- package/dist/service/api/SubClientController.js +48 -0
- package/dist/service/api/TradeController.js +52 -0
- package/dist/service/api/UserController.js +52 -0
- package/dist/service/api/UserVipController.js +27 -0
- package/dist/service/api/VideoPublishController.js +110 -0
- package/dist/service/api/VideoPublishCrawlerTaskController.d.ts +2 -0
- package/dist/service/api/VideoPublishCrawlerTaskController.js +51 -0
- package/dist/service/api/VideoPublishStatisticOperationController.d.ts +12 -0
- package/dist/service/api/VideoPublishStatisticOperationController.js +51 -0
- package/dist/service/api/VideoPublishStatisticPublishController.js +28 -0
- package/dist/service/api/VideoPublishTaskController.js +29 -0
- package/dist/service/api/VideoPublishTaskPlanController.d.ts +13 -0
- package/dist/service/api/VideoPublishTaskPlanController.js +74 -0
- package/dist/service/api/VideoPublishVideoAccountController.d.ts +17 -0
- package/dist/service/api/VideoPublishVideoAccountController.js +237 -0
- package/dist/service/api/VideoPublishVideoAccountGroupController.d.ts +8 -0
- package/dist/service/api/VideoPublishVideoAccountGroupController.js +105 -0
- package/dist/service/api/VideoPublishVideoAccountProxyController.d.ts +11 -0
- package/dist/service/api/VideoPublishVideoAccountProxyController.js +105 -0
- package/dist/service/api/VideoPublishVideoTopicController.d.ts +5 -0
- package/dist/service/api/VideoPublishVideoTopicController.js +80 -0
- package/dist/service/api/VideoPublishVideoTopicGroupController.d.ts +5 -0
- package/dist/service/api/VideoPublishVideoTopicGroupController.js +80 -0
- package/dist/service/api/VideoStudyController.d.ts +1 -0
- package/dist/service/api/VideoStudyController.js +29 -0
- package/dist/service/api/VipCardController.js +115 -0
- package/dist/service/api/VipController.js +50 -0
- package/dist/service/api/VipPowerController.js +27 -0
- package/dist/service/api/WechatController.js +50 -0
- package/dist/service/api/WorkServerController.js +27 -0
- package/dist/service/local/FileController.d.ts +35 -0
- package/dist/service/local/FileController.js +249 -0
- package/dist/service/local/LocalServerController.d.ts +1 -0
- package/dist/service/local/LocalServerController.js +32 -0
- package/dist/service/local/VideoPublishTaskController.d.ts +1 -0
- package/dist/service/local/VideoPublishTaskController.js +32 -0
- package/dist/service/typing.d.ts +14 -0
- package/dist/service/video-api/BaseController.js +27 -0
- package/dist/service/video-api/FileController.js +50 -0
- package/dist/service/video-api/SidController.js +27 -0
- package/dist/service/video-api/VideoApiOpenChromeController.js +50 -0
- package/dist/types/ApiLocal.js +0 -0
- package/dist/types/AutoMakeTaskSetting.js +0 -0
- package/dist/types/ChromeOperate.js +0 -0
- package/dist/types/ClientUpdate.js +0 -0
- package/dist/types/ClientVersion.js +0 -0
- package/dist/types/File.js +0 -0
- package/dist/types/LocalServer.js +0 -0
- package/dist/types/PublishNpm.js +0 -0
- package/dist/types/PublishTaskPlan.js +0 -0
- package/dist/types/PublishTaskPlanStatistic.js +0 -0
- package/dist/types/PublishVideo.js +0 -0
- package/dist/types/Site.js +0 -0
- package/dist/types/User.d.ts +84 -0
- package/dist/types/VideoPublish.js +0 -0
- package/dist/types/VideoPublishLog.js +0 -0
- package/dist/types/VideoPublishStatistic.js +0 -0
- package/dist/types/VideoPublishStatisticOperation.js +0 -0
- package/dist/types/VideoPublishTaskPlan.js +0 -0
- package/dist/types/VideoPublishVideoAccount.js +0 -0
- package/dist/types/VideoPublishVideoAccountGroup.js +0 -0
- package/dist/types/VideoPublishVideoAccountProxy.js +0 -0
- package/dist/types/VideoPublishVideoTopic.js +0 -0
- package/dist/types/VideoPublishVideoTopicGroup.js +0 -0
- package/dist/types/VideoStudy.js +0 -0
- package/dist/types/VidepApiBase.js +0 -0
- package/dist/types/VipCard.js +0 -0
- package/dist/types/VipList.js +0 -0
- package/dist/types/VipPower.js +0 -0
- package/dist/types/WorkServer.js +0 -0
- package/dist/typings/Ad.js +0 -0
- package/dist/typings/LocalFile.js +0 -0
- package/dist/typings/Product.js +0 -0
- package/dist/typings/SubClient.js +0 -0
- package/dist/typings/Trade.js +0 -0
- package/dist/typings/User.js +0 -0
- package/dist/typings/VideoPublishAccountManageSetting.js +0 -0
- package/dist/typings/VideoPublishVideoAccount.js +0 -0
- package/dist/typings/Vip.js +0 -0
- package/dist/typings/Wechat.js +0 -0
- package/dist/typings.d.ts +86 -0
- package/dist/video-study/index.d.ts +11 -0
- package/dist/video-study/index.js +71 -0
- package/dist/video-study/index.less +16 -0
- package/dist/window.d.ts +33 -0
- package/package.json +92 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import * as VipPowerController from "../service/api/VipPowerController";
|
|
4
|
+
import { useRequest } from "@umijs/hooks";
|
|
5
|
+
import React, { useState } from "react";
|
|
6
|
+
import styles from "./index.css";
|
|
7
|
+
import { Buy } from "./..";
|
|
8
|
+
import { Button, ConfigProvider, Table } from "antd";
|
|
9
|
+
import { CheckCircleFilled, CloseCircleFilled, ShoppingCartOutlined, XFilled } from "@ant-design/icons";
|
|
10
|
+
import Tool from "../lib/Tool";
|
|
11
|
+
import PageContentWarp from "../UI/PageContentWarp";
|
|
12
|
+
import Money from "../UI/Money";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
var ApplyColorDict = {
|
|
17
|
+
1: {
|
|
18
|
+
color: '#34b9fe'
|
|
19
|
+
},
|
|
20
|
+
100: {
|
|
21
|
+
color: '#3688FF'
|
|
22
|
+
},
|
|
23
|
+
200: {
|
|
24
|
+
color: '#5B53FF'
|
|
25
|
+
},
|
|
26
|
+
300: {
|
|
27
|
+
color: '#724822'
|
|
28
|
+
},
|
|
29
|
+
400: {
|
|
30
|
+
color: '#F60'
|
|
31
|
+
},
|
|
32
|
+
1000: {
|
|
33
|
+
color: '#000'
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var VipList = function VipList(_ref) {
|
|
37
|
+
var productType = _ref.productType,
|
|
38
|
+
_ref$disabledPrice = _ref.disabledPrice,
|
|
39
|
+
disabledPrice = _ref$disabledPrice === void 0 ? false : _ref$disabledPrice,
|
|
40
|
+
_ref$disabledBuy = _ref.disabledBuy,
|
|
41
|
+
disabledBuy = _ref$disabledBuy === void 0 ? false : _ref$disabledBuy,
|
|
42
|
+
_ref$applyDemoWechatU = _ref.applyDemoWechatUrl,
|
|
43
|
+
applyDemoWechatUrl = _ref$applyDemoWechatU === void 0 ? '' : _ref$applyDemoWechatU,
|
|
44
|
+
_ref$applyDemoTitle = _ref.applyDemoTitle,
|
|
45
|
+
applyDemoTitle = _ref$applyDemoTitle === void 0 ? '预约演示' : _ref$applyDemoTitle,
|
|
46
|
+
_ref$tableScrollY = _ref.tableScrollY,
|
|
47
|
+
tableScrollY = _ref$tableScrollY === void 0 ? '65vh' : _ref$tableScrollY,
|
|
48
|
+
env = _ref.env,
|
|
49
|
+
payMethod = _ref.payMethod,
|
|
50
|
+
_ref$tableOffsetHeade = _ref.tableOffsetHeader,
|
|
51
|
+
tableOffsetHeader = _ref$tableOffsetHeade === void 0 ? 56 : _ref$tableOffsetHeade,
|
|
52
|
+
_ref$onBuySuccess = _ref.onBuySuccess,
|
|
53
|
+
onBuySuccess = _ref$onBuySuccess === void 0 ? function () {} : _ref$onBuySuccess;
|
|
54
|
+
var _useState = useState(Tool.getLocalUserInfo()),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
56
|
+
userInfo = _useState2[0];
|
|
57
|
+
var _useState3 = useState([]),
|
|
58
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
59
|
+
buyList = _useState4[0],
|
|
60
|
+
setBuyList = _useState4[1];
|
|
61
|
+
var _useState5 = useState([]),
|
|
62
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
63
|
+
listData = _useState6[0],
|
|
64
|
+
setListData = _useState6[1];
|
|
65
|
+
var _useState7 = useState([{
|
|
66
|
+
title: '功能',
|
|
67
|
+
dataIndex: 'title',
|
|
68
|
+
key: 'title',
|
|
69
|
+
onCell: function onCell(record, index) {
|
|
70
|
+
return {
|
|
71
|
+
colSpan: index > 0 && record.onlyShowTitle ? 5 : 1
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
render: function render(title, record) {
|
|
75
|
+
return title === ':buy' ? '' : /*#__PURE__*/_jsxs(_Fragment, {
|
|
76
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
77
|
+
className: "title",
|
|
78
|
+
children: title
|
|
79
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
80
|
+
className: "subtitle",
|
|
81
|
+
children: record === null || record === void 0 ? void 0 : record.subtitle
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}]),
|
|
86
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
87
|
+
columns = _useState8[0],
|
|
88
|
+
setColumns = _useState8[1];
|
|
89
|
+
var _useRequest = useRequest(function () {
|
|
90
|
+
return VipPowerController.list({
|
|
91
|
+
productType: productType,
|
|
92
|
+
domain: document.location.hostname,
|
|
93
|
+
dealerId: Tool.getLocalSiteInfo().dealerId || 0
|
|
94
|
+
}, {
|
|
95
|
+
env: env
|
|
96
|
+
});
|
|
97
|
+
}, {
|
|
98
|
+
onSuccess: function onSuccess(result) {
|
|
99
|
+
var list = [];
|
|
100
|
+
var listLen = result.vipList.length;
|
|
101
|
+
var buyList = [];
|
|
102
|
+
result.vipList.forEach(function (item) {
|
|
103
|
+
var _ApplyColorDict$item$;
|
|
104
|
+
buyList.push({
|
|
105
|
+
id: item.id,
|
|
106
|
+
price: item.price,
|
|
107
|
+
canBuy: item.canBuy
|
|
108
|
+
});
|
|
109
|
+
var dataIndex = "vipLevel".concat(item.vipLevel);
|
|
110
|
+
var colorPrimary = ((_ApplyColorDict$item$ = ApplyColorDict[item.vipLevel]) === null || _ApplyColorDict$item$ === void 0 ? void 0 : _ApplyColorDict$item$.color) || '#722ED1';
|
|
111
|
+
list.push({
|
|
112
|
+
title: /*#__PURE__*/_jsxs("div", {
|
|
113
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
114
|
+
className: "vipTitle",
|
|
115
|
+
style: {
|
|
116
|
+
color: colorPrimary
|
|
117
|
+
},
|
|
118
|
+
children: item.title
|
|
119
|
+
}), applyDemoWechatUrl && item.price > 0 && /*#__PURE__*/_jsx(ConfigProvider, {
|
|
120
|
+
theme: {
|
|
121
|
+
components: {
|
|
122
|
+
Button: {
|
|
123
|
+
colorPrimary: colorPrimary
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
128
|
+
size: "middle",
|
|
129
|
+
type: "primary",
|
|
130
|
+
onClick: onApplyDemo,
|
|
131
|
+
children: applyDemoTitle
|
|
132
|
+
})
|
|
133
|
+
})]
|
|
134
|
+
}),
|
|
135
|
+
dataIndex: dataIndex,
|
|
136
|
+
key: dataIndex,
|
|
137
|
+
width: "".concat(70 / listLen, "%"),
|
|
138
|
+
onCell: sharedOnCell,
|
|
139
|
+
render: function render(value, record) {
|
|
140
|
+
return /*#__PURE__*/_jsx("div", {
|
|
141
|
+
className: "value",
|
|
142
|
+
children: ['true', 'false'].includes(value) ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
143
|
+
children: [value === 'true' && /*#__PURE__*/_jsx(CheckCircleFilled, {
|
|
144
|
+
className: "allow"
|
|
145
|
+
}), value === 'false' && /*#__PURE__*/_jsx(CloseCircleFilled, {
|
|
146
|
+
className: "notAllow"
|
|
147
|
+
})]
|
|
148
|
+
}) : value
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
setBuyList([].concat(buyList));
|
|
154
|
+
columns.push.apply(columns, list);
|
|
155
|
+
setColumns(_toConsumableArray(columns));
|
|
156
|
+
|
|
157
|
+
// 先做字典
|
|
158
|
+
var listDict = {};
|
|
159
|
+
result.list.forEach(function (items) {
|
|
160
|
+
if (!listDict[items.name]) {
|
|
161
|
+
listDict[items.name] = {
|
|
162
|
+
name: items.name,
|
|
163
|
+
classifySubtitle: items.classifyInfo.subtitle,
|
|
164
|
+
classifyTitle: items.classifyInfo.title,
|
|
165
|
+
classifyIndex: items.classifyInfo.index,
|
|
166
|
+
classifyKind: items.classifyInfo.kind,
|
|
167
|
+
list: []
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
listDict[items.name].list.push(items);
|
|
171
|
+
});
|
|
172
|
+
var listDataValues = Object.values(listDict);
|
|
173
|
+
listDataValues.sort(function (a, b) {
|
|
174
|
+
return b.classifyIndex - a.classifyIndex;
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
// 购买
|
|
178
|
+
if (!disabledPrice) {
|
|
179
|
+
listDataValues.push({
|
|
180
|
+
name: ':price',
|
|
181
|
+
classifyTitle: '价格',
|
|
182
|
+
classifySubtitle: '',
|
|
183
|
+
classifyIndex: -1,
|
|
184
|
+
classifyKind: '购买',
|
|
185
|
+
list: result.vipList.map(function (item) {
|
|
186
|
+
return {
|
|
187
|
+
id: item.id,
|
|
188
|
+
dealerId: 0,
|
|
189
|
+
vipLevel: item.vipLevel,
|
|
190
|
+
name: ':price',
|
|
191
|
+
value: "".concat(item.price),
|
|
192
|
+
classifyInfo: {
|
|
193
|
+
title: '购买',
|
|
194
|
+
subtitle: '',
|
|
195
|
+
index: -1,
|
|
196
|
+
kind: '购买'
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
})
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// if( ! disabledBuy ){
|
|
204
|
+
// listDataValues.push({
|
|
205
|
+
// name: ':buy',
|
|
206
|
+
// classifyTitle: ':buy',
|
|
207
|
+
// classifySubtitle: '',
|
|
208
|
+
// classifyIndex: -1,
|
|
209
|
+
// classifyKind: '购买',
|
|
210
|
+
// list: [],
|
|
211
|
+
// });
|
|
212
|
+
// }
|
|
213
|
+
|
|
214
|
+
var listData = [];
|
|
215
|
+
listDataValues.forEach(function (items, index) {
|
|
216
|
+
var onlyShowTitle = false;
|
|
217
|
+
var preRecord = listData[listData.length - 1];
|
|
218
|
+
if (preRecord && items.classifyKind && preRecord.classifyKind !== items.classifyKind) {
|
|
219
|
+
onlyShowTitle = true;
|
|
220
|
+
}
|
|
221
|
+
if (onlyShowTitle) {
|
|
222
|
+
listData.push({
|
|
223
|
+
title: /*#__PURE__*/_jsxs("strong", {
|
|
224
|
+
className: "classifyKind",
|
|
225
|
+
children: [/*#__PURE__*/_jsx(XFilled, {}), " ", items.classifyKind]
|
|
226
|
+
}),
|
|
227
|
+
subtitle: '',
|
|
228
|
+
classifyKind: items.classifyKind,
|
|
229
|
+
onlyShowTitle: true
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
var itemData = {
|
|
233
|
+
title: items.classifyTitle,
|
|
234
|
+
subtitle: items.classifySubtitle,
|
|
235
|
+
onlyShowTitle: false,
|
|
236
|
+
classifyKind: items.classifyKind
|
|
237
|
+
};
|
|
238
|
+
items.list.forEach(function (item) {
|
|
239
|
+
var value = item.value;
|
|
240
|
+
switch (item.name) {
|
|
241
|
+
case 'mixed-cut-video-count':
|
|
242
|
+
value = /*#__PURE__*/_jsx(Money, {
|
|
243
|
+
value: parseInt(item.value),
|
|
244
|
+
pre: "",
|
|
245
|
+
precision: 0,
|
|
246
|
+
end: "\u6761"
|
|
247
|
+
});
|
|
248
|
+
break;
|
|
249
|
+
case 'media-space-size':
|
|
250
|
+
value = /*#__PURE__*/_jsx(Money, {
|
|
251
|
+
value: parseInt(item.value),
|
|
252
|
+
pre: "",
|
|
253
|
+
precision: 0,
|
|
254
|
+
end: "GB"
|
|
255
|
+
});
|
|
256
|
+
break;
|
|
257
|
+
case 'gpt3.5':
|
|
258
|
+
value = /*#__PURE__*/_jsx(Money, {
|
|
259
|
+
value: parseInt(item.value),
|
|
260
|
+
pre: "",
|
|
261
|
+
precision: 0,
|
|
262
|
+
end: "\u6BCF\u65E5"
|
|
263
|
+
});
|
|
264
|
+
break;
|
|
265
|
+
case 'gpt4.0':
|
|
266
|
+
value = /*#__PURE__*/_jsx(Money, {
|
|
267
|
+
value: parseInt(item.value),
|
|
268
|
+
pre: "",
|
|
269
|
+
precision: 0,
|
|
270
|
+
end: ""
|
|
271
|
+
});
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
console.log('result.items.name :', items.name);
|
|
275
|
+
|
|
276
|
+
// 价格
|
|
277
|
+
if (items.name === ':price') {
|
|
278
|
+
console.log('result.vipList:', result.vipList);
|
|
279
|
+
var price = getPrice(result.vipList, item.id);
|
|
280
|
+
value = /*#__PURE__*/_jsx(Money, {
|
|
281
|
+
value: price,
|
|
282
|
+
precision: 2,
|
|
283
|
+
disabledMoneySimple: true
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
itemData["vipLevel".concat(item.vipLevel)] = value;
|
|
287
|
+
});
|
|
288
|
+
listData.push(itemData);
|
|
289
|
+
});
|
|
290
|
+
setListData([].concat(listData));
|
|
291
|
+
}
|
|
292
|
+
}),
|
|
293
|
+
loading = _useRequest.loading,
|
|
294
|
+
run = _useRequest.run,
|
|
295
|
+
error = _useRequest.error,
|
|
296
|
+
data = _useRequest.data;
|
|
297
|
+
var onApplyDemo = function onApplyDemo() {
|
|
298
|
+
if (!applyDemoWechatUrl) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
Tool.pageDialog({
|
|
302
|
+
title: applyDemoTitle,
|
|
303
|
+
content: /*#__PURE__*/_jsxs("div", {
|
|
304
|
+
children: [Tool.makeQr(applyDemoWechatUrl, '#29ae67', 220), /*#__PURE__*/_jsx("p", {
|
|
305
|
+
style: {
|
|
306
|
+
textAlign: 'center',
|
|
307
|
+
color: '#999'
|
|
308
|
+
},
|
|
309
|
+
children: "\u5FAE\u4FE1\u626B\u4E00\u626B\uFF0C\u52A0\u597D\u53CB"
|
|
310
|
+
})]
|
|
311
|
+
}),
|
|
312
|
+
width: 320,
|
|
313
|
+
zIndex: 9999
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
var getPrice = function getPrice(vipList, id) {
|
|
317
|
+
var _vipList$filter;
|
|
318
|
+
return ((_vipList$filter = vipList.filter(function (item) {
|
|
319
|
+
return item.id === id;
|
|
320
|
+
})) === null || _vipList$filter === void 0 ? void 0 : _vipList$filter[0].price) || 0;
|
|
321
|
+
};
|
|
322
|
+
var sharedOnCell = function sharedOnCell(record, index) {
|
|
323
|
+
return {
|
|
324
|
+
colSpan: record.onlyShowTitle ? 0 : 1
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
return /*#__PURE__*/_jsx(PageContentWarp, {
|
|
328
|
+
loading: loading,
|
|
329
|
+
error: error,
|
|
330
|
+
onReload: run,
|
|
331
|
+
children: /*#__PURE__*/_jsx(styles.pricingCompare, {
|
|
332
|
+
children: /*#__PURE__*/_jsx(Table, {
|
|
333
|
+
bordered: true,
|
|
334
|
+
scroll: {
|
|
335
|
+
y: tableScrollY // '60vh',
|
|
336
|
+
},
|
|
337
|
+
|
|
338
|
+
rowKey: function rowKey(record, index) {
|
|
339
|
+
return "".concat(index, "-").concat(record.id);
|
|
340
|
+
},
|
|
341
|
+
columns: columns,
|
|
342
|
+
dataSource: listData,
|
|
343
|
+
pagination: false
|
|
344
|
+
// sticky={{offsetHeader: tableOffsetHeader }}
|
|
345
|
+
,
|
|
346
|
+
summary: function summary() {
|
|
347
|
+
return disabledBuy ? undefined : /*#__PURE__*/_jsx(Table.Summary, {
|
|
348
|
+
fixed: true,
|
|
349
|
+
children: /*#__PURE__*/_jsxs(Table.Summary.Row, {
|
|
350
|
+
children: [/*#__PURE__*/_jsx(Table.Summary.Cell, {
|
|
351
|
+
index: 0,
|
|
352
|
+
children: " "
|
|
353
|
+
}), buyList.map(function (item, i) {
|
|
354
|
+
var _userInfo$userVip;
|
|
355
|
+
// 从不是会员;
|
|
356
|
+
var userVip = !!((_userInfo$userVip = userInfo.userVip) !== null && _userInfo$userVip !== void 0 && _userInfo$userVip[productType]);
|
|
357
|
+
var colorPrimary = (item === null || item === void 0 ? void 0 : item.price) > 0 ? '#722ED1' : 'green';
|
|
358
|
+
return /*#__PURE__*/_jsx(Table.Summary.Cell, {
|
|
359
|
+
index: i,
|
|
360
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
361
|
+
className: "onBuy",
|
|
362
|
+
children: item.canBuy && /*#__PURE__*/_jsx(ConfigProvider, {
|
|
363
|
+
theme: {
|
|
364
|
+
components: {
|
|
365
|
+
Button: {
|
|
366
|
+
colorPrimary: colorPrimary
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
children: /*#__PURE__*/_jsx(Buy, {
|
|
371
|
+
env: env,
|
|
372
|
+
disabled: userVip && item.price === 0,
|
|
373
|
+
productKind: "vip",
|
|
374
|
+
vipId: (item === null || item === void 0 ? void 0 : item.id) || 0,
|
|
375
|
+
productCount: 1,
|
|
376
|
+
payMethod: payMethod,
|
|
377
|
+
showPrice: item === null || item === void 0 ? void 0 : item.price,
|
|
378
|
+
onBuySuccess: onBuySuccess,
|
|
379
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
380
|
+
disabled: userVip && item.price === 0,
|
|
381
|
+
type: "primary",
|
|
382
|
+
icon: /*#__PURE__*/_jsx(ShoppingCartOutlined, {}),
|
|
383
|
+
children: (item === null || item === void 0 ? void 0 : item.price) > 0 ? '购买' : '免费开通'
|
|
384
|
+
})
|
|
385
|
+
})
|
|
386
|
+
})
|
|
387
|
+
})
|
|
388
|
+
}, item.id);
|
|
389
|
+
})]
|
|
390
|
+
})
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
})
|
|
394
|
+
})
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
export default VipList;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Button, Form, Input } from 'antd';
|
|
4
|
+
import { CrownOutlined } from '@ant-design/icons';
|
|
5
|
+
import { useRequest } from '@umijs/hooks';
|
|
6
|
+
import * as VipCardController from "../service/api/VipCardController";
|
|
7
|
+
import updateUserInfo from "../lib/updateUserInfo";
|
|
8
|
+
import Tool from "../lib/Tool";
|
|
9
|
+
import UserProfileUserVip from "./user-vip";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var UserProfileVipCard = function UserProfileVipCard(_ref) {
|
|
13
|
+
var env = _ref.env,
|
|
14
|
+
onActive = _ref.onActive;
|
|
15
|
+
var _Form$useForm = Form.useForm(),
|
|
16
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
17
|
+
form = _Form$useForm2[0];
|
|
18
|
+
var _useRequest = useRequest(function (vipCardCode) {
|
|
19
|
+
return VipCardController.activate({
|
|
20
|
+
vipCardCode: vipCardCode
|
|
21
|
+
}, {
|
|
22
|
+
env: env
|
|
23
|
+
});
|
|
24
|
+
}, {
|
|
25
|
+
manual: true,
|
|
26
|
+
onSuccess: function onSuccess(data) {
|
|
27
|
+
form.resetFields();
|
|
28
|
+
Tool.toast('已经激活');
|
|
29
|
+
updateUserInfo();
|
|
30
|
+
onActive === null || onActive === void 0 || onActive();
|
|
31
|
+
},
|
|
32
|
+
onError: function onError() {}
|
|
33
|
+
}),
|
|
34
|
+
run = _useRequest.run,
|
|
35
|
+
loading = _useRequest.loading,
|
|
36
|
+
error = _useRequest.error;
|
|
37
|
+
var onFinish = function onFinish(postData) {
|
|
38
|
+
var _postData$vipCardCode;
|
|
39
|
+
var vipCardCode = (_postData$vipCardCode = postData.vipCardCode) === null || _postData$vipCardCode === void 0 ? void 0 : _postData$vipCardCode.replace(/^[\s0-9a-z]+-/i, '').replace(/\s+/g, '').toLocaleUpperCase();
|
|
40
|
+
if (!vipCardCode) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
run(vipCardCode);
|
|
44
|
+
};
|
|
45
|
+
var onupdateUserInfo = function onupdateUserInfo() {
|
|
46
|
+
updateUserInfo();
|
|
47
|
+
};
|
|
48
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
49
|
+
children: [/*#__PURE__*/_jsx(Form, {
|
|
50
|
+
form: form,
|
|
51
|
+
disabled: loading,
|
|
52
|
+
onFinish: onFinish,
|
|
53
|
+
children: /*#__PURE__*/_jsx(Form.Item, {
|
|
54
|
+
name: "vipCardCode",
|
|
55
|
+
rules: [{
|
|
56
|
+
required: true,
|
|
57
|
+
message: '请输入'
|
|
58
|
+
}, {
|
|
59
|
+
pattern: /^\s*([a-z0-9]+-)?[A-Z0-9-]{14,}\s*$/i,
|
|
60
|
+
message: '类似:AI-AAAA-BBBB-CCCC'
|
|
61
|
+
}],
|
|
62
|
+
children: /*#__PURE__*/_jsx(Input, {
|
|
63
|
+
addonAfter: /*#__PURE__*/_jsx(Button, {
|
|
64
|
+
htmlType: "submit",
|
|
65
|
+
type: "link",
|
|
66
|
+
icon: /*#__PURE__*/_jsx(CrownOutlined, {}),
|
|
67
|
+
size: "small",
|
|
68
|
+
loading: loading,
|
|
69
|
+
children: "\u6FC0\u6D3B"
|
|
70
|
+
}),
|
|
71
|
+
allowClear: true,
|
|
72
|
+
placeholder: "\u7C7B\u4F3C: AI-AAAA-BBBB-CCCC"
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
}), /*#__PURE__*/_jsx(UserProfileUserVip, {})]
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
export default UserProfileVipCard;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import { Divider, Table } from 'antd';
|
|
4
|
+
import { useRequest } from '@umijs/hooks';
|
|
5
|
+
import "./user-vip.less";
|
|
6
|
+
import * as UserController from "../service/api/UserController";
|
|
7
|
+
import ProductType from "../component/product-type";
|
|
8
|
+
import Time from "../UI/Time";
|
|
9
|
+
import PageContentWarp from "../UI/PageContentWarp";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var UserProfileUserVip = function UserProfileUserVip() {
|
|
13
|
+
var _useState = useState([]),
|
|
14
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15
|
+
listData = _useState2[0],
|
|
16
|
+
setListData = _useState2[1];
|
|
17
|
+
var _useRequest = useRequest(function () {
|
|
18
|
+
return UserController.userVipInfo();
|
|
19
|
+
}, {
|
|
20
|
+
manual: true,
|
|
21
|
+
onSuccess: function onSuccess(result) {
|
|
22
|
+
setListData(result);
|
|
23
|
+
}
|
|
24
|
+
}),
|
|
25
|
+
run = _useRequest.run,
|
|
26
|
+
loading = _useRequest.loading,
|
|
27
|
+
error = _useRequest.error;
|
|
28
|
+
var columns = [{
|
|
29
|
+
title: '名称',
|
|
30
|
+
dataIndex: 'productName',
|
|
31
|
+
key: 'productName',
|
|
32
|
+
render: function render(productName, record) {
|
|
33
|
+
return /*#__PURE__*/_jsx(ProductType, {
|
|
34
|
+
productType: (record === null || record === void 0 ? void 0 : record.productType) || '',
|
|
35
|
+
productName: productName
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
title: '等级',
|
|
40
|
+
dataIndex: 'vipLevelName',
|
|
41
|
+
key: 'vipLevelName',
|
|
42
|
+
render: function render(vipLevelName, record) {
|
|
43
|
+
return /*#__PURE__*/_jsx("div", {
|
|
44
|
+
children: vipLevelName
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
title: '过期时间',
|
|
49
|
+
dataIndex: 'expired',
|
|
50
|
+
key: 'expired',
|
|
51
|
+
render: function render(expired, record) {
|
|
52
|
+
return /*#__PURE__*/_jsx(Time, {
|
|
53
|
+
time: expired
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}];
|
|
57
|
+
useEffect(function () {
|
|
58
|
+
run();
|
|
59
|
+
}, []);
|
|
60
|
+
return listData.length > 0 ? /*#__PURE__*/_jsxs("div", {
|
|
61
|
+
className: "userVip",
|
|
62
|
+
children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(PageContentWarp
|
|
63
|
+
// title="我的会员等级"
|
|
64
|
+
, {
|
|
65
|
+
loading: loading,
|
|
66
|
+
error: error,
|
|
67
|
+
onReload: function onReload() {
|
|
68
|
+
return run();
|
|
69
|
+
},
|
|
70
|
+
children: /*#__PURE__*/_jsx(Table, {
|
|
71
|
+
size: "small",
|
|
72
|
+
bordered: true,
|
|
73
|
+
rowKey: function rowKey(record) {
|
|
74
|
+
return "".concat(record.productType);
|
|
75
|
+
},
|
|
76
|
+
loading: loading,
|
|
77
|
+
columns: columns,
|
|
78
|
+
dataSource: listData,
|
|
79
|
+
pagination: false
|
|
80
|
+
})
|
|
81
|
+
})]
|
|
82
|
+
}) : null;
|
|
83
|
+
};
|
|
84
|
+
export default UserProfileUserVip;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import * as LocalFileController from "../service/local/FileController";
|
|
4
|
+
var fileList = /*#__PURE__*/function () {
|
|
5
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(filePathList) {
|
|
6
|
+
var fileType,
|
|
7
|
+
extTypes,
|
|
8
|
+
_args2 = arguments;
|
|
9
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
11
|
+
case 0:
|
|
12
|
+
fileType = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : '';
|
|
13
|
+
extTypes = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : [];
|
|
14
|
+
return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
|
|
15
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
|
|
16
|
+
var openResult;
|
|
17
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19
|
+
case 0:
|
|
20
|
+
_context.next = 2;
|
|
21
|
+
return LocalFileController.fileList({
|
|
22
|
+
path: filePathList,
|
|
23
|
+
fileType: fileType,
|
|
24
|
+
extTypes: extTypes
|
|
25
|
+
}, {
|
|
26
|
+
silent: true
|
|
27
|
+
}).catch(function (err) {
|
|
28
|
+
if ((err === null || err === void 0 ? void 0 : err.name) === "shipinlv-client-not-run") {
|
|
29
|
+
return reject(err);
|
|
30
|
+
}
|
|
31
|
+
console.log('open In Folder err:', err);
|
|
32
|
+
console.log('open In Folder err 2:', JSON.stringify(err));
|
|
33
|
+
err.message = "\u9009\u53D6\u6587\u4EF6\u5939\u5931\u8D25\uFF1A".concat(err === null || err === void 0 ? void 0 : err.message, "\uFF01 ");
|
|
34
|
+
reject(err);
|
|
35
|
+
});
|
|
36
|
+
case 2:
|
|
37
|
+
openResult = _context.sent;
|
|
38
|
+
if (openResult) {
|
|
39
|
+
resolve(openResult);
|
|
40
|
+
}
|
|
41
|
+
case 4:
|
|
42
|
+
case "end":
|
|
43
|
+
return _context.stop();
|
|
44
|
+
}
|
|
45
|
+
}, _callee);
|
|
46
|
+
}));
|
|
47
|
+
return function (_x2, _x3) {
|
|
48
|
+
return _ref2.apply(this, arguments);
|
|
49
|
+
};
|
|
50
|
+
}()));
|
|
51
|
+
case 3:
|
|
52
|
+
case "end":
|
|
53
|
+
return _context2.stop();
|
|
54
|
+
}
|
|
55
|
+
}, _callee2);
|
|
56
|
+
}));
|
|
57
|
+
return function fileList(_x) {
|
|
58
|
+
return _ref.apply(this, arguments);
|
|
59
|
+
};
|
|
60
|
+
}();
|
|
61
|
+
export default fileList;
|