@uxda/appkit 4.2.14 → 4.2.16

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 (118) hide show
  1. package/.eslintrc.mjs +7 -7
  2. package/README.md +187 -187
  3. package/babel.config.js +12 -12
  4. package/dist/appkit.css +3 -7
  5. package/dist/index.js +1078 -1161
  6. package/package.json +79 -79
  7. package/project.config.json +15 -15
  8. package/project.tt.json +13 -13
  9. package/rollup.config.mjs +67 -67
  10. package/src/Appkit.ts +66 -66
  11. package/src/balance/api/endpoints.ts +133 -133
  12. package/src/balance/api/index.ts +106 -106
  13. package/src/balance/components/AccountView.vue +750 -750
  14. package/src/balance/components/BalanceCard.vue +215 -215
  15. package/src/balance/components/BalanceReminder.vue +85 -85
  16. package/src/balance/components/ConsumptionFilter.vue +218 -218
  17. package/src/balance/components/ConsumptionRules.vue +68 -68
  18. package/src/balance/components/DateFilter.vue +250 -250
  19. package/src/balance/components/DateRange.vue +80 -80
  20. package/src/balance/components/ListFilter.vue +62 -62
  21. package/src/balance/components/ListFilterPicker.vue +191 -191
  22. package/src/balance/components/PromoterCard.vue +237 -237
  23. package/src/balance/components/SecondBalance.vue +71 -71
  24. package/src/balance/components/Tip.vue +45 -45
  25. package/src/balance/components/index.ts +8 -8
  26. package/src/balance/types.ts +97 -97
  27. package/src/components/bt-cropper/index.vue +774 -774
  28. package/src/components/bt-cropper/utils/calcCropper.js +42 -42
  29. package/src/components/bt-cropper/utils/calcImagePosition.js +23 -23
  30. package/src/components/bt-cropper/utils/calcImageSize.js +37 -37
  31. package/src/components/bt-cropper/utils/calcPointDistance.js +12 -12
  32. package/src/components/bt-cropper/utils/calcRightAndBottom.js +7 -7
  33. package/src/components/bt-cropper/utils/ratio.js +3 -3
  34. package/src/components/bt-cropper/utils/tools.js +25 -25
  35. package/src/components/dd-area/index.vue +225 -225
  36. package/src/components/dd-icon/doc.md +21 -21
  37. package/src/components/dd-icon/index.vue +23 -23
  38. package/src/components/dd-notice-bar/index.vue +78 -78
  39. package/src/components/dd-search/doc.md +34 -34
  40. package/src/components/dd-search/index.vue +168 -168
  41. package/src/components/dd-selector/index.vue +124 -124
  42. package/src/components/dd-skeleton/doc.md +19 -19
  43. package/src/components/dd-skeleton/index.vue +36 -36
  44. package/src/global.ts +6 -6
  45. package/src/index.ts +89 -89
  46. package/src/main.scss +1 -1
  47. package/src/notice/api/endpoints.ts +17 -17
  48. package/src/notice/api/index.ts +106 -106
  49. package/src/notice/components/NoticeBanner.vue +243 -243
  50. package/src/notice/components/NoticeEntry.vue +99 -99
  51. package/src/notice/components/NoticeList.vue +315 -315
  52. package/src/notice/components/NoticePopup.vue +162 -162
  53. package/src/notice/components/index.ts +5 -5
  54. package/src/notice/components/useCommonList.ts +86 -86
  55. package/src/notice/components/useNotice.ts +35 -35
  56. package/src/notice/index.ts +1 -1
  57. package/src/notice/types.ts +25 -25
  58. package/src/payment/api/config.ts +7 -7
  59. package/src/payment/api/endpoints.ts +103 -103
  60. package/src/payment/api/index.ts +100 -100
  61. package/src/payment/components/AmountPicker.vue +90 -90
  62. package/src/payment/components/RechargeResult.vue +69 -69
  63. package/src/payment/components/RechargeView.vue +155 -155
  64. package/src/payment/components/RightsPicker.vue +105 -105
  65. package/src/payment/components/TradeView.vue +317 -317
  66. package/src/payment/components/UserAgreement.vue +234 -234
  67. package/src/payment/components/index.ts +22 -22
  68. package/src/payment/index.ts +5 -5
  69. package/src/payment/services/index.ts +16 -16
  70. package/src/payment/services/invoke-recharge.ts +25 -25
  71. package/src/payment/services/request-payment.ts +58 -58
  72. package/src/payment/types.ts +28 -28
  73. package/src/register/components/SelfRegistration.vue +233 -233
  74. package/src/register/components/index.ts +2 -2
  75. package/src/shared/components/AppDrawer.vue +54 -58
  76. package/src/shared/components/AppVerify.vue +128 -128
  77. package/src/shared/components/DeviceVersion.vue +68 -68
  78. package/src/shared/components/EmptyView.vue +33 -33
  79. package/src/shared/components/OcrBusinessLicense.vue +130 -130
  80. package/src/shared/components/OcrIcon.vue +202 -202
  81. package/src/shared/components/PageHeader.vue +79 -79
  82. package/src/shared/components/index.ts +8 -8
  83. package/src/shared/composables/index.ts +8 -8
  84. package/src/shared/composables/useAmount.ts +46 -46
  85. package/src/shared/composables/useCountdown.ts +46 -46
  86. package/src/shared/composables/useCrypto.ts +76 -76
  87. package/src/shared/composables/useDragBox.ts +97 -97
  88. package/src/shared/composables/useEncode.ts +43 -43
  89. package/src/shared/composables/useLogger.ts +123 -123
  90. package/src/shared/composables/useSafeArea.ts +46 -46
  91. package/src/shared/composables/useTabbar.ts +24 -24
  92. package/src/shared/composables/useUpload.ts +54 -54
  93. package/src/shared/composables/useValidator.ts +32 -32
  94. package/src/shared/http/Http.ts +136 -136
  95. package/src/shared/http/index.ts +1 -1
  96. package/src/shared/http/types.ts +157 -157
  97. package/src/shared/index.ts +3 -3
  98. package/src/shared/weixin/payment.ts +38 -38
  99. package/src/styles/vars.scss +3 -3
  100. package/src/user/api/endpoints.ts +17 -17
  101. package/src/user/api/index.ts +111 -111
  102. package/src/user/components/LoginSetting.vue +114 -114
  103. package/src/user/components/UserAuth.vue +257 -257
  104. package/src/user/components/UserBinding.vue +307 -307
  105. package/src/user/components/UserBindingSuccess.vue +80 -80
  106. package/src/user/components/UserEntry.vue +133 -133
  107. package/src/user/components/UserFeedback.vue +431 -431
  108. package/src/user/components/UserFeedbackEntry.vue +192 -192
  109. package/src/user/components/UserHeadCrop.vue +65 -65
  110. package/src/user/components/UserInfo.vue +826 -824
  111. package/src/user/components/UserResourceEmpty.vue +75 -75
  112. package/src/user/components/index.ts +23 -23
  113. package/src/user/index.ts +1 -1
  114. package/tsconfig.json +30 -30
  115. package/types/global.d.ts +21 -21
  116. package/types/vue.d.ts +10 -10
  117. package/dist/assets/asset-3B_CoPto +0 -1
  118. package/stats.html +0 -4842
