xiaoe_mp_npm 0.5.39 → 0.5.40-alpha2

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 (81) hide show
  1. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +37 -0
  2. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxss +25 -1
  3. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.scss +215 -0
  4. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxss +360 -36
  5. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.scss +83 -0
  6. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxss +118 -14
  7. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.scss +51 -0
  8. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxss +46 -2
  9. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.scss +32 -0
  10. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxss +18 -2
  11. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.scss +54 -0
  12. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxss +55 -3
  13. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.scss +41 -0
  14. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.wxss +35 -3
  15. package/miniprogram_dist/CouponList/components/CouponItem/index.js +83 -91
  16. package/miniprogram_dist/CouponList/components/CouponItem/index.scss +130 -132
  17. package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +624 -78
  18. package/miniprogram_dist/CouponList/couponColumn/index.scss +106 -0
  19. package/miniprogram_dist/CouponList/couponColumn/index.wxss +159 -33
  20. package/miniprogram_dist/GoodsItem/index.js +21 -3
  21. package/miniprogram_dist/GoodsItem/index.scss +323 -0
  22. package/miniprogram_dist/GoodsItem/index.wxml +1 -1
  23. package/miniprogram_dist/GoodsItem/index.wxss +630 -85
  24. package/miniprogram_dist/GoodsRecommend/index.scss +154 -0
  25. package/miniprogram_dist/GoodsRecommend/index.wxss +289 -33
  26. package/miniprogram_dist/LiveGoodsList/Header/index.scss +71 -0
  27. package/miniprogram_dist/LiveGoodsList/Header/index.wxss +102 -10
  28. package/miniprogram_dist/LiveGoodsList/index.js +8 -1
  29. package/miniprogram_dist/LiveGoodsList/index.scss +80 -0
  30. package/miniprogram_dist/LiveGoodsList/index.wxml +56 -33
  31. package/miniprogram_dist/LiveGoodsList/index.wxss +123 -19
  32. package/miniprogram_dist/PayModule/button/index.scss +37 -0
  33. package/miniprogram_dist/PayModule/button/index.wxss +32 -4
  34. package/miniprogram_dist/common/utils/index.js +9 -0
  35. package/miniprogram_dist/coupon/components/CouponItem/index.less +1 -0
  36. package/miniprogram_dist/coupon/components/CouponItem/index.scss +239 -0
  37. package/miniprogram_dist/coupon/components/CouponSelect/index.scss +319 -0
  38. package/miniprogram_dist/coupon/components/CouponSelect/index.wxss +594 -59
  39. package/miniprogram_dist/coupon/index.scss +75 -0
  40. package/miniprogram_dist/coupon/index.wxss +119 -15
  41. package/package.json +1 -1
  42. package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +37 -0
  43. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +29 -1
  44. package/src/ConfirmOrder/components/GoodsInfo/index.scss +215 -0
  45. package/src/ConfirmOrder/components/GoodsInfo/index.wxss +390 -39
  46. package/src/ConfirmOrder/components/IntegralSelect/index.scss +83 -0
  47. package/src/ConfirmOrder/components/IntegralSelect/index.wxss +129 -14
  48. package/src/ConfirmOrder/components/Invoice/index.scss +51 -0
  49. package/src/ConfirmOrder/components/Invoice/index.wxss +52 -2
  50. package/src/ConfirmOrder/components/LeaveWord/index.scss +32 -0
  51. package/src/ConfirmOrder/components/LeaveWord/index.wxss +21 -2
  52. package/src/ConfirmOrder/components/PayBar/index.scss +54 -0
  53. package/src/ConfirmOrder/components/PayBar/index.wxss +60 -3
  54. package/src/ConfirmOrder/components/PayDetail/index.scss +41 -0
  55. package/src/ConfirmOrder/components/PayDetail/index.wxss +39 -3
  56. package/src/CouponList/components/CouponItem/index.js +83 -91
  57. package/src/CouponList/components/CouponItem/index.scss +130 -132
  58. package/src/CouponList/components/CouponItem/index.wxss +625 -84
  59. package/src/CouponList/couponColumn/index.scss +106 -0
  60. package/src/CouponList/couponColumn/index.wxss +173 -33
  61. package/src/GoodsItem/index.js +21 -3
  62. package/src/GoodsItem/index.scss +323 -0
  63. package/src/GoodsItem/index.wxml +1 -1
  64. package/src/GoodsItem/index.wxss +673 -85
  65. package/src/GoodsRecommend/index.scss +154 -0
  66. package/src/GoodsRecommend/index.wxss +311 -33
  67. package/src/LiveGoodsList/Header/index.scss +71 -0
  68. package/src/LiveGoodsList/Header/index.wxss +109 -10
  69. package/src/LiveGoodsList/index.js +8 -1
  70. package/src/LiveGoodsList/index.scss +80 -0
  71. package/src/LiveGoodsList/index.wxml +56 -33
  72. package/src/LiveGoodsList/index.wxss +133 -19
  73. package/src/PayModule/button/index.scss +37 -0
  74. package/src/PayModule/button/index.wxss +35 -4
  75. package/src/common/utils/index.js +9 -0
  76. package/src/coupon/components/CouponItem/index.less +1 -0
  77. package/src/coupon/components/CouponItem/index.scss +239 -0
  78. package/src/coupon/components/CouponSelect/index.scss +319 -0
  79. package/src/coupon/components/CouponSelect/index.wxss +642 -59
  80. package/src/coupon/index.scss +75 -0
  81. package/src/coupon/index.wxss +128 -15
