xiaoe_mp_npm 0.5.48 → 1.0.0-live2

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.
Files changed (140) hide show
  1. package/miniprogram_dist/GoodsItem/index.json +6 -6
  2. package/miniprogram_dist/Task/TaskBubble/index.js +72 -0
  3. package/miniprogram_dist/Task/TaskBubble/index.json +4 -0
  4. package/miniprogram_dist/Task/TaskBubble/index.scss +125 -0
  5. package/miniprogram_dist/Task/TaskBubble/index.wxml +29 -0
  6. package/miniprogram_dist/Task/TaskBubble/index.wxss +289 -0
  7. package/miniprogram_dist/Task/TaskIcon/index.js +18 -0
  8. package/miniprogram_dist/Task/TaskIcon/index.json +4 -0
  9. package/miniprogram_dist/Task/TaskIcon/index.scss +69 -0
  10. package/miniprogram_dist/Task/TaskIcon/index.wxml +5 -0
  11. package/miniprogram_dist/Task/TaskIcon/index.wxss +127 -0
  12. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +27 -0
  13. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -0
  14. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.scss +0 -0
  15. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +10 -0
  16. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +176 -0
  17. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +5 -0
  18. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +132 -0
  19. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +43 -0
  20. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxs +8 -0
  21. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxss +362 -0
  22. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +114 -0
  23. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -0
  24. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +47 -0
  25. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +25 -0
  26. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxss +38 -0
  27. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +39 -0
  28. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +9 -0
  29. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +60 -0
  30. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +42 -0
  31. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxss +98 -0
  32. package/miniprogram_dist/Task/TaskPopup/index.js +69 -0
  33. package/miniprogram_dist/Task/TaskPopup/index.json +8 -0
  34. package/miniprogram_dist/Task/TaskPopup/index.scss +101 -0
  35. package/miniprogram_dist/Task/TaskPopup/index.wxml +55 -0
  36. package/miniprogram_dist/Task/TaskPopup/index.wxss +250 -0
  37. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.js +32 -0
  38. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.json +6 -0
  39. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.scss +83 -0
  40. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +50 -0
  41. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxss +163 -0
  42. package/miniprogram_dist/Task/taskReceivePopup/index.js +30 -0
  43. package/miniprogram_dist/Task/taskReceivePopup/index.json +11 -0
  44. package/miniprogram_dist/Task/taskReceivePopup/index.wxml +7 -0
  45. package/miniprogram_dist/Task/taskReceivePopup/index.wxss +1 -0
  46. package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +32 -0
  47. package/miniprogram_dist/Task/taskReceivePopup/integral/index.json +6 -0
  48. package/miniprogram_dist/Task/taskReceivePopup/integral/index.scss +60 -0
  49. package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +17 -0
  50. package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxss +94 -0
  51. package/package.json +1 -1
  52. package/src/AliveInvite/LiveRoomVertical/index.wxss +252 -252
  53. package/src/CollectionAddress/index.wxss +5 -5
  54. package/src/ConfirmOrder/components/AddressEdit/index.wxss +120 -120
  55. package/src/ConfirmOrder/components/AddressManage/index.wxss +98 -98
  56. package/src/ConfirmOrder/components/AddressSelect/index.wxss +67 -67
  57. package/src/ConfirmOrder/components/ChoosePicker/index.wxss +18 -18
  58. package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxss +45 -45
  59. package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxss +100 -100
  60. package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxss +55 -55
  61. package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxss +13 -13
  62. package/src/ConfirmOrder/components/Header/index.wxss +26 -26
  63. package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxss +85 -85
  64. package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxss +155 -155
  65. package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxss +51 -51
  66. package/src/ConfirmOrder/components/ModeSelect/index.wxss +44 -44
  67. package/src/ConfirmOrder/components/PickupSelect/index.wxss +22 -22
  68. package/src/ConfirmOrder/components/SelectSite/index.wxss +82 -82
  69. package/src/ConfirmOrder/components/Shipper/index.wxss +76 -76
  70. package/src/ConfirmOrder/components/ShipperEdit/index.wxss +78 -78
  71. package/src/ConfirmOrder/components/WechatAddress/index.wxss +22 -22
  72. package/src/ConfirmOrder/index.wxss +5 -5
  73. package/src/CouponList/couponMsg/index.wxss +3 -3
  74. package/src/CustomPopup/index.wxss +22 -22
  75. package/src/GoodsItem/index.json +6 -6
  76. package/src/PayComplete/Components/CouponItem/index.wxss +122 -122
  77. package/src/PayComplete/Components/Header/index.wxss +27 -27
  78. package/src/PayComplete/Components/LeadGroup/index.wxss +33 -33
  79. package/src/PayComplete/Components/PayGifts/index.wxss +157 -157
  80. package/src/PayComplete/Components/PayState/earnIntegral/index.wxss +23 -23
  81. package/src/PayComplete/Components/PayState/index.wxss +20 -20
  82. package/src/PayComplete/index.wxss +27 -27
  83. package/src/PayModule/wechatLoading/index.wxss +57 -57
  84. package/src/Recommend/index.wxss +110 -110
  85. package/src/Sku/Header/index.wxss +27 -27
  86. package/src/Sku/goods-info/index.wxss +52 -52
  87. package/src/Sku/index/index.wxss +52 -52
  88. package/src/Sku/row-item/index.wxss +50 -50
  89. package/src/Sku/step/index.wxss +11 -11
  90. package/src/Task/TaskBubble/index.js +72 -0
  91. package/src/Task/TaskBubble/index.json +4 -0
  92. package/src/Task/TaskBubble/index.scss +125 -0
  93. package/src/Task/TaskBubble/index.wxml +29 -0
  94. package/src/Task/TaskBubble/index.wxss +1 -0
  95. package/src/Task/TaskIcon/index.js +18 -0
  96. package/src/Task/TaskIcon/index.json +4 -0
  97. package/src/Task/TaskIcon/index.scss +69 -0
  98. package/src/Task/TaskIcon/index.wxml +5 -0
  99. package/src/Task/TaskIcon/index.wxss +1 -0
  100. package/src/Task/TaskPopup/component/RewardList/index.js +27 -0
  101. package/src/Task/TaskPopup/component/RewardList/index.json +6 -0
  102. package/src/Task/TaskPopup/component/RewardList/index.scss +0 -0
  103. package/src/Task/TaskPopup/component/RewardList/index.wxml +10 -0
  104. package/src/Task/TaskPopup/component/TaskItem/index.js +176 -0
  105. package/src/Task/TaskPopup/component/TaskItem/index.json +5 -0
  106. package/src/Task/TaskPopup/component/TaskItem/index.scss +132 -0
  107. package/src/Task/TaskPopup/component/TaskItem/index.wxml +43 -0
  108. package/src/Task/TaskPopup/component/TaskItem/index.wxs +8 -0
  109. package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -0
  110. package/src/Task/TaskPopup/component/TaskList/index.js +114 -0
  111. package/src/Task/TaskPopup/component/TaskList/index.json +7 -0
  112. package/src/Task/TaskPopup/component/TaskList/index.scss +47 -0
  113. package/src/Task/TaskPopup/component/TaskList/index.wxml +25 -0
  114. package/src/Task/TaskPopup/component/TaskList/index.wxss +1 -0
  115. package/src/Task/TaskPopup/component/TaskType/index.js +39 -0
  116. package/src/Task/TaskPopup/component/TaskType/index.json +9 -0
  117. package/src/Task/TaskPopup/component/TaskType/index.scss +60 -0
  118. package/src/Task/TaskPopup/component/TaskType/index.wxml +42 -0
  119. package/src/Task/TaskPopup/component/TaskType/index.wxss +1 -0
  120. package/src/Task/TaskPopup/index.js +69 -0
  121. package/src/Task/TaskPopup/index.json +8 -0
  122. package/src/Task/TaskPopup/index.scss +101 -0
  123. package/src/Task/TaskPopup/index.wxml +55 -0
  124. package/src/Task/TaskPopup/index.wxss +1 -0
  125. package/src/Task/taskReceivePopup/coupon/index.js +32 -0
  126. package/src/Task/taskReceivePopup/coupon/index.json +6 -0
  127. package/src/Task/taskReceivePopup/coupon/index.scss +83 -0
  128. package/src/Task/taskReceivePopup/coupon/index.wxml +50 -0
  129. package/src/Task/taskReceivePopup/coupon/index.wxss +1 -0
  130. package/src/Task/taskReceivePopup/index.js +30 -0
  131. package/src/Task/taskReceivePopup/index.json +11 -0
  132. package/src/Task/taskReceivePopup/index.wxml +7 -0
  133. package/src/Task/taskReceivePopup/index.wxss +1 -0
  134. package/src/Task/taskReceivePopup/integral/index.js +32 -0
  135. package/src/Task/taskReceivePopup/integral/index.json +6 -0
  136. package/src/Task/taskReceivePopup/integral/index.scss +60 -0
  137. package/src/Task/taskReceivePopup/integral/index.wxml +17 -0
  138. package/src/Task/taskReceivePopup/integral/index.wxss +1 -0
  139. package/src/common/css/theme.wxss +16 -16
  140. package/src/miniprogram_npm/miniprogram-computed/index.js +0 -1
