@uxda/appkit 4.2.69 → 4.2.71
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
|
@@ -1679,7 +1679,6 @@ const requestBrandWCPay = (params, Appcode = "") => {
|
|
|
1679
1679
|
$http.post(endpoints.\u83B7\u53D6\u5FAE\u4FE1\u652F\u4ED8\u53C2\u6570\u5305, {
|
|
1680
1680
|
...params
|
|
1681
1681
|
}).then((response) => {
|
|
1682
|
-
console.log(response, "-----response");
|
|
1683
1682
|
if (!response.json) {
|
|
1684
1683
|
showToast({
|
|
1685
1684
|
title: response.message,
|
|
@@ -1814,7 +1813,7 @@ var script$B = /* @__PURE__ */ defineComponent({
|
|
|
1814
1813
|
}).then((result) => {
|
|
1815
1814
|
console.log(result, "------requestBrandWCPay");
|
|
1816
1815
|
state.buttonLoading = false;
|
|
1817
|
-
if (typeof result === "boolean") {
|
|
1816
|
+
if (typeof result === "boolean" && result) {
|
|
1818
1817
|
window.location.href = props.payFinishJumpUrl;
|
|
1819
1818
|
} else {
|
|
1820
1819
|
emit("complete", result);
|
|
@@ -2197,7 +2196,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
2197
2196
|
}).then((result) => {
|
|
2198
2197
|
console.log(result, "------requestBrandWCPay");
|
|
2199
2198
|
state.buttonLoading = false;
|
|
2200
|
-
if (typeof result === "boolean") {
|
|
2199
|
+
if (typeof result === "boolean" && result) {
|
|
2201
2200
|
window.location.href = props.payFinishJumpUrl;
|
|
2202
2201
|
} else {
|
|
2203
2202
|
emit("complete", { result, type: "wePay" });
|
package/package.json
CHANGED
|
@@ -114,7 +114,7 @@ const onPayClick = () => {
|
|
|
114
114
|
}).then(result => {
|
|
115
115
|
console.log(result, '------requestBrandWCPay')
|
|
116
116
|
state.buttonLoading = false
|
|
117
|
-
if (typeof result === 'boolean') {
|
|
117
|
+
if (typeof result === 'boolean' && result) {
|
|
118
118
|
window.location.href = props.payFinishJumpUrl as string
|
|
119
119
|
} else {
|
|
120
120
|
emit('complete', result)
|
|
@@ -185,7 +185,7 @@ const onPayClick = () => {
|
|
|
185
185
|
}).then(result => {
|
|
186
186
|
console.log(result, '------requestBrandWCPay')
|
|
187
187
|
state.buttonLoading = false
|
|
188
|
-
if (typeof result === 'boolean') {
|
|
188
|
+
if (typeof result === 'boolean' && result) {
|
|
189
189
|
window.location.href = props.payFinishJumpUrl as string
|
|
190
190
|
} else {
|
|
191
191
|
emit('complete', { result, type: 'wePay' })
|