xiaoe_mp_npm 1.0.0-live2 → 1.0.0-live3

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 (28) hide show
  1. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +27 -27
  2. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -6
  3. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +10 -10
  4. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +3 -3
  5. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +5 -5
  6. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +131 -131
  7. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +3 -3
  8. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -7
  9. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +46 -46
  10. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +9 -9
  11. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +59 -59
  12. package/package.json +1 -1
  13. package/src/LiveGoodsList/index.wxss +230 -230
  14. package/src/Task/TaskPopup/component/RewardList/index.js +27 -27
  15. package/src/Task/TaskPopup/component/RewardList/index.json +6 -6
  16. package/src/Task/TaskPopup/component/RewardList/index.wxml +10 -10
  17. package/src/Task/TaskPopup/component/TaskItem/index.js +3 -3
  18. package/src/Task/TaskPopup/component/TaskItem/index.json +5 -5
  19. package/src/Task/TaskPopup/component/TaskItem/index.scss +131 -131
  20. package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -1
  21. package/src/Task/TaskPopup/component/TaskList/index.js +3 -3
  22. package/src/Task/TaskPopup/component/TaskList/index.json +7 -7
  23. package/src/Task/TaskPopup/component/TaskList/index.scss +46 -46
  24. package/src/Task/TaskPopup/component/TaskList/index.wxss +1 -1
  25. package/src/Task/TaskPopup/component/TaskType/index.json +9 -9
  26. package/src/Task/TaskPopup/component/TaskType/index.scss +59 -59
  27. package/src/Task/TaskPopup/component/TaskType/index.wxss +1 -1
  28. package/src/Task/TaskPopup/index.wxss +1 -1
