绿满眶商城微信小程序-uniapp
xiangpei
6 天以前 70738d032bd80f5b13075f8a13045ff4de57c2c3
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
<template>
  <view class="container">
    <view class="list-cell b-b m-t" hover-class="cell-hover" :hover-stay-time="50">
      <u-row gutter="12" justify="start">
        <u-col span="2">
          <img
            class="list_img"
            src="https://web-assets.fancynode.com.cn/web_v1/images/pxcook/features/icon-cloud.png"
            alt
          />
        </u-col>
        <u-col span="7">
          <p class="tit_title">
            <img
              src="https://web-assets.fancynode.com.cn/web_v1/images/pxcook/features/icon-cloud.png"
              alt
            />
            在线客服
          </p>
          <p class="tit_tips">查看回复客服的消息</p>
        </u-col>
        <u-col span="3">
          <text class="cell-more">
            <p class="msgTime">2020-12-12</p>
            <span class="redBox">55</span>
          </text>
        </u-col>
      </u-row>
    </view>
  </view>
</template>
 
<script>
import { mapMutations } from "vuex";
import '@/components/uview-components/uview-ui'
export default {
  data() {
    return {};
  },
  methods: {
    ...mapMutations(["logout"]),
    
  }
};
</script>
 
<style scoped lang='scss'>
.msgTime {
  font-size: 13px;
}
page {
  background: $page-color-base;
}
.list_img {
  width: 100%;
  height: 100%;
  vertical-align: middle;
  border-radius: 0.4em;
}
.qicon {
  text-align: center;
  display: block;
  font-size: 20px;
}
.redBox {
  padding: 10rpx 12rpx;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  line-height: 1em;
  width: 1em;
  height: 1em;
  background: #ed6533;
  border-radius: 50%;
 
  color: #fff;
}
.tit_title,
.tit_tips {
  margin-left: 8rpx;
}
.tit_title {
  color: $u-main-color;
  > img {
    vertical-align: middle;
    margin-right: 10rpx;
    width: 40rpx;
    height: 40rpx;
  }
}
.tit_tips {
  color: $u-tips-color;
}
.list-cell {
  align-items: baseline;
  padding: 20rpx  30rpx;
  line-height: 60rpx;
  position: relative;
  background: #fff;
  justify-content: center;
  &.log-out-btn {
    margin-top: 40rpx;
    .cell-tit {
      color: $uni-color-primary;
      text-align: center;
      margin-right: 0;
    }
  }
  &.cell-hover {
    background: #fafafa;
  }
  &.b-b:after {
    left: 30rpx;
  }
  &.m-t {
    margin-top: 16rpx;
  }
  .cell-more {
    text-align: right;
    margin-top: 10rpx;
    height: 60rpx;
    display: flex;
    justify-content: center; //这个是X轴居中
    align-items: center; //这个是 Y轴居中
    align-self: baseline;
    font-size: $font-lg;
    color: $font-color-light;
    margin-left: 10rpx;
  }
  .cell-tit {
    flex: 1;
    font-size: $font-base + 2rpx;
    color: $font-color-dark;
    margin-right: 10rpx;
  }
  .cell-tip {
    font-size: $font-base;
    color: $font-color-light;
  }
}
</style>