|
@@ -43,20 +43,20 @@
|
|
|
</view>
|
|
|
<view v-if="store_summary" style="color: #666;padding: 0 32upx 10upx 32upx;">{{store_summary}}</view>
|
|
|
<view>
|
|
|
- <van-tabs v-model="activeindex" @click.stop="onChange">
|
|
|
- <van-tab :name="0" title="服务项目">
|
|
|
+ <van-tabs title-active-color="#D9332E" v-model="activeindex" @click.stop="onChange">
|
|
|
+ <van-tab :name="0" title="服务项目">
|
|
|
<view>
|
|
|
<!-- background: #909399 -->
|
|
|
<view class="giveList">
|
|
|
<view class="giveItem" v-for="(item,index) in category_list" :key="index" @click.stop="godetail(item)">
|
|
|
<image :src="item.pic"
|
|
|
- style="width:100%;height: 100upx;">
|
|
|
+ style="width:100%;height: 69%;">
|
|
|
</image>
|
|
|
- <p style="text-align: center;">{{item.gc_name}}</p>
|
|
|
+ <p style="text-align: center;font-size: 24rpx;">{{item.gc_name}}</p>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view style="padding: 0upx 18upx;">
|
|
|
+ <view style="padding: 0upx 18upx 20upx 18upx ;">
|
|
|
<view style="width: 95%;margin: 0 auto;">
|
|
|
<view @click.stop="choseType(1)" :class="tabIndex==1 ? 'active' : ''" class="typeItem">
|
|
|
综合
|
|
@@ -104,15 +104,15 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view @click.stop="choseType(4)" class="typeItem">
|
|
|
- <view :class="tabIndex==4 ? 'active' : ''">分类
|
|
|
- <img v-if="tabIndex != 4" style="width: 36upx;height: 36upx;" src='../../static/sortb.png' />
|
|
|
- <img v-if="tabIndex == 4" style="width: 36upx;height: 36upx;" src='../../static/sortb_up.png' />
|
|
|
+ <view :class="ishowpull ? 'active' : ''">分类
|
|
|
+ <img v-if="!ishowpull" style="width: 36upx;height: 36upx;" src='../../static/sortb.png' />
|
|
|
+ <img v-if="ishowpull" style="width: 36upx;height: 36upx;" src='../../static/sortb_up.png' />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="tabIndex==4">
|
|
|
- <view style="margin: 18upx 36upx;float: left;width: 110upx;text-align: center;"
|
|
|
+ <view v-if="ishowpull" style="display: flex;flex-wrap: wrap;padding: 10upx 12upx;">
|
|
|
+ <view class="spacedance"
|
|
|
v-for="(item, index) in classify" :key="index"
|
|
|
@click.stop="confirm(item)" >
|
|
|
{{item.gc_name}}
|
|
@@ -128,7 +128,18 @@
|
|
|
</van-tab>
|
|
|
<van-tab :name="2" title="酒店信息">
|
|
|
<view style="padding: 20upx 32upx 0upx 32upx;margin-bottom: 200upx;">
|
|
|
+ <view style="padding-bottom: 10upx;">商家信息</view>
|
|
|
<rich-text :nodes="store_description"></rich-text>
|
|
|
+ <view class="newadress">
|
|
|
+ <view>酒店地址</view>
|
|
|
+ <view v-if="storeinformation.store_address!='' ">{{storeinformation.store_address}}</view>
|
|
|
+ <view v-else>暂无</view>
|
|
|
+ </view>
|
|
|
+ <view class="newadress">
|
|
|
+ <view>联系酒店</view>
|
|
|
+ <view v-if="storeinformation.store_phone!='' ">{{storeinformation.store_phone}}</view>
|
|
|
+ <view v-else>暂无</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
@@ -163,6 +174,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ storeinformation: {},
|
|
|
isTop: 0,
|
|
|
hoteldetail: {},
|
|
|
has_collected: 0, // 收藏酒店
|
|
@@ -207,6 +219,7 @@
|
|
|
id:'3'
|
|
|
}
|
|
|
],
|
|
|
+ ishowpull: false,
|
|
|
classify: [],
|
|
|
background: ['color1', 'color2', 'color3'],
|
|
|
indicatorDots: true,
|
|
@@ -350,6 +363,7 @@
|
|
|
this.chosegoods_price = !this.chosegoods_price;
|
|
|
this.getshopdetail(2);
|
|
|
}else if(this.tabIndex ==4) { // 分类
|
|
|
+ this.ishowpull = !this.ishowpull;
|
|
|
this.istopclick = 0;
|
|
|
this.isprice = 0;
|
|
|
this.goods_price = '';
|
|
@@ -461,11 +475,20 @@
|
|
|
this.store_slide.push(item);
|
|
|
}
|
|
|
})
|
|
|
+ this.storeinformation = data;
|
|
|
this.store_summary = data.store_summary;
|
|
|
+
|
|
|
+ // const regex = new RegExp('<img', 'gi');
|
|
|
+ // console.log(data.store_description);
|
|
|
+ // data.store_description = data.store_description.replace(regex,
|
|
|
+ // `<img style="width: 100%;height: auto;display: block;text-align: center;`);
|
|
|
+ // this.store_description = data.store_description;
|
|
|
+
|
|
|
+
|
|
|
+ //data.store_description = data.store_description.replace(/\(<img\)/ig, '');
|
|
|
const regex = new RegExp('<img', 'gi');
|
|
|
- console.log(data.store_description);
|
|
|
data.store_description = data.store_description.replace(regex,
|
|
|
- `<img style="width: 100%;height: auto;display: block;text-align: center;`);
|
|
|
+ `<img style="width: 100%;height: auto!important;display: block;text-align: center;"`);
|
|
|
this.store_description = data.store_description;
|
|
|
this.has_collected = data.has_collected; // 是否收藏
|
|
|
}
|
|
@@ -478,6 +501,7 @@
|
|
|
},
|
|
|
confirm(e) {
|
|
|
this.tabIndex = 0;
|
|
|
+ this.ishowpull = false;
|
|
|
this.gc_id_1 = e.gc_id;
|
|
|
this.getshopdetail(2);
|
|
|
},
|
|
@@ -524,6 +548,18 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+ .van-tab--active {
|
|
|
+ color: #D9332E!important;
|
|
|
+ }
|
|
|
+ .newadress {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ border-bottom: 1px solid #F5F5F5;
|
|
|
+ padding: 15upx 0;
|
|
|
+ }
|
|
|
+ .changfecolor {
|
|
|
+ color: green;
|
|
|
+ }
|
|
|
.scrollswiper {
|
|
|
width: 100%;
|
|
|
position: relative;
|
|
@@ -563,13 +599,13 @@
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
.giveItem {
|
|
|
- height: 120rpx;
|
|
|
+ height: 150rpx;
|
|
|
flex: 1;
|
|
|
- width: 16%;
|
|
|
- min-width: 16%;
|
|
|
- max-width: 16%;
|
|
|
+ width: 14%;
|
|
|
+ min-width: 14%;
|
|
|
+ max-width: 14%;
|
|
|
/* margin: 24rpx 0 25rpx 4%; */
|
|
|
- margin: 24upx 2%;
|
|
|
+ margin: 24upx 3%;
|
|
|
}
|
|
|
.active {
|
|
|
color: #F76260;
|
|
@@ -615,7 +651,7 @@
|
|
|
|
|
|
}
|
|
|
.input-view {
|
|
|
- width: 85%;
|
|
|
+ width: 100%;
|
|
|
display: flex;
|
|
|
height: 30px;
|
|
|
border-radius: 15px;
|
|
@@ -625,7 +661,6 @@
|
|
|
line-height: 30px;
|
|
|
margin: 24upx auto;
|
|
|
background:rgba(0,0,0,1);
|
|
|
- border-radius:15px;
|
|
|
opacity:0.4;
|
|
|
}
|
|
|
|
|
@@ -655,4 +690,21 @@
|
|
|
display: block;
|
|
|
text-align: center;
|
|
|
}
|
|
|
+ .spacedance{
|
|
|
+ /* margin: 18upx 17upx;float: left;
|
|
|
+ width: 110upx;
|
|
|
+ border: 1px solid #666;
|
|
|
+ padding: 3upx 22upx;
|
|
|
+ text-align: center; */
|
|
|
+ border:1px solid #eee;
|
|
|
+ flex: 1;width: 20%;
|
|
|
+ text-align: center;
|
|
|
+ min-width: 20%;
|
|
|
+ max-width: 20%;
|
|
|
+ margin: 6rpx 0 15rpx 2%;
|
|
|
+ padding:4upx 8upx;
|
|
|
+ color: #666
|
|
|
+ }
|
|
|
+ /* 轮播切换图标字体红 */
|
|
|
+
|
|
|
</style>
|