@@ -1,27 +1,27 @@
1
- const computedBehavior = require('miniprogram-computed').behavior
2
- Component({
3
- behaviors: [computedBehavior],
4
- properties: {
5
- rewardList:{
6
- type:Array,
7
- value:()=>{
8
- return []
9
- }
10
- },
11
- },
12
- data: {
13
- activeNames:["1"],
14
- },
15
- lifetimes: {
16
- // 生命周期函数,可以为函数,或一个在methods段中定义的方法名
17
- attached: function () {
18
-
19
- },
20
- moved: function () { },
21
- detached: function () { },
22
- },
23
- methods: {
24
- onChange(){}
25
- },
26
- observers: {},
27
- })
1
+ const computedBehavior = require('miniprogram-computed').behavior
2
+ Component({
3
+ behaviors: [computedBehavior],
4
+ properties: {
5
+ rewardList:{
6
+ type:Array,
7
+ value:()=>{
8
+ return []
9
+ }
10
+ },
11
+ },
12
+ data: {
13
+ activeNames:["1"],
14
+ },
15
+ lifetimes: {
16
+ // 生命周期函数,可以为函数,或一个在methods段中定义的方法名
17
+ attached: function () {
18
+
19
+ },
20
+ moved: function () { },
21
+ detached: function () { },
22
+ },
23
+ methods: {
24
+ onChange(){}
25
+ },
26
+ observers: {},
27
+ })
@@ -1,6 +1,6 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "task-item":"../TaskItem"
5
- }
6
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "task-item":"../TaskItem"
5
+ }
6
+ }
@@ -1,10 +1,10 @@
1
- <scroll-view class="goods-list" scroll-y="true" bindrefresherrefresh="onLoad" refresher-enabled="{{true}}">
2
- <task-item
3
- wx:for="{{rewardList}}"
4
- wx:for-item="item"
5
- wx:for-index="index"
6
- listType="reward"
7
- isRadius="{{true}}"
8
- taskItem="{{item}}"
9
- />
10
- </scroll-view>
1
+ <scroll-view class="goods-list" scroll-y="true" bindrefresherrefresh="onLoad" refresher-enabled="{{true}}">
2
+ <task-item
3
+ wx:for="{{rewardList}}"
4
+ wx:for-item="item"
5
+ wx:for-index="index"
6
+ listType="reward"
7
+ isRadius="{{true}}"
8
+ taskItem="{{item}}"
9
+ />
10
+ </scroll-view>
@@ -61,15 +61,15 @@ Component({
61
61
  taskBelongType = 1
62
62
  }else if(task_type === 2){
63
63
  switch(task_condition){
64
- case 1:
64
+ case "1":
65
65
  // 评论
66
66
  taskBelongType = 2
67
67
  break;
68
- case 2:
68
+ case "2":
69
69
  // 转发
70
70
  taskBelongType = 3
71
71
  break;
72
- case 3:
72
+ case "3":
73
73
  // 点赞
74
74
  taskBelongType = 4
75
75
  break
@@ -1,5 +1,5 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- }
5
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ }
5
+ }
@@ -1,132 +1,132 @@
1
- $deviceWidth: 750;
2
-
3
- @function vmin($rpx) {
4
- @return #{$rpx * 100 / $deviceWidth}vmin;
5
- }
6
-
7
- @mixin item-box{
8
- display: flex;
9
- align-items: center;
10
- justify-content: space-between;
11
- padding: vmin(32) vmin(24);
12
- background: #FFFFFF;
13
- &.line-class{
14
- position: relative;
15
- &::after{
16
- position: absolute;
17
- box-sizing: border-box;
18
- content: ' ';
19
- pointer-events: none;
20
- right: vmin(32);
21
- bottom: 0;
22
- left: vmin(32);
23
- border-bottom: 1px solid #ebedf0;
24
- -webkit-transform: scaleY(0.5);
25
- transform: scaleY(0.5);
26
- }
27
- }
28
- &.bg-change{
29
- background: linear-gradient(180deg, #FFF3EB 0%, #FFF 100%);
30
- }
31
- &.radius{
32
- border-radius: vmin(16);
33
- }
34
- .left{
35
- max-width: vmin(462);
36
- .first{
37
- line-height: vmin(40);
38
- display: flex;
39
- align-items: center;
40
- .title{
41
- font-size: vmin(28);
42
- font-weight: 500;
43
- color: #333333;
44
- }
45
- .reward{
46
- margin-left: vmin(16);
47
- color: #FF781F;
48
- font-size: vmin(24);
49
- display: flex;
50
- align-items: center;
51
- .reward-img{
52
- width: vmin(24);
53
- height: vmin(24);
54
- }
55
- .reward-text{
56
- margin-left: vmin(8);
57
- }
58
- }
59
- }
60
-
61
- .time{
62
- margin-top: vmin(8);
63
- font-size: vmin(24);
64
- color: #999999;
65
- line-height: vmin(32);
66
- }
67
-
68
- .residue-time{
69
- margin-top: vmin(8);
70
- font-size: vmin(24);
71
- color: #FFA114;
72
- line-height: vmin(32);
73
- }
74
- }
75
-
76
- .btn{
77
- // padding: 0.12rem 0.36rem;
78
- width: vmin(144);
79
- height: vmin(56);
80
- background: linear-gradient(270deg, #FF781F 0%, #FB0 100%);
81
- border-radius: vmin(72);
82
- color: #FFFFFF;
83
- font-weight: 500;
84
- font-size: vmin(24);
85
- display: flex;
86
- justify-content: center;
87
- align-items: center;
88
- line-height: vmin(32);
89
- &.reward-btn{
90
- border: vmin(1) solid #1472FF;
91
- background: #FFF;
92
- color: #1472FF;
93
- }
94
-
95
- &.gray-btn{
96
- background: #F5F5F5;
97
- color: #B2B2B2;
98
- }
99
- }
100
-
101
- }
102
-
103
- .item-box {
104
- @include item-box;
105
- }
106
-
107
- // 竖屏pad
108
- @media screen and (min-width: 768px) and (orientation: portrait) {
109
- $deviceWidth: 1536 !global;
110
-
111
- .item-box {
112
- @include item-box;
113
- }
114
- }
115
-
116
- // PC 放大适配
117
- @media screen and (min-height: 630px) and (orientation: landscape) {
118
- $deviceWidth: 1260 !global;
119
-
120
- .item-box {
121
- @include item-box;
122
- }
123
- }
124
-
125
- // 横屏pad
126
- @media screen and (min-height: 768px) and (orientation: landscape) {
127
- $deviceWidth: 1536 !global;
128
-
129
- .item-box {
130
- @include item-box;
131
- }
1
+ $deviceWidth: 750;
2
+
3
+ @function vmin($rpx) {
4
+ @return #{$rpx * 100 / $deviceWidth}vmin;
5
+ }
6
+
7
+ @mixin item-box{
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ padding: vmin(32) vmin(24);
12
+ background: #FFFFFF;
13
+ &.line-class{
14
+ position: relative;
15
+ &::after{
16
+ position: absolute;
17
+ box-sizing: border-box;
18
+ content: ' ';
19
+ pointer-events: none;
20
+ right: vmin(32);
21
+ bottom: 0;
22
+ left: vmin(32);
23
+ border-bottom: 1px solid #ebedf0;
24
+ -webkit-transform: scaleY(0.5);
25
+ transform: scaleY(0.5);
26
+ }
27
+ }
28
+ &.bg-change{
29
+ background: linear-gradient(180deg, #FFF3EB 0%, #FFF 100%);
30
+ }
31
+ &.radius{
32
+ border-radius: vmin(16);
33
+ }
34
+ .left{
35
+ max-width: vmin(462);
36
+ .first{
37
+ line-height: vmin(40);
38
+ display: flex;
39
+ align-items: center;
40
+ .title{
41
+ font-size: vmin(28);
42
+ font-weight: 500;
43
+ color: #333333;
44
+ }
45
+ .reward{
46
+ margin-left: vmin(16);
47
+ color: #FF781F;
48
+ font-size: vmin(24);
49
+ display: flex;
50
+ align-items: center;
51
+ .reward-img{
52
+ width: vmin(24);
53
+ height: vmin(24);
54
+ }
55
+ .reward-text{
56
+ margin-left: vmin(8);
57
+ }
58
+ }
59
+ }
60
+
61
+ .time{
62
+ margin-top: vmin(8);
63
+ font-size: vmin(24);
64
+ color: #999999;
65
+ line-height: vmin(32);
66
+ }
67
+
68
+ .residue-time{
69
+ margin-top: vmin(8);
70
+ font-size: vmin(24);
71
+ color: #FFA114;
72
+ line-height: vmin(32);
73
+ }
74
+ }
75
+
76
+ .btn{
77
+ // padding: 0.12rem 0.36rem;
78
+ width: vmin(144);
79
+ height: vmin(56);
80
+ background: linear-gradient(270deg, #FF781F 0%, #FB0 100%);
81
+ border-radius: vmin(72);
82
+ color: #FFFFFF;
83
+ font-weight: 500;
84
+ font-size: vmin(24);
85
+ display: flex;
86
+ justify-content: center;
87
+ align-items: center;
88
+ line-height: vmin(32);
89
+ &.reward-btn{
90
+ border: vmin(1) solid #1472FF;
91
+ background: #FFF;
92
+ color: #1472FF;
93
+ }
94
+
95
+ &.gray-btn{
96
+ background: #F5F5F5;
97
+ color: #B2B2B2;
98
+ }
99
+ }
100
+
101
+ }
102
+
103
+ .item-box {
104
+ @include item-box;
105
+ }
106
+
107
+ // 竖屏pad
108
+ @media screen and (min-width: 768px) and (orientation: portrait) {
109
+ $deviceWidth: 1536 !global;
110
+
111
+ .item-box {
112
+ @include item-box;
113
+ }
114
+ }
115
+
116
+ // PC 放大适配
117
+ @media screen and (min-height: 630px) and (orientation: landscape) {
118
+ $deviceWidth: 1260 !global;
119
+
120
+ .item-box {
121
+ @include item-box;
122
+ }
123
+ }
124
+
125
+ // 横屏pad
126
+ @media screen and (min-height: 768px) and (orientation: landscape) {
127
+ $deviceWidth: 1536 !global;
128
+
129
+ .item-box {
130
+ @include item-box;
131
+ }
132
132
  }
@@ -39,15 +39,15 @@ Component({
39
39
  icon = "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lomu3vma0z2d.png"
40
40
  }else if(obj.task_type === 2){
41
41
  switch(obj.task_condition){
42
- case 1:
42
+ case "1":
43
43
  title = "评论"
44
44
  icon = "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lonymngu00pw.png"
45
45
  break;
46
- case 2:
46
+ case "2":
47
47
  title = "分享"
48
48
  icon = "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lonymnhi03sf.png"
49
49
  break;
50
- case 3:
50
+ case "3":
51
51
  title = "点赞"
52
52
  icon = "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lonymnhk0dwo.png"
53
53
  break;
@@ -1,7 +1,7 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "task-type": "../TaskType",
5
- "task-item": "../TaskItem"
6
- }
7
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "task-type": "../TaskType",
5
+ "task-item": "../TaskItem"
6
+ }
7
+ }
@@ -1,47 +1,47 @@
1
- $deviceWidth: 750;
2
-
3
- @function vmin($rpx) {
4
- @return #{$rpx * 100 / $deviceWidth}vmin;
5
- }
6
-
7
- @mixin task-list{
8
- .error-box{
9
- background: #fff;
10
- padding: vmin(2) vmin(2) 0 vmin(2);
11
- position: relative;
12
- margin-bottom: vmin(24);
13
- border-radius: vmin(16);
14
- overflow: hidden;
15
- }
16
- }
17
-
18
- .task-list {
19
- @include task-list;
20
- }
21
-
22
- // 竖屏pad
23
- @media screen and (min-width: 768px) and (orientation: portrait) {
24
- $deviceWidth: 1536 !global;
25
-
26
- .task-list {
27
- @include task-list;
28
- }
29
- }
30
-
31
- // PC 放大适配
32
- @media screen and (min-height: 630px) and (orientation: landscape) {
33
- $deviceWidth: 1260 !global;
34
-
35
- .task-list {
36
- @include task-list;
37
- }
38
- }
39
-
40
- // 横屏pad
41
- @media screen and (min-height: 768px) and (orientation: landscape) {
42
- $deviceWidth: 1536 !global;
43
-
44
- .task-list {
45
- @include task-list;
46
- }
1
+ $deviceWidth: 750;
2
+
3
+ @function vmin($rpx) {
4
+ @return #{$rpx * 100 / $deviceWidth}vmin;
5
+ }
6
+
7
+ @mixin task-list{
8
+ .error-box{
9
+ background: #fff;
10
+ padding: vmin(2) vmin(2) 0 vmin(2);
11
+ position: relative;
12
+ margin-bottom: vmin(24);
13
+ border-radius: vmin(16);
14
+ overflow: hidden;
15
+ }
16
+ }
17
+
18
+ .task-list {
19
+ @include task-list;
20
+ }
21
+
22
+ // 竖屏pad
23
+ @media screen and (min-width: 768px) and (orientation: portrait) {
24
+ $deviceWidth: 1536 !global;
25
+
26
+ .task-list {
27
+ @include task-list;
28
+ }
29
+ }
30
+
31
+ // PC 放大适配
32
+ @media screen and (min-height: 630px) and (orientation: landscape) {
33
+ $deviceWidth: 1260 !global;
34
+
35
+ .task-list {
36
+ @include task-list;
37
+ }
38
+ }
39
+
40
+ // 横屏pad
41
+ @media screen and (min-height: 768px) and (orientation: landscape) {
42
+ $deviceWidth: 1536 !global;
43
+
44
+ .task-list {
45
+ @include task-list;
46
+ }
47
47
  }
@@ -1,9 +1,9 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "van-collapse": "@vant/weapp/collapse/index",
5
- "van-collapse-item": "@vant/weapp/collapse-item/index",
6
- "van-icon": "@vant/weapp/icon/index",
7
- "task-item": "../TaskItem"
8
- }
9
- }
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "van-collapse": "@vant/weapp/collapse/index",
5
+ "van-collapse-item": "@vant/weapp/collapse-item/index",
6
+ "van-icon": "@vant/weapp/icon/index",
7
+ "task-item": "../TaskItem"
8
+ }
9
+ }
@@ -1,60 +1,60 @@
1
- $deviceWidth: 750;
2
-
3
- @function vmin($rpx) {
4
- @return #{$rpx * 100 / $deviceWidth}vmin;
5
- }
6
-
7
- @mixin collapse{
8
- margin-bottom: vmin(24);
9
- border-radius: vmin(16);
10
- overflow: hidden;
11
- .content{
12
- padding: 0;
13
- }
14
- .task-item {
15
- display: flex;
16
- align-items: center;
17
- .type-img {
18
- width: vmin(80);
19
- height: vmin(80);
20
- }
21
- .type-title {
22
- margin-left: vmin(16);
23
- }
24
- }
25
- .icon{
26
- display: flex;
27
- align-items: center;
28
- }
29
- }
30
-
31
- .collapse {
32
- @include collapse;
33
- }
34
-
35
- // 竖屏pad
36
- @media screen and (min-width: 768px) and (orientation: portrait) {
37
- $deviceWidth: 1536 !global;
38
-
39
- .collapse {
40
- @include collapse;
41
- }
42
- }
43
-
44
- // PC 放大适配
45
- @media screen and (min-height: 630px) and (orientation: landscape) {
46
- $deviceWidth: 1260 !global;
47
-
48
- .collapse {
49
- @include collapse;
50
- }
51
- }
52
-
53
- // 横屏pad
54
- @media screen and (min-height: 768px) and (orientation: landscape) {
55
- $deviceWidth: 1536 !global;
56
-
57
- .collapse {
58
- @include collapse;
59
- }
1
+ $deviceWidth: 750;
2
+
3
+ @function vmin($rpx) {
4
+ @return #{$rpx * 100 / $deviceWidth}vmin;
5
+ }
6
+
7
+ @mixin collapse{
8
+ margin-bottom: vmin(24);
9
+ border-radius: vmin(16);
10
+ overflow: hidden;
11
+ .content{
12
+ padding: 0;
13
+ }
14
+ .task-item {
15
+ display: flex;
16
+ align-items: center;
17
+ .type-img {
18
+ width: vmin(80);
19
+ height: vmin(80);
20
+ }
21
+ .type-title {
22
+ margin-left: vmin(16);
23
+ }
24
+ }
25
+ .icon{
26
+ display: flex;
27
+ align-items: center;
28
+ }
29
+ }
30
+
31
+ .collapse {
32
+ @include collapse;
33
+ }
34
+
35
+ // 竖屏pad
36
+ @media screen and (min-width: 768px) and (orientation: portrait) {
37
+ $deviceWidth: 1536 !global;
38
+
39
+ .collapse {
40
+ @include collapse;
41
+ }
42
+ }
43
+
44
+ // PC 放大适配
45
+ @media screen and (min-height: 630px) and (orientation: landscape) {
46
+ $deviceWidth: 1260 !global;
47
+
48
+ .collapse {
49
+ @include collapse;
50
+ }
51
+ }
52
+
53
+ // 横屏pad
54
+ @media screen and (min-height: 768px) and (orientation: landscape) {
55
+ $deviceWidth: 1536 !global;
56
+
57
+ .collapse {
58
+ @include collapse;
59
+ }
60
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "1.0.0-live2",
3
+ "version": "1.0.0-live3",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {