Commit 5d233055 by chenwq1

fix: 修改样式

1 parent b0144a88
Showing 28 changed files with 91 additions and 15 deletions
......@@ -3,7 +3,7 @@
"configurations" : [
{
"customPlaygroundType" : "local",
"playground" : "standard",
"playground" : "custom",
"type" : "uni-app:app-android"
},
{
......
......@@ -33,6 +33,7 @@
/* Flexbox 布局 - uni-app x 默认 flex-direction: column */
.flex {
display: flex;
flex-direction: row;
}
.flex-row {
......
......@@ -12,7 +12,7 @@
<text class="close-icon">×</text>
</view>
</view>
<scroll-view class="popup-content" direction="vertical">
<view class="popup-content">
<view v-for="(item, index) in list"
:key="index"
class="popup-item"
......@@ -25,7 +25,7 @@
<text class="item-describe">{{ (item as UTSJSONObject).describe ?? '' }}</text>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
</template>
......@@ -48,12 +48,13 @@ const emit = defineEmits<{
const internalVisible = ref(false);
const popupStyle = computed((): UTSJSONObject => {
const info = uni.getWindowInfo();
const winH = info.windowHeight > 0 ? info.windowHeight : 768;
const heightPx = Math.round(winH * 0.8);
const minHeightPx = Math.round(winH * 0.32);
const winW = info.windowWidth > 0 ? info.windowWidth : 375;
const sideGapPx = 32;
const maxPanelWidthPx = 700;
const widthByWindow = winW - sideGapPx;
const widthPx = Math.max(280, Math.min(maxPanelWidthPx, widthByWindow));
return {
height: `${heightPx}px`,
minHeight: `${minHeightPx}px`
width: `${widthPx}px`
} as UTSJSONObject;
});
......@@ -96,12 +97,14 @@ defineExpose({
background: rgba(0, 0, 0, 0.5);
z-index: 99;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.popup-box {
width: 700px;
max-width: calc(100vw - 32px);
background: #ffffff;
border-radius: var(--l-radius-xl);
overflow: hidden;
......@@ -140,16 +143,28 @@ defineExpose({
.popup-title-text {
font-weight: 500;
font-size: var(--l-font-xl);
font-size: 26px;
color: #1a1a1a;
text-align: center;
width: 100%;
padding: 0 56px;
box-sizing: border-box;
}
.popup-close {
position: absolute;
right: var(--l-spacing-lg);
position: absolute!important;
right: 12px;
top: 50%;
transform: translateY(-50%);
padding: var(--l-spacing-sm);
z-index: 2;
width: 36px;
height: 36px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0;
box-sizing: border-box;
}
.close-icon {
......@@ -159,10 +174,11 @@ defineExpose({
}
.popup-content {
flex: 1;
width: 100%;
padding: var(--l-spacing-lg);
display: flex;
flex-direction: column;
box-sizing: border-box;
}
.popup-item {
......
......@@ -358,6 +358,7 @@ defineExpose({
bottom: 0;
z-index: 999;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
......@@ -509,6 +510,7 @@ defineExpose({
position: absolute;
padding: 8px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -563,6 +565,7 @@ defineExpose({
flex: 1;
height: 44px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
border-radius: 8px;
......
......@@ -404,6 +404,7 @@ function jumpPersonCenter(): void {
width: 52px; /* toRpx(104) / 2 */
height: 52px; /* toRpx(104) / 2 */
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border-radius: 26px; /* toRpx(52) / 2 */
......
......@@ -778,6 +778,7 @@ async function handleSubmit(): Promise<void> {
.btn {
flex: 1;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
height: 44px;
......
......@@ -360,6 +360,7 @@ watch(
height: 32px;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-bottom: 8px;
......
......@@ -1096,6 +1096,7 @@ defineExpose({
width: 48px;
height: 40px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
background-color: #EFF6FF;
......@@ -1772,6 +1773,7 @@ defineExpose({
width: 40px;
height: 40px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
background-color: #2563EB;
......
......@@ -84,6 +84,7 @@ defineExpose({
background: rgba(0, 0, 0, 0.5);
z-index: 99;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -98,6 +99,7 @@ defineExpose({
.setting-header {
height: 80px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
position: relative;
......
......@@ -160,6 +160,7 @@ import { storage } from "@/utils/storage.uts";
import HomeFrameLeftSide from "./LeftSide.uvue";
import HomeFrameMessageIndex from "./MessageIndex.uvue";
import MyCenter from "./MyCenter.uvue";
import ReceptionCenter from "./ReceptionCenter/center.uvue";
import ReceptionDetail from "./ReceptionCenter/receptionDetail.uvue";
const props = defineProps<{
......@@ -265,6 +266,7 @@ defineExpose({
position: relative;
flex: 1;
display: flex;
flex-direction: row;
width: 100%;
height: 100%;
overflow: hidden;
......@@ -318,6 +320,7 @@ defineExpose({
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
padding-top: 36px;
......@@ -332,6 +335,7 @@ defineExpose({
position: relative;
z-index: 1;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0;
......@@ -391,6 +395,7 @@ defineExpose({
.common-title {
height: var(--l-common-title-height);
display: flex;
flex-direction: row;
align-items: center;
padding-left: var(--l-spacing-lg);
}
......@@ -411,6 +416,7 @@ defineExpose({
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......
......@@ -44,6 +44,7 @@ defineExpose({
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
z-index: 9999;
......
......@@ -281,6 +281,7 @@ defineExpose({
.fab-item {
display: flex;
flex-direction: row;
justify-content: center;
cursor: pointer;
// margin-bottom: 10px;
......@@ -306,6 +307,7 @@ defineExpose({
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
background: #ffffff;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
overflow: hidden;
......@@ -319,6 +321,7 @@ defineExpose({
height: 100%;
border-radius: 50%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
z-index: 1;
......
......@@ -200,6 +200,7 @@ function handleTabClick(index: number): void {
.tab-item .text-wrap {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -291,6 +292,7 @@ function handleTabClick(index: number): void {
flex-shrink: 0;
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
background-color: #eef4fe;
......
......@@ -128,6 +128,7 @@ const tabClick = (index: number, item: any) => {
.type-scroll-content {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
}
......@@ -144,6 +145,7 @@ const tabClick = (index: number, item: any) => {
padding: 0 32px;
transition: all 0.15s;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -169,6 +171,7 @@ const tabClick = (index: number, item: any) => {
.flex {
display: flex;
flex-direction: row;
}
.justify-center {
......
......@@ -5,7 +5,6 @@
"versionName": "1.0.0",
"versionCode": "126",
"uni-app-x": {
"flex-direction": "row"
},
/* 快应用特有相关 */
"quickapp": {},
......
......@@ -229,6 +229,7 @@ defineExpose({
font-size: var(--l-font-base);
font-weight: 700;
display: flex;
flex-direction: row;
justify-content: center;
}
......@@ -244,6 +245,7 @@ defineExpose({
font-size: var(--l-font-lg);
font-weight: 700;
display: flex;
flex-direction: row;
justify-content: center;
}
......@@ -261,6 +263,7 @@ defineExpose({
font-size: 22px;
font-weight: 700;
display: flex;
flex-direction: row;
justify-content: center;
}
......@@ -308,6 +311,7 @@ defineExpose({
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -321,6 +325,7 @@ defineExpose({
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -422,6 +427,7 @@ defineExpose({
font-size: var(--l-font-base);
font-weight: 700;
display: flex;
flex-direction: row;
justify-content: center;
}
.price-1 .unit {
......@@ -436,6 +442,7 @@ defineExpose({
font-size: var(--l-font-lg);
font-weight: 700;
display: flex;
flex-direction: row;
justify-content: center;
}
......@@ -452,6 +459,7 @@ defineExpose({
font-size: 22px;
font-weight: 700;
display: flex;
flex-direction: row;
justify-content: center;
}
.price-3 .unit {
......@@ -497,6 +505,7 @@ defineExpose({
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -509,6 +518,7 @@ defineExpose({
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......
......@@ -192,6 +192,7 @@ defineExpose({
.pkg-price-row {
margin-top: 12px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
}
......@@ -216,6 +217,7 @@ defineExpose({
.pkg-empty {
padding: 48px 24px;
display: flex;
flex-direction: row;
justify-content: center;
}
......
......@@ -58,6 +58,7 @@ defineExpose({
background: rgba(0, 0, 0, 0.5);
z-index: 99;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......
......@@ -211,6 +211,7 @@ const chooseMerchant = (userInfo: any): void => {
width: 48px;
height: 48px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -219,11 +220,13 @@ const chooseMerchant = (userInfo: any): void => {
.step-box {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
.step-item {
display: flex;
flex-direction: row;
align-items: center;
margin-right: 81.5px;
......@@ -255,6 +258,7 @@ const chooseMerchant = (userInfo: any): void => {
background: #b1b1b1;
border-radius: 12px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
overflow: hidden;
......@@ -311,6 +315,7 @@ const chooseMerchant = (userInfo: any): void => {
.input {
display: flex;
flex-direction: row;
align-items: center;
height: 100%;
width: 100%;
......@@ -348,6 +353,7 @@ const chooseMerchant = (userInfo: any): void => {
padding: 0 1px;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
}
}
......
......@@ -434,6 +434,7 @@ onMounted(() => {
.right {
flex-shrink: 0;
display: flex;
flex-direction: row;
align-items: center;
margin-right: 14px;
......@@ -442,6 +443,7 @@ onMounted(() => {
height: 48px;
border-radius: 4px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......
......@@ -301,6 +301,7 @@ defineExpose({
.box {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
padding: 0 var(--l-spacing-lg);
......
......@@ -7,7 +7,7 @@
<text class="title">登录</text>
<text class="sub-title">手机号码登录</text>
<view class="input">
<view class="input flex-col">
<input v-model="mobile"
class="input-control"
auto-blur
......
......@@ -36,6 +36,7 @@
}
.input {
flex-direction: row;
box-sizing: border-box;
display: flex;
align-items: center;
......@@ -54,6 +55,7 @@
.icon {
display: flex;
flex-direction: row;
flex-shrink: 0;
align-items: center;
height: 100%;
......@@ -80,6 +82,7 @@
.btn {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 400px;
......@@ -104,6 +107,7 @@
.autoLogin {
display: flex;
flex-direction: row;
align-items: center;
margin-right: 10px;
margin-bottom: 19px;
......
......@@ -610,6 +610,7 @@ onBackPress((options: OnBackPressOptions) => {
width: 48px;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
pointer-events: auto;
......
......@@ -585,6 +585,7 @@ onShow(() => {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......@@ -598,6 +599,7 @@ onShow(() => {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......
......@@ -71,6 +71,7 @@ function goBack(): void {
background: #ffffff;
border-radius: var(--l-radius-lg);
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
min-height: 200px;
......
......@@ -157,6 +157,7 @@ onShow(() => {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
......
......@@ -85,12 +85,14 @@ $uni-font-size-paragraph: 15px;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
flex-direction: row;
max-height: 48px; /* 根据 font-size * line-height * 2 计算 */
}
.select-box {
.select-item {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
......@@ -102,6 +104,7 @@ $uni-font-size-paragraph: 15px;
height: 120rpx;
position: relative;
display: flex;
flex-direction: row;
align-items: center;
padding-left: 48rpx;
/* color/font-size/font-weight only on <text> in uni-app-x; use .title-text inside */
......@@ -113,6 +116,7 @@ $uni-font-size-paragraph: 15px;
width: 100%;
height: 120rpx;
display: flex;
flex-direction: row;
align-items: center;
padding-left: 48rpx;
color: #333333;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!