@titaui/pc 1.6.8 → 1.6.12
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/lib/components/avatar/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +38 -0
- package/lib/components/button/icon-btn/index.js +62 -0
- package/lib/components/button/index.css +3 -0
- package/lib/components/button/index.js +16 -9
- package/lib/components/button/rect-btn/index.css +82 -0
- package/lib/components/button/rect-btn/index.js +62 -0
- package/lib/components/button/text-btn/index.css +0 -0
- package/lib/components/button/text-btn/index.js +15 -0
- package/lib/components/button/types.js +5 -0
- package/lib/components/change-okr/index.js +1 -1
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/condition-render/index.js +20 -0
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/drawer/index.css +3 -1
- package/lib/components/drawer/index.js +2 -1
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/constant.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -5
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +1 -1
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/follower-visitor/img/follower-visitor-follower.png +0 -0
- package/lib/components/follower-visitor/img/follower-visitor-visitor.png +0 -0
- package/lib/components/follower-visitor/index.css +35 -0
- package/lib/components/follower-visitor/index.js +152 -0
- package/lib/components/follower-visitor/request-api.js +14 -0
- package/lib/components/form/form-fields/radios/index.css +25 -0
- package/lib/components/form/form-fields/radios/index.js +53 -0
- package/lib/components/form/index.js +5 -2
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/image/canceled.svg +13 -0
- package/lib/components/help-card/image/helpzx.svg +8 -0
- package/lib/components/help-card/image/kefu.svg +18 -0
- package/lib/components/help-card/image/kefu1.svg +8 -0
- package/lib/components/help-card/image/okr-shequ.svg +14 -0
- package/lib/components/help-card/image/question.svg +20 -0
- package/lib/components/help-card/image/yuyueyanshi.svg +8 -0
- package/lib/components/help-card/index.css +219 -0
- package/lib/components/help-card/index.js +282 -0
- package/lib/components/help-card/request-api.js +34 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/invite-people/index.css +9 -0
- package/lib/components/invite-people/index.js +28 -0
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +18 -0
- package/lib/components/menus/components/drag-resize/index.js +77 -0
- package/lib/components/menus/components/flip-menu-card/back-icon.svg +25 -0
- package/lib/components/menus/components/flip-menu-card/flip-back-header.js +28 -0
- package/lib/components/menus/components/flip-menu-card/index.css +89 -0
- package/lib/components/menus/components/flip-menu-card/index.js +193 -0
- package/lib/components/menus/components/flip-menu-card/precls.js +8 -0
- package/lib/components/menus/components/menu-card/index.css +29 -0
- package/lib/components/menus/components/menu-card/index.js +53 -0
- package/lib/components/menus/components/menu-close-btn/index.css +42 -0
- package/lib/components/menus/components/menu-close-btn/index.js +40 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/PF-shezhi.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/ZBmuban.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/bumen.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/kaohe.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/uniEA10.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/untitled.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/arrow.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/caidan-xiashu.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/ditu.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/guanzhu.svg +14 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/okr-gongsi.svg +18 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/okr.svg +19 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/rw-zx.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/user-concern-add.svg +29 -0
- package/lib/components/menus/components/menu-tree/images/yibiao.svg +14 -0
- package/lib/components/menus/components/menu-tree/index.css +33 -0
- package/lib/components/menus/components/menu-tree/index.js +66 -0
- package/lib/components/menus/components/menu-tree/precls.js +8 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +48 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.css +17 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +41 -0
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.css +24 -0
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +73 -0
- package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/group-name-node.js} +7 -14
- package/lib/components/menus/components/menu-tree/tree-node/index.css +360 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +91 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +40 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +36 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +86 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +56 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +111 -0
- package/lib/components/menus/components/search-colleague/index.css +53 -0
- package/lib/components/menus/components/search-colleague/index.js +88 -0
- package/lib/components/menus/context.js +14 -0
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +109 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.css +0 -0
- package/lib/components/menus/export-modules/appraisal-menus/index.js +89 -0
- package/lib/components/menus/export-modules/depart-menus/helper.js +54 -0
- package/lib/components/menus/export-modules/depart-menus/index.css +0 -0
- package/lib/components/menus/export-modules/depart-menus/index.js +99 -0
- package/lib/components/menus/export-modules/okr-menus/datas.js +189 -0
- package/lib/components/menus/export-modules/okr-menus/index.css +33 -0
- package/lib/components/menus/export-modules/okr-menus/index.js +166 -0
- package/lib/components/menus/export-modules/subordinate-menus/helper.js +25 -0
- package/lib/components/menus/export-modules/subordinate-menus/index.js +108 -0
- package/lib/components/menus/index.css +20 -0
- package/lib/components/menus/index.js +51 -0
- package/lib/components/menus/precls.js +8 -0
- package/lib/components/menus/request-apis.js +97 -0
- package/lib/components/menus/types.js +5 -0
- package/lib/components/menus/utils.js +33 -0
- package/lib/components/nav-top/components/menu/index.css +90 -0
- package/lib/components/nav-top/components/menu/index.js +115 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.css +30 -0
- package/lib/components/nav-top/components/user-message/components/empty/index.js +36 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.css +114 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.js +152 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +159 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.js +120 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +132 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.js +100 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +31 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.css +129 -0
- package/lib/components/nav-top/components/user-message/components/todos/index.js +98 -0
- package/lib/components/nav-top/components/user-message/constant.js +39 -0
- package/lib/components/nav-top/components/user-message/images/app-tixing.svg +30 -0
- package/lib/components/nav-top/components/user-message/images/bell.svg +18 -0
- package/lib/components/nav-top/components/user-message/images/empty-img.svg +130 -0
- package/lib/components/nav-top/components/user-message/images/user-photo.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +77 -0
- package/lib/components/nav-top/components/user-message/index.js +180 -0
- package/lib/components/nav-top/components/user-message/msg/index.css +122 -0
- package/lib/components/nav-top/components/user-message/msg/index.js +102 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +61 -0
- package/lib/components/{button/admin-button/drop-down-arrow.js → nav-top/components/user-own-menu/index.js} +29 -54
- package/lib/components/nav-top/components/version/index.css +22 -0
- package/lib/components/{button/export-button → nav-top/components/version}/index.js +31 -40
- package/lib/components/nav-top/constant.js +42 -0
- package/lib/components/nav-top/images/app-tixing.svg +30 -0
- package/lib/components/nav-top/images/bell.svg +18 -0
- package/lib/components/nav-top/images/empty-img.svg +130 -0
- package/lib/components/nav-top/images/exit.svg +21 -0
- package/lib/components/nav-top/images/home.png +0 -0
- package/lib/components/nav-top/images/manage.png +0 -0
- package/lib/components/nav-top/images/manage.svg +21 -0
- package/lib/components/nav-top/images/open.svg +21 -0
- package/lib/components/nav-top/images/own-home.svg +19 -0
- package/lib/components/nav-top/images/qiye-o.svg +25 -0
- package/lib/components/nav-top/images/set.svg +19 -0
- package/lib/components/nav-top/images/user-photo.png +0 -0
- package/lib/components/nav-top/images/version.png +0 -0
- package/lib/components/nav-top/index.css +89 -0
- package/lib/components/nav-top/index.js +137 -0
- package/lib/components/nav-top/interface.js +5 -0
- package/lib/components/nav-top/mock.js +36 -0
- package/lib/components/nav-top/utils.js +77 -0
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +1 -2
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +0 -1
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +196 -0
- package/lib/components/photo-card/components/card/index.js +106 -0
- package/lib/components/photo-card/data.js +19 -0
- package/lib/components/photo-card/images/user-add.svg +19 -0
- package/lib/components/photo-card/images/user-photo.png +0 -0
- package/lib/components/photo-card/images/user-role.svg +38 -0
- package/lib/components/photo-card/index.css +29 -0
- package/lib/components/photo-card/index.js +51 -0
- package/lib/components/photo-card/types/image.d.js +1 -0
- package/lib/components/photo-card/types/react-app-env.d.js +2 -0
- package/lib/components/point-demo/drop-down-box/index.css +98 -0
- package/lib/components/point-demo/drop-down-box/index.js +159 -0
- package/lib/components/point-demo/image/demo-bcg.png +0 -0
- package/lib/components/point-demo/image/down.svg +14 -0
- package/lib/components/point-demo/image/icon-canceled.svg +7 -0
- package/lib/components/point-demo/image/logo.svg +64 -0
- package/lib/components/point-demo/index.css +348 -0
- package/lib/components/point-demo/index.js +657 -0
- package/lib/components/point-demo/input/index.css +74 -0
- package/lib/components/point-demo/input/index.js +176 -0
- package/lib/components/point-demo/point-demo.js +93 -0
- package/lib/components/point-demo/popup/index.css +7 -0
- package/lib/components/point-demo/popup/index.js +113 -0
- package/lib/components/point-demo/popup/placement.js +44 -0
- package/lib/components/point-demo/popup/rc-trigger.css +127 -0
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/tooltip-text/index.js +10 -4
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +2 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +4 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/components/user-selector/layout/index.js +4 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/constant.js +45 -0
- package/lib/components/version-change-modal/images/header-b.png +0 -0
- package/lib/components/version-change-modal/images/header-g.png +0 -0
- package/lib/components/version-change-modal/images/header-y.png +0 -0
- package/lib/components/version-change-modal/images/okr.png +0 -0
- package/lib/components/version-change-modal/images/okre.png +0 -0
- package/lib/components/version-change-modal/images/performance.png +0 -0
- package/lib/components/version-change-modal/images/performancePlus.png +0 -0
- package/lib/components/version-change-modal/images/project.png +0 -0
- package/lib/components/version-change-modal/images/title.png +0 -0
- package/lib/components/version-change-modal/index.css +150 -0
- package/lib/components/version-change-modal/index.js +175 -0
- package/lib/components/version-change-modal/interface.js +5 -0
- package/lib/components/version-change-modal/request-api.js +41 -0
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/radio/style/index.css +3 -3
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/index.js +56 -6
- package/lib/pages/aha2021/index.css +42 -0
- package/lib/pages/aha2021/index.js +62 -0
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/okr-map/hooks/useStorage.js +2 -2
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +12 -9
- package/lib/pages/personal-info/components/base-info/index.css +36 -0
- package/lib/pages/personal-info/components/base-info/index.js +179 -0
- package/lib/pages/personal-info/index.css +3 -0
- package/lib/pages/personal-info/index.js +27 -0
- package/lib/pages/personal-info/request-api.js +32 -0
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +16 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +3 -4
- package/package.json +2 -1
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/export-button/index.css +0 -51
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
.home-fixed-kefu {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
user-select: none;
|
|
4
|
+
z-index: 2;
|
|
5
|
+
width: 52px;
|
|
6
|
+
height: 52px;
|
|
7
|
+
background-color: #FFFFFF;
|
|
8
|
+
border-radius: 50%;
|
|
9
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.home-fixed-kefu-image {
|
|
16
|
+
width: 24px;
|
|
17
|
+
height: 24px;
|
|
18
|
+
background: url("./image/kefu.svg") 50% 50% no-repeat;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.home-fixed-kefu-canceled {
|
|
22
|
+
background: url("./image/canceled.svg") 50% 50% no-repeat;
|
|
23
|
+
animation-duration: 0.3s;
|
|
24
|
+
animation-name: kefuActive;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.home-fixed-kefu-canceled .home-fixed-kefu-image {
|
|
28
|
+
background: unset;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.help-card {
|
|
32
|
+
width: 332px;
|
|
33
|
+
height: 520px;
|
|
34
|
+
border-radius: 24px;
|
|
35
|
+
background: #FFFFFF;
|
|
36
|
+
box-shadow: 0px 0px 16px 0px rgba(127, 145, 180, 0.1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.help-card-header {
|
|
40
|
+
width: 332px;
|
|
41
|
+
height: 72px;
|
|
42
|
+
background: #5C8EFF;
|
|
43
|
+
border-radius: 24px 24px 0px 0px;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
padding: 16px 20px;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
color: #FFFFFF;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.help-card-header-avatar {
|
|
52
|
+
width: 40px;
|
|
53
|
+
height: 40px;
|
|
54
|
+
background: #03C2FC;
|
|
55
|
+
border: 1px solid #FFFFFF;
|
|
56
|
+
margin-right: 12px;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.help-card-body {
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
padding: 0 20px;
|
|
63
|
+
margin: 24px 0 30px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.help-card-body-item {
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
width: 292px;
|
|
69
|
+
height: 148px;
|
|
70
|
+
border-radius: 8px;
|
|
71
|
+
padding: 12px;
|
|
72
|
+
margin-top: 12px;
|
|
73
|
+
background: rgba(240, 244, 250, 0.6) url("./image/question.svg") 100% 100% no-repeat;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.help-card-body-item-title {
|
|
77
|
+
display: flex;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
align-items: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.help-card-body-item-title-left {
|
|
83
|
+
width: 64px;
|
|
84
|
+
height: 24px;
|
|
85
|
+
font-size: 16px;
|
|
86
|
+
color: #2879FF;
|
|
87
|
+
line-height: 24px;
|
|
88
|
+
z-index: 2;
|
|
89
|
+
position: relative;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.help-card-body-item-title-left::before {
|
|
93
|
+
content: '';
|
|
94
|
+
width: 81px;
|
|
95
|
+
height: 7px;
|
|
96
|
+
background: linear-gradient(90deg, #2879FF 0%, #F6F8FC 100%);
|
|
97
|
+
z-index: -1;
|
|
98
|
+
position: absolute;
|
|
99
|
+
left: 0;
|
|
100
|
+
bottom: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.help-card-body-item-title-right {
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
font-weight: 400;
|
|
107
|
+
color: #89919F;
|
|
108
|
+
line-height: 22px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.help-card-body-item-title-right > .tu-icon-gengxin1 {
|
|
112
|
+
margin-right: 4px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.help-card-body-item-content-item {
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
margin-top: 12px;
|
|
118
|
+
font-weight: 400;
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
color: #3F4755;
|
|
121
|
+
line-height: 22px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.help-card-footer {
|
|
125
|
+
width: 332px;
|
|
126
|
+
height: 86px;
|
|
127
|
+
background: #FFFFFF;
|
|
128
|
+
box-shadow: 0px -4px 8px 0px rgba(127, 145, 180, 0.1);
|
|
129
|
+
padding: 12px;
|
|
130
|
+
border-radius: 24px;
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
display: flex;
|
|
133
|
+
justify-content: space-between;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.help-card-footer-item {
|
|
137
|
+
width: 77px;
|
|
138
|
+
height: 62px;
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
align-items: center;
|
|
143
|
+
font-size: 14px;
|
|
144
|
+
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
145
|
+
font-weight: 400;
|
|
146
|
+
color: #141C28;
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.help-card-footer-item > img {
|
|
151
|
+
width: 20px;
|
|
152
|
+
height: 20px;
|
|
153
|
+
margin-bottom: 5px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.tita-popup-zoom-left-bottom-enter,
|
|
157
|
+
.tita-popup-zoom-left-bottom-appear {
|
|
158
|
+
opacity: 0;
|
|
159
|
+
animation-duration: 0.3s;
|
|
160
|
+
animation-fill-mode: both;
|
|
161
|
+
animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
162
|
+
animation-play-state: paused;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.tita-popup-zoom-left-bottom-leave {
|
|
166
|
+
animation-duration: 0.3s;
|
|
167
|
+
animation-fill-mode: both;
|
|
168
|
+
animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05);
|
|
169
|
+
animation-play-state: paused;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.tita-popup-zoom-left-bottom-enter.tita-popup-zoom-left-bottom-enter-active,
|
|
173
|
+
.tita-popup-zoom-left-bottom-appear.tita-popup-zoom-left-bottom-appear-active {
|
|
174
|
+
animation-name: titaZoomInLB;
|
|
175
|
+
animation-play-state: running;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.tita-popup-zoom-left-bottom-leave.tita-popup-zoom-left-bottom-leave-active {
|
|
179
|
+
animation-name: titaZoomOutLB;
|
|
180
|
+
animation-play-state: running;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@keyframes kefuActive {
|
|
184
|
+
0% {
|
|
185
|
+
transform: rotate(0deg);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
100% {
|
|
189
|
+
transform: rotate(90deg);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@keyframes titaZoomInLB {
|
|
194
|
+
0% {
|
|
195
|
+
opacity: 0;
|
|
196
|
+
transform-origin: 0 100%;
|
|
197
|
+
transform: scale(0, 0);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
100% {
|
|
201
|
+
opacity: 1;
|
|
202
|
+
transform-origin: 0 100%;
|
|
203
|
+
transform: scale(1, 1);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@keyframes titaZoomOutLB {
|
|
208
|
+
0% {
|
|
209
|
+
opacity: 1;
|
|
210
|
+
transform-origin: 0 100%;
|
|
211
|
+
transform: scale(1, 1);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
100% {
|
|
215
|
+
opacity: 0;
|
|
216
|
+
transform-origin: 0 100%;
|
|
217
|
+
transform: scale(0, 0);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _popup = _interopRequireDefault(require("../popup"));
|
|
13
|
+
|
|
14
|
+
var _pointDemo = _interopRequireDefault(require("../point-demo"));
|
|
15
|
+
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
|
|
18
|
+
var _openData = require("../../utils/open-data");
|
|
19
|
+
|
|
20
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
21
|
+
|
|
22
|
+
var _requestApi = require("./request-api");
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
32
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
+
|
|
34
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
|
+
|
|
36
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
37
|
+
|
|
38
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
39
|
+
|
|
40
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
41
|
+
|
|
42
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
+
|
|
44
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
45
|
+
|
|
46
|
+
var preCls = "help-card";
|
|
47
|
+
|
|
48
|
+
var HelpCard = function HelpCard(_ref) {
|
|
49
|
+
var restProps = _extends({}, _ref);
|
|
50
|
+
|
|
51
|
+
var _useState = (0, _react.useState)(false),
|
|
52
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
53
|
+
visible = _useState2[0],
|
|
54
|
+
setVisible = _useState2[1];
|
|
55
|
+
|
|
56
|
+
var _useState3 = (0, _react.useState)(false),
|
|
57
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
58
|
+
pointVisible = _useState4[0],
|
|
59
|
+
setPointVisible = _useState4[1];
|
|
60
|
+
|
|
61
|
+
var _useState5 = (0, _react.useState)([]),
|
|
62
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
63
|
+
listType1 = _useState6[0],
|
|
64
|
+
setListType1 = _useState6[1];
|
|
65
|
+
|
|
66
|
+
var _useState7 = (0, _react.useState)([]),
|
|
67
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
68
|
+
listType2 = _useState8[0],
|
|
69
|
+
setListType2 = _useState8[1];
|
|
70
|
+
|
|
71
|
+
var isTrial = (0, _bsGlobal.getVersion)() == 1;
|
|
72
|
+
var userId = window.BSGlobal && window.BSGlobal.loginUserInfo.Id || 0;
|
|
73
|
+
var kefuUrl = isTrial ? "https://wpa1.qq.com/vZYKN3kT?_type=wpa&qidian=true" : "https://wpa1.qq.com/o6X4XD1n?_type=wpa&qidian=true";
|
|
74
|
+
|
|
75
|
+
var handleSkip = function handleSkip(url) {
|
|
76
|
+
setVisible(false);
|
|
77
|
+
window.open(url);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var sliceArray = function sliceArray(data, pageNum) {
|
|
81
|
+
return data.slice((pageNum - 1) * 3, pageNum * 3);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var formatQuestionList = function formatQuestionList(data) {
|
|
85
|
+
var type1 = [];
|
|
86
|
+
var type2 = [];
|
|
87
|
+
var questionList = [];
|
|
88
|
+
data.forEach(function (item) {
|
|
89
|
+
if (item.questionType === 1) {
|
|
90
|
+
type1.push(item);
|
|
91
|
+
} else if (item.questionType === 2) {
|
|
92
|
+
type2.push(item);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
questionList = [{
|
|
96
|
+
type: type1,
|
|
97
|
+
pageNum: 1
|
|
98
|
+
}, {
|
|
99
|
+
type: type2,
|
|
100
|
+
pageNum: 1
|
|
101
|
+
}];
|
|
102
|
+
setListType1(sliceArray(type1, 1));
|
|
103
|
+
setListType2(sliceArray(type2, 1));
|
|
104
|
+
window.sessionStorage.setItem("questionList_".concat(userId), JSON.stringify(questionList));
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
(0, _react.useEffect)(function () {
|
|
108
|
+
(0, _requestApi.getQuestionList)().then(function (res) {
|
|
109
|
+
console.log(res);
|
|
110
|
+
formatQuestionList(res.Data);
|
|
111
|
+
});
|
|
112
|
+
}, []);
|
|
113
|
+
|
|
114
|
+
var handlePoint = function handlePoint() {
|
|
115
|
+
setVisible(false);
|
|
116
|
+
setPointVisible(true);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var handleHelpCenter = function handleHelpCenter() {
|
|
120
|
+
setVisible(false);
|
|
121
|
+
|
|
122
|
+
if ((0, _openData.isPlatform)("dd")) {
|
|
123
|
+
window.open("https://wiki.tita.com/pages/viewpage.action?pageId=4915206");
|
|
124
|
+
} else if ((0, _openData.isPlatform)("feishu")) {
|
|
125
|
+
window.open("https://wiki.tita.com/pages/viewpage.action?pageId=12026137");
|
|
126
|
+
} else {
|
|
127
|
+
window.open("https://wiki.tita.com/display/TITA1/Tita");
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
var handleKnowledgeCommunity = function handleKnowledgeCommunity() {
|
|
132
|
+
setVisible(false);
|
|
133
|
+
window.open("https://club.tita.com/");
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
var handleCustomerService = function handleCustomerService() {
|
|
137
|
+
setVisible(false);
|
|
138
|
+
window.open(kefuUrl);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
var handleUpgrade = function handleUpgrade() {
|
|
142
|
+
setVisible(false);
|
|
143
|
+
window.open("https://wiki.tita.com/pages/viewpage.action?pageId=15696164");
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var chageBatch = function chageBatch() {
|
|
147
|
+
var questionList = window.sessionStorage.getItem("questionList_".concat(userId)) || "[]";
|
|
148
|
+
var data = JSON.parse(questionList);
|
|
149
|
+
var type1 = data[0].type;
|
|
150
|
+
var type2 = data[1].type;
|
|
151
|
+
var pageNum1 = data[0].pageNum + 1;
|
|
152
|
+
var pageNum2 = data[1].pageNum + 1;
|
|
153
|
+
|
|
154
|
+
if ((pageNum1 - 1) * 3 >= type1.length) {
|
|
155
|
+
pageNum1 = 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if ((pageNum2 - 1) * 3 >= type2.length) {
|
|
159
|
+
pageNum2 = 1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
setListType1(sliceArray(type1, pageNum1));
|
|
163
|
+
setListType2(sliceArray(type2, pageNum2));
|
|
164
|
+
data = [{
|
|
165
|
+
type: type1,
|
|
166
|
+
pageNum: pageNum1
|
|
167
|
+
}, {
|
|
168
|
+
type: type2,
|
|
169
|
+
pageNum: pageNum2
|
|
170
|
+
}];
|
|
171
|
+
window.sessionStorage.setItem("questionList_".concat(userId), JSON.stringify(data));
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
var popupContent = function popupContent() {
|
|
175
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
|
+
className: preCls
|
|
177
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
|
+
className: "".concat(preCls, "-header")
|
|
179
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
180
|
+
className: "".concat(preCls, "-header-avatar")
|
|
181
|
+
}), "Tita\u5C0F\u52A9\u624B"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
182
|
+
className: "".concat(preCls, "-body")
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
|
+
className: "".concat(preCls, "-body-item")
|
|
185
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
186
|
+
className: "".concat(preCls, "-body-item-title")
|
|
187
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
188
|
+
className: "".concat(preCls, "-body-item-title-left")
|
|
189
|
+
}, "\u731C\u4F60\u60F3\u95EE"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
|
+
className: "".concat(preCls, "-body-item-title-right")
|
|
191
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
192
|
+
className: "tu-icon-gengxin1",
|
|
193
|
+
onClick: chageBatch
|
|
194
|
+
}), "\u6362\u4E00\u6279")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
|
+
className: "".concat(preCls, "-body-item-content")
|
|
196
|
+
}, listType1.map(function (item, key) {
|
|
197
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
|
+
className: "".concat(preCls, "-body-item-content-item"),
|
|
199
|
+
onClick: function onClick() {
|
|
200
|
+
return handleSkip(item.questionUrl);
|
|
201
|
+
},
|
|
202
|
+
key: key
|
|
203
|
+
}, item.questionName);
|
|
204
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
+
className: "".concat(preCls, "-body-item")
|
|
206
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
207
|
+
className: "".concat(preCls, "-body-item-title")
|
|
208
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
|
+
className: "".concat(preCls, "-body-item-title-left")
|
|
210
|
+
}, "\u5E38\u89C1\u95EE\u9898")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
211
|
+
className: "".concat(preCls, "-body-item-content")
|
|
212
|
+
}, listType2.map(function (item, key) {
|
|
213
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
214
|
+
className: "".concat(preCls, "-body-item-content-item"),
|
|
215
|
+
onClick: function onClick() {
|
|
216
|
+
return handleSkip(item.questionUrl);
|
|
217
|
+
},
|
|
218
|
+
key: key
|
|
219
|
+
}, item.questionName);
|
|
220
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
221
|
+
className: "".concat(preCls, "-footer")
|
|
222
|
+
}, isTrial && /*#__PURE__*/_react["default"].createElement("div", {
|
|
223
|
+
className: "".concat(preCls, "-footer-item"),
|
|
224
|
+
onClick: handlePoint
|
|
225
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
226
|
+
src: require("./image/yuyueyanshi.svg"),
|
|
227
|
+
alt: "\u9884\u7EA6\u6F14\u793A"
|
|
228
|
+
}), "\u9884\u7EA6\u6F14\u793A"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
229
|
+
className: "".concat(preCls, "-footer-item"),
|
|
230
|
+
onClick: handleHelpCenter
|
|
231
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
232
|
+
src: require("./image/helpzx.svg"),
|
|
233
|
+
alt: "\u5E2E\u52A9\u4E2D\u5FC3"
|
|
234
|
+
}), "\u5E2E\u52A9\u4E2D\u5FC3"), !isTrial && /*#__PURE__*/_react["default"].createElement("div", {
|
|
235
|
+
className: "".concat(preCls, "-footer-item"),
|
|
236
|
+
onClick: handleUpgrade
|
|
237
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
238
|
+
src: require("./image/yuyueyanshi.svg"),
|
|
239
|
+
alt: "\u5347\u7EA7\u901A\u77E5"
|
|
240
|
+
}), "\u5347\u7EA7\u901A\u77E5"), !(0, _openData.isPlatform)("feishu") && /*#__PURE__*/_react["default"].createElement("div", {
|
|
241
|
+
className: "".concat(preCls, "-footer-item"),
|
|
242
|
+
onClick: handleKnowledgeCommunity
|
|
243
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
244
|
+
src: require("./image/okr-shequ.svg"),
|
|
245
|
+
alt: "\u77E5\u8BC6\u793E\u533A"
|
|
246
|
+
}), "\u77E5\u8BC6\u793E\u533A"), !(0, _openData.isPlatform)("feishu") && !(0, _openData.isPlatform)("dd") && /*#__PURE__*/_react["default"].createElement("div", {
|
|
247
|
+
className: "".concat(preCls, "-footer-item"),
|
|
248
|
+
onClick: handleCustomerService
|
|
249
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
250
|
+
src: require("./image/kefu1.svg"),
|
|
251
|
+
alt: "\u8054\u7CFB\u5BA2\u670D"
|
|
252
|
+
}), "\u8054\u7CFB\u5BA2\u670D")));
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
return /*#__PURE__*/_react["default"].createElement("div", restProps, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
256
|
+
popupTransitionName: "tita-popup-zoom-left-bottom",
|
|
257
|
+
placement: "topRight",
|
|
258
|
+
popupAlign: {
|
|
259
|
+
offset: [-32, -10],
|
|
260
|
+
overflow: {
|
|
261
|
+
adjustX: 1,
|
|
262
|
+
adjustY: 1
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
popup: popupContent(),
|
|
266
|
+
popupVisible: visible,
|
|
267
|
+
onPopupVisibleChange: function onPopupVisibleChange(bol) {
|
|
268
|
+
return setVisible(bol);
|
|
269
|
+
}
|
|
270
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
271
|
+
className: (0, _classnames["default"])("home-fixed-kefu")
|
|
272
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
273
|
+
className: (0, _classnames["default"])("home-fixed-kefu-image", {
|
|
274
|
+
"home-fixed-kefu-canceled": visible
|
|
275
|
+
})
|
|
276
|
+
}))), pointVisible && /*#__PURE__*/_react["default"].createElement(_pointDemo["default"], {
|
|
277
|
+
setVisible: setPointVisible
|
|
278
|
+
}));
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
var _default = HelpCard;
|
|
282
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getQuestionList = void 0;
|
|
7
|
+
|
|
8
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
9
|
+
|
|
10
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
|
|
15
|
+
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
16
|
+
|
|
17
|
+
var requestDomain = function requestDomain() {
|
|
18
|
+
if (!window.location.hostname.match(/dev/)) return '';
|
|
19
|
+
return "".concat(location.protocol, "//www.tita.gift");
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var getQuestionList = function getQuestionList() {
|
|
23
|
+
var source = (0, _bsGlobal.getSource)();
|
|
24
|
+
|
|
25
|
+
if (source !== 860 || source !== 861 || source !== 862) {
|
|
26
|
+
source = 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return _axios["default"].get("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/const/question?source=").concat(source)).then(function (res) {
|
|
30
|
+
return res.data;
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
exports.getQuestionList = getQuestionList;
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./index.css");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
var prefix = 'titaui-invite-people';
|
|
15
|
+
|
|
16
|
+
var InvitePeople = function InvitePeople() {
|
|
17
|
+
var handleInvitePeople = function handleInvitePeople() {
|
|
18
|
+
window.open('/#more/invite');
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
|
+
className: prefix,
|
|
23
|
+
onClick: handleInvitePeople
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var _default = InvitePeople;
|
|
28
|
+
exports["default"] = _default;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.textareaAutoResizing = textareaAutoResizing;
|
|
7
|
+
exports.insertTextAtPointer = insertTextAtPointer;
|
|
6
8
|
exports.dealWithLoadedFileTips = dealWithLoadedFileTips;
|
|
7
9
|
exports.generateSelectedMark = generateSelectedMark;
|
|
8
10
|
exports.getByteLen = getByteLen;
|
|
9
|
-
exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
|
|
10
11
|
exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
|
|
11
|
-
exports.
|
|
12
|
-
exports.textareaAutoResizing = textareaAutoResizing;
|
|
12
|
+
exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
|
|
13
13
|
|
|
14
14
|
// 修改textarea高度
|
|
15
15
|
function textareaAutoResizing(id, initialTextHeight) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.DragEffect = exports.PreviewBox = exports.BtnPrivate = exports.BtnConfirm = exports.BtnCancel = exports.RightBtn = exports.RightBtnGroupWrapper = exports.IconSpan = exports.LeftBtn = exports.LeftBtnGroupWrapper = exports.MblogActionWrapper = exports.Tips = exports.Textarea = exports.TextareaWrapper = exports.Label = exports.LabelWrapper = exports.DivMblogContent = exports.MBlogBox = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.titaui-drag-width {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
position: absolute;
|
|
4
|
+
width: 10px;
|
|
5
|
+
height: calc(100% - 12px);
|
|
6
|
+
top: 8px;
|
|
7
|
+
right: -5px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-drag-width__darg {
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: 3px;
|
|
13
|
+
height: 100%;
|
|
14
|
+
top: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
cursor: ew-resize;
|
|
17
|
+
border-radius: 15px;
|
|
18
|
+
}
|