xiaoe_mp_npm 0.5.42-test2 → 0.5.42-test21

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 (123) hide show
  1. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +45 -0
  2. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxss +37 -1
  3. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.scss +223 -0
  4. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxss +522 -36
  5. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.scss +91 -0
  6. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxss +170 -14
  7. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.scss +61 -0
  8. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxss +68 -2
  9. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.scss +40 -0
  10. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxss +26 -2
  11. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.scss +62 -0
  12. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxss +81 -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.css +1715 -1715
  16. package/miniprogram_dist/CouponList/components/CouponItem/index.js +31 -22
  17. package/miniprogram_dist/CouponList/components/CouponItem/index.min.css +1 -1
  18. package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +6 -2
  19. package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +1037 -79
  20. package/miniprogram_dist/CouponList/couponColumn/index.js +5 -1
  21. package/miniprogram_dist/CouponList/couponColumn/index.scss +118 -0
  22. package/miniprogram_dist/CouponList/couponColumn/index.wxml +1 -0
  23. package/miniprogram_dist/CouponList/couponColumn/index.wxss +221 -32
  24. package/miniprogram_dist/CouponReceivePopup/index.js +75 -0
  25. package/miniprogram_dist/CouponReceivePopup/index.json +6 -0
  26. package/miniprogram_dist/CouponReceivePopup/index.scss +99 -0
  27. package/miniprogram_dist/CouponReceivePopup/index.wxml +85 -0
  28. package/miniprogram_dist/CouponReceivePopup/index.wxss +75 -0
  29. package/miniprogram_dist/GoodsItem/index.js +7 -5
  30. package/miniprogram_dist/GoodsItem/index.scss +45 -22
  31. package/miniprogram_dist/GoodsItem/index.wxml +11 -11
  32. package/miniprogram_dist/GoodsItem/index.wxs +18 -18
  33. package/miniprogram_dist/GoodsItem/index.wxss +1273 -116
  34. package/miniprogram_dist/GoodsRecommend/index.scss +162 -0
  35. package/miniprogram_dist/GoodsRecommend/index.wxss +418 -33
  36. package/miniprogram_dist/LiveGoodsList/Header/index.scss +79 -0
  37. package/miniprogram_dist/LiveGoodsList/Header/index.wxss +148 -10
  38. package/miniprogram_dist/LiveGoodsList/index.js +167 -25
  39. package/miniprogram_dist/LiveGoodsList/index.scss +93 -0
  40. package/miniprogram_dist/LiveGoodsList/index.wxml +41 -19
  41. package/miniprogram_dist/LiveGoodsList/index.wxss +187 -19
  42. package/miniprogram_dist/PayModule/button/index.scss +45 -0
  43. package/miniprogram_dist/PayModule/button/index.wxss +46 -4
  44. package/miniprogram_dist/TeacherGoodsList/index.js +778 -585
  45. package/miniprogram_dist/TeacherGoodsList/index.scss +5 -2
  46. package/miniprogram_dist/TeacherGoodsList/index.wxml +42 -24
  47. package/miniprogram_dist/TeacherGoodsList/index.wxss +132 -14
  48. package/miniprogram_dist/common/api/liveGoodsList.js +10 -2
  49. package/miniprogram_dist/common/utils/index.js +14 -0
  50. package/miniprogram_dist/coupon/components/CouponItem/index.less +1 -0
  51. package/miniprogram_dist/coupon/components/CouponItem/index.scss +247 -0
  52. package/miniprogram_dist/coupon/components/CouponItem/index.wxss +677 -86
  53. package/miniprogram_dist/coupon/components/CouponSelect/index.scss +331 -0
  54. package/miniprogram_dist/coupon/components/CouponSelect/index.wxss +861 -59
  55. package/miniprogram_dist/coupon/index.scss +83 -0
  56. package/miniprogram_dist/coupon/index.wxss +171 -15
  57. package/package.json +2 -2
  58. package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +45 -0
  59. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +42 -1
  60. package/src/ConfirmOrder/components/GoodsInfo/index.scss +223 -0
  61. package/src/ConfirmOrder/components/GoodsInfo/index.wxss +552 -39
  62. package/src/ConfirmOrder/components/IntegralSelect/index.scss +91 -0
  63. package/src/ConfirmOrder/components/IntegralSelect/index.wxss +182 -14
  64. package/src/ConfirmOrder/components/Invoice/index.scss +61 -0
  65. package/src/ConfirmOrder/components/Invoice/index.wxss +75 -2
  66. package/src/ConfirmOrder/components/LeaveWord/index.scss +40 -0
  67. package/src/ConfirmOrder/components/LeaveWord/index.wxss +30 -2
  68. package/src/ConfirmOrder/components/PayBar/index.scss +62 -0
  69. package/src/ConfirmOrder/components/PayBar/index.wxss +87 -3
  70. package/src/ConfirmOrder/components/PayDetail/index.scss +41 -0
  71. package/src/ConfirmOrder/components/PayDetail/index.wxss +39 -3
  72. package/src/CouponList/components/CouponItem/index.css +1715 -1715
  73. package/src/CouponList/components/CouponItem/index.js +31 -22
  74. package/src/CouponList/components/CouponItem/index.min.css +1 -1
  75. package/src/CouponList/components/CouponItem/index.wxml +6 -2
  76. package/src/CouponList/components/CouponItem/index.wxss +1039 -85
  77. package/src/CouponList/couponColumn/index.js +5 -1
  78. package/src/CouponList/couponColumn/index.scss +118 -0
  79. package/src/CouponList/couponColumn/index.wxml +1 -0
  80. package/src/CouponList/couponColumn/index.wxss +236 -32
  81. package/src/CouponReceivePopup/index.js +75 -0
  82. package/src/CouponReceivePopup/index.json +6 -0
  83. package/src/CouponReceivePopup/index.scss +99 -0
  84. package/src/CouponReceivePopup/index.wxml +85 -0
  85. package/src/CouponReceivePopup/index.wxss +1 -0
  86. package/src/GoodsItem/index.js +7 -5
  87. package/src/GoodsItem/index.scss +45 -22
  88. package/src/GoodsItem/index.wxml +11 -11
  89. package/src/GoodsItem/index.wxs +18 -18
  90. package/src/GoodsItem/index.wxss +1331 -116
  91. package/src/GoodsRecommend/index.scss +162 -0
  92. package/src/GoodsRecommend/index.wxss +441 -33
  93. package/src/LiveGoodsList/Header/index.scss +79 -0
  94. package/src/LiveGoodsList/Header/index.wxss +156 -10
  95. package/src/LiveGoodsList/index.js +167 -25
  96. package/src/LiveGoodsList/index.scss +93 -0
  97. package/src/LiveGoodsList/index.wxml +41 -19
  98. package/src/LiveGoodsList/index.wxss +230 -50
  99. package/src/PayModule/button/index.scss +45 -0
  100. package/src/PayModule/button/index.wxss +50 -4
  101. package/src/TeacherGoodsList/index.js +778 -585
  102. package/src/TeacherGoodsList/index.scss +5 -2
  103. package/src/TeacherGoodsList/index.wxml +42 -24
  104. package/src/TeacherGoodsList/index.wxss +151 -14
  105. package/src/common/api/liveGoodsList.js +10 -2
  106. package/src/common/utils/index.js +14 -0
  107. package/src/coupon/components/CouponItem/index.less +1 -0
  108. package/src/coupon/components/CouponItem/index.scss +247 -0
  109. package/src/coupon/components/CouponItem/index.wxss +712 -86
  110. package/src/coupon/components/CouponSelect/index.scss +331 -0
  111. package/src/coupon/components/CouponSelect/index.wxss +910 -59
  112. package/src/coupon/index.scss +83 -0
  113. package/src/coupon/index.wxss +181 -15
  114. package/miniprogram_dist/GoodsItem/index.css +0 -1364
  115. package/miniprogram_dist/GoodsItem/index.less +0 -299
  116. package/miniprogram_dist/GoodsItem/index.min.css +0 -1
  117. package/miniprogram_dist/TeacherGoodsList/index.css +0 -187
  118. package/miniprogram_dist/TeacherGoodsList/index.min.css +0 -1
  119. package/src/GoodsItem/index.css +0 -1364
  120. package/src/GoodsItem/index.less +0 -299
  121. package/src/GoodsItem/index.min.css +0 -1
  122. package/src/TeacherGoodsList/index.css +0 -187
  123. package/src/TeacherGoodsList/index.min.css +0 -1
