Jacob
2026-10-13 f28693c2364887b5486003fad766e1e3a364b115
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
<template>
  <div class="CustomerList">
    <div
      class="item acea-row row-between-wrapper"
      v-for="item in list"
      :key="item.id"
      @click="goPage(item)"
    >
      <div class="pictrue"><img :src="item.avatar" /></div>
      <div class="text line1">{{ item.nickname }}</div>
    </div>
    <home></home>
  </div>
</template>
<script>
import { serviceList } from "@/api/user";
import home from '@/components/home';
 
export default {
  name: "CustomerList",
  components:{
     home
  },
  data() {
    return {
      list: [],
      productId: 0,
      orderId: ""
    };
  },
  methods: {
    getList() {
      serviceList().then(res => {
        this.list = res.data;
      });
    },
   goPage(item){
       uni.navigateTo({
           url:'/pages/customer_list/chat?uid='+item.uid+'&productId='+ this.productId+'&orderId='+this.orderId
       })
   }
  },
  onLoad(option) {
    this.getList();
    if (option.productId)
      this.productId = option.productId;
   if (option.orderId) {
       this.orderId = option.orderId
   } 
  }
};
</script>
<style scoped>
.CustomerList {
  margin-top:13rpx;
}
.CustomerList .item {
  height: 138rpx;
  border-bottom: 1px solid #eee;
  padding: 0 24rpx;
  background-color: #fff;
}
.CustomerList .item .pictrue {
  width: 90rpx;
  height: 90rpx;
  border-radius: 50%;
  border: 3rpx solid #fff;
  box-shadow: 0 0 1rpx 5rpx #f3f3f3;
}
.CustomerList .item .pictrue img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.CustomerList .item .text {
  width: 582rpx;
  font-size: 32rpx;
  color: #000;
}
</style>