You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
4.5 KiB

<template>
<!-- 拼团商家详情页 -->
1 month ago
<view class="page1">
<view class="title">
<view class="title-sreach">
<view class="back-btn" @tap="back" :style="{'top': menuButtonInfo.top +'px'}">
<uni-icons type="left" size="28"></uni-icons>
</view>
<view class="title-name" :style="{'padding-top': menuButtonInfo.top +'px'}">
商家详情
</view>
</view>
</view>
<view class="content">
<view class="box1" style="display: flex;">
<view class="left">
<view style="display: flex;">
3 weeks ago
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/3721d2aa18ac4700aa7ac4dfeb272b09.png" alt="" style="width: 48rpx;height: 48rpx;"/>
<text style="height: 48rpx;line-height: 48rpx;font-size: 28rpx;font-weight: 700;margin-left: 10rpx;">{{shopItem.shopName}}</text>
1 month ago
</view>
3 weeks ago
<view style="line-height: 60rpx;height: 60rpx;color: #777;">
1 month ago
<uni-icons type="location" size="13"></uni-icons>
3 weeks ago
<text style="padding-left: 10rpx;">{{shopItem.shopAddress}}</text>
1 month ago
</view>
3 weeks ago
<view style="line-height: 60rpx;height: 60rpx;color: #777;">
1 month ago
<uni-icons type="loop" size="13"></uni-icons>
3 weeks ago
<text style="padding-left: 10rpx;">周一到周日 {{shopItem.shopTakeaway.businessHourBegin}}-{{shopItem.shopTakeaway.businessHourEnd}}</text>
1 month ago
</view>
</view>
<view class="right">
3 weeks ago
<img @tap="makeCall(shopItem.contactPhone)" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png" alt="" style="width: 80rpx;height: 80rpx;position: absolute;top: 64rpx;right: 60rpx;"/>
1 month ago
</view>
</view>
<view class="box1">
<view style="display: flex;">
3 weeks ago
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/86004fa6b60e477ea1622fc0bf4c99de.png" alt="" style="width: 48rpx;height: 48rpx;" />
<text style="height: 48rpx;line-height: 48rpx;font-size: 28rpx;font-weight: 700;margin-left: 10rpx;">商家资质</text>
1 month ago
</view>
3 weeks ago
<view style="display: flex;margin-top: 20rpx;">
<img @tap="largeImg" :src="item" v-for="(item,index) in shopImages" :key="index" alt="" style="width: 156rpx;height: 48rpx;margin-right: 40rpx;" />
1 month ago
</view>
</view>
<view class="box1">
<view style="display: flex;">
3 weeks ago
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/00b1f011787c4549bbea650d95a4eb39.png" alt="" style="width: 48rpx;height: 48rpx;" />
<text style="height: 48rpx;line-height: 48rpx;font-size: 28rpx;font-weight: 700;margin-left: 10rpx;">商家公告</text>
1 month ago
</view>
3 weeks ago
<view style="color: #777;line-height: 48rpx;margin-top: 20rpx;">
1 month ago
公告{{shopItem.remark}}
1 month ago
</view>
</view>
</view>
<!-- 查看大图弹出层 -->
<uni-popup ref="imgPopup" background-color="#fff">
<view class="img-popup-content">
<img :src="bigImg" alt="" style="width: 100%;height: 100%;">
</view>
</uni-popup>
</view>
</template>
<script>
1 month ago
export default {
data() {
return {
menuButtonInfo: {},
isPintuan:true,
1 month ago
shopItem:{},
shopImages:[],
1 month ago
bigImg:''
}
},
components: {
1 month ago
1 month ago
},
1 month ago
onLoad(option) {
this.shopItem = JSON.parse(option.item)
this.shopImages = this.shopItem.shopImages.split('@@')
1 month ago
},
onShow() {
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
},
methods: {
//查看大图
largeImg(img) {
this.bigImg = 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/00b1f011787c4549bbea650d95a4eb39.png'
this.$refs.imgPopup.open()
},
//拨打电话
1 month ago
makeCall(phone) {
1 month ago
uni.makePhoneCall({
1 month ago
phoneNumber: phone
1 month ago
});
},
back() {
uni.navigateBack()
}
}
}
</script>
1 month ago
<style lang="scss">
1 month ago
page {
width: 100%;
height: 100%;
font-size: 24rpx;
background: #F5F8F5;
color: #00231C;
}
.page1 {
width: 100%;
height: 100%;
font-size: 24rpx;
position: relative;
}
.title{
background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/8bc15960c2dc40268e295d6dd23aecce.png') no-repeat;
width: 100%;
height: 54%;
}
.content{
position: absolute;
3 weeks ago
top: 200rpx;
1 month ago
width: 95%;
margin-left: 2.5%;
}
.title-sreach{
width: 100%;
display: flex;
height: 200rpx;
position: relative;
}
1 month ago
1 month ago
.back-btn{
position: absolute;
bottom: 0;
3 weeks ago
left: 20rpx;
1 month ago
}
.title-name{
3 weeks ago
padding-top: 110rpx;
1 month ago
font-size: 36rpx;
font-weight: 700;
flex: 1;
text-align: center;
}
.box1{
width: 95%;
3 weeks ago
margin: 0 auto 20rpx;
1 month ago
background: #fff;
3 weeks ago
border-radius: 20rpx;
padding: 20rpx;
1 month ago
}
.left{
3 weeks ago
width: 80%;
1 month ago
}
.right{
3 weeks ago
width: 20%;
3 weeks ago
height: 160rpx;
1 month ago
}
.img-popup-content {
width: 500rpx;
height: 500rpx;
}
</style>