@@ -7,9 +7,10 @@
7
7
  * @LastEditors: conlinchen
8
8
  * @LastEditTime: 2021-11-18 19:51:34
9
9
  */
10
- -->
11
- <view>
10
+ -->
11
+ <view class="goods-list-box">
12
12
  <custom-popup
13
+ class="goods-list-box-popup"
13
14
  showPopup="{{ show }}"
14
15
  popPosition="{{ popPosition }}"
15
16
  round="{{ round }}"
@@ -18,21 +19,43 @@
18
19
  overlay="{{popPosition === 'bottom' && !overlayStyle ? false : true}}"
19
20
  overlay-style="{{ overlayStyle }}"
20
21
  zIndex="{{zIndex}}"
21
- bind:onOverlayClick="onOverlayClick">
22
+ bind:onOverlayClick="onOverlayClick"
23
+ >
22
24
  <view slot="header">
23
25
  <!-- 弹窗头部 start-->
24
- <header bind:closePop="closePop" bind:gotoPayRecords="gotoPayRecords" showClose="{{showClose}}"></header>
26
+ <header
27
+ bind:closePop="closePop"
28
+ bind:gotoPayRecords="gotoPayRecords"
29
+ showClose="{{showClose}}"
30
+ ></header>
25
31
  <!-- 弹窗头部 end-->