@@ -0,0 +1,106 @@
1
+ $deviceWidth: 750;
2
+ @function vmin($rpx) {
3
+ @return #{$rpx * 100 / $deviceWidth}vmin;
4
+ }
5
+
6
+ @mixin coupon-list {
7
+ &.vertical-screen {
8
+ background: #fff;
9
+ padding-top: vmin(8);
10
+ .coupon-title {
11
+ margin-left: vmin(32);
12
+ color: #333333;
13
+ font-size: vmin(28);
14
+ margin-bottom: vmin(16);
15
+ .coupon {
16
+ font-weight: 700;
17
+ margin-right: vmin(16);
18
+ }
19
+ .coupon-num {
20
+ font-weight: 400;
21
+ }
22
+ }
23
+ .goods-coupon-wrapper {
24
+ display: flex;
25
+ flex-direction: row;
26
+ overflow-y: scroll;
27
+ .coupon-item:first-child {
28
+ margin-left: vmin(32);
29
+ }
30
+ .coupon-item:last-child {
31
+ padding-right: vmin(16) !important;
32
+ }
33
+
34
+ }
35
+ .goods-coupon-wrapper::-webkit-scrollbar {
36
+ display: none;
37
+ }
38
+ }
39
+ &.full-screen {
40
+ .goods-coupon-wrapper {
41
+ margin-bottom: vmin(32);
42
+ }
43
+ }
44
+
45
+ }
46
+
47
+ @mixin no-data{
48
+ display: flex;
49
+ flex-direction: column;
50
+ align-items: center;
51
+ margin-top: vmin(164);
52
+ .no-data-png{
53
+ width: vmin(176);
54
+ height: vmin(176);
55
+ }
56
+ .no-data-text{
57
+ color: rgba(51,51,51,1);
58
+ font-size: vmin(28);
59
+ font-weight: 400;
60
+ font-family: "PingFang SC";
61
+ margin-top: vmin(32);
62
+ margin-bottom: vmin(16);
63
+ }
64
+ .chat-text{
65
+ opacity: 1;
66
+ color: rgba(153,153,153,1);
67
+ font-size: vmin(24);
68
+ font-weight: 400;
69
+ font-family: "PingFang SC";
70
+ padding: 0 vmin(90) 0 vmin(88);
71
+ text-align: center;
72
+ }
73
+ }
74
+
75
+
76
+ .no-data {
77
+ @include no-data;
78
+ }
79
+
80
+ .coupon-list {
81
+ @include coupon-list;
82
+ }
83
+ // 竖屏pad
84
+ @media screen and (min-width: 768px) and (orientation: portrait) {
85
+ $deviceWidth: 1536 !global;
86
+
87
+ .no-data {
88
+ @include no-data;
89
+ }
90
+
91
+ .coupon-list {
92
+ @include coupon-list;
93
+ }
94
+ }
95
+ // 横屏pad
96
+ @media screen and (min-height: 768px) and (orientation: landscape) {
97
+ $deviceWidth: 1536 !global;
98
+
99
+ .no-data {
100
+ @include no-data;
101
+ }
102
+
103
+ .coupon-list {
104
+ @include coupon-list;
105
+ }
106
+ }
@@ -1,16 +1,43 @@
1
+ .no-data {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ margin-top: 21.86667vmin;
6
+ }
7
+ .no-data .no-data-png {
8
+ width: 23.46667vmin;
9
+ height: 23.46667vmin;
10
+ }
11
+ .no-data .no-data-text {
12
+ color: #333333;
13
+ font-size: 3.73333vmin;
14
+ font-weight: 400;
15
+ font-family: "PingFang SC";
16
+ margin-top: 4.26667vmin;
17
+ margin-bottom: 2.13333vmin;
18
+ }
19
+ .no-data .chat-text {
20
+ opacity: 1;
21
+ color: #999999;
22
+ font-size: 3.2vmin;
23
+ font-weight: 400;
24
+ font-family: "PingFang SC";
25
+ padding: 0 12vmin 0 11.73333vmin;
26
+ text-align: center;
27
+ }
1
28
  .coupon-list.vertical-screen {
2
29
  background: #fff;
3
- padding-top: 1.07vmin;
30
+ padding-top: 1.06667vmin;
4
31
  }
