detail.vue
3.83 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<template>
<view style="background-color: #F7F7F7;">
<view class="top flex flex-wrap justify-content-between">
<view class="top-list " v-for="(item,index) of info.category" :key="index" @click="goNavT(item.id)">
<view class="img">
<image :src="'http://app.xn--43vp3ce98aj8m.com/'+item.image" v-if="item.image" mode="aspectFill"></image>
</view>
<view style="padding: 15rpx;">
<view style="font-size: 28rpx;font-weight: bold;" class="title">
{{item.name}}
</view>
<view class="text">
详情请与客服沟通后再下单
</view>
</view>
</view>
</view>
<!-- <view class="btn flex justify-content-center">
<view >点击查看更多{{show}}</view>
<uni-icons type="bottom" size="20" color="#3D3D3D"></uni-icons>
</view> -->
<view style="margin: 20rpx 15rpx;padding-bottom: 20rpx;">
<view class="flex justify-content-between list_user" v-for="(item,index) of info.user">
<view class="flex" style="align-items: center;">
<view style="width: 120rpx;">
<image :src="'http://app.xn--43vp3ce98aj8m.com/'+item.image" style="width: 100%;" mode="widthFix"></image>
</view>
<view style="color: #A8A8A8;font-size: 26rpx;margin-left: 20rpx;max-width: 180rpx;" class="title">{{item.name}}</view>
<view v-if="item.type==1" class="type">村长</view>
<view v-if="item.type==2" class="type1">社长</view>
<view v-if="item.type==3" class="type2">村民</view>
</view>
<view class="flex justify-content-between">
<view class="fa" @click="goNav('/pages/message/index')">发消息</view>
<view class="shi" @click="goNav('/pages/meeting/meeting')">视频连线</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
info:{},
show:false
}
},
onLoad(e) {
this.id=e.id
this.API.wanlshopGetShopInfo({
id:this.id
}).then(res=>{
this.info=res.data
this.info.user=this.info.user.sort((a,b)=>{
return a.type-b.type
})
this.$forceUpdate()
uni.setNavigationBarTitle({
title: res.data.shopname
});
})
},
methods:{
goNav(url){
uni.navigateTo({
url:url
})
},
goNavT(id){
uni.navigateTo({
url: `/pages/product/goods?id=${id}`
})
}
}
}
</script>
<style lang="scss" scoped>
.text {
color: #9E9E9E;
font-size: 22rpx;
padding: 10rpx 0 15rpx;
}
.top {
padding-top: 25rpx;
margin: 0 25rpx 0;
}
.top-list {
width: 48%;
image {
width: 100%;
height: 240rpx;
border-radius: 15rpx;
}
background-color: #fff;
margin-bottom:30rpx;
}
.img {
width: 100%;
}
.title {
white-space: nowrap; //文本强制不换行;
text-overflow: ellipsis; // 文本溢出显示省略号;
overflow: hidden; //溢出的部分隐藏;
}
.btn {
margin: 0 25rpx 25rpx;
background-color: #fff;
text-align: center;
height: 80rpx;
font-size: 24rpx;
align-items: center;
border-radius: 15rpx;
}
.list_user {
background-color: #fff;
padding: 20rpx;
border-radius: 15rpx;
align-items: center;
margin-bottom: 20rpx;
}
.fa {
padding: 10rpx;
color: #fff;
font-size: 24rpx;
background: linear-gradient(to right, #F06FD4, #F06FD4);
border-radius: 15rpx;
}
.shi {
padding: 10rpx;
color: #fff;
font-size: 24rpx;
background: linear-gradient(207deg, #D669BE 0%, #AF9FFF 100%);
border-radius: 15rpx;
margin-left: 10rpx;
}
.type{
color: #2E607C;
background-color: #E3F5FF;
font-size: 24rpx;
border-radius: 15rpx;
padding: 5rpx 20rpx ;
margin-left: 20rpx;
}
.type1{
color: #2E7C3B;
background-color: #E3FFEE;
font-size: 24rpx;
border-radius: 15rpx;
padding: 5rpx 20rpx ;
margin-left: 20rpx;
}
.type2{
color: #7d71b6;
background-color: #e1e5ff;
font-size: 24rpx;
border-radius: 15rpx;
padding: 5rpx 20rpx ;
margin-left: 20rpx;
}
</style>