26
32
  </view>
27
33
  <view slot="content" class="page-main">
28
34
  <!-- 商品列表 start-->
29
- <scroll-view class="goods-list" scroll-y="true" bindscrolltolower="onScrolltolower" refresher-triggered="{{refreshing}}" bindrefresherrefresh="onLoad" refresher-enabled="{{true}}">
30
- <!-- 优惠券列表 start -->
31
- <coupon-list showList="{{ showList }}" aliveInfo="{{ aliveInfo }}" msgCouponData="{{msgCouponData}}" bind:showPopup="showInfoCollection" bind:receivedSuccess="receivedSuccess" sensorReportParams="{{sensorReportParams}}"></coupon-list>
32
- <!-- 优惠券列表 end -->
33
- <!-- 讲解中的商品 start -->
34
- <block wx:if="{{showExplainingGoods}}">
35
- <goods-item
35
+ <scroll-view
36
+ class="goods-list {{isFullScreen?'full-list':''}}"
37
+ scroll-y="true"
38
+ bindscrolltolower="onScrolltolower"
39
+ refresher-triggered="{{refreshing}}"
40
+ bindrefresherrefresh="onLoad"
41
+ refresher-enabled="{{true}}"
42
+ >
43
+ <!-- 优惠券列表 start -->
44
+ <coupon-list
45
+ showList="{{ showList }}"
46
+ aliveInfo="{{ aliveInfo }}"
47
+ msgCouponData="{{msgCouponData}}"
48
+ bind:showPopup="showInfoCollection"
49
+ bind:receivedSuccess="receivedSuccess"
50
+ sensorReportParams="{{sensorReportParams}}"
51
+ bind:showReceivePopup="showReceivePopup"
52
+ ></coupon-list>
53
+ <!-- 优惠券列表 end -->
54
+ <!-- 讲解中的商品 start -->
55
+ <view class="full-item">
56
+ <block wx:if="{{showExplainingGoods}}">
57
+ <goods-item
58
+ style="display:{{!formExplainingGoods.is_display_package ? 'none' : ''}}"
36
59
  aliveInfo="{{aliveInfo}}"