5
32
  .coupon-list.vertical-screen .coupon-title {
6
- margin-left: 4.27vmin;
33
+ margin-left: 4.26667vmin;
7
34
  color: #333333;
8
- font-size: 3.73vmin;
9
- margin-bottom: 2.13vmin;
35
+ font-size: 3.73333vmin;
36
+ margin-bottom: 2.13333vmin;
10
37
  }
11
38
  .coupon-list.vertical-screen .coupon-title .coupon {
12
39
  font-weight: 700;
13
- margin-right: 2.13vmin;
40
+ margin-right: 2.13333vmin;
14
41
  }
15
42
  .coupon-list.vertical-screen .coupon-title .coupon-num {
16
43
  font-weight: 400;
@@ -21,41 +48,140 @@
21
48
  overflow-y: scroll;
22
49
  }
23
50
  .coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:first-child {
24
- margin-left: 4.27vmin;
51
+ margin-left: 4.26667vmin;
25
52
  }
26
53
  .coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:last-child {
27
- padding-right: 2.13vmin !important;
54
+ padding-right: 2.13333vmin !important;
28
55
  }
29
56
  .coupon-list.vertical-screen .goods-coupon-wrapper::-webkit-scrollbar {
30
57
  display: none;
31
58
  }
32
59
  .coupon-list.full-screen .goods-coupon-wrapper {
33
- margin-bottom: 4.27vmin;
34
- }
35
- .no-data {
36
- display: flex;
37
- flex-direction: column;
38
- align-items: center;
39
- margin-top: 21.87vmin;
60
+ margin-bottom: 4.26667vmin;
40
61
  }
