feat: image标签替换成class名称
This commit is contained in:
@@ -14,7 +14,11 @@
|
|||||||
v-for="(item, index) in thumbnails"
|
v-for="(item, index) in thumbnails"
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<image :src="item.photoUrl" mode="aspectFill"></image>
|
<image
|
||||||
|
class="swiper-item-image"
|
||||||
|
:src="item.photoUrl"
|
||||||
|
mode="aspectFill"
|
||||||
|
></image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
|
|
||||||
@@ -43,7 +47,7 @@
|
|||||||
:id="`thumbnail-${index}`"
|
:id="`thumbnail-${index}`"
|
||||||
@click="handleThumbnailClick(index)"
|
@click="handleThumbnailClick(index)"
|
||||||
>
|
>
|
||||||
<image :src="thumb.photoUrl" mode="aspectFill"></image>
|
<image class="thumbnail-image" :src="thumb.photoUrl" mode="aspectFill"></image>
|
||||||
<text>{{ thumb.photoName }}</text>
|
<text>{{ thumb.photoName }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
// 高度和圆角通过内联样式动态设置
|
// 高度和圆角通过内联样式动态设置
|
||||||
}
|
}
|
||||||
|
|
||||||
.swiper-item image {
|
.swiper-item .swiper-item-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
@@ -51,13 +51,13 @@
|
|||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
image {
|
.thumbnail-image {
|
||||||
border: 1px solid #fff;
|
border: 1px solid #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.thumbnail-item image {
|
.thumbnail-item .thumbnail-image {
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
.module-title {
|
.module-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: PingFang SC, PingFang SC;
|
|
||||||
color: #000;
|
color: #000;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
overflow-x: hidden; // ✅ 防止横向撑开
|
overflow-x: hidden; // ✅ 防止横向撑开
|
||||||
|
|
||||||
text {
|
text {
|
||||||
font-family: PingFang SC, PingFang SC;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
overflow-x: hidden; // ✅ 防止横向撑开
|
overflow-x: hidden; // ✅ 防止横向撑开
|
||||||
|
|
||||||
text {
|
text {
|
||||||
font-family: PingFang SC, PingFang SC;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,16 @@
|
|||||||
<view v-if="!visibleWaveBtn" class="area-input">
|
<view v-if="!visibleWaveBtn" class="area-input">
|
||||||
<!-- 语音/键盘切换 -->
|
<!-- 语音/键盘切换 -->
|
||||||
<view class="input-container-voice" @click="toggleVoiceMode">
|
<view class="input-container-voice" @click="toggleVoiceMode">
|
||||||
<image v-if="!isVoiceMode" src="/static/input_voice_icon.png"></image>
|
<image
|
||||||
<image v-else src="/static/input_keyboard_icon.png"></image>
|
class="voice-icon"
|
||||||
|
v-if="!isVoiceMode"
|
||||||
|
src="/static/input_voice_icon.png"
|
||||||
|
></image>
|
||||||
|
<image
|
||||||
|
class="voice-icon"
|
||||||
|
v-else
|
||||||
|
src="/static/input_keyboard_icon.png"
|
||||||
|
></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 输入框/语音按钮容器 -->
|
<!-- 输入框/语音按钮容器 -->
|
||||||
@@ -47,9 +55,10 @@
|
|||||||
<view class="input-container-send-btn" @click="sendMessage">
|
<view class="input-container-send-btn" @click="sendMessage">
|
||||||
<image
|
<image
|
||||||
v-if="props.isSessionActive"
|
v-if="props.isSessionActive"
|
||||||
|
class="send-icon"
|
||||||
src="/static/input_stop_icon.png"
|
src="/static/input_stop_icon.png"
|
||||||
></image>
|
></image>
|
||||||
<image v-else src="/static/input_send_icon.png"></image>
|
<image v-else class="send-icon" src="/static/input_send_icon.png"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
width: 44px;
|
width: 44px;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
|
|
||||||
image {
|
.voice-icon {
|
||||||
width: 22px;
|
width: 22px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
}
|
}
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
image {
|
.send-icon {
|
||||||
width: 28px;
|
width: 28px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,55 +84,6 @@
|
|||||||
// -webkit-transform: translateZ(0);
|
// -webkit-transform: translateZ(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.area-input {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
border-radius: 22px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
box-shadow: 0px 0px 20px 0px rgba(52, 25, 204, 0.05);
|
|
||||||
margin: 0 12px;
|
|
||||||
|
|
||||||
.input-container-voice {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 44px;
|
|
||||||
height: 44px;
|
|
||||||
flex-shrink: 0;
|
|
||||||
align-self: flex-end;
|
|
||||||
|
|
||||||
image {
|
|
||||||
width: 22px;
|
|
||||||
height: 22px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-container-send {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 44px;
|
|
||||||
height: 44px;
|
|
||||||
flex-shrink: 0;
|
|
||||||
align-self: flex-end;
|
|
||||||
|
|
||||||
image {
|
|
||||||
width: 28px;
|
|
||||||
height: 28px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.textarea {
|
|
||||||
flex: 1;
|
|
||||||
max-height: 92px;
|
|
||||||
min-height: 22px;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 22px;
|
|
||||||
margin-bottom: 2px;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 打字机光标闪烁动画
|
// 打字机光标闪烁动画
|
||||||
.typing-cursor {
|
.typing-cursor {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
></image>
|
></image>
|
||||||
<view class="quick-access-item-title">
|
<view class="quick-access-item-title">
|
||||||
<image :src="item.icon"></image>
|
<image class="quick-access-item-icon" :src="item.icon"></image>
|
||||||
<text>{{ item.title }}</text>
|
<text>{{ item.title }}</text>
|
||||||
</view>
|
</view>
|
||||||
<text class="quick-access-item-content">{{ item.content }}</text>
|
<text class="quick-access-item-content">{{ item.content }}</text>
|
||||||
|
|||||||
@@ -42,14 +42,13 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
image {
|
.quick-access-item-icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
text {
|
text {
|
||||||
font-family: PingFang SC, PingFang SC;
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #201f32;
|
color: #201f32;
|
||||||
@@ -60,8 +59,6 @@
|
|||||||
.quick-access-item-content {
|
.quick-access-item-content {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
font-family: PingFang SC, PingFang SC;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
color: #678cad;
|
color: #678cad;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
|
|||||||
@@ -12,7 +12,11 @@
|
|||||||
>
|
>
|
||||||
<swiper-item v-for="item in activityList" :key="item.id">
|
<swiper-item v-for="item in activityList" :key="item.id">
|
||||||
<view class="swiper-item" @click="handleClick(item)">
|
<view class="swiper-item" @click="handleClick(item)">
|
||||||
<image :src="item.activityCover" mode="aspectFill"></image>
|
<image
|
||||||
|
class="swiper-img"
|
||||||
|
:src="item.activityCover"
|
||||||
|
mode="aspectFill"
|
||||||
|
></image>
|
||||||
<view class="corner-btn">快速预定</view>
|
<view class="corner-btn">快速预定</view>
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
line-height: 120px;
|
line-height: 120px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
image {
|
.swiper-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|||||||
Reference in New Issue
Block a user