Feat(时令尝鲜):接口对接
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user