37
60
  allContactPay="{{allContactPay}}"
38
61
  goodsInfo="{{formExplainingGoods}}"
@@ -47,29 +70,28 @@
47
70
  sensorReportParams="{{sensorReportParams}}"
48
71
  isFullScreen="{{ popPosition === 'right'}}"
49
72
  isGrayMarketing="{{ isGrayMarketing}}"
50
- ></goods-item>
51
- </block>
52
- <!-- 讲解中的商品 end -->
53
- <goods-item
73
+ ></goods-item>
74
+ </block>
75
+ <goods-item
54
76
  wx:for="{{goodsInfo}}"
55
77
  wx:for-item="goodsItem"
56
78
  wx:key="index"
79
+ style="display:{{!goodsItem.is_display_package ? 'none' : ''}}"
57
80
  goodsInfo="{{goodsItem}}"
58
81
  allContactPay="{{allContactPay}}"
59
82
  coupon_switch="{{coupon_switch}}"
60
83
  bind:sendNewMsg="sendNewMsg"
61
84
  bind:showConfirmOrder="showConfirmOrder"
62
85
  bind:showSku="showSku"
63
- aliveInfo="{{aliveInfo}}"
64
86
  explainingGoods="{{explainingGoods}}"
65
87
  bind:showDialog="showDialog"
66
- bind:toDetails="toDetails"
67
88
  class="goods-item"
68
89
  envName="{{ENV_NAME}}"
69
90
  sensorReportParams="{{sensorReportParams}}"
70
91
  isFullScreen="{{ popPosition === 'right'}}"
71
92
  isGrayMarketing="{{ isGrayMarketing}}"
72
- ></goods-item>
93
+ ></goods-item>
94
+ </view>
73
95
  <view class="finished-text" wx:if="{{!refreshing && finishedTxt !== 'no-data'}}">{{finishedTxt}}</view>
74
96
  <view class="no-data" wx:if="{{!refreshing && finishedTxt === 'no-data'}}">
75
97
  <image class="no-data-png" src="../common/assets/images/liveGoodsList/no-data.png" />
@@ -80,4 +102,4 @@
80
102
  </view>
81
103
  </custom-popup>
82
104
  </view>
