deming/pageC/merchant/details.vue

137 lines
2.7 KiB
Vue
Raw Normal View History

2020-06-10 08:06:01 +00:00
<template>
<view class="details">
<view class="top">
2020-07-21 13:01:42 +00:00
<image :src="info.store_avatar"></image>
<view class="name">{{info.store_name}}</view>
<view class="info">创建时间{{store_addtime|date}} | {{info.live_store_address}}</view>
2020-06-10 08:06:01 +00:00
<view class="num">
<view>
2020-07-21 13:01:42 +00:00
<view class="value">{{info.store_collect}}</view>
2020-06-10 08:06:01 +00:00
<view class="title">粉丝数</view>
</view>
<view>
<view class="value">23435</view>
<view class="title">评价</view>
</view>
<view>
2020-07-21 13:01:42 +00:00
<view class="value">{{info.store_credit}}</view>
2020-06-10 08:06:01 +00:00
<view class="title">信用等级</view>
</view>
</view>
</view>
<view class="bottom">
<view class="title">
<view>工商执照</view>
<image></image>
</view>
<view class="image-list">
2020-07-21 13:01:42 +00:00
<image :src="info.business_licence_number_electronic"></image>
2020-06-10 08:06:01 +00:00
</view>
</view>
</view>
</template>
<script>
export default {
data() {
2020-07-21 13:01:42 +00:00
return {
info:{}
}
},
onLoad(){
this.$u.api.getStoreInfo({id:1}).then((res)=>{
console.log(res)
this.info = res.data
})
2020-06-10 08:06:01 +00:00
}
};
</script>
<style lang="scss" scoped>
.details {
min-height: calc(100vh - var(--window-top));
background-color: #ECECEC;
.top {
margin-top: 1rpx;
padding: 40rpx 80rpx;
text-align: center;
background-color: #ffffff;
> image {
width: 140rpx;
height: 140rpx;
border-radius: 70rpx;
margin-bottom: 29rpx;
background-color: aqua;
}
.name {
font-size: 28rpx;
font-weight: 500;
color: rgba(51,51,51,1);
margin-bottom: 29rpx;
}
.info {
font-size: 24rpx;
color: rgba(51,51,51,1);
margin-bottom: 37rpx;
}
.num {
display: flex;
justify-content: space-between;
> view {
text-align: center;
color: rgba(51,51,51,1);
position: relative;
&:not(:last-child)::after {
content: "";
position: absolute;
right: -77rpx;
top: 50%;
transform: translate(0, -50%);
width: 2rpx;
height: 60rpx;
background: rgba(51,51,51,1);
}
.value {
font-size: 32rpx;
font-weight: 500;
margin-bottom: 20rpx;
}
.title {
font-size: 24rpx;
}
}
}
}
.bottom {
.title {
padding: 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #ffffff;
margin-bottom: 1rpx;
> view {
font-size: 30rpx;
font-weight: 500;
color: rgba(51,51,51,1);
}
> image {
width: 24rpx;
height: 14rpx;
background-color: aqua;
}
}
.image-list {
background-color: #ffffff;
padding: 20rpx 30rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
> image {
width: 239rpx;
height: 170rpx;
flex-shrink: 0;
background-color: aqua;
}
}
}
}
</style>