Commit cd6af975 by cen Committed by chenwq1

fix:竖屏

1 parent 28206b44
Showing 38 changed files with 1127 additions and 291 deletions
......@@ -3,6 +3,8 @@ import { updateResolutionConfig } from "@/config/resolution-adapt/index.uts";
// #ifdef APP
import { layoutService } from "@/services/LayoutService.uts";
import { recordService } from "@/services/recorder";
import { lockOrientation } from "@/utils/plus-screen.uts";
// #endif
let firstBackTime = 0;
......@@ -13,6 +15,19 @@ export default {
layoutService.init();
const sys = uni.getSystemInfoSync();
console.log(`[App] 当前分辨率:${ sys.screenWidth } x ${ sys.screenHeight}`);
// pad/大屏锁定横屏,手机锁定竖屏
if (layoutService.isMode("pad") || layoutService.isMode("desktop")) {
lockOrientation("landscape-primary");
// 锁定后延迟刷新屏幕尺寸,此时已旋转为横屏,getSystemInfoSync() 会返回 1174x768
setTimeout(() => {
layoutService.refreshScreenInfo();
}, 400);
// 启动阶段多次重试锁定,避免首屏/框架稍后把方向改回竖屏(不做按页面锁定)
setTimeout(() => { lockOrientation("landscape-primary"); }, 600);
setTimeout(() => { lockOrientation("landscape-primary"); }, 1200);
} else {
lockOrientation("portrait-primary");
}
// #endif
console.log("App Launch");
......
......@@ -7,6 +7,6 @@
/* 精品首页竖屏下“开始接待”区域适配,降低高度避免图片拉伸感 */
.start {
height: 96px;
padding-top: 24px;
// padding-top: 24px;
}
}
......@@ -163,4 +163,4 @@ export const signSecretKey: SignSecretKeyItem = signSecretKeyMap[currentTarget]
export const pathEnum: UTSJSONObject = PATH_ENUM;
export const pathEnumExport: UTSJSONObject = PATH_ENUM;
// env 仅用于区分当前环境标签,这里直接按 TARGET_INDEX 映射为字符串
export const env: string = TARGET_INDEX == 3 ? "production" : TARGET_INDEX == 1 ? "develop" : "test";
export const env: string = TARGET_INDEX == 3 ? "production" : (TARGET_INDEX == 1 ? "develop" : "test");
<template>
<view class="entrance-box">
<view class="entrance-list">
<view
v-for="(item, index) in entranceList"
<view v-for="(item, index) in entranceList"
:key="index"
class="entrance-item"
@click="handleClick(item)"
>
<view class="entrance-icon" :style="{ backgroundColor: item.color }"></view>
@click="handleClick(item)">
<!-- App 端需用相对路径,便于打包时基于当前文件解析并打入包内 -->
<image v-if="item.icon === 'daily-report'"
class="entrance-icon"
mode="aspectFit"
src="../static/images/boutique/tools/daily-report.png" />
<image v-else-if="item.icon === 'create-order'"
class="entrance-icon"
mode="aspectFit"
src="../static/images/boutique/tools/create-order.png" />
<image v-else-if="item.icon === 'equity-order'"
class="entrance-icon"
mode="aspectFit"
src="../static/images/boutique/tools/equity-order.png" />
<image v-else-if="item.icon === 'defeat-order'"
class="entrance-icon"
mode="aspectFit"
src="../static/images/boutique/tools/defeat-order.png" />
<image v-else-if="item.icon === 'order-management'"
class="entrance-icon"
mode="aspectFit"
src="../static/images/boutique/tools/order-management.png" />
<image v-else-if="item.icon === 'wage-appeal'"
class="entrance-icon"
mode="aspectFit"
src="../static/images/boutique/tools/wage-appeal.png" />
<image v-else
class="entrance-icon"
mode="aspectFit"
src="../static/images/boutique/tools/daily-report.png" />
<text class="entrance-name">{{ item.label }}</text>
</view>
</view>
......@@ -15,51 +41,55 @@
</template>
<script setup lang="uts">
import { computed } from 'vue'
import { computed } from "vue";
type EntranceItem = {
label: string
color: string
icon: string
label: string
}
const props = defineProps<{
sceneType?: number
}>()
}>();
defineEmits(['entranceClick'])
defineEmits(["entranceClick"]);
const entranceList = computed((): EntranceItem[] => {
const sceneType = props.sceneType ?? 1
if (sceneType == 1) {
const sceneType = props.sceneType ?? 1;
if (sceneType === 1) {
// 轻改场景:对应老项目 icon-daily-report / icon-create-order / icon-defeat-order / icon-order-management / icon-wage-appeal
return [
{ label: '驻店日报', color: '#7c4dff' },
{ label: '新建工单', color: '#4673ff' },
{ label: '战败下单', color: '#ff4747' },
{ label: '工单列表', color: '#ff8c00' },
{ label: '工资申诉', color: '#ffc107' }
]
{ label: "驻店日报", icon: "daily-report", color: "#7c4dff" },
{ label: "新建工单", icon: "create-order", color: "#4673ff" },
{ label: "战败下单", icon: "defeat-order", color: "#ff4747" },
{ label: "工单列表", icon: "order-management", color: "#ff8c00" },
{ label: "工资申诉", icon: "wage-appeal", color: "#ffc107" }
];
}
if (sceneType == 0) {
if (sceneType === 0) {
// 权益场景:在轻改基础上增加“权益提单” icon-equity-order
return [
{ label: '驻店日报', color: '#7c4dff' },
{ label: '新建工单', color: '#4673ff' },
{ label: '权益提单', color: '#4caf50' },
{ label: '战败下单', color: '#ff4747' },
{ label: '工单列表', color: '#ff8c00' },
{ label: '工资申诉', color: '#ffc107' }
]
{ label: "驻店日报", icon: "daily-report", color: "#7c4dff" },
{ label: "新建工单", icon: "create-order", color: "#4673ff" },
{ label: "权益提单", icon: "equity-order", color: "#4caf50" },
{ label: "战败下单", icon: "defeat-order", color: "#ff4747" },
{ label: "工单列表", icon: "order-management", color: "#ff8c00" },
{ label: "工资申诉", icon: "wage-appeal", color: "#ffc107" }
];
}
// 其它场景兜底:先复用轻改配置
return [
{ label: '驻店日报', color: '#7c4dff' },
{ label: '新建工单', color: '#4673ff' },
{ label: '战败下单', color: '#ff4747' },
{ label: '工单列表', color: '#ff8c00' },
{ label: '工资申诉', color: '#ffc107' }
]
})
{ label: "驻店日报", icon: "daily-report", color: "#7c4dff" },
{ label: "新建工单", icon: "create-order", color: "#4673ff" },
{ label: "战败下单", icon: "defeat-order", color: "#ff4747" },
{ label: "工单列表", icon: "order-management", color: "#ff8c00" },
{ label: "工资申诉", icon: "wage-appeal", color: "#ffc107" }
];
});
function handleClick(item: EntranceItem): void {
uni.showToast({ title: '敬请期待', icon: 'none' })
function handleClick(_item: EntranceItem): void {
uni.showToast({ title: "敬请期待", icon: "none" });
}
</script>
......@@ -77,7 +107,7 @@ function handleClick(item: EntranceItem): void {
}
.entrance-item {
width: 80px;
width: 100px;
display: flex;
flex-direction: column;
align-items: center;
......@@ -92,8 +122,8 @@ function handleClick(item: EntranceItem): void {
}
.entrance-name {
font-size: var(--l-font-sm);
font-size: 12px;
color: #333;
margin-top: var(--l-spacing-xs);
margin-top: 6px;
}
</style>
......@@ -15,10 +15,10 @@
<view v-for="(item, index) in tabs"
:key="index"
class="tab-item"
:class="[tabIndex == index ? 'tabActive' : '']"
:class="[currentTabIndex === index ? 'tabActive' : '']"
@click="onChangeTab(index)">
<view class="icon-box">
<view class="icon-placeholder" :class="[tabIndex == index ? 'icon-active' : '']"></view>
<view class="icon-placeholder" :class="[currentTabIndex === index ? 'icon-active' : '']"></view>
</view>
<text class="tab-label">{{ item.label }}</text>
</view>
......@@ -45,8 +45,13 @@
<view v-for="(item, index) in tabs"
:key="index"
class="tab-item tab-item-inline"
:class="[tabIndex == index ? 'tabActive' : '']"
:class="[currentTabIndex === index ? 'tabActive' : '']"
@click="onChangeTab(index)">
<view class="tab-icon-wrap">
<image class="tab-icon"
mode="aspectFit"
:src="getTabIconSrc(item.icon, currentTabIndex === index)" />
</view>
<text class="tab-label">{{ item.label }}</text>
</view>
</view>
......@@ -77,6 +82,11 @@ const isPortraitMode = computed((): boolean => {
return props.isPortrait === true;
});
const currentTabIndex = computed((): number => {
const idx = props.tabIndex as null | number;
return idx != null ? idx : 0;
});
type SceneTypeItem = { describe: string; icon: string; title: string; }
function getSceneTypeItem(sceneId: number): null | SceneTypeItem {
......@@ -139,14 +149,33 @@ const sceneTypeIdList = computed((): number[] => {
return result;
});
const tabs = [
type TabItem = {
label: string;
icon: string;
name: string;
};
const tabs: TabItem[] = [
{ label: "首页", icon: "home", name: "HomeSlot" },
{ label: "接待中心", icon: "record", name: "ReceptionCenter" },
{ label: "学习中心", icon: "study", name: "StudyCenter" },
{ label: "场景集市", icon: "scene", name: "SceneMarket" },
{ label: "活动中心", icon: "activity", name: "ActivityCenter" }
// { label: "场景集市", icon: "scene", name: "SceneMarket" },
// { label: "活动中心", icon: "activity", name: "ActivityCenter" }
];
function getTabIconSrc(icon: string, active: boolean): string {
if (icon === "home") {
return active ? "/static/images/tabbar/home-active.png" : "/static/images/tabbar/home.png";
}
if (icon === "record") {
return active ? "/static/images/tabbar/record-active.png" : "/static/images/tabbar/record.png";
}
if (icon === "study") {
return active ? "/static/images/tabbar/study-active.png" : "/static/images/tabbar/study.png";
}
return "/static/images/tabbar/home.png";
}
const userName = computed((): string => {
const info = props.userInfo;
if (info == null) {
......@@ -284,6 +313,19 @@ function jumpPersonCenter(): void {
color: #3773f8;
}
.tab-icon-wrap {
width: 24px;
height: 24px;
display: flex;
justify-content: center;
align-items: center;
}
.tab-icon {
width: 24px;
height: 24px;
}
.portrait-action {
flex-shrink: 0;
}
......@@ -317,7 +359,6 @@ function jumpPersonCenter(): void {
align-items: center;
box-sizing: border-box;
position: relative;
text-align: center;
}
.user-avatar {
......@@ -354,12 +395,11 @@ function jumpPersonCenter(): void {
}
.tab-item {
width: 52px; /* toRpx(104) / 2 */
width: 80px; /* toRpx(104) / 2 */
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 12.5px; /* toRpx(25) / 2 */
text-align: center;
}
.icon-box {
......@@ -386,6 +426,7 @@ function jumpPersonCenter(): void {
font-size: 13px; /* toRpx(26) / 2 */
color: #8a98b5;
margin-top: 6px; /* toRpx(12) / 2 */
text-align: center;
}
.tabActive .tab-label {
......@@ -406,6 +447,9 @@ function jumpPersonCenter(): void {
}
.tab-item-inline {
flex-direction: row;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
</style>
......@@ -11,9 +11,6 @@
<!-- 横屏三卡片布局:轻改等使用 swiperCustom -->
<view v-if="useCardLayout && tabIndex == 0" class="app-content-box right-content show-content-box">
<view class="start" @click="onStartClick">
<image class="start-bg-img"
:mode="isPortraitMode ? 'aspectFill' : 'scaleToFill'"
src="/static/images/home/start-btn.png" />
<view class="start-inner">
<text class="start-text">开始接待</text>
</view>
......@@ -60,9 +57,6 @@
<!-- 横屏三卡片布局:轻改等使用 swiperCustom -->
<view v-if="useCardLayout && tabIndex == 0" class="app-content-box right-content show-content-box">
<view class="start" @click="onStartClick">
<image class="start-bg-img"
mode="scaleToFill"
src="/static/images/home/start-btn.png" />
<view class="start-inner">
<text class="start-text">开始接待</text>
</view>
......@@ -259,7 +253,7 @@ defineExpose({
}
.app-content-box {
margin-top: 50px;
margin-top: 40px;
flex: 1;
display: flex;
flex-direction: column;
......@@ -274,26 +268,16 @@ defineExpose({
.start {
height: 86px;
box-sizing: border-box;
margin-right: 32px;
position: relative;
display: flex;
justify-content: center;
align-items: flex-start;
padding-top: 30px;
padding-top: 36px;
overflow: hidden;
flex-shrink: 0;
min-width: 140px;
}
.start-bg-img {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
/* 与旧项目 background-size: 100% 100% 一致,铺满容器 */
border-radius: 18px;
background: #5b8cff;
}
.start-inner {
......@@ -309,7 +293,7 @@ defineExpose({
}
.start-text {
font-size: 20px;
font-size: 16px;
font-weight: 600;
color: #ffffff;
text-align: center;
......@@ -332,7 +316,7 @@ defineExpose({
}
.content-left {
width: var(--l-content-left-width);
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
......@@ -364,8 +348,8 @@ defineExpose({
}
.title-text {
font-size: var(--l-font-lg);
font-weight: 600;
font-size: 16px;
font-weight: 500;
color: #333;
}
......
......@@ -28,15 +28,13 @@
{
"path": "pages/boutique/index",
"style": {
"navigationStyle": "custom",
"pageOrientation": "landscape"
"navigationStyle": "custom"
}
},
{
"path": "pages/boutique/portrait",
"style": {
"navigationStyle": "custom",
"pageOrientation": "portrait"
"navigationStyle": "custom"
}
},
{
......@@ -59,7 +57,7 @@
}
},
{
"path":"pages/equity/detail/index",
"path": "pages/equity/detail/index",
"style": {
"navigationStyle": "custom"
}
......
<template>
<view class="page-container container">
<!-- 与旧项目一致:页面背景图 home-bg-1.webp -->
<view class="page-bg"></view>
<HomeFrame ref="homeRef"
:show-footer="true"
:swiper-custom="true"
@change-tab="onChangeTab"
@start="handleStart">
<template #swiperCustom>
<view v-if="loadComplete" class="swiper-custom-wrap">
<view v-if="packageList.length > 0" class="swiper-custom-content">
<swiper class="package-swiper"
:current="currentSwiperIndex"
@change="onSwiperChange">
<swiper-item v-for="(item, idx) in packageList"
:key="idx"
@tap="toDetail(idx)">
<image v-if="getPkg(item, 'bannerImg')"
class="swiper-bg"
mode="aspectFill"
:src="getPkg(item, 'bannerImg')" />
<view class="swiper-name">
{{ getPkg(item, 'name') }}
</view>
<view class="swiper-content-box">
<view class="price price-1">
<text class="price-label">市场价</text>
<view class="num">
<text class="unit">¥</text>
<text>{{ getPkg(item, 'marketPrice') }}</text>
</view>
</view>
<view class="price price-2">
{{ getPkg(item, 'discountPrice') }}
</view>
<view class="price price-3">
<text class="price-label">套餐价</text>
<view class="num">
<text class="unit">¥</text>
<text>{{ getPkg(item, 'packagePrice') }}</text>
</view>
</view>
<view class="briefIntroduction">
{{ getPkg(item, 'briefIntroduction') }}
</view>
</view>
<view class="swiper-btn">
查看详情
</view>
</swiper-item>
</swiper>
<view class="swiper-dots">
<view v-for="(_, i) in packageList"
:key="i"
class="dot"
:class="[{ active: i == currentSwiperIndex }]" />
</view>
</view>
<view v-else class="swiper-empty">
<text class="empty-text">{{ swiperNoDataObject.text }}</text>
</view>
</view>
<view v-else class="swiper-loading">
<text>加载中...</text>
</view>
</template>
<template #detail>
<view class="detail-content">
<text class="detail-title">详情页</text>
</view>
</template>
</HomeFrame>
<CenterPopup ref="customerTypeRef"
:list="typeList"
title="请选择当前洽谈的客户类型"
@choose="chooseCustomerType" />
<PackageDetailPopup ref="packageRef" @close="closePackageDetail">
<view class="package-detail-box">
<view class="package-box">
<view class="package-name">
套餐内容
</view>
<view class="package-content">
<rich-text :nodes="chooseItem.content ?? ''"></rich-text>
</view>
</view>
<view class="package-box package-detail">
<view class="package-name">
套餐介绍
</view>
<view class="package-content">
<rich-text :nodes="chooseItem.scriptIntroduction ?? ''"></rich-text>
</view>
</view>
</view>
</PackageDetailPopup>
</view>
</template>
<script setup lang="uts">
import { ref, type Ref } from "vue";
import CenterPopup from "@/components/CenterPopup.uvue";
import HomeFrame from "@/components/HomeFrame/index.uvue";
import PackageDetailPopup from "@/pages/boutique/components/PackageDetailPopup.uvue";
import type { BoutiqueLogic } from "@/pages/boutique/useBoutiqueLogic.uts";
const props = defineProps<{ logic: BoutiqueLogic }>();
const homeRef = ref(null);
const customerTypeRef = ref(null);
const packageRef = ref(null);
const loadComplete = props.logic.loadComplete;
const packageList = props.logic.packageList;
const currentSwiperIndex = props.logic.currentSwiperIndex;
const swiperNoDataObject = props.logic.swiperNoDataObject;
const typeList = props.logic.typeList;
const chooseItem = props.logic.chooseItem;
function getPkg(item: any, key: string): any {
return props.logic.getPkg(item, key);
}
function onSwiperChange(e: any): void {
props.logic.onSwiperChange(e);
}
function onChangeTab(index: number): void {
props.logic.onChangeTab(index);
}
function handleStart(): void {
const comp = customerTypeRef.value;
if (comp != null) {
const obj = comp as UTSJSONObject;
const openFn = obj["open"];
if (openFn != null && typeof openFn === "function") {
(openFn as () => void)();
}
}
}
function chooseCustomerType(index: number): void {
// UTS: ref(null) 的 value 可能被推断为 Nothing?,这里显式断言为 any
props.logic.chooseCustomerType(homeRef.value as any, index);
}
function toDetail(index: number): void {
const item = packageList.value[index];
if (item != null) {
chooseItem.value = item as UTSJSONObject;
const p = packageRef.value as null | UTSJSONObject;
const openFn = p != null ? p["open"] : null;
if (openFn != null && typeof openFn === "function") {
(openFn as () => void)();
}
}
}
function closePackageDetail(): void {
chooseItem.value = {};
}
function updateHome(): void {
const h = homeRef.value as null | UTSJSONObject;
if (h == null) return;
const fn = h["updateApp"];
if (fn != null && typeof fn === "function") {
(fn as () => void)();
}
}
defineExpose({
updateHome
});
</script>
<style scoped lang="scss">
.page-container {
width: 100%;
height: 100%;
position: relative;
}
.container {
position: relative;
}
.page-bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: -1;
background-image: url('@/assets/images/common/home-bg-1.webp');
background-size: cover;
background-repeat: no-repeat;
}
.swiper-custom-wrap {
width: 100%;
height: 100%;
position: relative;
}
.swiper-custom-content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.package-swiper {
flex: 1;
width: 100%;
}
.swiper-bg {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
}
.swiper-name {
padding-top: var(--l-spacing-lg);
text-indent: 67px;
color: #333;
font-size: var(--l-font-base);
font-weight: 500;
}
.swiper-content-box {
margin: var(--l-spacing-md) var(--l-spacing-xl) 0;
height: 132px;
position: relative;
}
.swiper-content-box .price,
.swiper-content-box .briefIntroduction {
position: absolute;
}
.price-1 {
color: #999;
font-size: 10px;
left: var(--l-spacing-xl);
top: 32px;
width: 97px;
text-align: center;
}
.price-1 .num {
color: #333;
font-size: var(--l-font-base);
font-weight: 700;
display: flex;
justify-content: center;
}
.price-1 .unit {
margin-right: 4px;
}
.price-2 {
left: 129px;
top: 48px;
width: 94px;
color: #ff4747;
font-size: var(--l-font-lg);
font-weight: 700;
display: flex;
justify-content: center;
}
.price-3 {
top: 27px;
left: 228px;
color: #999;
font-size: 14px;
width: 148px;
text-align: center;
}
.price-3 .num {
color: #ff4747;
font-size: 22px;
font-weight: 700;
display: flex;
justify-content: center;
}
.price-3 .unit {
margin-right: 8px;
}
.briefIntroduction {
left: 0;
top: 106px;
color: #666;
font-size: 12px;
width: 100%;
text-align: center;
}
.swiper-btn {
color: #4673ff;
font-size: 13px;
text-align: center;
margin-top: var(--l-spacing-md);
}
.swiper-dots {
display: flex;
flex-direction: row;
justify-content: center;
padding: var(--l-spacing-sm) 0;
}
.dot {
width: 8px;
height: 8px;
border-radius: 4px;
background: #ccc;
margin: 0 4px;
}
.dot.active {
background: #4673ff;
}
.swiper-empty,
.swiper-loading {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.empty-text {
font-size: var(--l-font-sm);
color: #999;
}
.detail-content {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.detail-title {
font-size: var(--l-font-2xl);
color: #333;
}
.package-detail-box {
padding-bottom: 50px;
margin: 0 var(--l-spacing-xl);
}
.package-box {
border-radius: var(--l-radius-xl);
background: #ffffff;
box-shadow: 0 6px 24px rgba(44, 102, 247, 0.15);
margin-bottom: var(--l-spacing-xl);
box-sizing: border-box;
padding: var(--l-spacing-xl);
}
.package-name {
color: #333;
font-size: var(--l-font-xl);
font-weight: 500;
line-height: 28px;
margin-bottom: var(--l-spacing-md);
}
.package-content {
line-height: 22px;
color: #333;
font-size: 14px;
}
.package-detail {
border: 2px solid rgba(70, 115, 255, 0.5);
background: rgba(70, 115, 255, 0.1);
box-shadow: 0 6px 24px rgba(44, 102, 247, 0.15);
}
.package-detail .package-name {
color: #4673ff;
}
</style>
<template>
<view class="page-container">
<HomeFrame ref="homeRef"
:show-footer="true"
:swiper-custom="true"
@start="handleStart">
<template #swiperCustom>
<view v-if="loadComplete" class="swiper-custom-wrap">
<swiper v-if="packageList.length > 0"
class="package-swiper"
:current="currentSwiperIndex"
@change="onSwiperChange">
<swiper-item v-for="(item, idx) in packageList"
:key="idx"
@tap="toDetail(idx)">
<view class="swiper-custom-content">
<image class="bg"
mode="aspectFill"
:src="getBanner(item)" />
</view>
</swiper-item>
</swiper>
<view v-if="packageList.length > 0" class="swiper-dots">
<view v-for="(_, i) in packageList"
:key="i"
class="dot"
:class="[{ active: i === currentSwiperIndex }]" />
</view>
<view v-else class="swiper-empty">
<text class="empty-text">敬请期待</text>
</view>
</view>
<view v-else class="swiper-loading">
<text>加载中...</text>
</view>
</template>
<template #detail>
<view class="detail-content">
<text class="detail-title">详情页</text>
</view>
</template>
</HomeFrame>
</view>
</template>
<script setup lang="uts">
import { ref } from "vue";
import HomeFrame from "@/components/HomeFrame/index.uvue";
import type { BoutiqueLogic } from "@/pages/boutique/useBoutiqueLogic.uts";
type NavigateToFailLike = {
errCode: number;
errMsg: string;
errSubject: string;
message: null | string;
};
const props = defineProps<{ logic: BoutiqueLogic }>();
const homeRef = ref(null);
const loadComplete = props.logic.loadComplete;
const packageList = props.logic.packageList;
const currentSwiperIndex = props.logic.currentSwiperIndex;
function getBanner(item: any): string {
return props.logic.getPkg(item, "bannerImg") as string;
}
function onSwiperChange(e: any): void {
props.logic.onSwiperChange(e);
}
function toDetail(_index: number): void {
uni.showToast({ title: "套餐详情", icon: "none" });
}
function handleStart(): void {
uni.navigateTo({
url: "/pages/reception/record",
fail: (e: any) => {
const err = e as NavigateToFailLike;
const msg = err.message !== null && err.message !== "" ? err.message : "";
console.error("[navigateTo] /pages/reception/record fail:", msg, JSON.stringify(e));
uni.showToast({ title: "跳转失败", icon: "none" });
}
});
}
function updateHome(): void {
const h = homeRef.value as null | UTSJSONObject;
if (h == null) return;
const fn = h["updateApp"];
if (fn != null && typeof fn === "function") {
(fn as () => void)();
}
}
defineExpose({
updateHome
});
</script>
<style scoped lang="scss">
.page-container {
width: 100%;
height: 100%;
}
.swiper-custom-wrap {
width: 100%;
height: 100%;
}
.package-swiper {
width: 100%;
height: 100%;
}
.swiper-custom-content {
width: 100%;
height: 100%;
position: relative;
}
.bg {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
}
.swiper-dots {
display: flex;
flex-direction: row;
justify-content: center;
padding: 12px 0;
}
.dot {
width: 8px;
height: 8px;
border-radius: 4px;
background: #ccc;
margin: 0 4px;
}
.dot.active {
background: #4673ff;
}
.swiper-empty,
.swiper-loading {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.empty-text {
font-size: 14px;
color: #999;
}
.detail-content {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.detail-title {
font-size: 24px;
color: #333;
}
</style>
<template>
<!-- #ifdef APP -->
<layout-root>
<!-- #endif -->
<view class="page-container container">
......@@ -100,11 +99,10 @@
</view>
<!-- #ifdef APP -->
</layout-root>
<!-- #endif -->
</template>
<script setup lang="uts">
import { ref } from "vue";
import { computed, ref } from "vue";
import { getBoutiquePackageList as apiGetBoutiquePackageList, getBoutiqueMaterialConfig } from "@/api/boutique-api.uts";
import { getEmployeeListApi } from "@/api/common-api.uts";
......@@ -159,11 +157,8 @@ const typeList = [
{ title: "现场客户", describe: "客户未领取精品券\n首次到店", icon: "icon-customer-2" }
];
function clearHistory(): void {
dispatch("clearCustomerInfo");
dispatch("clearHistory");
dispatch("clearReceptionTrack");
}
const landscapeRef = ref(null);
const portraitRef = ref(null);
function jumpPage(pid: string): void {
const list = carBannerList.value;
......@@ -196,15 +191,12 @@ function handleStart(): void {
}
}
function chooseCustomerType(index: number): void {
customerType.value = index;
if (index == 0) {
const ml = moduleList.value;
if (ml.length >= 3) {
const mid = (ml[2] as UTSJSONObject).id;
jumpPage(mid != null ? (mid as any).toString() : "");
} else {
jumpPage("");
function updateCurrentHome(): void {
if (isPortrait.value) {
const p = portraitRef.value as null | UTSJSONObject;
const fn = p !== null ? p.updateHome : null;
if (fn !== null && typeof fn === "function") {
(fn as () => void)();
}
} else {
jumpPage("");
......@@ -350,11 +342,6 @@ async function getBoutiquePackageList(): Promise<void> {
list.push(e);
}
}
packageList.value = list;
} catch {
packageList.value = [];
} finally {
loadComplete.value = true;
}
}
......@@ -389,10 +376,7 @@ onShow(async () => {
}
getBoutiquePackageList();
setTimeout((): void => {
const home = homeRef.value;
if (home != null) {
callExposedMethod(home, "updateApp");
}
updateCurrentHome();
}, 0);
});
</script>
......
<template>
<!-- #ifdef APP -->
<layout-root>
<!-- #endif -->
<view class="page-container">
<home-frame
ref="homeRef"
:showFooter="true"
:swiperCustom="true"
@start="handleStart"
>
<template #swiperCustom>
<view class="swiper-custom-placeholder">
<text class="package-title">套餐火爆热卖</text>
<text class="coming-soon">敬请期待</text>
</view>
</template>
<template #detail>
<view class="detail-content">
<text class="detail-title">详情页</text>
</view>
</template>
</home-frame>
</view>
<!-- #ifdef APP -->
</layout-root>
<!-- #endif -->
<!-- 兼容旧路由:统一跳转到单入口 /pages/boutique/index,由入口页内部决定横竖屏 -->
<view class="redirect-placeholder"></view>
</template>
<script setup lang="uts">
import { ref, ComponentPublicInstance } from 'vue'
// import { onLoad, onShow } from '@dcloudio/uni-app'
import { storage } from '@/utils/storage.uts'
import HomeFrame from '@/components/HomeFrame/index.uvue'
import { ComponentPublicInstance, ref } from "vue";
import { storage } from "@/utils/storage.uts";
import { onLoad, onShow } from "@dcloudio/uni-app";
const homeRef = ref(null)
const homeRef = ref(null);
function handleStart(): void {
uni.showToast({
title: '开始接待',
icon: 'success'
})
function redirect(): void {
uni.reLaunch({ url: "/pages/boutique/index" });
}
onLoad((options: OnLoadOptions) => {
uni.hideLoading()
})
onLoad((_options: OnLoadOptions) => {
uni.hideLoading();
redirect();
});
onShow(() => {
const userInfo = storage.get('userInfo')
const userInfo = storage.get("userInfo");
if (userInfo == null) {
storage.remove('userInfo')
storage.remove('sessionId')
uni.reLaunch({ url: '/pages/common/login/index' })
return
storage.remove("userInfo");
storage.remove("sessionId");
uni.reLaunch({ url: "/pages/common/login/index" });
return;
}
const userInfoObj = userInfo as UTSJSONObject
const shopMerchantId = userInfoObj['shopMerchantId'] as string | null
const shopMerchantName = userInfoObj['shopMerchantName'] as string | null
const userInfoObj = userInfo as UTSJSONObject;
const shopMerchantId = userInfoObj.shopMerchantId as null | string;
const shopMerchantName = userInfoObj.shopMerchantName as null | string;
if (shopMerchantId == null || shopMerchantId == '' || shopMerchantName == null || shopMerchantName == '') {
storage.remove('userInfo')
storage.remove('sessionId')
uni.reLaunch({ url: '/pages/common/login/index' })
return
if (shopMerchantId == null || shopMerchantId == "" || shopMerchantName == null || shopMerchantName == "") {
storage.remove("userInfo");
storage.remove("sessionId");
uni.reLaunch({ url: "/pages/common/login/index" });
return;
}
if (homeRef.value != null) {
(homeRef.value as ComponentPublicInstance).$callMethod('updateApp')
(homeRef.value as ComponentPublicInstance).$callMethod("updateApp");
}
})
});
</script>
<style scoped lang="scss">
.page-container {
width: 100%;
height: 100%;
}
.swiper-custom-placeholder {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.package-title {
font-size: var(--l-font-lg);
font-weight: 500;
color: #333;
margin-bottom: var(--l-spacing-md);
}
.coming-soon {
font-size: var(--l-font-sm);
color: #999;
}
.detail-content {
.redirect-placeholder {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.detail-title {
font-size: 24px;
color: #333;
}
</style>
<template>
<layout-root>
<!-- #endif -->
<view class="page-container account-page">
<view class="bg">
<image class="bg-image"
......@@ -79,7 +79,6 @@
</view>
</view>
</view>
<!-- #ifdef APP -->
</layout-root>
</template>
......
......@@ -20,7 +20,6 @@
import { defineExpose, ref } from "vue";
import { apiGetMerchantBrand, apiSelectMerchantScene } from "@/api/user-api.uts";
import { layoutService } from "@/services/LayoutService";
import { storage } from "@/utils/storage.uts";
type SceneItem = {
......@@ -51,15 +50,15 @@ function jump(info: UTSJSONObject, data: any | null): void {
uni.hideLoading();
if (data != null) {
if (data !== null) {
const loginRole = (data as UTSJSONObject).loginRoleOnSelectMerchant;
if (loginRole != null) {
if (loginRole !== null) {
info.loginRoleOnSelectMerchant = loginRole;
}
}
const shopMerchantId = info.shopMerchantId as null | string;
if (shopMerchantId == null || shopMerchantId == "") {
if (shopMerchantId === null || shopMerchantId === "") {
uni.showToast({ title: "参数异常", icon: "none" });
return;
}
......@@ -72,7 +71,7 @@ function jump(info: UTSJSONObject, data: any | null): void {
uni.hideLoading();
const code = (res as UTSJSONObject).code as null | string;
if (code == "0") {
if (code === "0") {
const dataObj = (res as UTSJSONObject).data as null | UTSJSONObject;
const channelType = dataObj != null ? (dataObj.channelType as null | number) : null;
info.channelType = channelType ?? 1;
......@@ -86,12 +85,20 @@ function jump(info: UTSJSONObject, data: any | null): void {
storage.remove("boutique_YQorderSetting");
let url = "/pages/index/index";
if (sceneType == 1) {
url = layoutService.isMode("portrait") ? "/pages/boutique/portrait" : "/pages/boutique/index";
} else if (sceneType == 0) {
switch (sceneType) {
case 0: {
url = "/pages/equity/index";
} else if (sceneType == 7) {
break;
}
case 1: {
// 精品页统一入口:由入口页内部决定横竖屏组件
url = "/pages/boutique/index";
break;
}
case 7: {
url = "/pages/usedCar/index";
break;
}
}
console.log(`准备跳转: ${ url}`);
......@@ -104,12 +111,20 @@ function jump(info: UTSJSONObject, data: any | null): void {
const sceneType = info.sceneType as null | number;
let url = "/pages/index/index";
if (sceneType == 1) {
url = layoutService.isMode("portrait") ? "/pages/boutique/portrait" : "/pages/boutique/index";
} else if (sceneType == 0) {
switch (sceneType) {
case 0: {
url = "/pages/equity/index";
} else if (sceneType == 7) {
break;
}
case 1: {
// 精品页统一入口:由入口页内部决定横竖屏组件
url = "/pages/boutique/index";
break;
}
case 7: {
url = "/pages/usedCar/index";
break;
}
}
console.log(`准备跳转(catch): ${ url}`);
uni.reLaunch({ url });
......
<template>
<view class="page">
<!-- #ifdef APP -->
<scroll-view class="scroll-container" scroll-y="true">
<!-- #endif -->
<view class="content">
<view class="header">
<view class="back-btn" @click="goBack">
......@@ -14,15 +14,15 @@
<text class="placeholder-text">敬请期待</text>
</view>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</view>
</template>
<script setup lang="uts">
function goBack(): void {
uni.navigateBack()
uni.navigateBack();
}
</script>
......
<template>
<view class="page">
<view class="header">
<view class="back-btn" @click="goBack">
<text class="back-text">← 返回</text>
</view>
<text class="title">接待录音</text>
</view>
<view class="content flex-col">
<view class="status-row">
<text class="status-label">状态:</text>
<text class="status-text">{{ statusText }}</text>
</view>
<view class="btn-row">
<view class="btn start-btn"
:class="{ disabled: isRecording }"
@click="onStartRecord">
<text class="btn-text">开始录音</text>
</view>
<view class="btn stop-btn"
:class="{ disabled: !isRecording }"
@click="onStopRecord">
<text class="btn-text">停住录音</text>
</view>
</view>
<view class="btn-row">
<view class="btn play-btn"
:class="{ disabled: recordFilePath == null }"
@click="onPlayRecord">
<text class="btn-text">播放刚刚的录音</text>
</view>
</view>
</view>
</view>
</template>
<script setup lang="uts">
import type { StartRecordOptions, StartRecordSuccess, StopRecordOptions, StopRecordSuccess } from "@/uni_modules/uts-recorder";
import { computed, ref } from "vue";
import { startRecord, stopRecord } from "@/uni_modules/uts-recorder";
const isRecording = ref(false);
const recordFilePath = ref<null | string>(null);
const statusText = computed((): string => {
if (isRecording.value) return "录音中…";
if (recordFilePath.value !== null) return "已停止,可播放";
return "暂无录音";
});
function goBack(): void {
uni.navigateBack();
}
function onStartRecord(): void {
if (isRecording.value) return;
isRecording.value = true;
recordFilePath.value = null;
const options: StartRecordOptions = {
sampleRate: 16_000,
numberOfChannels: 1,
success: (_res: StartRecordSuccess) => {
// 录音已开始,文件路径在 stop 时才有
},
fail: (_err: UniError) => {
isRecording.value = false;
uni.showToast({ title: "开始录音失败", icon: "none" });
}
};
startRecord(options);
uni.showToast({ title: "开始录音", icon: "none" });
}
function onStopRecord(): void {
if (!isRecording.value) return;
const options: StopRecordOptions = {
success: (res: StopRecordSuccess) => {
isRecording.value = false;
const filePath = res.filePath !== null && res.filePath !== "" ? res.filePath : res.tempFilePath;
recordFilePath.value = filePath !== null && filePath !== "" ? filePath : null;
uni.showToast({ title: "已停止录音", icon: "success" });
},
fail: (_err: UniError) => {
isRecording.value = false;
uni.showToast({ title: "停止录音失败", icon: "none" });
}
};
stopRecord(options);
}
function onPlayRecord(): void {
const path = recordFilePath.value;
if (path === null || path === "") {
uni.showToast({ title: "没有可播放的录音", icon: "none" });
return;
}
const audio = uni.createInnerAudioContext();
audio.src = path;
audio.play();
audio.onPlay(() => {
uni.showToast({ title: "开始播放", icon: "none" });
});
audio.onError((err) => {
const msg = err.errMsg !== "" ? err.errMsg : "播放失败";
uni.showToast({ title: msg, icon: "none" });
});
}
</script>
<style scoped lang="scss">
.page {
width: 100%;
min-height: 100%;
display: flex;
flex-direction: column;
background: #f5f7fa;
}
.header {
display: flex;
flex-direction: row;
align-items: center;
padding: 24px 16px;
background: #fff;
border-bottom: 1px solid #eee;
}
.back-btn {
padding: 8px 12px;
}
.back-text {
font-size: 16px;
color: #3773f8;
}
.title {
font-size: 18px;
font-weight: 500;
color: #1a1a1a;
margin-left: 12px;
}
.content {
padding: 24px 16px;
}
.status-row {
margin-bottom: 24px;
}
.status-label {
font-size: 14px;
color: #666;
}
.status-text {
font-size: 14px;
color: #1a1a1a;
margin-left: 8px;
}
.btn-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-bottom: 16px;
}
.btn {
padding: 12px 24px;
border-radius: 8px;
margin-right: 12px;
margin-bottom: 8px;
}
.btn.disabled {
opacity: 0.5;
}
.start-btn {
background: #3773f8;
}
.stop-btn {
background: #e74c3c;
}
.play-btn {
background: #27ae60;
}
.btn-text {
font-size: 15px;
color: #fff;
}
</style>
<template>
<!-- #ifdef APP -->
<layout-root>
<!-- #endif -->
<view class="page-container">
<home-frame ref="homeRef" :showFooter="true">
<HomeFrame ref="homeRef" :show-footer="true">
<template #home>
<view class="home-content">
<view class="header">
......@@ -16,7 +16,7 @@
<text class="btn-text">开始接待</text>
</view>
<view class="status-info" v-if="isRecording">
<view v-if="isRecording" class="status-info">
<text class="status-text">录音中...</text>
</view>
</view>
......@@ -33,109 +33,112 @@
<text class="detail-title">详情页</text>
</view>
</template>
</home-frame>
</HomeFrame>
</view>
<!-- #ifdef APP -->
</layout-root>
<!-- #endif -->
</template>
<script setup lang="uts">
import { ref, computed, type Ref, ComponentPublicInstance } from 'vue'
import type { Ref } from "vue";
import { ComponentPublicInstance, computed, ref } from "vue";
import HomeFrame from "@/components/HomeFrame/index.uvue";
import { usePermission } from "@/composables/usePermission";
import { useReception } from "@/composables/useReception";
import { useRecorder } from "@/composables/useRecorder";
import { useUploader } from "@/composables/useUploader";
// import { onLoad, onShow } from '@dcloudio/uni-app'
import { storage } from '@/utils/storage.uts'
import HomeFrame from '@/components/HomeFrame/index.uvue'
import { useRecorder } from '@/composables/useRecorder'
import { useUploader } from '@/composables/useUploader'
import { usePermission } from '@/composables/usePermission'
import { useReception } from '@/composables/useReception'
const homeRef = ref(null)
const loadComplete = ref<boolean>(true)
const recorder = useRecorder()
const isRecording = (recorder as UTSJSONObject)['isRecording'] as Ref<boolean>
const uploader = useUploader()
const permission = usePermission()
const reception = useReception()
import { storage } from "@/utils/storage.uts";
const homeRef = ref(null);
const loadComplete = ref<boolean>(true);
const recorder = useRecorder();
const isRecording = (recorder as UTSJSONObject).isRecording as Ref<boolean>;
const uploader = useUploader();
const permission = usePermission();
const reception = useReception();
type RefWithValue = { value: number }
const receptionStatusText = computed((): string => {
const status = (reception as UTSJSONObject)['receptionStatus'] as RefWithValue | null
const status = (reception as UTSJSONObject).receptionStatus as null | RefWithValue;
if (status != null && status.value == 0) {
return '未开始'
return "未开始";
} else if (status != null && status.value == 1) {
return '接待中'
return "接待中";
} else {
return '已完成'
return "已完成";
}
})
});
async function handleStart(): Promise<void> {
const checkMic = (permission as UTSJSONObject)['checkMicrophonePermission'] as () => Promise<boolean>
const hasPermission = await checkMic()
const checkMic = (permission as UTSJSONObject).checkMicrophonePermission as () => Promise<boolean>;
const hasPermission = await checkMic();
if (hasPermission == false) {
uni.showToast({
title: '需要麦克风权限',
icon: 'none'
})
return
title: "需要麦克风权限",
icon: "none"
});
return;
}
const clearHist = (reception as UTSJSONObject)['clearHistory'] as () => void
clearHist()
const startAud = (recorder as UTSJSONObject)['startAudio'] as () => void
startAud()
const startRec = (reception as UTSJSONObject)['startReception'] as () => void
startRec()
const clearHist = (reception as UTSJSONObject).clearHistory as () => void;
clearHist();
const startAud = (recorder as UTSJSONObject).startAudio as () => void;
startAud();
const startRec = (reception as UTSJSONObject).startReception as () => void;
startRec();
uni.showToast({
title: '开始接待',
icon: 'success'
})
title: "开始接待",
icon: "success"
});
}
function handleFinish(): void {
const stopAud = (recorder as UTSJSONObject)['stopAudio'] as () => void
stopAud()
const finishRec = (reception as UTSJSONObject)['finishReception'] as () => void
finishRec()
const stopAud = (recorder as UTSJSONObject).stopAudio as () => void;
stopAud();
const finishRec = (reception as UTSJSONObject).finishReception as () => void;
finishRec();
uni.showToast({
title: '完成接待',
icon: 'success'
})
title: "完成接待",
icon: "success"
});
}
onLoad((options: OnLoadOptions) => {
uni.hideLoading()
})
uni.hideLoading();
});
onShow(() => {
const userInfo = storage.get('userInfo')
const userInfo = storage.get("userInfo");
if (userInfo == null) {
storage.remove('userInfo')
storage.remove('sessionId')
uni.reLaunch({ url: '/pages/common/login/index' })
return
storage.remove("userInfo");
storage.remove("sessionId");
uni.reLaunch({ url: "/pages/common/login/index" });
return;
}
const userInfoObj = userInfo as UTSJSONObject
const shopMerchantId = userInfoObj['shopMerchantId'] as string | null
const shopMerchantName = userInfoObj['shopMerchantName'] as string | null
const userInfoObj = userInfo as UTSJSONObject;
const shopMerchantId = userInfoObj.shopMerchantId as null | string;
const shopMerchantName = userInfoObj.shopMerchantName as null | string;
if (shopMerchantId == null || shopMerchantId == '' || shopMerchantName == null || shopMerchantName == '') {
storage.remove('userInfo')
storage.remove('sessionId')
uni.reLaunch({ url: '/pages/common/login/index' })
return
if (shopMerchantId == null || shopMerchantId == "" || shopMerchantName == null || shopMerchantName == "") {
storage.remove("userInfo");
storage.remove("sessionId");
uni.reLaunch({ url: "/pages/common/login/index" });
return;
}
if (homeRef.value != null) {
(homeRef.value as ComponentPublicInstance).$callMethod('updateApp')
(homeRef.value as ComponentPublicInstance).$callMethod("updateApp");
}
})
});
</script>
<style scoped lang="scss">
......
......@@ -106,9 +106,7 @@ $uni-font-size-paragraph: 15px;
display: flex;
align-items: center;
padding-left: 48rpx;
color: #333333;
font-size: 34rpx;
font-weight: 500;
/* color/font-size/font-weight only on <text> in uni-app-x; use .title-text inside */
&::after {
content: "";
......
/**
* 按设备统一应用屏幕方向锁定(pad 横屏、手机竖屏)
* 供 App.onShow 与全局 mixin onShow 调用,避免每个页面单独写
* pad 锁横屏后延迟刷新屏幕尺寸,使首页等布局按横屏尺寸正确计算
*/
// #ifdef APP
import { layoutService } from '@/services/LayoutService.uts'
import { lockOrientation } from '@/utils/plus-screen.uts'
// #endif
// 防抖:仅保留最后一次延迟刷新,避免快速切页时多次刷新
var refreshTimer: number = 0
export function applyScreenOrientationLock(): void {
// #ifdef APP
if (layoutService.isMode('pad') || layoutService.isMode('desktop')) {
lockOrientation('landscape-primary')
if (refreshTimer != 0) {
clearTimeout(refreshTimer)
}
refreshTimer = setTimeout((): void => {
layoutService.refreshScreenInfo()
refreshTimer = 0
}, 400)
} else {
lockOrientation('portrait-primary')
}
// #endif
}
......@@ -3,20 +3,33 @@
* 用于屏幕方向控制
*/
// #ifdef APP-ANDROID
import ActivityInfo from "android.content.pm.ActivityInfo"
// #endif
/**
* 锁定屏幕方向
* @param orientation 方向:'portrait-primary' | 'landscape-primary' | 'portrait' | 'landscape'
*/
export function lockOrientation(orientation: string): void {
// #ifdef APP
// uni-app x 中屏幕方向通过 manifest.json 或页面配置控制
// 动态控制需要通过 UTS 插件实现
console.log(`[plus-screen] 锁定屏幕方向: ${orientation}`);
console.warn("[plus-screen] uni-app x 中屏幕方向建议在 manifest.json 或页面配置中设置");
// #ifdef APP-ANDROID
const activity = UTSAndroid.getUniActivity()
if (activity != null) {
if (orientation == "landscape" || orientation == "landscape-primary") {
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)
} else {
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
}
console.log("[plus-screen] 已锁定屏幕方向: " + orientation)
}
// #endif
// #ifdef APP-IOS
console.log("[plus-screen] iOS 锁定屏幕方向需在 manifest 或页面配置中设置: " + orientation)
// #endif
// #ifndef APP
console.log(`[plus-screen] 非APP平台不支持锁定屏幕方向`);
console.log("[plus-screen] 非APP平台不支持锁定屏幕方向")
// #endif
}
......
import { store } from "@/store/index.uts";
import { applyScreenOrientationLock } from "@/utils/apply-orientation-lock.uts";
export function appMixin(app: VueApp) {
// 注入 $store,兼容旧项目 this.$store 用法
......@@ -8,7 +9,10 @@ export function appMixin(app: VueApp) {
onPageScroll(e) {
// scroller.emit(e.scrollTop);
},
onShow() {},
onShow() {
// 每个页面显示时统一按设备锁定方向(pad 横屏、手机竖屏),无需各页面或 LayoutRoot 单独写
applyScreenOrientationLock();
},
onLoad() {}
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!