83
- <van-dialog id="van-dialog" confirm-button-color="#105cfb" catchtap="stopEvent"/>
105
+ <van-dialog id="van-dialog" confirm-button-color="#105cfb" catchtap="stopEvent" />
@@ -1,50 +1,230 @@
1
- .box {
2
- margin: 0 1.6vmin;
3
- }
4
- .title {
5
- margin: 0;
6
- padding: 4.27vmin 2.13vmin 2.13vmin;
7
- color: rgba(69, 90, 100, 0.6);
8
- font-weight: normal;
9
- font-size: 2.4vmin;
10
- line-height: 2.67vmin;
11
- text-align: center;
12
- }
13
- .btn {
14
- display: block;
15
- width: 100%;
16
- margin: 1.33vmin 0;
17
- background-color: #fff;
18
- }
19
- .page-main {
20
- height: 100%;
21
- }
22
- .goods-list {
23
- box-sizing: border-box;
24
- min-height: 40vmin;
25
- display: flex;
26
- flex-direction: column;
27
- height: 100%;
28
- }
29
- .goods-list .finished-text {
30
- display: flex;
31
- justify-content: center;
32
- color: #999;
33
- font-size: 3.73vmin;
34
- padding-bottom: 2.67vmin;
35
- }
36
- .goods-list .no-data {
37
- display: flex;
38
- flex-direction: column;
39
- align-items: center;
40
- padding-top: 10.67vmin;
41
- }
42
- .goods-list .no-data .no-data-png {
43
- width: 23.47vmin;
44
- height: 23.47vmin;
45
- }
46
- .goods-list .no-data .no-data-text {
47
- color: #999999;
48
- font-size: 3.73vmin;
49
- margin-top: 4.27vmin;
50
- }
1
+ .goods-list-box .goods-list-box-popup {
2
+ width: 100vmin;
3
+ }
4
+
5
+ .goods-list-box .box {
6
+ margin: 0 1.6vmin;
7
+ }
8
+
9
+ .goods-list-box .title {
10
+ margin: 0;
11
+ padding: 4.26667vmin 2.13333vmin 2.13333vmin;
12
+ color: rgba(69, 90, 100, 0.6);
13
+ font-weight: normal;
14
+ font-size: 2.4vmin;
15
+ line-height: 2.66667vmin;
16
+ text-align: center;
17
+ }
18
+
19
+ .goods-list-box .btn {
20
+ display: block;
21
+ width: 100%;
22
+ margin: 1.33333vmin 0;
23
+ background-color: #fff;
24
+ }
25
+
26
+ .goods-list-box .page-main {
27
+ height: 100%;
28
+ }
29
+
30
+ .goods-list-box .goods-list {
31
+ box-sizing: border-box;
32
+ min-height: 40vmin;
33
+ display: flex;
34
+ flex-direction: column;
35
+ height: 100%;
36
+ }
37
+
38
+ .goods-list-box .goods-list .finished-text {
39
+ display: flex;
40
+ justify-content: center;
41
+ color: #999;
42
+ font-size: 3.73333vmin;
43
+ padding-bottom: 2.66667vmin;
44
+ }
45
+
46
+ .goods-list-box .goods-list .no-data {
47
+ display: flex;
48
+ flex-direction: column;
49
+ align-items: center;
50
+ padding-top: 10.66667vmin;
51
+ }
52
+
53
+ .goods-list-box .goods-list .no-data .no-data-png {
54
+ width: 23.46667vmin;
55
+ height: 23.46667vmin;
56
+ }
57
+
58
+ .goods-list-box .goods-list .no-data .no-data-text {
59
+ color: #999999;
60
+ font-size: 3.73333vmin;
61
+ margin-top: 4.26667vmin;
62
+ }
63
+
64
+ @media screen and (min-width: 768px) and (orientation: portrait) {
65
+ .goods-list-box .goods-list-box-popup {
66
+ width: 48.82812vmin;
67
+ }
68
+ .goods-list-box .box {
69
+ margin: 0 0.78125vmin;
70
+ }
71
+ .goods-list-box .title {
72
+ margin: 0;
73
+ padding: 2.08333vmin 1.04167vmin 1.04167vmin;
74
+ color: rgba(69, 90, 100, 0.6);
75
+ font-weight: normal;
76
+ font-size: 1.17188vmin;
77
+ line-height: 1.30208vmin;
78
+ text-align: center;
79
+ }
80
+ .goods-list-box .btn {
81
+ display: block;
82
+ width: 100%;
83
+ margin: 0.65104vmin 0;
84
+ background-color: #fff;
85
+ }
86
+ .goods-list-box .page-main {
87
+ height: 100%;
88
+ }
89
+ .goods-list-box .goods-list {
90
+ box-sizing: border-box;
91
+ min-height: 40vmin;
92
+ display: flex;
93
+ flex-direction: column;
94
+ height: 100%;
95
+ }
96
+ .goods-list-box .goods-list .finished-text {
97
+ display: flex;
98
+ justify-content: center;
99
+ color: #999;
100
+ font-size: 1.82292vmin;
101
+ padding-bottom: 1.30208vmin;
102
+ }
103
+ .goods-list-box .goods-list .no-data {
104
+ display: flex;
105
+ flex-direction: column;
106
+ align-items: center;
107
+ padding-top: 5.20833vmin;
108
+ }
109
+ .goods-list-box .goods-list .no-data .no-data-png {
110
+ width: 11.45833vmin;
111
+ height: 11.45833vmin;
112
+ }
113
+ .goods-list-box .goods-list .no-data .no-data-text {
114
+ color: #999999;
115
+ font-size: 1.82292vmin;
116
+ margin-top: 2.08333vmin;
117
+ }
118
+ }
119
+
120
+ @media screen and (min-height: 630px) and (orientation: landscape) {
121
+ .goods-list-box .goods-list-box-popup {
122
+ width: 59.52381vmin;
123
+ }
124
+ .goods-list-box .box {
125
+ margin: 0 0.95238vmin;
126
+ }
127
+ .goods-list-box .title {
128
+ margin: 0;
129
+ padding: 2.53968vmin 1.26984vmin 1.26984vmin;
130
+ color: rgba(69, 90, 100, 0.6);
131
+ font-weight: normal;
132
+ font-size: 1.42857vmin;
133
+ line-height: 1.5873vmin;
134
+ text-align: center;
135
+ }
136
+ .goods-list-box .btn {
137
+ display: block;
138
+ width: 100%;
139
+ margin: 0.79365vmin 0;
140
+ background-color: #fff;
141
+ }
142
+ .goods-list-box .page-main {
143
+ height: 100%;
144
+ }
145
+ .goods-list-box .goods-list {
146
+ box-sizing: border-box;
147
+ min-height: 40vmin;
148
+ display: flex;
149
+ flex-direction: column;
150
+ height: 100%;
151
+ }
152
+ .goods-list-box .goods-list .finished-text {
153
+ display: flex;
154
+ justify-content: center;
155
+ color: #999;
156
+ font-size: 2.22222vmin;
157
+ padding-bottom: 1.5873vmin;
158
+ }
159
+ .goods-list-box .goods-list .no-data {
160
+ display: flex;
161
+ flex-direction: column;
162
+ align-items: center;
163
+ padding-top: 6.34921vmin;
164
+ }
165
+ .goods-list-box .goods-list .no-data .no-data-png {
166
+ width: 13.96825vmin;
167
+ height: 13.96825vmin;
168
+ }
169
+ .goods-list-box .goods-list .no-data .no-data-text {
170
+ color: #999999;
171
+ font-size: 2.22222vmin;
172
+ margin-top: 2.53968vmin;
173
+ }
174
+ }
175
+
176
+ @media screen and (min-height: 768px) and (orientation: landscape) {
177
+ .goods-list-box .goods-list-box-popup {
178
+ width: 48.82812vmin;
179
+ }
180
+ .goods-list-box .box {
181
+ margin: 0 0.78125vmin;
182
+ }
183
+ .goods-list-box .title {
184
+ margin: 0;
185
+ padding: 2.08333vmin 1.04167vmin 1.04167vmin;
186
+ color: rgba(69, 90, 100, 0.6);
187
+ font-weight: normal;
188
+ font-size: 1.17188vmin;
189
+ line-height: 1.30208vmin;
190
+ text-align: center;
191
+ }
192
+ .goods-list-box .btn {
193
+ display: block;
194
+ width: 100%;
195
+ margin: 0.65104vmin 0;
196
+ background-color: #fff;
197
+ }
198
+ .goods-list-box .page-main {
199
+ height: 100%;
200
+ }
201
+ .goods-list-box .goods-list {
202
+ box-sizing: border-box;
203
+ min-height: 40vmin;
204
+ display: flex;
205
+ flex-direction: column;
206
+ height: 100%;
207
+ }
208
+ .goods-list-box .goods-list .finished-text {
209
+ display: flex;
210
+ justify-content: center;
211
+ color: #999;
212
+ font-size: 1.82292vmin;
213
+ padding-bottom: 1.30208vmin;
214
+ }
215
+ .goods-list-box .goods-list .no-data {
216
+ display: flex;
217
+ flex-direction: column;
218
+ align-items: center;
219
+ padding-top: 5.20833vmin;
220
+ }
221
+ .goods-list-box .goods-list .no-data .no-data-png {
222
+ width: 11.45833vmin;
223
+ height: 11.45833vmin;
224
+ }
225
+ .goods-list-box .goods-list .no-data .no-data-text {
226
+ color: #999999;
227
+ font-size: 1.82292vmin;
228
+ margin-top: 2.08333vmin;
229
+ }
230
+ }
@@ -0,0 +1,45 @@
1
+ $deviceWidth: 750;
2
+ @function vmin($rpx) {
3
+ @return #{$rpx * 100 / $deviceWidth}vmin;
4
+ }
5
+
6
+ @mixin pay-btn{
7
+ .btn-default{
8
+ width: vmin(240);
9
+ height: vmin(80);
10
+ line-height: vmin(80);
11
+ font-size: vmin(32);
12
+ border-radius: vmin(40);
13
+ background: rgba(255,84,41,1);
14
+ color: #ffffff;
15
+ }
16
+ .invalidBtn{
17
+ opacity: 0.2;
18
+ }
19
+ }
20
+
21
+ .pay-btn {
22
+ @include pay-btn;
23
+ }
24
+ // 竖屏pad
25
+ @media screen and (min-width: 768px) and (orientation: portrait) {
26
+ $deviceWidth: 1536 !global;
27
+ .pay-btn {
28
+ @include pay-btn;
29
+ }
30
+ }
31
+ // PC 放大适配
32
+ @media screen and (min-height: 630px) and (orientation: landscape) {
33
+ $deviceWidth: 1260 !global;
34
+
35
+ .pay-btn {
36
+ @include pay-btn;
37
+ }
38
+ }
39
+ // 横屏pad
40
+ @media screen and (min-height: 768px) and (orientation: landscape) {
41
+ $deviceWidth: 1536 !global;
42
+ .pay-btn {
43
+ @include pay-btn;
44
+ }
45
+ }
@@ -1,12 +1,58 @@
1
1
  .pay-btn .btn-default {
2
2
  width: 32vmin;
3
- height: 10.67vmin;
4
- line-height: 10.67vmin;
5
- font-size: 4.27vmin;
6
- border-radius: 5.33vmin;
3
+ height: 10.66667vmin;
4
+ line-height: 10.66667vmin;
5
+ font-size: 4.26667vmin;
6
+ border-radius: 5.33333vmin;
7
7
  background: #ff5429;
8
8
  color: #ffffff;
9
9
  }
