gxd-uni-library-editx 1.0.72 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,10 +7,7 @@
|
|
|
7
7
|
:color="mainColor"
|
|
8
8
|
icon="iconchakan1"
|
|
9
9
|
></xd-font-icon>
|
|
10
|
-
<view class="cha_kan" :style="
|
|
11
|
-
backgroundColor: '#FFFFFF',
|
|
12
|
-
...lookStyle
|
|
13
|
-
}">查看</view>
|
|
10
|
+
<view class="cha_kan" :style="lookStyleUI">查看</view>
|
|
14
11
|
</view>
|
|
15
12
|
<view class="item-right">
|
|
16
13
|
<view class="item_info">
|
|
@@ -34,10 +31,7 @@
|
|
|
34
31
|
购买其他物品可抵:{{ cardInfo.other_card_point }}
|
|
35
32
|
</view>
|
|
36
33
|
</view>
|
|
37
|
-
<view class="btn" :style="
|
|
38
|
-
backgroundColor: mainColor,
|
|
39
|
-
...loginStyle
|
|
40
|
-
}">
|
|
34
|
+
<view class="btn" :style="loginStyleUI">
|
|
41
35
|
<view >{{ tabIndex === 1 ? loginName : "转换" }}</view>
|
|
42
36
|
</view>
|
|
43
37
|
</view>
|
|
@@ -58,7 +52,9 @@ export default {
|
|
|
58
52
|
},
|
|
59
53
|
cardInfo: {
|
|
60
54
|
type: Object,
|
|
61
|
-
default
|
|
55
|
+
default(){
|
|
56
|
+
return {}
|
|
57
|
+
}
|
|
62
58
|
},
|
|
63
59
|
tabIndex: {
|
|
64
60
|
type: Number,
|
|
@@ -74,11 +70,29 @@ export default {
|
|
|
74
70
|
},
|
|
75
71
|
loginStyle: {
|
|
76
72
|
type: Object,
|
|
77
|
-
default
|
|
73
|
+
default(){
|
|
74
|
+
return {}
|
|
75
|
+
}
|
|
78
76
|
},
|
|
79
77
|
lookStyle: {
|
|
80
78
|
type: Object,
|
|
81
|
-
default
|
|
79
|
+
default(){
|
|
80
|
+
return {}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
computed:{
|
|
85
|
+
lookStyleUI(){
|
|
86
|
+
return {
|
|
87
|
+
backgroundColor:'#FFFFFF',
|
|
88
|
+
...this.lookStyle,
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
loginStyleUI(){
|
|
92
|
+
return {
|
|
93
|
+
backgroundColor:this.mainColor,
|
|
94
|
+
...this.loginStyle
|
|
95
|
+
}
|
|
82
96
|
}
|
|
83
97
|
},
|
|
84
98
|
data(){
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="skeleton-card-item">
|
|
3
|
+
<view class="item-left">
|
|
4
|
+
<view class="cha_kan"></view>
|
|
5
|
+
</view>
|
|
6
|
+
<view class="item-right">
|
|
7
|
+
<view class="item_info">
|
|
8
|
+
<view class="_title"></view>
|
|
9
|
+
<view class="identify"></view>
|
|
10
|
+
<view class="remain"></view>
|
|
11
|
+
</view>
|
|
12
|
+
<view class="btn"> </view>
|
|
13
|
+
</view>
|
|
14
|
+
</view>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
export default {
|
|
19
|
+
name:'XdCardV2Skeleton'
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style lang="less" scoped>
|
|
24
|
+
.skeleton-card-item {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: flex-start;
|
|
28
|
+
border: unit(2, rpx) solid #eeeeee;
|
|
29
|
+
border-radius: unit(20, rpx);
|
|
30
|
+
margin-bottom: unit(30, rpx);
|
|
31
|
+
background: #fff;
|
|
32
|
+
.item-left {
|
|
33
|
+
width: unit(140, rpx);
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
.cha_kan{
|
|
39
|
+
.skeleton-item(60rpx, 60rpx);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.item-right {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex: 1;
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
align-items: center;
|
|
48
|
+
padding: unit(24, rpx);
|
|
49
|
+
border-left: 1px solid #eeeeee;
|
|
50
|
+
.item_info {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
flex: 1;
|
|
55
|
+
padding-right: 50rpx;
|
|
56
|
+
|
|
57
|
+
._title{
|
|
58
|
+
.skeleton-item(auto, 24rpx);
|
|
59
|
+
}
|
|
60
|
+
.identify{
|
|
61
|
+
.skeleton-item(auto, 84rpx);
|
|
62
|
+
margin-top: unit(24, rpx);
|
|
63
|
+
}
|
|
64
|
+
.remain{
|
|
65
|
+
.skeleton-item(auto, 24rpx);
|
|
66
|
+
margin-top: unit(24, rpx);
|
|
67
|
+
}
|
|
68
|
+
.other{
|
|
69
|
+
.skeleton-item(auto, 24rpx);
|
|
70
|
+
margin-top: unit(8, rpx);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.btn{
|
|
74
|
+
.skeleton-item(110rpx, 104rpx, 8rpx);
|
|
75
|
+
padding: 0 unit(16, rpx);
|
|
76
|
+
margin-left: unit(10, rpx);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
</style>
|