@@ -1,317 +1,317 @@
1
- <template>
2
- <view class="view recharge-view2">
3
- <view class="flex-grow">
4
- <rights-picker :items="amounts" :selected="state.selected" @change="onAmountSelect" />
5
- <div class="bean-buy" v-if="amounts[state.selected]">
6
- <div class="left">
7
- <div class="title">使用云豆支付</div>
8
- <div class="amount" v-if="!selectBean">余额 {{ formatAmount(balance || 0) }}</div>
9
- <div class="amount" v-else>扣减后余额 {{ formatAmount(balance - amounts[state.selected].paymentAmount) }}</div>
10
- </div>
11
- <div class="right" v-if="balance >= amounts[state.selected].paymentAmount" @click="selectBean = !selectBean">
12
- <div class="amount">-{{ formatAmount(amounts[state.selected].paymentAmount || 0) }}</div>
13
- <img class="icon"
14
- :src="selectBean ? 'https://cdn.ddjf.com/static/images/appkit/select.svg' : 'https://cdn.ddjf.com/static/images/appkit/not-select.svg'" />
15
- </div>
16
- </div>
17
- </view>
18
- <view class="amount-footer">
19
- <view class="agreement" v-if="!selectBean">
20
- <nut-checkbox v-model="state.agreed">我已阅读并同意<a class="link inline"
21
- @click="onAgreementLinkClick">《大道云平台云豆充值服务协议》</a></nut-checkbox>
22
- </view>
23
- <div class="buy-amount">
24
- <div class="left">
25
- 待支付:
26
- <span class="amount">
27
- <i>¥</i>{{ formatAmount(currentAmount) }}
28
- </span>
29
- </div>
30
- <nut-button block shape="square" :loading="state.buttonLoading" @click="onPayClick"
31
- class="recharge-button">购买</nut-button>
32
- </div>
33
- </view>
34
- <nut-dialog title="确认购买" custom-class="trade-dialog" v-model:visible="showDialog" @cancel="showDialog = !showDialog"
35
- @ok="beanPay">
36
- <template v-if="amounts[state.selected]">
37
- <div class="item">云豆扣减:{{ formatAmount(amounts[state.selected].paymentAmount || 0) }}</div>
38
- <div class="item">权益增加:{{ formatAmount(amounts[state.selected].priceRightNum || 0) }}笔</div>
39
- <div class="item">扣减后云豆余额:{{ formatAmount(balance - amounts[state.selected].paymentAmount) }}</div>
40
- </template>
41
- </nut-dialog>
42
- </view>
43
- </template>
44
-
45
- <script lang="ts" setup>
46
- import { computed, onMounted, reactive, ref } from 'vue'
47
- import RightsPicker, { Amount } from './RightsPicker.vue'
48
- import { endpoints, useHttp } from '../api'
49
- import { requestPaymentByBean } from '../services'
50
- import Taro from '@tarojs/taro'
51
- import { useAmount } from '../../shared/composables/useAmount'
52
-
53
- // 充值用户界面
54
- // 配置了必须的属性后
55
- // 自动获取支付套餐包列表
56
- // 并发起微信支付
57
- export interface RechargeViewProps {
58
- /**
59
- * 应用
60
- **/
61
- app: string,
62
- /**
63
- * 充值场景
64
- */
65
- // stage?: string, // 这个参数暂时不用
66
- /**
67
- * 租户
68
- */
69
- tenant: string
70
- }
71
-
72
- const props = defineProps<RechargeViewProps>()
73
- const { formatAmount } = useAmount()
74
-
75
- const emit = defineEmits<{
76
- (event: 'complete', value: { result: boolean, type: string }): void,
77
- (event: 'agree'): void,
78
- }>()
79
-
80
- const state = reactive({
81
- agreed: false,
82
- selected: 0,
83
- // agreementOpen: false,
84
- buttonLoading: false,
85
- })
86
-
87
-
88
- const balance = ref<number>(0)
89
- const amounts = ref<Amount[]>([])
90
- const selectBean = ref<boolean>(false)
91
-
92
- const onAgreementLinkClick = (e) => {
93
- e.preventDefault()
94
- e.stopImmediatePropagation()
95
- emit('agree')
96
- // state.agreementOpen = true
97
- }
98
-
99
- const onAmountSelect = (selected: number) => {
100
- state.selected = selected
101
- selectBean.value = false
102
- }
103
-
104
- const currentAmount = computed(() => {
105
- return amounts.value[state.selected] && !selectBean.value ? amounts.value[state.selected].paymentAmount : 0
106
- })
107
-
108
- onMounted(() => {
109
- const $http = useHttp()
110
- $http.get<any[]>(endpoints.获取增值权益类目).then((res: any) => {
111
- balance.value = res.balance
112
- amounts.value = res.paymentCaseConfigVOS
113
- })
114
- })
115
-
116
- // 云豆支付
117
- const showDialog = ref<boolean>(false)
118
- async function beanPay() {
119
- const $http = useHttp()
120
- $http.post(`/payment/paymentCaseConfig/purchase/${amounts.value[state.selected].id}`).then((response: any) => {
121
- if (response) {
122
- showDialog.value = false
123
- emit('complete', { result: response, type: 'bean' })
124
- } else {
125
- Taro.showToast({
126
- title: response.message,
127
- icon: 'none',
128
- })
129
- }
130
- })
131
- }
132
-
133
-
134
- const onPayClick = () => {
135
- // 用云豆支付
136
- if (selectBean.value) {
137
- showDialog.value = true
138
- return
139
- }
140
-
141
- // 微信支付
142
- if (!selectBean.value && !state.agreed) {
143
- Taro.showToast({
144
- title: '请勾选《大道云平台云豆充值协议》',
145
- icon: 'none',
146
- })
147
- return false
148
- }
149
- state.buttonLoading = true
150
- wx.login({
151
- success({ code }: { code: string }) {
152
- requestPaymentByBean({
153
- caseConfigId: amounts.value[state.selected].id,
154
- amount: amounts.value[state.selected].paymentAmount,
155
- app: 'corporateStar', // 'crm',
156
- tenant: props.tenant, // '17454646',
157
- user: code
158
- }).then(result => {
159
- state.buttonLoading = false
160
- if (result) {
161
- emit('complete', { result: true, type: 'wePay' })
162
- }
163
- })
164
- }
165
- })
166
- }
167
- </script>
168
-
169
- <style lang="scss">
170
- .recharge-view2 {
171
- height: 100%;
172
- display: flex;
173
- flex-direction: column;
174
- --nut-primary-color: #017fff;
175
-
176
- .flex-grow {
177
- flex-grow: 1;
178
- }
179
-
180
- .bean-buy {
181
- margin: 0 15px;
182
- padding: 10px;
183
- background: #FFFBF3;
184
- border-radius: 5px;
185
- display: flex;
186
- justify-content: space-between;
187
- align-items: center;
188
-
189
- .left {
190
- .title {
191
- color: #FD6701;
192
- font-size: 14px;
193
- font-weight: 600;
194
- line-height: 20px;
195
- margin-bottom: 6px;
196
- }
197
-
198
- .amount {
199
- color: #353535;
200
- font-size: 13px;
201
- line-height: 16px;
202
- background-image: url('https://cdn.ddjf.com/static/images/appkit/yundou.png');
203
- background-repeat: no-repeat;
204
- background-size: 16px 16px;
205
- padding-left: 24px;
206
- }
207
- }
208
-
209
- .right {
210
- display: flex;
211
- align-items: center;
212
-
213
- .amount {
214
- color: #353535;
215
- font-size: 15px;
216
- line-height: 20px;
217
- margin-right: 10px;
218
- }
219
-
220
- .icon {
221
- display: block;
222
- width: 16px;
223
- height: 16px;
224
- font-size: 0;
225
- }
226
- }
227
- }
228
-
229
- .amount-footer {
230
- padding: 10px 0;
231
- padding-bottom: 20px;
232
-
233
- .agreement {
234
- font-size: 12px;
235
- display: flex;
236
- justify-content: center;
237
- align-items: cebter;
238
- height: 40px;
239
- }
240
-
241
- .buy-amount {
242
- display: flex;
243
- justify-content: space-between;
244
- align-items: center;
245
- padding: 0 10px;
246
- border-radius: 0px;
247
- box-shadow: 0px -5px 14px -5px rgba(0, 0, 0, 0.1);
248
-
249
- /* 上边框阴影 */
250
- .left {
251
- width: 70%;
252
- color: #353535;
253
- font-size: 13px;
254
-
255
- .amount {
256
- color: #FD6701;
257
- font-size: 20px;
258
- font-weight: 600;
259
-
260
- i {
261
- font-size: 14px;
262
- font-style: normal;
263
- }
264
- }
265
- }
266
-
267
- .recharge-button {
268
- background: linear-gradient(90deg, #FFEBC1 0%, #FFD7A7 52.29%, #FFB875 100%);
269
- color: #353535;
270
- margin: 12px 0;
271
- border: 0;
272
- border-radius: 8px;
273
- flex: 1;
274
- }
275
- }
276
-
277
- .nut-checkbox {
278
- line-height: 40px;
279
- }
280
-
281
- .nut-checkbox__label {
282
- margin-left: 8px;
283
- flex: flex;
284
- font-size: 12px;
285
- }
286
-
287
- .link {
288
- display: inline;
289
- color: #FD6701;
290
- }
291
- }
292
- }
293
-
294
- .trade-dialog {
295
- .nut-dialog__header {
296
- font-size: 16px;
297
- color: #262626
298
- }
299
-
300
- .item {
301
- font-size: 14px;
302
- color: #666666;
303
- line-height: 21px;
304
- }
305
-
306
- .nut-dialog__footer-cancel {
307
- color: #353535 !important;
308
- border-color: #CCCCCC !important;
309
- }
310
-
311
- .nut-dialog__footer-ok {
312
- border: none;
313
- color: #353535;
314
- background: linear-gradient(90deg, #FFEBC1 0%, #FFB875 100%);
315
- }
316
- }
317
- </style>
1
+ <template>
2
+ <view class="view recharge-view2">
3
+ <view class="flex-grow">
4
+ <rights-picker :items="amounts" :selected="state.selected" @change="onAmountSelect" />
5
+ <div class="bean-buy" v-if="amounts[state.selected]">
6
+ <div class="left">
7
+ <div class="title">使用云豆支付</div>
8
+ <div class="amount" v-if="!selectBean">余额 {{ formatAmount(balance || 0) }}</div>
9
+ <div class="amount" v-else>扣减后余额 {{ formatAmount(balance - amounts[state.selected].paymentAmount) }}</div>
10
+ </div>
11
+ <div class="right" v-if="balance >= amounts[state.selected].paymentAmount" @click="selectBean = !selectBean">
12
+ <div class="amount">-{{ formatAmount(amounts[state.selected].paymentAmount || 0) }}</div>
13
+ <img class="icon"
14
+ :src="selectBean ? 'https://cdn.ddjf.com/static/images/appkit/select.svg' : 'https://cdn.ddjf.com/static/images/appkit/not-select.svg'" />
15
+ </div>
16
+ </div>
17
+ </view>
18
+ <view class="amount-footer">
19
+ <view class="agreement" v-if="!selectBean">
20
+ <nut-checkbox v-model="state.agreed">我已阅读并同意<a class="link inline"
21
+ @click="onAgreementLinkClick">《大道云平台云豆充值服务协议》</a></nut-checkbox>
22
+ </view>
23
+ <div class="buy-amount">
24
+ <div class="left">
25
+ 待支付:
26
+ <span class="amount">
27
+ <i>¥</i>{{ formatAmount(currentAmount) }}
28
+ </span>
29
+ </div>
30
+ <nut-button block shape="square" :loading="state.buttonLoading" @click="onPayClick"
31
+ class="recharge-button">购买</nut-button>
32
+ </div>
33
+ </view>
34
+ <nut-dialog title="确认购买" custom-class="trade-dialog" v-model:visible="showDialog" @cancel="showDialog = !showDialog"
35
+ @ok="beanPay">
36
+ <template v-if="amounts[state.selected]">
37
+ <div class="item">云豆扣减:{{ formatAmount(amounts[state.selected].paymentAmount || 0) }}</div>
38
+ <div class="item">权益增加:{{ formatAmount(amounts[state.selected].priceRightNum || 0) }}笔</div>
39
+ <div class="item">扣减后云豆余额:{{ formatAmount(balance - amounts[state.selected].paymentAmount) }}</div>
40
+ </template>
41
+ </nut-dialog>
42
+ </view>
43
+ </template>
44
+
45
+ <script lang="ts" setup>
46
+ import { computed, onMounted, reactive, ref } from 'vue'
47
+ import RightsPicker, { Amount } from './RightsPicker.vue'
48
+ import { endpoints, useHttp } from '../api'
49
+ import { requestPaymentByBean } from '../services'
50
+ import Taro from '@tarojs/taro'
51
+ import { useAmount } from '../../shared/composables/useAmount'
52
+
53
+ // 充值用户界面
54
+ // 配置了必须的属性后
55
+ // 自动获取支付套餐包列表
56
+ // 并发起微信支付
57
+ export interface RechargeViewProps {
58
+ /**
59
+ * 应用
60
+ **/
61
+ app: string,
62
+ /**
63
+ * 充值场景
64
+ */
65
+ // stage?: string, // 这个参数暂时不用
66
+ /**
67
+ * 租户
68
+ */
69
+ tenant: string
70
+ }
71
+
72
+ const props = defineProps<RechargeViewProps>()
73
+ const { formatAmount } = useAmount()
74
+
75
+ const emit = defineEmits<{
76
+ (event: 'complete', value: { result: boolean, type: string }): void,
77
+ (event: 'agree'): void,
78
+ }>()
79
+
80
+ const state = reactive({
81
+ agreed: false,
82
+ selected: 0,
83
+ // agreementOpen: false,
84
+ buttonLoading: false,
85
+ })
86
+
87
+
88
+ const balance = ref<number>(0)
89
+ const amounts = ref<Amount[]>([])
90
+ const selectBean = ref<boolean>(false)
91
+
92
+ const onAgreementLinkClick = (e) => {
93
+ e.preventDefault()
94
+ e.stopImmediatePropagation()
95
+ emit('agree')
96
+ // state.agreementOpen = true
97
+ }
98
+
99
+ const onAmountSelect = (selected: number) => {
100
+ state.selected = selected
101
+ selectBean.value = false
102
+ }
103
+
104
+ const currentAmount = computed(() => {
105
+ return amounts.value[state.selected] && !selectBean.value ? amounts.value[state.selected].paymentAmount : 0
106
+ })
107
+
108
+ onMounted(() => {
109
+ const $http = useHttp()
110
+ $http.get<any[]>(endpoints.获取增值权益类目).then((res: any) => {
111
+ balance.value = res.balance
112
+ amounts.value = res.paymentCaseConfigVOS
113
+ })
114
+ })
115
+
116
+ // 云豆支付
117
+ const showDialog = ref<boolean>(false)
118
+ async function beanPay() {
119
+ const $http = useHttp()
120
+ $http.post(`/payment/paymentCaseConfig/purchase/${amounts.value[state.selected].id}`).then((response: any) => {
121
+ if (response) {
122
+ showDialog.value = false
123
+ emit('complete', { result: response, type: 'bean' })
124
+ } else {
125
+ Taro.showToast({
126
+ title: response.message,
127
+ icon: 'none',
128
+ })
129
+ }
130
+ })
131
+ }
132
+
133
+
134
+ const onPayClick = () => {
135
+ // 用云豆支付
136
+ if (selectBean.value) {
137
+ showDialog.value = true
138
+ return
139
+ }
140
+
141
+ // 微信支付
142
+ if (!selectBean.value && !state.agreed) {
143
+ Taro.showToast({
144
+ title: '请勾选《大道云平台云豆充值协议》',
145
+ icon: 'none',
146
+ })
147
+ return false
148
+ }
149
+ state.buttonLoading = true
150
+ wx.login({
151
+ success({ code }: { code: string }) {
152
+ requestPaymentByBean({
153
+ caseConfigId: amounts.value[state.selected].id,
154
+ amount: amounts.value[state.selected].paymentAmount,
155
+ app: 'corporateStar', // 'crm',
156
+ tenant: props.tenant, // '17454646',
157
+ user: code
158
+ }).then(result => {
159
+ state.buttonLoading = false
160
+ if (result) {
161
+ emit('complete', { result: true, type: 'wePay' })
162
+ }
163
+ })
164
+ }
165
+ })
166
+ }
167
+ </script>
168
+
169
+ <style lang="scss">
170
+ .recharge-view2 {
171
+ height: 100%;
172
+ display: flex;
173
+ flex-direction: column;
174
+ --nut-primary-color: #017fff;
175
+
176
+ .flex-grow {
177
+ flex-grow: 1;
178
+ }
179
+
180
+ .bean-buy {
181
+ margin: 0 15px;
182
+ padding: 10px;
183
+ background: #FFFBF3;
184
+ border-radius: 5px;
185
+ display: flex;
186
+ justify-content: space-between;
187
+ align-items: center;
188
+
189
+ .left {
190
+ .title {
191
+ color: #FD6701;
192
+ font-size: 14px;
193
+ font-weight: 600;
194
+ line-height: 20px;
195
+ margin-bottom: 6px;
196
+ }
197
+
198
+ .amount {
199
+ color: #353535;
200
+ font-size: 13px;
201
+ line-height: 16px;
202
+ background-image: url('https://cdn.ddjf.com/static/images/appkit/yundou.png');
203
+ background-repeat: no-repeat;
204
+ background-size: 16px 16px;
205
+ padding-left: 24px;
206
+ }
207
+ }
208
+
209
+ .right {
210
+ display: flex;
211
+ align-items: center;
212
+
213
+ .amount {
214
+ color: #353535;
215
+ font-size: 15px;
216
+ line-height: 20px;
217
+ margin-right: 10px;
218
+ }
219
+
220
+ .icon {
221
+ display: block;
222
+ width: 16px;
223
+ height: 16px;
224
+ font-size: 0;
225
+ }
226
+ }
227
+ }
228
+
229
+ .amount-footer {
230
+ padding: 10px 0;
231
+ padding-bottom: 20px;
232
+
233
+ .agreement {
234
+ font-size: 12px;
235
+ display: flex;
236
+ justify-content: center;
237
+ align-items: cebter;
238
+ height: 40px;
239
+ }
240
+
241
+ .buy-amount {
242
+ display: flex;
243
+ justify-content: space-between;
244
+ align-items: center;
245
+ padding: 0 10px;
246
+ border-radius: 0px;
247
+ box-shadow: 0px -5px 14px -5px rgba(0, 0, 0, 0.1);
248
+
249
+ /* 上边框阴影 */
250
+ .left {
251
+ width: 70%;
252
+ color: #353535;
253
+ font-size: 13px;
254
+
255
+ .amount {
256
+ color: #FD6701;
257
+ font-size: 20px;
258
+ font-weight: 600;
259
+
260
+ i {
261
+ font-size: 14px;
262
+ font-style: normal;
263
+ }
264
+ }
265
+ }
266
+
267
+ .recharge-button {
268
+ background: linear-gradient(90deg, #FFEBC1 0%, #FFD7A7 52.29%, #FFB875 100%);
269
+ color: #353535;
270
+ margin: 12px 0;
271
+ border: 0;
272
+ border-radius: 8px;
273
+ flex: 1;
274
+ }
275
+ }
276
+
277
+ .nut-checkbox {
278
+ line-height: 40px;
279
+ }
280
+
281
+ .nut-checkbox__label {
282
+ margin-left: 8px;
283
+ flex: flex;
284
+ font-size: 12px;
285
+ }
286
+
287
+ .link {
288
+ display: inline;
289
+ color: #FD6701;
290
+ }
291
+ }
292
+ }
293
+
294
+ .trade-dialog {
295
+ .nut-dialog__header {
296
+ font-size: 16px;
297
+ color: #262626
298
+ }
299
+
300
+ .item {
301
+ font-size: 14px;
302
+ color: #666666;
303
+ line-height: 21px;
304
+ }
305
+
306
+ .nut-dialog__footer-cancel {
307
+ color: #353535 !important;
308
+ border-color: #CCCCCC !important;
309
+ }
310
+
311
+ .nut-dialog__footer-ok {
312
+ border: none;
313
+ color: #353535;
314
+ background: linear-gradient(90deg, #FFEBC1 0%, #FFB875 100%);
315
+ }
316
+ }
317
+ </style>