@@ -1,6 +1,6 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "van-switch": "@vant/weapp/switch/index"
5
- }
6
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "van-switch": "@vant/weapp/switch/index"
5
+ }
6
+ }
@@ -0,0 +1,72 @@
1
+ Component({
2
+ /**
3
+ * 组件的属性列表
4
+ */
5
+ properties: {
6
+ messageContent: {
7
+ type: Object,
8
+ value: {},
9
+ },
10
+ },
11
+
12
+ /**
13
+ * 组件的初始数据
14
+ */
15
+ data: {
16
+ animationData: {},
17
+ },
18
+
19
+ lifetimes: {},
20
+
21
+ /**
22
+ * 组件的方法列表
23
+ */
24
+ methods: {
25
+ showBubble() {
26
+ const animation = wx.createAnimation({
27
+ duration: 1500,
28
+ timingFunction: 'ease',
29
+ })
30
+
31
+ animation.translateX(0).step()
32
+
33
+ this.setData({
34
+ animationData: animation.export(),
35
+ })
36
+ setTimeout(() => {
37
+ this.triggerEvent('afterEnter')
38
+ }, 1500)
39
+ },
40
+
41
+ hideBubble() {
42
+ const animation = wx.createAnimation({
43
+ duration: 1500,
44
+ timingFunction: 'ease',
45
+ })
46
+
47
+ animation.opacity(0).step()
48
+
49
+ this.setData({
50
+ animationData: animation.export(),
51
+ })
52
+
53
+ // 在动画结束后调用还原元素位置的函数
54
+ setTimeout(() => {
55
+ this.restoreElement()
56
+ this.triggerEvent('afterLeave')
57
+ }, 1500) // 设置延时与动画时长一致
58
+ },
59
+
60
+ restoreElement() {
61
+ const animation = wx.createAnimation({
62
+ duration: 0, // 立即执行,无过渡效果
63
+ })
64
+
65
+ animation.translateX(-500).opacity(1).step()
66
+
67
+ this.setData({
68
+ animationData: animation.export(),
69
+ })
70
+ },
71
+ },
72
+ })
@@ -0,0 +1,4 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {}
4
+ }
@@ -0,0 +1,125 @@
1
+ @function vmin($rpx) {
2
+ @return #{$rpx * 100 / $deviceWidth}vmin;
3
+ }
4
+
5
+ $deviceWidth: 750;
6
+
7
+ @mixin barrage-container {
8
+ color: #fff;
9
+ font-size: vmin(20);
10
+ margin-bottom: vmin(76);
11
+ .barrage-wrap {
12
+ display: flex;
13
+ .barrage-item {
14
+ position: relative;
15
+ background: linear-gradient(270deg, #ff781f00 0%, #ff8619c7 21.42%, #ff9a0feb 46.71%, #FC0 100%);
16
+ height: vmin(64);
17
+ font-size: vmin(24);
18
+ line-height: vmin(64);
19
+ border-radius: vmin(92);
20
+ transition: 0.3s;
21
+ transform: translateX(vmin(-500));
22
+
23
+ .barrage-content {
24
+ display: flex;
25
+ align-items: center;
26
+ }
27
+
28
+ .task-completion-icon {
29
+ width: vmin(48);
30
+ height: vmin(48);
31
+ border-radius: 50%;
32
+ margin-left: vmin(10);
33
+ flex-shrink: 0;
34
+ }
35
+ .task-type {
36
+ display: flex;
37
+ flex-direction: column;
38
+ margin-left: vmin(8);
39
+ overflow: hidden;
40
+ text-overflow: ellipsis;
41
+ white-space: nowrap;
42
+ view {
43
+ width: 100%;
44
+ overflow: hidden;
45
+ text-overflow: ellipsis;
46
+ white-space: nowrap;
47
+ }
48
+ }
49
+ .prize-icon {
50
+ width: vmin(56);
51
+ height: vmin(56);
52
+ display: flex;
53
+ justify-content: center;
54
+ align-items: center;
55
+ margin: 0 vmin(8);
56
+ }
57
+ .prize-num {
58
+ color: #FFF5CC;
59
+ font-weight: 500;
60
+ margin-right: vmin(8);
61
+ }
62
+ .right-arrow-icon{
63
+ height: vmin(40);
64
+ width: vmin(40);
65
+ margin-right: vmin(52);
66
+ }
67
+ &.barrage-item-show {
68
+ animation: taskFadeInLeft 1.5s both;
69
+ }
70
+ &.barrage-item-hide {
71
+ animation: taskFadeOut 1.5s both;
72
+ }
73
+ }
74
+ @keyframes taskFadeInLeft {
75
+ 0% {
76
+ transform: translateX(vmin(-500));
77
+ opacity: 1;
78
+ }
79
+ 100% {
80
+ transform: translateX(0);
81
+ opacity: 1;
82
+ }
83
+ }
84
+ @keyframes taskFadeOut {
85
+ 0% {
86
+ transform: translateX(0);
87
+ opacity: 1;
88
+ }
89
+ 100% {
90
+ transform: translateX(0);
91
+ opacity: 0;
92
+ }
93
+ }
94
+ @keyframes moveRight {
95
+ from {
96
+ transform: translateX(-100%);
97
+ }
98
+ to {
99
+ transform: translateX(0);
100
+ }
101
+ }
102
+ }
103
+ }
104
+
105
+ .barrage-container {
106
+ @include barrage-container;
107
+ }
108
+
109
+ // 竖屏pad
110
+ @media screen and (min-width: 768px) and (orientation: portrait) {
111
+ $deviceWidth: 1536 !global;
112
+
113
+ .barrage-container {
114
+ @include barrage-container;
115
+ }
116
+ }
117
+
118
+ // 横屏pad
119
+ @media screen and (min-height: 768px) and (orientation: landscape) {
120
+ $deviceWidth: 1536 !global;
121
+
122
+ .barrage-container {
123
+ @include barrage-container;
124
+ }
125
+ }
@@ -0,0 +1,29 @@
1
+ <view>
2
+ <view class="barrage-container">
3
+ <view class="barrage-wrap">
4
+ <view class="barrage-item" animation="{{animationData}}">
5
+ <view class="barrage-content">
6
+ <image
7
+ class="task-completion-icon"
8
+ src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopitz1y0c73.png"
9
+ alt
10
+ />
11
+ <view class="task-type">{{messageContent.id}}</view>
12
+ <view>达1小时</view>
13
+ <image
14
+ class="prize-icon"
15
+ src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopitz1y0v93.png"
16
+ alt="奖励"
17
+ />
18
+ <view class="prize-num">+1</view>
19
+ <image
20
+ class="right-arrow-icon"
21
+ src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopitz1k0dzj.png"
22
+ alt
23
+ />
24
+ </view>
25
+ </view>
26
+ </view>
27
+ </view>
28
+ </view>
29
+
@@ -0,0 +1,289 @@
1
+ .barrage-container {
2
+ color: #fff;
3
+ font-size: 2.66667vmin;
4
+ margin-bottom: 10.13333vmin;
5
+ }
6
+ .barrage-container .barrage-wrap {
7
+ display: flex;
8
+ }
9
+ .barrage-container .barrage-wrap .barrage-item {
10
+ position: relative;
11
+ background: linear-gradient(270deg, #ff781f00 0%, #ff8619c7 21.42%, #ff9a0feb 46.71%, #FC0 100%);
12
+ height: 8.53333vmin;
13
+ font-size: 3.2vmin;
14
+ line-height: 8.53333vmin;
15
+ border-radius: 12.26667vmin;
16
+ transition: 0.3s;
17
+ transform: translateX(-66.66667vmin);
18
+ }
19
+ .barrage-container .barrage-wrap .barrage-item .barrage-content {
20
+ display: flex;
21
+ align-items: center;
22
+ }
23
+ .barrage-container .barrage-wrap .barrage-item .task-completion-icon {
24
+ width: 6.4vmin;
25
+ height: 6.4vmin;
26
+ border-radius: 50%;
27
+ margin-left: 1.33333vmin;
28
+ flex-shrink: 0;
29
+ }
30
+ .barrage-container .barrage-wrap .barrage-item .task-type {
31
+ display: flex;
32
+ flex-direction: column;
33
+ margin-left: 1.06667vmin;
34
+ overflow: hidden;
35
+ text-overflow: ellipsis;
36
+ white-space: nowrap;
37
+ }
38
+ .barrage-container .barrage-wrap .barrage-item .task-type view {
39
+ width: 100%;
40
+ overflow: hidden;
41
+ text-overflow: ellipsis;
42
+ white-space: nowrap;
43
+ }
44
+ .barrage-container .barrage-wrap .barrage-item .prize-icon {
45
+ width: 7.46667vmin;
46
+ height: 7.46667vmin;
47
+ display: flex;
48
+ justify-content: center;
49
+ align-items: center;
50
+ margin: 0 1.06667vmin;
51
+ }
52
+ .barrage-container .barrage-wrap .barrage-item .prize-num {
53
+ color: #FFF5CC;
54
+ font-weight: 500;
55
+ margin-right: 1.06667vmin;
56
+ }
57
+ .barrage-container .barrage-wrap .barrage-item .right-arrow-icon {
58
+ height: 5.33333vmin;
59
+ width: 5.33333vmin;
60
+ margin-right: 6.93333vmin;
61
+ }
62
+ .barrage-container .barrage-wrap .barrage-item.barrage-item-show {
63
+ animation: taskFadeInLeft 1.5s both;
64
+ }
65
+ .barrage-container .barrage-wrap .barrage-item.barrage-item-hide {
66
+ animation: taskFadeOut 1.5s both;
67
+ }
68
+ @keyframes taskFadeInLeft {
69
+ 0% {
70
+ transform: translateX(-66.66667vmin);
71
+ opacity: 1;
72
+ }
73
+ 100% {
74
+ transform: translateX(0);
75
+ opacity: 1;
76
+ }
77
+ }
78
+ @keyframes taskFadeOut {
79
+ 0% {
80
+ transform: translateX(0);
81
+ opacity: 1;
82
+ }
83
+ 100% {
84
+ transform: translateX(0);
85
+ opacity: 0;
86
+ }
87
+ }
88
+ @keyframes moveRight {
89
+ from {
90
+ transform: translateX(-100%);
91
+ }
92
+ to {
93
+ transform: translateX(0);
94
+ }
95
+ }
96
+ @media screen and (min-width: 768px) and (orientation: portrait) {
97
+ .barrage-container {
98
+ color: #fff;
99
+ font-size: 1.30208vmin;
100
+ margin-bottom: 4.94792vmin;
101
+ }
102
+ .barrage-container .barrage-wrap {
103
+ display: flex;
104
+ }
105
+ .barrage-container .barrage-wrap .barrage-item {
106
+ position: relative;
107
+ background: linear-gradient(270deg, #ff781f00 0%, #ff8619c7 21.42%, #ff9a0feb 46.71%, #FC0 100%);
108
+ height: 4.16667vmin;
109
+ font-size: 1.5625vmin;
110
+ line-height: 4.16667vmin;
111
+ border-radius: 5.98958vmin;
112
+ transition: 0.3s;
113
+ transform: translateX(-32.55208vmin);
114
+ }
115
+ .barrage-container .barrage-wrap .barrage-item .barrage-content {
116
+ display: flex;
117
+ align-items: center;
118
+ }
119
+ .barrage-container .barrage-wrap .barrage-item .task-completion-icon {
120
+ width: 3.125vmin;
121
+ height: 3.125vmin;
122
+ border-radius: 50%;
123
+ margin-left: 0.65104vmin;
124
+ flex-shrink: 0;
125
+ }
126
+ .barrage-container .barrage-wrap .barrage-item .task-type {
127
+ display: flex;
128
+ flex-direction: column;
129
+ margin-left: 0.52083vmin;
130
+ overflow: hidden;
131
+ text-overflow: ellipsis;
132
+ white-space: nowrap;
133
+ }
134
+ .barrage-container .barrage-wrap .barrage-item .task-type view {
135
+ width: 100%;
136
+ overflow: hidden;
137
+ text-overflow: ellipsis;
138
+ white-space: nowrap;
139
+ }
140
+ .barrage-container .barrage-wrap .barrage-item .prize-icon {
141
+ width: 3.64583vmin;
142
+ height: 3.64583vmin;
143
+ display: flex;
144
+ justify-content: center;
145
+ align-items: center;
146
+ margin: 0 0.52083vmin;
147
+ }
148
+ .barrage-container .barrage-wrap .barrage-item .prize-num {
149
+ color: #FFF5CC;
150
+ font-weight: 500;
151
+ margin-right: 0.52083vmin;
152
+ }
153
+ .barrage-container .barrage-wrap .barrage-item .right-arrow-icon {
154
+ height: 2.60417vmin;
155
+ width: 2.60417vmin;
156
+ margin-right: 3.38542vmin;
157
+ }
158
+ .barrage-container .barrage-wrap .barrage-item.barrage-item-show {
159
+ animation: taskFadeInLeft 1.5s both;
160
+ }
161
+ .barrage-container .barrage-wrap .barrage-item.barrage-item-hide {
162
+ animation: taskFadeOut 1.5s both;
163
+ }
164
+ @keyframes taskFadeInLeft {
165
+ 0% {
166
+ transform: translateX(-32.55208vmin);
167
+ opacity: 1;
168
+ }
169
+ 100% {
170
+ transform: translateX(0);
171
+ opacity: 1;
172
+ }
173
+ }
174
+ @keyframes taskFadeOut {
175
+ 0% {
176
+ transform: translateX(0);
177
+ opacity: 1;
178
+ }
179
+ 100% {
180
+ transform: translateX(0);
181
+ opacity: 0;
182
+ }
183
+ }
184
+ @keyframes moveRight {
185
+ from {
186
+ transform: translateX(-100%);
187
+ }
188
+ to {
189
+ transform: translateX(0);
190
+ }
191
+ }
192
+ }
193
+ @media screen and (min-height: 768px) and (orientation: landscape) {
194
+ .barrage-container {
195
+ color: #fff;
196
+ font-size: 1.30208vmin;
197
+ margin-bottom: 4.94792vmin;
198
+ }
199
+ .barrage-container .barrage-wrap {
200
+ display: flex;
201
+ }
202
+ .barrage-container .barrage-wrap .barrage-item {
203
+ position: relative;
204
+ background: linear-gradient(270deg, #ff781f00 0%, #ff8619c7 21.42%, #ff9a0feb 46.71%, #FC0 100%);
205
+ height: 4.16667vmin;
206
+ font-size: 1.5625vmin;
207
+ line-height: 4.16667vmin;
208
+ border-radius: 5.98958vmin;
209
+ transition: 0.3s;
210
+ transform: translateX(-32.55208vmin);
211
+ }
212
+ .barrage-container .barrage-wrap .barrage-item .barrage-content {
213
+ display: flex;
214
+ align-items: center;
215
+ }
216
+ .barrage-container .barrage-wrap .barrage-item .task-completion-icon {
217
+ width: 3.125vmin;
218
+ height: 3.125vmin;
219
+ border-radius: 50%;
220
+ margin-left: 0.65104vmin;
221
+ flex-shrink: 0;
222
+ }
223
+ .barrage-container .barrage-wrap .barrage-item .task-type {
224
+ display: flex;
225
+ flex-direction: column;
226
+ margin-left: 0.52083vmin;
227
+ overflow: hidden;
228
+ text-overflow: ellipsis;
229
+ white-space: nowrap;
230
+ }
231
+ .barrage-container .barrage-wrap .barrage-item .task-type view {
232
+ width: 100%;
233
+ overflow: hidden;
234
+ text-overflow: ellipsis;
235
+ white-space: nowrap;
236
+ }
237
+ .barrage-container .barrage-wrap .barrage-item .prize-icon {
238
+ width: 3.64583vmin;
239
+ height: 3.64583vmin;
240
+ display: flex;
241
+ justify-content: center;
242
+ align-items: center;
243
+ margin: 0 0.52083vmin;
244
+ }
245
+ .barrage-container .barrage-wrap .barrage-item .prize-num {
246
+ color: #FFF5CC;
247
+ font-weight: 500;
248
+ margin-right: 0.52083vmin;
249
+ }
250
+ .barrage-container .barrage-wrap .barrage-item .right-arrow-icon {
251
+ height: 2.60417vmin;
252
+ width: 2.60417vmin;
253
+ margin-right: 3.38542vmin;
254
+ }
255
+ .barrage-container .barrage-wrap .barrage-item.barrage-item-show {
256
+ animation: taskFadeInLeft 1.5s both;
257
+ }
258
+ .barrage-container .barrage-wrap .barrage-item.barrage-item-hide {
259
+ animation: taskFadeOut 1.5s both;
260
+ }
261
+ @keyframes taskFadeInLeft {
262
+ 0% {
263
+ transform: translateX(-32.55208vmin);
264
+ opacity: 1;
265
+ }
266
+ 100% {
267
+ transform: translateX(0);
268
+ opacity: 1;
269
+ }
270
+ }
271
+ @keyframes taskFadeOut {
272
+ 0% {
273
+ transform: translateX(0);
274
+ opacity: 1;
275
+ }
276
+ 100% {
277
+ transform: translateX(0);
278
+ opacity: 0;
279
+ }
280
+ }
281
+ @keyframes moveRight {
282
+ from {
283
+ transform: translateX(-100%);
284
+ }
285
+ to {
286
+ transform: translateX(0);
287
+ }
288
+ }
289
+ }
@@ -0,0 +1,18 @@
1
+ Component({
2
+ /**
3
+ * 组件的属性列表
4
+ */
5
+ properties: {},
6
+
7
+ /**
8
+ * 组件的初始数据
9
+ */
10
+ data: {
11
+ alive_mode: 1,
12
+ },
13
+
14
+ /**
15
+ * 组件的方法列表
16
+ */
17
+ methods: {},
18
+ })
@@ -0,0 +1,4 @@
1
+ {
2
+ "component": true,
3
+ "usingComponents": {}
4
+ }
@@ -0,0 +1,69 @@
1
+ @function vmin($rpx) {
2
+ @return #{$rpx * 100 / $deviceWidth}vmin;
3
+ }
4
+
5
+ $deviceWidth: 750;
6
+
7
+ @mixin taskIcon {
8
+ z-index: 9;
9
+ box-sizing: border-box;
10
+ width: vmin(72);
11
+ height: vmin(72);
12
+ text-align: center;
13
+ padding: 0;
14
+ position: relative;
15
+ display: flex;
16
+ flex-direction: column;
17
+ align-items: center;
18
+ font-size: vmin(16);
19
+ height: 100%;
20
+ border-radius: vmin(16);
21
+ margin: 0 vmin(32) vmin(24) 0;
22
+ .task-icon {
23
+ flex-shrink: 0;
24
+ display: block;
25
+ width: vmin(64);
26
+ height: vmin(64);
27
+ background-image: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopok62p0l77.png');
28
+ background-size: 100% 100%;
29
+ }
30
+ .task-text {
31
+ width: vmin(64);
32
+ height: vmin(24);
33
+ line-height: vmin(24);
34
+ border-radius: vmin(12);
35
+ font-size: vmin(16);
36
+ background: rgba($color: #000000, $alpha: 0.4);
37
+ color: #fff;
38
+ }
39
+ &.verticalStyle{
40
+ margin: 0;
41
+ background: rgba($color: #000000, $alpha: 0.2);
42
+ .task-text{
43
+ position: absolute;
44
+ bottom: vmin(-2);
45
+ }
46
+ }
47
+ }
48
+
49
+ .taskIcon {
50
+ @include taskIcon;
51
+ }
52
+
53
+ // 竖屏pad
54
+ @media screen and (min-width: 768px) and (orientation: portrait) {
55
+ $deviceWidth: 1536 !global;
56
+
57
+ .taskIcon {
58
+ @include taskIcon;
59
+ }
60
+ }
61
+
62
+ // 横屏pad
63
+ @media screen and (min-height: 768px) and (orientation: landscape) {
64
+ $deviceWidth: 1536 !global;
65
+
66
+ .taskIcon {
67
+ @include taskIcon;
68
+ }
69
+ }
@@ -0,0 +1,5 @@
1
+ <view class="taskIcon {{alive_mode === 1? 'verticalStyle' : ''}}">
2
+ <view class="task-icon" />
3
+ <view class="task-text">得奖励</view>
4
+ </view>
5
+