Commit 5d233055 by chenwq1

fix: 修改样式

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