10
+
10
11
  .pay-btn .invalidBtn {
11
12
  opacity: 0.2;
12
13
  }
14
+
15
+ @media screen and (min-width: 768px) and (orientation: portrait) {
16
+ .pay-btn .btn-default {
17
+ width: 15.625vmin;
18
+ height: 5.20833vmin;
19
+ line-height: 5.20833vmin;
20
+ font-size: 2.08333vmin;
21
+ border-radius: 2.60417vmin;
22
+ background: #ff5429;
23
+ color: #ffffff;
24
+ }
25
+ .pay-btn .invalidBtn {
26
+ opacity: 0.2;
27
+ }
28
+ }
29
+
30
+ @media screen and (min-height: 630px) and (orientation: landscape) {
31
+ .pay-btn .btn-default {
32
+ width: 19.04762vmin;
33
+ height: 6.34921vmin;
34
+ line-height: 6.34921vmin;
35
+ font-size: 2.53968vmin;
36
+ border-radius: 3.1746vmin;
37
+ background: #ff5429;
38
+ color: #ffffff;
39
+ }
40
+ .pay-btn .invalidBtn {
41
+ opacity: 0.2;
42
+ }
43
+ }
44
+
45
+ @media screen and (min-height: 768px) and (orientation: landscape) {
46
+ .pay-btn .btn-default {
47
+ width: 15.625vmin;
48
+ height: 5.20833vmin;
49
+ line-height: 5.20833vmin;
50
+ font-size: 2.08333vmin;
51
+ border-radius: 2.60417vmin;
52
+ background: #ff5429;
53
+ color: #ffffff;
54
+ }
55
+ .pay-btn .invalidBtn {
56
+ opacity: 0.2;
57
+ }
58
+ }