From 34e8a775e4fbc74ae663fd10645b65206dab207e Mon Sep 17 00:00:00 2001 From: chashaobao Date: Mon, 5 Jan 2026 00:22:42 +0800 Subject: [PATCH] feat --- src/app.tsx | 24 +++++++++++++ src/components/product-dialog/index.less | 35 ++++++++----------- .../steps-ui/company-publish-job-buy.tsx | 3 +- src/pages/invite-operations/index.tsx | 4 +-- src/pages/material-upload-video/index.less | 23 ++++++++++-- src/pages/material-upload-video/index.tsx | 1 + 6 files changed, 63 insertions(+), 27 deletions(-) diff --git a/src/app.tsx b/src/app.tsx index da271d6..ad02ef3 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -15,6 +15,29 @@ import { requestUserInfo, updateLastLoginTime } from '@/utils/user'; import './app.less'; function App({ children }: PropsWithChildren) { + const checkBasicUpdate = () => { + if (process.env.TARO_ENV !== 'weapp' || !Taro.canIUse('getUpdateManager')) { + return; + } + const manager = Taro.getUpdateManager(); + manager.onCheckForUpdate(res => { + console.log('onCheckForUpdate', res); + }); + + // 新版本下载完成 + manager.onUpdateReady(() => { + Taro.showModal({ + title: '更新提示', + content: '新版本已经准备好,是否重启应用?', + success: function (res) { + if (res.confirm) { + // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启 + manager.applyUpdate(); + } + }, + }); + }); + }; useLaunch(async ({ query }) => { console.log('App launched.'); await http.init(getInviteCodeFromQuery(query)); @@ -30,6 +53,7 @@ function App({ children }: PropsWithChildren) { }); useDidShow(options => { + checkBasicUpdate(); requestCityConfigs(); console.log(options); diff --git a/src/components/product-dialog/index.less b/src/components/product-dialog/index.less index 73e41cd..9f068c2 100644 --- a/src/components/product-dialog/index.less +++ b/src/components/product-dialog/index.less @@ -2,7 +2,6 @@ @import '@/styles/variables.less'; .product-dialog { - .layout() { display: flex; flex-direction: column; @@ -31,7 +30,7 @@ font-weight: 500; line-height: 72px; border-radius: 44px; - color: #FFFFFF; + color: #ffffff; background: @blHighlightColor; margin-top: 40px; } @@ -42,7 +41,7 @@ font-size: 24px; line-height: 48px; color: @blHighlightColor; - background: #6D3DF514; + background: #6d3df514; border-radius: 8px; padding: 32px 72px; margin-top: 40px; @@ -73,7 +72,7 @@ &__describe { .describe-font(); - margin-top: 24px + margin-top: 24px; } &__content { @@ -173,8 +172,8 @@ } &.disabled { - border-color: #E0E0E0; - background: #F7F7F7; + border-color: #e0e0e0; + background: #f7f7f7; } &.selected { @@ -237,9 +236,7 @@ color: @blHighlightColor; display: inline; } - } - } // ============================================= 群 ================================================= // @@ -323,7 +320,7 @@ line-height: 36px; text-align: center; border-radius: 50%; - border: 2px solid #E0E0E0; + border: 2px solid #e0e0e0; } &__qr-code__step-title { @@ -338,7 +335,7 @@ position: relative; width: 2px; height: 40px; - background: #E0E0E0; + background: #e0e0e0; margin: 4px 0; margin-left: 18px; } @@ -365,7 +362,7 @@ .divider { width: 540px; height: 1px; - background: #E0E0E0; + background: #e0e0e0; margin: 40px 0; } @@ -417,7 +414,7 @@ margin-top: 40px; .highlight { - color: @blHighlightColor + color: @blHighlightColor; } } @@ -523,7 +520,6 @@ .button(); } - // ============================================= 发布通告的企业会员 ================================================= // &__publish-job-buy__header { .header-font(); @@ -576,21 +572,21 @@ &__item { position: relative; - width: 230px; + width: 182px; height: 156px; .flex-column(); justify-content: center; border: 2px solid @blHighlightColor; border-radius: 8px; - margin-right: 24px; + margin-right: 15px; &:last-child { margin-right: 0; } &.disabled { - border-color: #E0E0E0; - background: #F7F7F7; + border-color: #e0e0e0; + background: #f7f7f7; } &.selected { @@ -635,11 +631,11 @@ } &__left-line { - background: linear-gradient(270deg, #E0E0E0 0%, #FFFFFF 100%); + background: linear-gradient(270deg, #e0e0e0 0%, #ffffff 100%); } &__right-line { - background: linear-gradient(90deg, #E0E0E0 0%, #FFFFFF 100%); + background: linear-gradient(90deg, #e0e0e0 0%, #ffffff 100%); } &__title { @@ -680,5 +676,4 @@ margin-top: 32px; } } - } diff --git a/src/components/product-dialog/steps-ui/company-publish-job-buy.tsx b/src/components/product-dialog/steps-ui/company-publish-job-buy.tsx index 8ebc141..7cc20d5 100644 --- a/src/components/product-dialog/steps-ui/company-publish-job-buy.tsx +++ b/src/components/product-dialog/steps-ui/company-publish-job-buy.tsx @@ -9,10 +9,10 @@ import { PREFIX } from '@/components/product-dialog/const'; import { CollectEventName, ReportEventId } from '@/constants/event'; import { OrderStatus, OrderType, ProductSpecId, ProductType } from '@/constants/product'; import { SubscribeTempId } from '@/constants/subscribe'; +import { ProductSpecResult } from '@/types/product'; import { logWithPrefix } from '@/utils/common'; import { collectEvent, reportEvent } from '@/utils/event'; import { - getOrderPrice, isCancelPay, requestCreatePayInfo, requestOrderInfo, @@ -21,7 +21,6 @@ import { } from '@/utils/product'; import { postSubscribe, subscribeMessage } from '@/utils/subscribe'; import Toast from '@/utils/toast'; -import { ProductSpecResult } from '@/types/product'; interface IProps { onNext: () => void; diff --git a/src/pages/invite-operations/index.tsx b/src/pages/invite-operations/index.tsx index 727f67b..97420aa 100644 --- a/src/pages/invite-operations/index.tsx +++ b/src/pages/invite-operations/index.tsx @@ -36,7 +36,7 @@ export default function InviteOperations() { }, []); const handleCopy = useCallback(() => { - copy(`我的ID是:${userInfo.userId},邀你进主播群`); + copy(`我的播络ID是:${userInfo.userId},邀你进群`); }, [userInfo.userId]); useEffect(() => { @@ -92,7 +92,7 @@ export default function InviteOperations() { 加运营为好友并将以下信息
粘贴发送给运营
-
我的ID是:{userInfo.userId},邀你进主播群
+
我的播络ID是:{userInfo.userId},邀你进群
diff --git a/src/pages/material-upload-video/index.less b/src/pages/material-upload-video/index.less index 1fdaa9d..48581a3 100644 --- a/src/pages/material-upload-video/index.less +++ b/src/pages/material-upload-video/index.less @@ -21,7 +21,24 @@ } &__video-list { - margin-top: 16px; + margin-top: 25px; + } + + &__hint { + line-height: 64px; + height: 64px; + background: #fff4f0; + border-radius: 24px 24px 0px 0px; + padding: 0 24px; + font-weight: 400; + font-size: 26px; + color: #946724; + + + .material-video-card { + margin-top: 0; + border-top-left-radius: 0; + border-top-right-radius: 0; + } } &__footer { @@ -29,11 +46,11 @@ left: 24px; right: 24px; bottom: 0; - background: #F5F6FA; + background: #f5f6fa; } &__submit-btn { .button(@width: 100%, @height: 80px, @fontSize: 32px, @fontWeight: 400, @borderRadius: 48px); bottom: 40px; } -} \ No newline at end of file +} diff --git a/src/pages/material-upload-video/index.tsx b/src/pages/material-upload-video/index.tsx index 5ec7947..9b43ef3 100644 --- a/src/pages/material-upload-video/index.tsx +++ b/src/pages/material-upload-video/index.tsx @@ -181,6 +181,7 @@ export default function MaterialUploadVideo() {
录屏是企业最关注的资料,建议提供多个风格和品类
+
注:请勿乱传,也不要上传简历,会被封号
{videoList.map(video => (