agree-info.vue
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
<view class="content">
<view class="bussniseBox">
<view class="imgBox">
<image :src="postData.logo" mode=""></image>
</view>
<view class="nameBox">
{{postData.name}}
</view>
</view>
<view class="addressBox">
地址:<text>{{postData.address}}</text>
</view>
</view>
</template>
<script>
import request from '../../utils/request.js'
export default {
data() {
return {
postData: ''
}
},
onLoad() {
this.getInfo()
},
methods: {
getInfo() {
request.get('/api/common/shop', {}).then(res => {
if (res.code == 1) {
this.postData = res.data
}
}).catch(err => {
})
}
}
}
</script>
<style>
.content {
min-height: 100vh;
background-color: #F7F8FA;
}
.bussniseBox {
padding: 32rpx;
box-sizing: border-box;
background-color: #FFF;
display: flex;
align-items: center;
}
.imgBox {
width: 100rpx;
height: 100rpx;
margin-right: 24rpx;
}
.imgBox image {
width: 100%;
height: 100%;
border-radius: 50%;
}
.nameBox {
color: #323233;
font-size: 34rpx;
font-weight: 600;
flex: 1;
}
.addressBox {
color: #323233;
font-size: 28rpx;
padding: 36rpx 32rpx;
box-sizing: border-box;
margin-top: 24rpx;
background-color: #fff;
}
.addressBox>text {
color: #646566;
font-size: 26rpx;
padding-left: 40rpx;
box-sizing: border-box;
}
</style>