@uxda/appkit 1.0.12 → 1.0.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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, reactive, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createStaticVNode, createCommentVNode, renderSlot, createVNode, ref, onMounted, createTextVNode, unref, computed, withDirectives, vShow } from 'vue';
2
2
  import Taro, { usePageScroll } from '@tarojs/taro';
3
- import { Grid, GridItem, Button, Checkbox, Popup, OverLay, Icon, DatePicker } from '@nutui/nutui-taro';
3
+ import { Grid, GridItem, Button, Checkbox, Popup, OverLay, Icon, DatePicker, Picker } from '@nutui/nutui-taro';
4
4
 
5
5
  const _hoisted_1$9 = { class: "token-line" };
6
6
  var script$a = /* @__PURE__ */ defineComponent({
@@ -399,8 +399,8 @@ const requestPayment = (params) => {
399
399
  return new Promise((resolve, reject) => {
400
400
  const $http = makeHttp$1();
401
401
  $http.post(endpoints$1.getPayParams, {
402
- ...params,
403
- amount: 0.01
402
+ ...params
403
+ // amount: 0.01,
404
404
  }).then((response) => {
405
405
  requestPayment$2(response.json).then((result) => {
406
406
  if (result) {
@@ -579,10 +579,11 @@ const endpointsList = {
579
579
  * 余额明细
580
580
  */
581
581
  getBalance: {
582
- path: "/ac-app/account/info/detail/app",
582
+ path: "/ac-app/account/info/detail",
583
+ // /app
583
584
  translate: (data) => ({
584
- // appCode: 'fnfundkit',
585
- // tenantCode: '1665925586953629696',
585
+ appCode: "fnfundkit",
586
+ tenantCode: "1665925586953629696"
586
587
  }),
587
588
  transform(result) {
588
589
  return {
@@ -1660,7 +1661,8 @@ const nutComponents = [
1660
1661
  Popup,
1661
1662
  OverLay,
1662
1663
  Icon,
1663
- DatePicker
1664
+ DatePicker,
1665
+ Picker
1664
1666
  ];
1665
1667
  const appComponents = {
1666
1668
  ...components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.0.12",
3
+ "version": "1.0.16",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -39,7 +39,7 @@
39
39
  "@tarojs/taro": "^3.5.6",
40
40
  "@tarojs/taro-h5": "^3.5.6",
41
41
  "@types/wechat-miniprogram": "^3.4.7",
42
- "vue": "^3.2.40"
42
+ "vue": "^3.3.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/core": "^7.8.0",
@@ -53,7 +53,7 @@
53
53
  "@vue/babel-plugin-jsx": "^1.0.6",
54
54
  "@vue/compiler-sfc": "^3.2.40",
55
55
  "babel-preset-taro": "^3.5.6",
56
- "css-loader": "3.4.2",
56
+ "css-loader": "^3.4.2",
57
57
  "eslint": "^8.12.0",
58
58
  "eslint-config-taro": "^3.5.6",
59
59
  "eslint-plugin-vue": "^8.0.0",
@@ -66,12 +66,11 @@
66
66
  "rollup-plugin-scss": "^4.0.0",
67
67
  "rollup-plugin-vue": "^6.0.0",
68
68
  "style-loader": "^3.3.3",
69
- "stylelint": "9.3.0",
69
+ "stylelint": "^9.3.0",
70
70
  "ts-node": "^10.9.1",
71
71
  "typescript": "^5.0.0",
72
72
  "unplugin-auto-import": "^0.17.1",
73
73
  "unplugin-vue-components": "^0.23.0",
74
- "vue-loader": "^17.0.0",
75
74
  "webpack": "^5.78.0"
76
75
  }
77
76
  }
package/rollup.config.mjs CHANGED
@@ -4,17 +4,6 @@ import esbuild from 'rollup-plugin-esbuild'
4
4
  import postcss from 'rollup-plugin-postcss'
5
5
  import { resolve } from 'path'
6
6
 
7
- const nutRegex = /^Nut[A-Z].*$/
8
-
9
- const NutTaroResolver = (name) => {
10
- if (nutRegex.test(name)) {
11
- return {
12
- name: name.slice(3),
13
- from: '@nutui/nutui-taro'
14
- }
15
- }
16
- }
17
-
18
7
  export default [
19
8
  {
20
9
  input: 'src/index.ts',
@@ -38,10 +38,10 @@ const endpointsList: HttpEndpoints = {
38
38
  * 余额明细
39
39
  */
40
40
  getBalance: {
41
- path: '/ac-app/account/info/detail/app',
41
+ path: '/ac-app/account/info/detail', // /app
42
42
  translate: (data: any) => ({
43
- // appCode: 'fnfundkit',
44
- // tenantCode: '1665925586953629696',
43
+ appCode: 'fnfundkit',
44
+ tenantCode: '1665925586953629696',
45
45
  }),
46
46
  transform (result: any) {
47
47
  return {
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  OverLay,
11
11
  Icon,
12
12
  DatePicker,
13
+ Picker,
13
14
  } from '@nutui/nutui-taro'
14
15
  import { type AppKitOptions, useAppKitOptions, DollarApp } from './Appkit'
15
16
  import { PaymentParams, RechargeParams } from './payment/types'
@@ -23,6 +24,7 @@ const nutComponents = [
23
24
  OverLay,
24
25
  Icon,
25
26
  DatePicker,
27
+ Picker,
26
28
  ]
27
29
 
28
30
  const appComponents = {
@@ -8,7 +8,7 @@ const requestPayment = (params: PaymentParams) => {
8
8
  const $http = makeHttp()
9
9
  $http.post(endpoints.getPayParams, {
10
10
  ...params,
11
- amount: 0.01,
11
+ // amount: 0.01,
12
12
  }).then(response => {
13
13
  weappRequestPayment(response.json).then(result => {
14
14
  if (result) {