@uxda/appkit 1.0.30 → 1.0.36
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.
- package/dist/appkit.css +12 -1
- package/dist/index.js +20 -16
- package/package.json +2 -1
- package/rollup.config.mjs +17 -14
- package/src/balance/components/AccountView.vue +6 -6
- package/src/balance/components/BalanceCard.vue +4 -3
- package/src/index.ts +1 -0
- package/src/main.scss +2 -1
- package/src/payment/components/AmountPicker.vue +2 -2
- package/src/styles/fonts.scss +3 -0
- package/dist/main.css +0 -3
- package/dist/styles.css +0 -1
package/dist/appkit.css
CHANGED
|
@@ -161,6 +161,13 @@
|
|
|
161
161
|
.recharge-result .back-button {
|
|
162
162
|
margin-top: 3em;
|
|
163
163
|
}
|
|
164
|
+
page {
|
|
165
|
+
--text-color: #333;
|
|
166
|
+
--text-color-dark-mode: #eee;
|
|
167
|
+
}
|
|
168
|
+
.number {
|
|
169
|
+
font-family: 'DIN alternate';
|
|
170
|
+
}
|
|
164
171
|
.account-card .card {
|
|
165
172
|
background: #2F2F2F;
|
|
166
173
|
border-radius: 10px;
|
|
@@ -673,7 +680,6 @@
|
|
|
673
680
|
font-size: 12px;
|
|
674
681
|
line-height: 28px;
|
|
675
682
|
}
|
|
676
|
-
|
|
677
683
|
.consumption-rules-popup {
|
|
678
684
|
border-radius: 16px;
|
|
679
685
|
width: 70%;
|
|
@@ -687,11 +693,13 @@
|
|
|
687
693
|
.balance-reminder {
|
|
688
694
|
--primary-button-background: linear-gradient(135deg, #098C9D 0%, #66BF97 100%);
|
|
689
695
|
}
|
|
696
|
+
|
|
690
697
|
.balance-reminder h2 {
|
|
691
698
|
font-size: 16px;
|
|
692
699
|
font-weight: bold;
|
|
693
700
|
margin-bottom: 14px;
|
|
694
701
|
}
|
|
702
|
+
|
|
695
703
|
.balance-reminder .body {
|
|
696
704
|
height: 120px;
|
|
697
705
|
box-sizing: border-box;
|
|
@@ -704,6 +712,7 @@
|
|
|
704
712
|
text-align: center;
|
|
705
713
|
color: #666;
|
|
706
714
|
}
|
|
715
|
+
|
|
707
716
|
.balance-reminder .footer {
|
|
708
717
|
display: flex;
|
|
709
718
|
flex-direction: row;
|
|
@@ -711,10 +720,12 @@
|
|
|
711
720
|
align-items: center;
|
|
712
721
|
padding: 10px 20px 20px 20px;
|
|
713
722
|
}
|
|
723
|
+
|
|
714
724
|
.balance-reminder .footer .col {
|
|
715
725
|
flex-grow: 1;
|
|
716
726
|
padding: 6px;
|
|
717
727
|
}
|
|
728
|
+
|
|
718
729
|
.balance-reminder .footer .recharge-button {
|
|
719
730
|
color: #fff;
|
|
720
731
|
background: var(--primary-button-background);
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent, reactive, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createStaticVNode, createCommentVNode, renderSlot, createVNode, ref, onMounted,
|
|
2
|
-
import Taro, { usePageScroll } from '@tarojs/taro';
|
|
1
|
+
import { defineComponent, reactive, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createTextVNode, createStaticVNode, createCommentVNode, renderSlot, createVNode, ref, onMounted, unref, computed, withDirectives, vShow } from 'vue';
|
|
2
|
+
import Taro, { useDidShow, usePageScroll } from '@tarojs/taro';
|
|
3
3
|
import { Grid, GridItem, Button, Checkbox, Popup, OverLay, Icon, DatePicker, Picker } from '@nutui/nutui-taro';
|
|
4
4
|
|
|
5
|
-
const _hoisted_1$b = { class: "token-line" };
|
|
5
|
+
const _hoisted_1$b = { class: "token-line number" };
|
|
6
|
+
const _hoisted_2$9 = { class: "number" };
|
|
6
7
|
var script$b = /* @__PURE__ */ defineComponent({
|
|
7
8
|
__name: "AmountPicker",
|
|
8
9
|
props: {
|
|
@@ -51,13 +52,16 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
51
52
|
1
|
|
52
53
|
/* TEXT */
|
|
53
54
|
),
|
|
54
|
-
createElementVNode(
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
createElementVNode("h5", null, [
|
|
56
|
+
createTextVNode("\xA5"),
|
|
57
|
+
createElementVNode(
|
|
58
|
+
"span",
|
|
59
|
+
_hoisted_2$9,
|
|
60
|
+
toDisplayString(amount.amount),
|
|
61
|
+
1
|
|
62
|
+
/* TEXT */
|
|
63
|
+
)
|
|
64
|
+
])
|
|
61
65
|
]),
|
|
62
66
|
_: 2
|
|
63
67
|
/* DYNAMIC */
|
|
@@ -755,7 +759,7 @@ const _hoisted_5$4 = /* @__PURE__ */ createElementVNode(
|
|
|
755
759
|
-1
|
|
756
760
|
/* HOISTED */
|
|
757
761
|
);
|
|
758
|
-
const _hoisted_6$3 = { class: "bean-nums" };
|
|
762
|
+
const _hoisted_6$3 = { class: "bean-nums number" };
|
|
759
763
|
const _hoisted_7$3 = /* @__PURE__ */ createElementVNode(
|
|
760
764
|
"div",
|
|
761
765
|
{ class: "account-info-name" },
|
|
@@ -844,7 +848,7 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
844
848
|
function gotoDetail() {
|
|
845
849
|
emit("drill");
|
|
846
850
|
}
|
|
847
|
-
|
|
851
|
+
useDidShow(() => {
|
|
848
852
|
loadBalance();
|
|
849
853
|
});
|
|
850
854
|
return (_ctx, _cache) => {
|
|
@@ -1227,7 +1231,7 @@ const _hoisted_6 = /* @__PURE__ */ createElementVNode(
|
|
|
1227
1231
|
/* HOISTED */
|
|
1228
1232
|
);
|
|
1229
1233
|
const _hoisted_7 = { class: "bean-counts spa-between" };
|
|
1230
|
-
const _hoisted_8 = { class: "counts" };
|
|
1234
|
+
const _hoisted_8 = { class: "counts number" };
|
|
1231
1235
|
const _hoisted_9 = /* @__PURE__ */ createElementVNode(
|
|
1232
1236
|
"div",
|
|
1233
1237
|
{ class: "line" },
|
|
@@ -1251,7 +1255,7 @@ const _hoisted_11 = /* @__PURE__ */ createElementVNode(
|
|
|
1251
1255
|
/* HOISTED */
|
|
1252
1256
|
);
|
|
1253
1257
|
const _hoisted_12 = { class: "bean-list" };
|
|
1254
|
-
const _hoisted_13 = { class: "counts" };
|
|
1258
|
+
const _hoisted_13 = { class: "counts number" };
|
|
1255
1259
|
const _hoisted_14 = { class: "title" };
|
|
1256
1260
|
const _hoisted_15 = { class: "operation-title spa-between" };
|
|
1257
1261
|
const _hoisted_16 = { class: "search-time" };
|
|
@@ -1305,7 +1309,7 @@ const _hoisted_27 = { class: "item-detail" };
|
|
|
1305
1309
|
const _hoisted_28 = { class: "item-info spa-between" };
|
|
1306
1310
|
const _hoisted_29 = { class: "item-info-type" };
|
|
1307
1311
|
const _hoisted_30 = { class: "item-info-title" };
|
|
1308
|
-
const _hoisted_31 = { class: "item-info-amount" };
|
|
1312
|
+
const _hoisted_31 = { class: "item-info-amount number" };
|
|
1309
1313
|
const _hoisted_32 = { class: "item-detail-remark" };
|
|
1310
1314
|
const _hoisted_33 = /* @__PURE__ */ createElementVNode(
|
|
1311
1315
|
"div",
|
|
@@ -1371,7 +1375,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
1371
1375
|
total: 0,
|
|
1372
1376
|
privileges: []
|
|
1373
1377
|
});
|
|
1374
|
-
|
|
1378
|
+
useDidShow(() => {
|
|
1375
1379
|
Taro.setNavigationBarTitle({
|
|
1376
1380
|
title: "\u6211\u7684\u8D26\u6237"
|
|
1377
1381
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxda/appkit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "小程序应用开发包",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.ts",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"eslint-config-taro": "^3.5.6",
|
|
59
59
|
"eslint-plugin-vue": "^8.0.0",
|
|
60
60
|
"postcss": "^8.4.32",
|
|
61
|
+
"postcss-import": "^15.1.0",
|
|
61
62
|
"rollup": "^4.6.1",
|
|
62
63
|
"rollup-plugin-css-only": "^4.5.2",
|
|
63
64
|
"rollup-plugin-dts": "^6.1.0",
|
package/rollup.config.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import vue from 'rollup-plugin-vue'
|
|
|
2
2
|
import css from 'rollup-plugin-css-only'
|
|
3
3
|
import esbuild from 'rollup-plugin-esbuild'
|
|
4
4
|
import postcss from 'rollup-plugin-postcss'
|
|
5
|
-
import
|
|
5
|
+
import atImport from 'postcss-import'
|
|
6
6
|
|
|
7
7
|
export default [
|
|
8
8
|
{
|
|
@@ -29,23 +29,26 @@ export default [
|
|
|
29
29
|
}),
|
|
30
30
|
postcss({
|
|
31
31
|
include: /\.scss/,
|
|
32
|
-
extract: 'appkit.css'
|
|
32
|
+
extract: 'appkit.css',
|
|
33
|
+
plugins: [
|
|
34
|
+
atImport()
|
|
35
|
+
]
|
|
33
36
|
}),
|
|
34
37
|
esbuild({
|
|
35
38
|
})
|
|
36
39
|
],
|
|
37
40
|
external: ['vue', '@nutui/nutui-taro']
|
|
38
41
|
},
|
|
39
|
-
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
42
|
+
// {
|
|
43
|
+
// input: './src/main.scss',
|
|
44
|
+
// output: {
|
|
45
|
+
// file: 'dist/main.css',
|
|
46
|
+
// },
|
|
47
|
+
// plugins: [
|
|
48
|
+
// postcss({
|
|
49
|
+
// use: ['sass'],
|
|
50
|
+
// extract: resolve('./dist/styles.css'),
|
|
51
|
+
// })
|
|
52
|
+
// ]
|
|
53
|
+
// },
|
|
51
54
|
]
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div class="rule" @click="rulesPopupOpen = true">规则说明</div>
|
|
14
14
|
</div>
|
|
15
15
|
<div class="bean-counts spa-between">
|
|
16
|
-
<div class="counts">{{ balance.total || 0 }}</div>
|
|
16
|
+
<div class="counts number">{{ balance.total || 0 }}</div>
|
|
17
17
|
<div class="pay" @click="gotoRecharge">云豆充值</div>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<div class="bean-list">
|
|
30
30
|
<template v-for="item in balance.privileges" :key="item">
|
|
31
31
|
<div class="bean-list-item">
|
|
32
|
-
<div class="counts">
|
|
32
|
+
<div class="counts number">
|
|
33
33
|
{{ item.amount }}
|
|
34
34
|
</div>
|
|
35
35
|
<div class="title">
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
</div>
|
|
78
78
|
<div class="item-info-title">{{ it.title }}</div>
|
|
79
79
|
</div>
|
|
80
|
-
<div class="item-info-amount">
|
|
80
|
+
<div class="item-info-amount number">
|
|
81
81
|
{{ it.direction == '支出' ? '-' : '+' }}{{ it.amount }}
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
</template>
|
|
129
129
|
|
|
130
130
|
<script lang="ts" setup>
|
|
131
|
-
import Taro, { usePageScroll } from '@tarojs/taro'
|
|
132
|
-
import { computed,
|
|
131
|
+
import Taro, { useDidShow, usePageScroll } from '@tarojs/taro'
|
|
132
|
+
import { computed, reactive, ref } from 'vue'
|
|
133
133
|
import { endpoints, makeHttp } from '../api'
|
|
134
134
|
import { ConsumptionFiltering, ConsumptionGroups, Balance } from '../types'
|
|
135
135
|
import ConsumptionFilter from './ConsumptionFilter.vue'
|
|
@@ -175,7 +175,7 @@ const balance = ref<Balance>({
|
|
|
175
175
|
privileges: []
|
|
176
176
|
})
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
useDidShow(() => {
|
|
179
179
|
Taro.setNavigationBarTitle({
|
|
180
180
|
title: '我的账户',
|
|
181
181
|
})
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
<span class="baan-name">云豆</span>
|
|
11
11
|
</div>
|
|
12
|
-
<div class="bean-nums">{{ balance.total }}</div>
|
|
12
|
+
<div class="bean-nums number">{{ balance.total }}</div>
|
|
13
13
|
</div>
|
|
14
14
|
<div class="card-row-right">
|
|
15
15
|
<div class="account-info-entry" @click="gotoDetail">
|
|
@@ -35,9 +35,10 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
|
|
37
37
|
<script setup lang="ts">
|
|
38
|
-
import {
|
|
38
|
+
import { ref } from 'vue'
|
|
39
39
|
import { endpoints, makeHttp } from '../api'
|
|
40
40
|
import { Balance } from '../types'
|
|
41
|
+
import { useDidShow } from '@tarojs/taro'
|
|
41
42
|
|
|
42
43
|
const balance = ref<Balance>({
|
|
43
44
|
total: 0,
|
|
@@ -71,7 +72,7 @@ function gotoDetail () {
|
|
|
71
72
|
emit('drill')
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
|
|
75
|
+
useDidShow(() => {
|
|
75
76
|
loadBalance()
|
|
76
77
|
})
|
|
77
78
|
|
package/src/index.ts
CHANGED
package/src/main.scss
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
@import url(./styles/vars.scss);
|
|
1
|
+
@import url(./styles/vars.scss);
|
|
2
|
+
@import url(./styles/fonts.scss);
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
:class="{selected: state.selected === index}"
|
|
11
11
|
@click="() => onGridItemClick(index)"
|
|
12
12
|
:key="index">
|
|
13
|
-
<h4 class="token-line">{{ amount.token }}</h4>
|
|
14
|
-
<h5
|
|
13
|
+
<h4 class="token-line number">{{ amount.token }}</h4>
|
|
14
|
+
<h5>¥<span class="number">{{ amount.amount }}</span></h5>
|
|
15
15
|
</nut-grid-item>
|
|
16
16
|
</nut-grid>
|
|
17
17
|
</template>
|
package/dist/main.css
DELETED
package/dist/styles.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import url(./styles/vars.scss);
|