feat: 同步管理端、用户端与后端业务,并接通线上 Web 接口
补齐平台订阅、外部登录、CRM 同步与用户端页面;Nginx 转发用户端接口,登录页使用 Google 与 Apple 标志。 Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -37,7 +37,7 @@
|
||||
<view class="case-header-card">
|
||||
<view class="case-badge-pill">
|
||||
<view class="case-badge-dot"></view>
|
||||
<text class="case-badge-text">{{ t('badge') }}</text>
|
||||
<text class="case-badge-text">{{ headerBadgeText }}</text>
|
||||
</view>
|
||||
<text class="case-title">{{ state.title }}</text>
|
||||
|
||||
@@ -58,8 +58,19 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 2. 多图画廊轮播 / 单图视觉展台 -->
|
||||
<view v-if="state.images.length > 0" class="gallery-wrapper">
|
||||
<!-- 2. 原生视频播放器展台 (若配置视频直链) -->
|
||||
<view v-if="state.videoUrl !== ''" class="case-video-wrapper">
|
||||
<video
|
||||
class="case-video-player"
|
||||
:src="state.videoUrl"
|
||||
:poster="state.images.length > 0 ? state.images[0] : ''"
|
||||
:controls="true"
|
||||
preload="metadata"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 3. 多图画廊轮播 / 单图视觉展台 (无视频时或图集展示) -->
|
||||
<view v-if="state.images.length > 0 && state.videoUrl === ''" class="gallery-wrapper">
|
||||
<swiper
|
||||
v-if="state.images.length > 1"
|
||||
class="case-swiper"
|
||||
@@ -142,40 +153,34 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="resource-list">
|
||||
<!-- PDF 白皮书外链行 -->
|
||||
<!-- PDF 白皮书:有 url 才渲染可点行,不露裸 URL -->
|
||||
<view
|
||||
v-if="state.pdfUrl !== ''"
|
||||
class="ext-link-row"
|
||||
@click="handleCopyLink(state.pdfUrl)"
|
||||
@click="handleOpenLink(state.pdfUrl)"
|
||||
>
|
||||
<view class="ext-link-main">
|
||||
<view class="ext-badge ext-badge-pdf">
|
||||
<text class="ext-badge-text">{{ t('pdf') }}</text>
|
||||
</view>
|
||||
<view class="ext-info">
|
||||
<text class="ext-link-action">{{ t('pdfAction') }}</text>
|
||||
<text class="ext-link-url">{{ state.pdfUrl }}</text>
|
||||
</view>
|
||||
<text class="ext-link-action">{{ t('pdfAction') }}</text>
|
||||
</view>
|
||||
<view class="ext-arrow-box">
|
||||
<text class="ext-arrow-icon">↗</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 演示视频外链行 -->
|
||||
<!-- YouTube/Vimeo:有 url 才渲染可点行,不露裸 URL -->
|
||||
<view
|
||||
v-if="state.youtubeUrl !== ''"
|
||||
class="ext-link-row"
|
||||
@click="handleCopyLink(state.youtubeUrl)"
|
||||
@click="handleOpenLink(state.youtubeUrl)"
|
||||
>
|
||||
<view class="ext-link-main">
|
||||
<view class="ext-badge ext-badge-video">
|
||||
<text class="ext-badge-text">{{ t('youtube') }}</text>
|
||||
</view>
|
||||
<view class="ext-info">
|
||||
<text class="ext-link-action">{{ t('videoAction') }}</text>
|
||||
<text class="ext-link-url">{{ state.youtubeUrl }}</text>
|
||||
</view>
|
||||
<text class="ext-link-action">{{ t('videoAction') }}</text>
|
||||
</view>
|
||||
<view class="ext-arrow-box">
|
||||
<text class="ext-arrow-icon">↗</text>
|
||||
@@ -209,7 +214,7 @@ import {
|
||||
loadCaseDetail,
|
||||
openCaseExchange,
|
||||
goCaseBack,
|
||||
copyCaseExternalLink,
|
||||
openCaseExternalLink,
|
||||
resolveCaseDetailText,
|
||||
CaseDetailPageOptions,
|
||||
} from './useCaseDetail.uts';
|
||||
@@ -251,6 +256,10 @@ const pageRtlClass = computed((): string => {
|
||||
return isRtl(getCurrentLocale()) ? 'case-rtl' : '';
|
||||
});
|
||||
|
||||
const headerBadgeText = computed((): string => {
|
||||
return state.blockType === 'video' ? t('videoBadge') : t('badge');
|
||||
});
|
||||
|
||||
const hasMetaTags = computed((): boolean => {
|
||||
return (
|
||||
(state.client != null && state.client !== '') ||
|
||||
@@ -283,8 +292,8 @@ function handleBack(): void {
|
||||
goCaseBack();
|
||||
}
|
||||
|
||||
function handleCopyLink(url: string): void {
|
||||
copyCaseExternalLink(url);
|
||||
function handleOpenLink(url: string): void {
|
||||
openCaseExternalLink(url);
|
||||
}
|
||||
|
||||
onLoad((options: CaseDetailPageOptions) => {
|
||||
@@ -428,6 +437,23 @@ onLoad((options: CaseDetailPageOptions) => {
|
||||
color: var(--oc-text, #101828);
|
||||
}
|
||||
|
||||
/* 原生视频演示展台 */
|
||||
.case-video-wrapper {
|
||||
margin-block-end: var(--oc-space-16, 16px);
|
||||
border-radius: var(--oc-radius-card, 20px);
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--oc-border, #EBF1F7);
|
||||
box-shadow: var(--oc-shadow-card, 0 8px 30px rgba(0, 0, 0, 0.04));
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
.case-video-player {
|
||||
width: 100%;
|
||||
height: 220px;
|
||||
display: block;
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
/* 2. 多图画廊展台 */
|
||||
.gallery-wrapper {
|
||||
margin-block-end: var(--oc-space-16, 16px);
|
||||
@@ -564,7 +590,8 @@ onLoad((options: CaseDetailPageOptions) => {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 52px;
|
||||
min-height: 44px;
|
||||
height: 48px;
|
||||
background-color: var(--oc-bg, #F5F8FC);
|
||||
border: 1px solid var(--oc-border, #EBF1F7);
|
||||
border-radius: var(--oc-radius-btn, 14px);
|
||||
@@ -615,23 +642,11 @@ onLoad((options: CaseDetailPageOptions) => {
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.ext-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ext-link-action {
|
||||
font-size: 13px;
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--oc-text, #101828);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.ext-link-url {
|
||||
font-size: 11px;
|
||||
color: var(--oc-text-2, #64748B);
|
||||
color: var(--oc-primary, #0088FF);
|
||||
line-height: 1.4;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
在新工单中引用
屏蔽一个用户