@uxda/appkit 4.2.63 → 4.2.65
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 +1 -1
- package/dist/index.js +15 -14
- package/package.json +1 -1
- package/src/balance/components/AccountView.vue +1 -1
- package/src/balance/components/ConsumptionFilter.vue +1 -1
- package/src/balance/components/ListFilterPicker.vue +1 -1
- package/src/payment/api/endpoints.ts +3 -0
- package/src/user/components/UserInfo.vue +7 -6
package/dist/appkit.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import '@nutui/nutui-taro/dist/packages/checkbox/style/css';
|
|
|
4
4
|
import { defineComponent, reactive, createBlock, openBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createTextVNode, ref, computed, onUnmounted, createCommentVNode, renderSlot, createVNode, normalizeStyle, unref, isRef, onMounted, createStaticVNode, watch, withDirectives, vShow, useModel, mergeModels, resolveComponent, vModelText, watchPostEffect, withModifiers } from 'vue';
|
|
5
5
|
import '@nutui/nutui-taro/dist/packages/grid/style/css';
|
|
6
6
|
import '@nutui/nutui-taro/dist/packages/griditem/style/css';
|
|
7
|
-
import Taro, { getSystemInfoSync, getMenuButtonBoundingClientRect, uploadFile, request as request$1, showToast, chooseMedia, chooseMessageFile, showLoading, hideLoading, useDidShow, showModal, getStorageSync,
|
|
7
|
+
import Taro, { getSystemInfoSync, getMenuButtonBoundingClientRect, uploadFile, request as request$1, showToast, chooseMedia, chooseMessageFile, showLoading, hideLoading, useDidShow, showModal, getStorageSync, useRouter } from '@tarojs/taro';
|
|
8
8
|
import '@nutui/nutui-taro/dist/packages/popup/style/css';
|
|
9
9
|
import isMobilePhone from 'validator/es/lib/isMobilePhone';
|
|
10
10
|
import isIdentityCard from 'validator/es/lib/isIdentityCard';
|
|
@@ -1478,7 +1478,10 @@ const endpointsList$2 = {
|
|
|
1478
1478
|
appCode: params.app,
|
|
1479
1479
|
tenantId: params.tenant,
|
|
1480
1480
|
amount: params.amount,
|
|
1481
|
-
certificateNo: params.user
|
|
1481
|
+
certificateNo: params.user,
|
|
1482
|
+
accountAuthFlag: params.accountAuthFlag || false,
|
|
1483
|
+
channelCode: params.channelCode || null,
|
|
1484
|
+
payFinishJumpUrl: params.payFinishJumpUrl || null
|
|
1482
1485
|
}),
|
|
1483
1486
|
transform: (data) => {
|
|
1484
1487
|
let json = null;
|
|
@@ -2535,9 +2538,7 @@ var script$v = /* @__PURE__ */ defineComponent({
|
|
|
2535
2538
|
_cache[0] || (_cache[0] = createElementVNode(
|
|
2536
2539
|
"div",
|
|
2537
2540
|
{ class: "consumption-filter-title" },
|
|
2538
|
-
|
|
2539
|
-
createElementVNode("h3", null, "\u9009\u62E9\u7B5B\u9009\u9879")
|
|
2540
|
-
],
|
|
2541
|
+
" \u9009\u62E9\u7B5B\u9009\u9879 ",
|
|
2541
2542
|
-1
|
|
2542
2543
|
/* HOISTED */
|
|
2543
2544
|
)),
|
|
@@ -3793,9 +3794,7 @@ var script$n = /* @__PURE__ */ defineComponent({
|
|
|
3793
3794
|
_cache[0] || (_cache[0] = createElementVNode(
|
|
3794
3795
|
"div",
|
|
3795
3796
|
{ class: "list-filter-picker-title" },
|
|
3796
|
-
|
|
3797
|
-
createElementVNode("h3", null, "\u9009\u62E9\u7B5B\u9009\u9879")
|
|
3798
|
-
],
|
|
3797
|
+
" \u9009\u62E9\u7B5B\u9009\u9879 ",
|
|
3799
3798
|
-1
|
|
3800
3799
|
/* HOISTED */
|
|
3801
3800
|
)),
|
|
@@ -6037,16 +6036,18 @@ var script$9 = /* @__PURE__ */ defineComponent({
|
|
|
6037
6036
|
});
|
|
6038
6037
|
updateImage(res.tempFilePath);
|
|
6039
6038
|
} else {
|
|
6040
|
-
let res = await
|
|
6041
|
-
count: 1
|
|
6039
|
+
let res = await chooseMedia({
|
|
6040
|
+
count: 1,
|
|
6041
|
+
sourceType: ["album"]
|
|
6042
|
+
// "camera" | "album"
|
|
6042
6043
|
});
|
|
6043
|
-
if (res.
|
|
6044
|
-
const
|
|
6044
|
+
if (res.tempFiles) {
|
|
6045
|
+
const { tempFilePath } = res.tempFiles[0];
|
|
6045
6046
|
if (Taro.getEnv() === "WEB") {
|
|
6046
|
-
updateImage(
|
|
6047
|
+
updateImage(tempFilePath);
|
|
6047
6048
|
return;
|
|
6048
6049
|
}
|
|
6049
|
-
emits("crop",
|
|
6050
|
+
emits("crop", tempFilePath);
|
|
6050
6051
|
}
|
|
6051
6052
|
}
|
|
6052
6053
|
}
|
package/package.json
CHANGED
|
@@ -55,6 +55,9 @@ const endpointsList: HttpEndpoints = {
|
|
|
55
55
|
tenantId: params.tenant,
|
|
56
56
|
amount: params.amount,
|
|
57
57
|
certificateNo: params.user,
|
|
58
|
+
accountAuthFlag: params.accountAuthFlag || false,
|
|
59
|
+
channelCode: params.channelCode || null,
|
|
60
|
+
payFinishJumpUrl: params.payFinishJumpUrl || null,
|
|
58
61
|
}),
|
|
59
62
|
transform: (data: any) => {
|
|
60
63
|
let json = null
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
</template>
|
|
129
129
|
|
|
130
130
|
<script lang="ts" setup>
|
|
131
|
-
import Taro, { useDidShow, showToast, showLoading, hideLoading, uploadFile, showModal,
|
|
131
|
+
import Taro, { useDidShow, showToast, showLoading, hideLoading, uploadFile, showModal, chooseMedia } from "@tarojs/taro";
|
|
132
132
|
import { ref, onMounted, reactive, onUnmounted } from "vue";
|
|
133
133
|
import { useAppKitOptions } from "../../Appkit";
|
|
134
134
|
import { useEncode } from "../../shared/composables/useEncode";
|
|
@@ -198,18 +198,19 @@ async function toUpload() {
|
|
|
198
198
|
|
|
199
199
|
updateImage(res.tempFilePath);
|
|
200
200
|
} else {
|
|
201
|
-
let res = await
|
|
201
|
+
let res = await chooseMedia({
|
|
202
202
|
count: 1,
|
|
203
|
+
sourceType: ['album'], // "camera" | "album"
|
|
203
204
|
});
|
|
204
|
-
if (res.
|
|
205
|
-
const
|
|
205
|
+
if (res.tempFiles) {
|
|
206
|
+
const { tempFilePath } = res.tempFiles[0];
|
|
206
207
|
|
|
207
208
|
if (Taro.getEnv() === "WEB") {
|
|
208
|
-
updateImage(
|
|
209
|
+
updateImage(tempFilePath);
|
|
209
210
|
return
|
|
210
211
|
}
|
|
211
212
|
|
|
212
|
-
emits("crop",
|
|
213
|
+
emits("crop", tempFilePath);
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
216
|
}
|