Style(店铺):界面调整

This commit is contained in:
lifizer
2024-03-22 14:52:32 +08:00
parent 18aeb9bdfd
commit 1979f279f4
5 changed files with 52 additions and 9 deletions
+5
View File
@@ -290,4 +290,9 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked {
.ai-center { .ai-center {
align-items: center; align-items: center;
}
.ql-editor.ql-blank::before {
font-style: normal;
font-size: 28rpx;
color: #C2C5CC;
} }
+2 -1
View File
@@ -9,6 +9,7 @@
:show-img-toolbar="true" :show-img-toolbar="true"
:show-img-resize="true" :show-img-resize="true"
:read-only="readOnly" :read-only="readOnly"
placeholder-style="font-size:24rpx;color:#C2C5CC;"
@ready="onEditorReady" @ready="onEditorReady"
@statuschange="statuschange" @statuschange="statuschange"
@focus="editFocus" @focus="editFocus"
@@ -264,7 +265,7 @@ export default {
.ql-container { .ql-container {
line-height: 150%; line-height: 150%;
font-size: 22rpx; font-size: 28rpx;
width: 100%; width: 100%;
height: 240px; height: 240px;
background: #fff; background: #fff;
+2 -2
View File
@@ -23,7 +23,7 @@
}, },
fontSize: { fontSize: {
type: String, type: String,
default: '32rpx' default: '36rpx'
}, },
title: { title: {
type: String, type: String,
@@ -53,7 +53,7 @@
bottom: 0; bottom: 0;
width: 100%; width: 100%;
text-align: center; text-align: center;
font-size: 8px; font-size: 12px;
color: #666; color: #666;
line-height: 8px; line-height: 8px;
transform: translateY(-8px); transform: translateY(-8px);
+41 -5
View File
@@ -29,8 +29,8 @@
<video <video
:src="inn.cover" :src="inn.cover"
:autoplay="true" :autoplay="true"
:controls="false" :controls="true"
:loop="true" :loop="false"
object-fit="contain" object-fit="contain"
play-btn-position="center" play-btn-position="center"
class="video" class="video"
@@ -248,10 +248,22 @@
</view> </view>
<view class="flex"> <view class="flex">
<image <image
v-if="!item.zanVo"
:src="webUrl + '/page/hotel/zan-off.png'"
class="zan-off-icon"
@click="likeInfoItemHandle(item, index, 1)"
/>
<image
v-else
:src="webUrl + '/page/hotel/zan-on.png'"
class="zan-on-icon"
@click="likeInfoItemHandle(item, index, 0)"
/>
<!-- <image
:src="webUrl + '/20230803151302213857.png'" :src="webUrl + '/20230803151302213857.png'"
class="icon" class="icon"
/> />
<text class="seeNum-txt">{{ item.zan }}</text> <text class="seeNum-txt">{{ item.zan }}</text> -->
</view> </view>
<view v-if="isMyInn" class="flex more-btn" @click="toggleMoreHandle(index)"> <view v-if="isMyInn" class="flex more-btn" @click="toggleMoreHandle(index)">
<image <image
@@ -386,7 +398,8 @@ import {
getPoster, getPoster,
getHotelGoodList, getHotelGoodList,
postHotelNewsDel, postHotelNewsDel,
setTopHotelNew setTopHotelNew,
getHotelNewsZan
} from "@/api/inn.js" } from "@/api/inn.js"
import {formatDateTime} from "@/utils" import {formatDateTime} from "@/utils"
import {getUrlParam} from "@/utils/common.js" import {getUrlParam} from "@/utils/common.js"
@@ -809,11 +822,26 @@ export default {
this.$dialog.toast({ this.$dialog.toast({
mes: '操作成功!' mes: '操作成功!'
}) })
setTimeout(() => {
uni.hideLoading()
}, 3000)
this.fetchInnInfoList() this.fetchInnInfoList()
} }
}).finally(() => { }).catch(() => {
uni.hideLoading() uni.hideLoading()
}) })
},
likeInfoItemHandle(item, index, value) {
getHotelNewsZan(item.id).then(res => {
const { success } = res
if (success) {
this.$dialog.toast({
mes: '操作成功!'
})
this.$set(this.infoArray[index], 'zanVo', value)
// this.fetchInnInfoList()
}
})
} }
} }
} }
@@ -1260,6 +1288,14 @@ export default {
height: 32rpx; height: 32rpx;
margin: 0 8rpx 0 0; margin: 0 8rpx 0 0;
} }
.zan-off-icon {
width: 138rpx;
height: 40rpx;
}
.zan-on-icon {
width: 80rpx;
height: 40rpx;
}
.more-btn { .more-btn {
position: relative; position: relative;
.more-wrapper { .more-wrapper {
+2 -1
View File
@@ -49,7 +49,7 @@
<view class="inp"> <view class="inp">
<jin-edit <jin-edit
:html="form.content" :html="form.content"
placeholder="请输入内容" placeholder="请输入内容..."
height="320px" height="320px"
@editOk="editOk" @editOk="editOk"
/> />
@@ -219,6 +219,7 @@
padding: 10rpx 16rpx; padding: 10rpx 16rpx;
border: 1px solid #eee; border: 1px solid #eee;
border-radius: 6rpx; border-radius: 6rpx;
font-size: 28rpx;
} }
.inp-input { .inp-input {
padding: 0 16rpx; padding: 0 16rpx;