<template>
|
|
<view class="shopbox" v-if="bindShop && bindShop.name">
|
|
<view class="shop">
|
|
<image class="image" :src="bindShop.pic" mode="aspectFill"></image>
|
|
<view class="shopInfo">
|
|
<view class="title">
|
|
{{bindShop.name}}
|
|
</view>
|
|
<view class="tags">
|
|
<view class="tag">
|
|
桌布水洗
|
|
</view>
|
|
<view class="tag">
|
|
桌布租赁
|
|
</view>
|
|
</view>
|
|
<view class="time">
|
|
9:00-18:00
|
|
</view>
|
|
<view class="address text-ellipsis-2">
|
|
{{bindShop.address}}
|
|
</view>
|
|
</view>
|
|
|
|
<view class="tips">
|
|
关联门店:主信门店
|
|
</view>
|
|
</view>
|
|
<view class="btns">
|
|
<view class="btn" @click="$utils.navigateTo('/pages_order/order/createWash')">
|
|
我要水洗
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters, mapState } from 'vuex'
|
|
export default {
|
|
computed : {
|
|
...mapGetters(['userShop']),
|
|
...mapState(['bindShop', 'statistics']),
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.shopbox{
|
|
position: relative;
|
|
background-color: #fff;
|
|
margin-top: 20rpx;
|
|
border-radius: 20rpx;
|
|
padding-bottom: 30rpx;
|
|
.btns {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
padding: 0 20rpx;
|
|
.btn {
|
|
background-color: $uni-color;
|
|
color: #fff;
|
|
box-shadow: 0 0 5rpx 5rpx #FFAC6E;
|
|
padding: 20rpx 0;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
border-radius: 35rpx;
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
.shop {
|
|
padding: 30rpx;
|
|
padding-top: 50rpx;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: 20rpx;
|
|
padding: 20rpx;
|
|
overflow: hidden;
|
|
|
|
.image {
|
|
width: 220rpx;
|
|
height: 220rpx;
|
|
margin-right: 20rpx;
|
|
border-radius: 20rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.shopInfo {
|
|
font-size: 24rpx;
|
|
|
|
.title {
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
|
|
.tag {
|
|
padding: 4rpx 6rpx;
|
|
border: 1rpx solid #FFAC6E;
|
|
color: #FFAC6E;
|
|
margin-right: 10rpx;
|
|
margin-top: 10rpx;
|
|
font-size: 22rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
}
|
|
|
|
.time {
|
|
margin-top: 10rpx;
|
|
display: flex;
|
|
}
|
|
|
|
.address {
|
|
margin-top: 10rpx;
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.tips {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
font-size: 24rpx;
|
|
color: #FFAC6E;
|
|
background-color: #FEF5EE;
|
|
padding: 10rpx 20rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
}
|
|
</style>
|