41
- .no-data .no-data-png {
42
- width: 23.47vmin;
43
- height: 23.47vmin;
62
+ @media screen and (min-width: 768px) and (orientation: portrait) {
63
+ .no-data {
64
+ display: flex;
65
+ flex-direction: column;
66
+ align-items: center;
67
+ margin-top: 10.67708vmin;
68
+ }
69
+ .no-data .no-data-png {
70
+ width: 11.45833vmin;
71
+ height: 11.45833vmin;
72
+ }
73
+ .no-data .no-data-text {
74
+ color: #333333;
75
+ font-size: 1.82292vmin;
76
+ font-weight: 400;
77
+ font-family: "PingFang SC";
78
+ margin-top: 2.08333vmin;
79
+ margin-bottom: 1.04167vmin;
80
+ }
81
+ .no-data .chat-text {
82
+ opacity: 1;
83
+ color: #999999;
84
+ font-size: 1.5625vmin;
85
+ font-weight: 400;
86
+ font-family: "PingFang SC";
87
+ padding: 0 5.85938vmin 0 5.72917vmin;
88
+ text-align: center;
89
+ }
90
+ .coupon-list.vertical-screen {
91
+ background: #fff;
92
+ padding-top: 0.52083vmin;
93
+ }
94
+ .coupon-list.vertical-screen .coupon-title {
95
+ margin-left: 2.08333vmin;
96
+ color: #333333;
97
+ font-size: 1.82292vmin;
98
+ margin-bottom: 1.04167vmin;
99
+ }
100
+ .coupon-list.vertical-screen .coupon-title .coupon {
101
+ font-weight: 700;
102
+ margin-right: 1.04167vmin;
103
+ }
104
+ .coupon-list.vertical-screen .coupon-title .coupon-num {
105
+ font-weight: 400;
106
+ }
107
+ .coupon-list.vertical-screen .goods-coupon-wrapper {
108
+ display: flex;
109
+ flex-direction: row;
110
+ overflow-y: scroll;
111
+ }
112
+ .coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:first-child {
113
+ margin-left: 2.08333vmin;
114
+ }
115
+ .coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:last-child {
116
+ padding-right: 1.04167vmin !important;
117
+ }
118
+ .coupon-list.vertical-screen .goods-coupon-wrapper::-webkit-scrollbar {
119
+ display: none;
120
+ }
121
+ .coupon-list.full-screen .goods-coupon-wrapper {
122
+ margin-bottom: 2.08333vmin;
123
+ }
44
124
  }
45
- .no-data .no-data-text {
46
- color: #333333;
47
- font-size: 3.73vmin;
48
- font-weight: 400;
49
- font-family: "PingFang SC";
50
- margin-top: 4.27vmin;
51
- margin-bottom: 2.13vmin;
52
- }
53
- .no-data .chat-text {
54
- opacity: 1;
55
- color: #999999;
56
- font-size: 3.2vmin;
57
- font-weight: 400;
58
- font-family: "PingFang SC";
59
- padding: 0 12vmin 0 11.73vmin;
60
- text-align: center;
125
+ @media screen and (min-height: 768px) and (orientation: landscape) {
126
+ .no-data {
127
+ display: flex;
128
+ flex-direction: column;
129
+ align-items: center;
130
+ margin-top: 10.67708vmin;
131
+ }
132
+ .no-data .no-data-png {
133
+ width: 11.45833vmin;
134
+ height: 11.45833vmin;
135
+ }
136
+ .no-data .no-data-text {
137
+ color: #333333;
138
+ font-size: 1.82292vmin;
139
+ font-weight: 400;
140
+ font-family: "PingFang SC";
141
+ margin-top: 2.08333vmin;
142
+ margin-bottom: 1.04167vmin;
143
+ }
144
+ .no-data .chat-text {
145
+ opacity: 1;
146
+ color: #999999;
147
+ font-size: 1.5625vmin;
148
+ font-weight: 400;
149
+ font-family: "PingFang SC";
150
+ padding: 0 5.85938vmin 0 5.72917vmin;
151
+ text-align: center;
152
+ }
153
+ .coupon-list.vertical-screen {
154
+ background: #fff;
155
+ padding-top: 0.52083vmin;
156
+ }
157
+ .coupon-list.vertical-screen .coupon-title {
158
+ margin-left: 2.08333vmin;
159
+ color: #333333;
160
+ font-size: 1.82292vmin;
161
+ margin-bottom: 1.04167vmin;
162
+ }
163
+ .coupon-list.vertical-screen .coupon-title .coupon {
164
+ font-weight: 700;
165
+ margin-right: 1.04167vmin;
166
+ }
167
+ .coupon-list.vertical-screen .coupon-title .coupon-num {
168
+ font-weight: 400;
169
+ }
170
+ .coupon-list.vertical-screen .goods-coupon-wrapper {
171
+ display: flex;
172
+ flex-direction: row;
173
+ overflow-y: scroll;
174
+ }
175
+ .coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:first-child {
176
+ margin-left: 2.08333vmin;
177
+ }
178
+ .coupon-list.vertical-screen .goods-coupon-wrapper .coupon-item:last-child {
179
+ padding-right: 1.04167vmin !important;
180
+ }
181
+ .coupon-list.vertical-screen .goods-coupon-wrapper::-webkit-scrollbar {
182
+ display: none;
183
+ }
184
+ .coupon-list.full-screen .goods-coupon-wrapper {
185
+ margin-bottom: 2.08333vmin;
186
+ }
61
187
  }
@@ -6,7 +6,7 @@
6
6
  * @LastEditors: conlinchen
7
7
  * @LastEditTime: 2021-11-18 19:49:11
8
8
  */
9
- import { debounce } from "../common/utils/index"
9
+ import { debounce, rpxToVmin } from "../common/utils/index"
10
10
  import { getUserPermission, getUserPermissionNew, snapCheck, snapCheckNew } from "../common/api/liveGoodsList"
11
11
  import {
12
12
  ASSOCIATION,
@@ -153,7 +153,8 @@ Component({
153
153
  preHeatTime: '',
154
154
  isSeckill: false,
155
155
  checked: false,
156
- switchLoading: false
156
+ switchLoading: false,
157
+ imageRadius: rpxToVmin(16)
157
158
  },
158
159
  computed: {
159
160
  showPreferentialPrice(properties) {
@@ -508,7 +509,7 @@ Component({
508
509
  },
509
510
  toDetails() {
510
511
  // 直播商品-去详情页,其他商品-拉起客服
511
- let { title, img_url } = this.data.goodsItem
512
+ let { title, img_url, target_url } = this.data.goodsItem
512
513
  let params = encodeURIComponent(`img_url=${img_url}&title=${title}&params_url=${this.data.params_url}`)
513
514
  console.log("urlurlurl", `/page/customerService/customerService?params=${params}`)
514
515
  if (this.data.goodsItem.resource_type === 4) {
@@ -517,6 +518,12 @@ Component({
517
518
  })
518
519
 
519
520
  } else {
521
+ // PC 复制链接
522
+ const { isPC, isDevtools } = getApp().globalData.system
523
+ if (isPC || isDevtools) {
524
+ this.copyLink(target_url)
525
+ return
526
+ }
520
527
  // 暂时屏蔽内嵌H5详情页,拉起客服
521
528
  wx && wx.navigateTo({
522
529
  url: '/page/customerService/customerService' + `?params=${params}`
@@ -644,6 +651,17 @@ Component({
644
651
  },
645
652
  stopEvent() {
646
653
  return
654
+ },
655
+ copyLink(link) {
656
+ wx.setClipboardData({
657
+ data: link,
658
+ success() {
659
+ wx.showToast({
660
+ title: '商品链接已复制,请用浏览器打开',
661
+ icon: 'none',
662
+ })
663
+ },
664
+ })
647
665
  }
648
666
  }
649
667
  })
@@ -0,0 +1,323 @@
1
+ @import "..\\common/css/theme.wxss";
2
+
3
+ $deviceWidth: 750;
4
+ @function vmin($rpx) {
5
+ @return #{$rpx * 100 / $deviceWidth}vmin;
6
+ }
7
+
8
+ @mixin goods-item {
9
+ display: flex;
10
+ min-height: vmin(180);
11
+ background: #ffffff;
12
+ margin: 0 vmin(32) 0 vmin(32);
13
+ border-radius: vmin(16);
14
+ padding: vmin(16);
15
+ flex-direction: column;
16
+
17
+ .main-card{
18
+ display: flex;
19
+ flex-direction: row;
20
+ .left {
21
+ position: relative;
22
+ width: vmin(240);
23
+ height: vmin(180);
24
+ .index {
25
+ border-radius: vmin(16) 0 vmin(16) 0;
26
+ position: absolute;
27
+ top: 0;
28
+ left: 0;
29
+ display: inline-flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ min-width: vmin(36);
33
+ height: vmin(28);
34
+ padding: vmin(1) vmin(6);
35
+ font-size: vmin(20);
36
+ background: rgba(0,0,0,0.6);
37
+ color: #FFFFFF;
38
+ }
39
+ .ios-index {
40
+ background: rgba(0,0,0,0.25);
41
+ backdrop-filter: blur(vmin(24));
42
+ }
43
+ .goods-type {
44
+ position: absolute;
45
+ right: vmin(8);
46
+ bottom: vmin(8);
47
+ padding: vmin(8) vmin(10);
48
+ background: rgba(0,0,0,0.4);
49
+ border-radius: vmin(8);
50
+ color: #fff;
51
+ font-size: vmin(20);
52
+ width: fit-content;
53
+ display: flex;
54
+ justify-content: center;
55
+ align-items: center;
56
+ height: vmin(20);
57
+ font-weight: 500;
58
+ }
59
+ .goods-explaining {
60
+ position: absolute;
61
+ width: vmin(240);
62
+ height: vmin(36);
63
+ bottom: 0vmin;
64
+ left: 0vmin;
65
+ }
66
+ .ios-goods-type {
67
+ background: rgba(0,0,0,0.25) !important;
68
+ backdrop-filter: blur(vmin(24));
69
+ }
70
+ }
71
+ .right {
72
+ flex: 1;
73
+ display: flex;
74
+ flex-direction: column;
75
+ justify-content: space-between;
76
+ margin-left: vmin(16);
77
+ height: vmin(180);
78
+ width: calc(100% - vmin(256));
79
+ .line-one {
80
+ display: flex;
81
+ align-items: center;
82
+ height: vmin(36);
83
+ .activity-type {
84
+ background-color: #FFF3EB;
85
+ color: #FF781F;
86
+ padding: 0vmin vmin(8);
87
+ font-size: vmin(20);
88
+ height: vmin(32);
89
+ line-height: vmin(36);
90
+ flex-shrink: 0;
91
+ margin-right: vmin(8);
92
+ border-radius: vmin(4);
93
+ display: flex;
94
+ width: max-content;
95
+ align-items: center;
96
+ font-weight: 500;
97
+ }
98
+ .super-activity-type{
99
+ background: linear-gradient(180.25deg, rgba(51,51,51,1) 0%, rgba(81.6,81.6,81.6,1) 68%, rgba(51,51,51,1) 100%);
100
+ color: rgba(255,120,31,1);
101
+ padding: vmin(4) vmin(8);
102
+ font-size: vmin(20);
103
+ height: vmin(32);
104
+ width: max-content;
105
+ line-height: vmin(36);
106
+ flex-shrink: 0;
107
+ margin-right: vmin(8);
108
+ border-radius: vmin(4);
109
+ display: flex;
110
+ font-weight: 500;
111
+ align-items: center;
112
+ .super-activity-txt{
113
+ background: linear-gradient(to right, #FFE4AD, #FFC266);
114
+ -webkit-background-clip: text;
115
+ color: transparent;
116
+ }
117
+ }
118
+ .goods-title {
119
+ font-size: vmin(28);
120
+ color: #333333;
121
+ word-break: break-all;
122
+ display: inline-block;
123
+ overflow: hidden;
124
+ text-overflow: ellipsis;
125
+ white-space: nowrap;
126
+ display: inline-block;
127
+ vertical-align: middle;
128
+ line-height: vmin(36);
129
+ font-weight: 500;
130
+ }
131
+ }
132
+ .sec-kill {
133
+ color: #FF781F;
134
+ font-size: vmin(20);
135
+ line-height: vmin(32);
136
+ margin: vmin(8) 0;
137
+ }
138
+ .left-stock {
139
+ color: #999999;
140
+ font-size: vmin(20);
141
+ height: vmin(24);
142
+ display: flex;
143
+ align-items: center;
144
+ .split{
145
+ display: inline-block;
146
+ border-left: vmin(1) solid #999999;
147
+ width: vmin(2);
148
+ height: vmin(24);
149
+ margin: 0 vmin(12);
150
+ }
151
+ }
152
+ .line-three {
153
+ display: flex;
154
+ justify-content: space-between;
155
+ align-items: flex-end;
156
+ .price {
157
+ position: relative;
158
+ min-height: vmin(40);
159
+ font-weight: 500;
160
+ .price-flow{
161
+ color: #FF5429;
162
+ font-size: vmin(24);
163
+ }
164
+ .price-show {
165
+ color: #FF5429;
166
+ font-size: vmin(36);
167
+ }
168
+ .price-line {
169
+ font-size: vmin(20);
170
+ text-decoration: line-through;
171
+ color: #999999;
172
+ margin-left: vmin(8);
173
+ }
174
+ }
175
+ .buy-btn {
176
+ font-size: vmin(24);
177
+ border-radius: vmin(40);
178
+ width: vmin(160);
179
+ height: vmin(56);
180
+ display: flex;
181
+ justify-content: center;
182
+ align-items: center;
183
+ color: white;
184
+ line-height: vmin(56);
185
+ font-weight: 500;
186
+ background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
187
+ }
188
+ .buy-btn-teacher{
189
+ font-size: vmin(24);
190
+ border-radius: vmin(40);
191
+ width: vmin(160);
192
+ height: vmin(56);
193
+ display: flex;
194
+ justify-content: center;
195
+ align-items: center;
196
+ color: white;
197
+ line-height: vmin(56);
198
+ font-weight: 500;
199
+ background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
200
+ .load{
201
+ width: vmin(24);
202
+ height: vmin(24);
203
+ animation: turn 1s linear infinite;
204
+ margin-right: vmin(8);
205
+ }
206
+ }
207
+ .no-stock-btn{
208
+ font-size: vmin(24);
209
+ border-radius: vmin(40);
210
+ width: vmin(160);
211
+ height: vmin(56);
212
+ display: flex;
213
+ justify-content: center;
214
+ align-items: center;
215
+ color: white;
216
+ line-height: vmin(56);
217
+ font-weight: 500;
218
+ opacity: 40%;
219
+ background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
220
+ }
221
+ .see-btn {
222
+ font-size: vmin(24);
223
+ border-radius: vmin(40);
224
+ width: vmin(160);
225
+ height: vmin(56);
226
+ display: flex;
227
+ justify-content: center;
228
+ align-items: center;
229
+ color: white;
230
+ line-height: vmin(56);
231
+ font-weight: 500;
232
+ margin-left: inherit;
233
+ margin-right: inherit;
234
+ background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
235
+ }
236
+ .buy-btn-preferential{
237
+ font-size: vmin(24);
238
+ border-radius: vmin(40);
239
+ padding: 0 vmin(10);
240
+ min-width: vmin(160);
241
+ height: vmin(68);
242
+ display: flex;
243
+ justify-content: center;
244
+ align-items: center;
245
+ color: white;
246
+ flex-flow: column;
247
+ line-height: vmin(32);
248
+ background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
249
+ .go-buy{
250
+ font-size: vmin(24);
251
+ font-weight: 500;
252
+ }
253
+ .preferential-flow{
254
+ color: rgba(255,255,255,1);
255
+ font-size: vmin(20);
256
+ }
257
+ .preferential-show{
258
+ font-size: vmin(28);
259
+ color: rgba(255,255,255,1);
260
+ }
261
+ }
262
+ }
263
+ }
264
+ .teacher-switch{
265
+ height: vmin(32);
266
+ background: #fff;
267
+ display: flex;
268
+ margin-top: vmin(16);
269
+ .switch-txt{
270
+ opacity: 1;
271
+ color: rgba(51,51,51,1);
272
+ font-size: vmin(24);
273
+ font-weight: 400;
274
+ font-family: "PingFang SC";
275
+ margin-left: vmin(16);
276
+ }
277
+ }
278
+ }
279
+ }
280
+
281
+ @keyframes turn {
282
+ 0% {
283
+ transform: rotate(0deg);
284
+ }
285
+
286
+ 20% {
287
+ transform: rotate(72deg);
288
+ }
289
+
290
+ 40% {
291
+ transform: rotate(144deg);
292
+ }
293
+
294
+ 60% {
295
+ transform: rotate(216deg);
296
+ }
297
+
298
+ 80% {
299
+ transform: rotate(288deg);
300
+ }
301
+
302
+ 100% {
303
+ transform: rotate(360deg);
304
+ }
305
+ }
306
+
307
+ .goods-item {
308
+ @include goods-item;
309
+ }
310
+ // 竖屏pad
311
+ @media screen and (min-width: 768px) and (orientation: portrait) {
312
+ $deviceWidth: 1536 !global;
313
+ .goods-item {
314
+ @include goods-item;
315
+ }
316
+ }
317
+ // 横屏pad
318
+ @media screen and (min-height: 768px) and (orientation: landscape) {
319
+ $deviceWidth: 1536 !global;
320
+ .goods-item {
321
+ @include goods-item;
322
+ }
323
+ }
@@ -14,7 +14,7 @@
14
14
  <view class="left">
15
15
  <!-- 该封面组件是鹅直播上的全局组件 -->
16
16
  <imagePoster
17
- borderRadius="{{'2.13vmin'}}"
17
+ borderRadius="{{imageRadius}}"
18
18
  src="{{filterSrc}}"
19
19
  />
20
20
  <text class="index {{isIOS && 'ios-index'}}" style="{{!isStudent ? 'border-radius: 1.07vmin 0 1.07vmin 0;' : ''}}">{{goodsItem.order_weight}}</text>