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
| <template>
| <view class="link-box">
| <view :class="['link-bottom',index != 0 ? '' : '']" v-for="(item,index) in list" :key="index"
| @click="toPage(item.route)">
| <view style="color:#555;" class="link-left">
| <image :src="item.icon" style="width:22px;height:22px;margin-right:10px;"></image>
| {{item.title}}
| </view>{{item.value}}
| <!-- <image src="../static/right.png" style="width:20px;height:20px;"></image> -->
| </view>
| </view>
| </template>
|
| <script>
| import {
| minLogin
| } from '@/js/minLogin.js'
| export default {
| mixins: [minLogin],
| data() {
| return {
|
| }
| },
| props: {
| list: {
| type: Array,
| default: () => {
| return []
| }
| }
| },
| methods: {
| toPage(url) {
| console.log(url);
| if (url=='message') {
|
| this.$emit('message')
| }else if(url=='updatedata'){
| this.$emit('updatedata')
| }
|
|
| if (url) {
| let isLogin = this.checkLogin()
| if (isLogin) {
| return false;
| }
| uni.navigateTo({
| url: url
| });
| }
|
| }
| }
| }
| </script>
|
| <style scoped lang="scss">
| .link-box {
| width: 100%;
| background-color: #fff;
| border-radius: 8px;
| padding: 10px 0;
| }
|
| .link-left {
| display: flex;
| align-items: center;
| }
|
| .link-bottom {
| min-height: 42px;
| padding: 0 10px;
| display: flex;
| align-items: center;
| justify-content: space-between;
| }
|
| .link-bottom-border {
| border-top: 1px solid rgba(35, 35, 35, 0.1);
| }
| </style>
|
|