Feat(时令尝鲜):接口对接

This commit is contained in:
lifizer
2023-09-27 16:13:33 +08:00
parent 2d73c2fe46
commit 986aee1fdb
13 changed files with 331 additions and 1005 deletions
+8 -6
View File
@@ -63,7 +63,9 @@
<view v-if="inn.desc != null && inn.desc.length>0" class="" style="padding: 0 32rpx;margin-top: 30rpx;">
<view class="desc-box">
<view v-html="handleRichText(inn.desc)"></view>
<text class="fixed">简介</text>
<rich-text :nodes="inn.desc"/>
<!-- <view v-html="handleRichText(inn.desc)"></view>-->
</view>
</view>
@@ -521,7 +523,6 @@ export default {
},
handleRichText: function (str) {
if (str != null) {
return `<span class="fixed">简介:</span>` + str.replace(/<\/?[^>]*>/g, '');
} else {
return '';
@@ -529,7 +530,6 @@ export default {
},
fetchInnDetail: function () {
let that = this;
if (this.isMyInn) {
getHotelDetail(that.id).then((res) => {
that.inn = res.data;
@@ -681,19 +681,21 @@ export default {
.cover-box {
position: relative;
.full-img {
width: 750rpx;
}
.box-mask{
.box-mask {
position: absolute;
bottom: 0;
right: 0;
width: 596rpx;
box-sizing: border-box;
padding: 0 20rpx 12rpx;
background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000000 100%);
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
.city-section{
.city-section {
width: 256rpx;
margin-left: 20rpx;
}