@uxda/appkit 4.2.59 → 4.2.61
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 +4 -0
- package/dist/index.js +23 -2
- package/package.json +1 -1
- package/src/notice/components/NoticePopup.vue +16 -17
- package/src/payment/components/RechargeView.vue +10 -1
- package/src/payment/components/TradeView.vue +10 -1
- package/src/shared/composables/useDeviceEnv.ts +11 -0
package/dist/appkit.css
CHANGED
|
@@ -1473,6 +1473,8 @@ page {
|
|
|
1473
1473
|
margin-right: 4px;
|
|
1474
1474
|
}
|
|
1475
1475
|
.notice-popup-bd {
|
|
1476
|
+
position: relative;
|
|
1477
|
+
z-index: 10;
|
|
1476
1478
|
color: #353535;
|
|
1477
1479
|
box-shadow: 0px 2px 8px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 1px 0px rgba(255, 255, 255, 0.5019607843) inset, 0px 0px 1px 0px rgba(255, 255, 255, 0.6980392157);
|
|
1478
1480
|
border-radius: 3px;
|
|
@@ -1489,6 +1491,8 @@ page {
|
|
|
1489
1491
|
font-weight: 600;
|
|
1490
1492
|
}
|
|
1491
1493
|
.notice-popup-ft {
|
|
1494
|
+
position: relative;
|
|
1495
|
+
z-index: 10;
|
|
1492
1496
|
display: flex;
|
|
1493
1497
|
align-items: center;
|
|
1494
1498
|
justify-content: center;
|
package/dist/index.js
CHANGED
|
@@ -1714,6 +1714,11 @@ const services$1 = [
|
|
|
1714
1714
|
invokeRecharge$1
|
|
1715
1715
|
];
|
|
1716
1716
|
|
|
1717
|
+
function isWechat() {
|
|
1718
|
+
let ua = window.navigator.userAgent.toLowerCase();
|
|
1719
|
+
return ua.includes("micromessenger");
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1717
1722
|
const _hoisted_1$y = { class: "view recharge-view" };
|
|
1718
1723
|
const _hoisted_2$o = { class: "flex-grow" };
|
|
1719
1724
|
const _hoisted_3$i = { class: "amount-footer" };
|
|
@@ -1763,6 +1768,14 @@ var script$B = /* @__PURE__ */ defineComponent({
|
|
|
1763
1768
|
}
|
|
1764
1769
|
state.buttonLoading = true;
|
|
1765
1770
|
if (Taro.getEnv() === "WEB") {
|
|
1771
|
+
if (!isWechat()) {
|
|
1772
|
+
showToast({
|
|
1773
|
+
title: "\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u6D4F\u89C8\u5668\u6253\u5F00",
|
|
1774
|
+
icon: "none"
|
|
1775
|
+
});
|
|
1776
|
+
state.buttonLoading = false;
|
|
1777
|
+
return false;
|
|
1778
|
+
}
|
|
1766
1779
|
requestBrandWCPay({
|
|
1767
1780
|
amount: amounts.value[state.selected].amount,
|
|
1768
1781
|
app: "loankitMp",
|
|
@@ -1771,7 +1784,7 @@ var script$B = /* @__PURE__ */ defineComponent({
|
|
|
1771
1784
|
channelCode: "centergzh",
|
|
1772
1785
|
payFinishJumpUrl: props.payFinishJumpUrl
|
|
1773
1786
|
}).then((result) => {
|
|
1774
|
-
|
|
1787
|
+
state.buttonLoading = false;
|
|
1775
1788
|
window.location.href = props.payFinishJumpUrl;
|
|
1776
1789
|
});
|
|
1777
1790
|
} else {
|
|
@@ -2130,6 +2143,14 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
2130
2143
|
}
|
|
2131
2144
|
state.buttonLoading = true;
|
|
2132
2145
|
if (Taro.getEnv() === "WEB") {
|
|
2146
|
+
if (!isWechat()) {
|
|
2147
|
+
showToast({
|
|
2148
|
+
title: "\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u6D4F\u89C8\u5668\u6253\u5F00",
|
|
2149
|
+
icon: "none"
|
|
2150
|
+
});
|
|
2151
|
+
state.buttonLoading = false;
|
|
2152
|
+
return false;
|
|
2153
|
+
}
|
|
2133
2154
|
requestBrandWCPayByBean({
|
|
2134
2155
|
caseConfigId: amounts.value[state.selected].id,
|
|
2135
2156
|
amount: amounts.value[state.selected].paymentAmount,
|
|
@@ -2139,7 +2160,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
2139
2160
|
channelCode: "centergzh",
|
|
2140
2161
|
payFinishJumpUrl: props.payFinishJumpUrl
|
|
2141
2162
|
}).then((result) => {
|
|
2142
|
-
|
|
2163
|
+
state.buttonLoading = false;
|
|
2143
2164
|
window.location.href = props.payFinishJumpUrl;
|
|
2144
2165
|
});
|
|
2145
2166
|
} else {
|
package/package.json
CHANGED
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<nut-popup
|
|
3
|
-
pop-class="notice-popup"
|
|
4
|
-
:close-on-click-overlay="false"
|
|
5
|
-
v-model:visible="showPopup"
|
|
6
|
-
round
|
|
7
|
-
>
|
|
2
|
+
<nut-popup pop-class="notice-popup" :close-on-click-overlay="false" v-model:visible="showPopup" round>
|
|
8
3
|
<div class="notice-popup-hd">
|
|
9
|
-
<img
|
|
10
|
-
|
|
11
|
-
src="https://cdn.ddjf.com/static/images/customer-center/system-notice-1.png"
|
|
12
|
-
alt=""
|
|
13
|
-
/>系统公告
|
|
4
|
+
<img class="notice-popup-hd-icon" src="https://cdn.ddjf.com/static/images/customer-center/system-notice-1.png"
|
|
5
|
+
alt="" />系统公告
|
|
14
6
|
</div>
|
|
15
7
|
<div class="notice-popup-bd">
|
|
16
8
|
<div style="white-space: pre-wrap">{{ message.context.replace('【系统公告】 ', '') }}</div>
|
|
17
|
-
<div
|
|
18
|
-
v-if="message.jumpUrl || message.link"
|
|
19
|
-
class="notice-popup-bd-link"
|
|
20
|
-
@click="toViewAttachment"
|
|
21
|
-
>
|
|
9
|
+
<div v-if="message.jumpUrl || message.link" class="notice-popup-bd-link" @click="toViewAttachment">
|
|
22
10
|
点击查看附件
|
|
23
11
|
</div>
|
|
24
12
|
</div>
|
|
@@ -43,7 +31,7 @@ const props = withDefaults(
|
|
|
43
31
|
|
|
44
32
|
const showPopup = ref(true)
|
|
45
33
|
|
|
46
|
-
onMounted(() => {})
|
|
34
|
+
onMounted(() => { })
|
|
47
35
|
|
|
48
36
|
// 关闭
|
|
49
37
|
function onCancel() {
|
|
@@ -86,6 +74,7 @@ const emits = defineEmits(['close', 'view'])
|
|
|
86
74
|
padding: 20px 15px;
|
|
87
75
|
border-radius: 10px !important;
|
|
88
76
|
background: linear-gradient(136.72deg, #d0fdfe 6.02%, #a2b9ff 59.97%, #6593ff 108.78%);
|
|
77
|
+
|
|
89
78
|
&::after {
|
|
90
79
|
content: '';
|
|
91
80
|
position: absolute;
|
|
@@ -97,6 +86,7 @@ const emits = defineEmits(['close', 'view'])
|
|
|
97
86
|
z-index: 1;
|
|
98
87
|
border-radius: 10px;
|
|
99
88
|
}
|
|
89
|
+
|
|
100
90
|
&::before {
|
|
101
91
|
content: '';
|
|
102
92
|
width: 236px;
|
|
@@ -119,13 +109,17 @@ const emits = defineEmits(['close', 'view'])
|
|
|
119
109
|
align-items: center;
|
|
120
110
|
margin-bottom: 20px;
|
|
121
111
|
font-weight: 600;
|
|
112
|
+
|
|
122
113
|
&-icon {
|
|
123
114
|
width: 20px;
|
|
124
115
|
height: 20px;
|
|
125
116
|
margin-right: 4px;
|
|
126
117
|
}
|
|
127
118
|
}
|
|
119
|
+
|
|
128
120
|
&-bd {
|
|
121
|
+
position: relative;
|
|
122
|
+
z-index: 10;
|
|
129
123
|
color: #353535;
|
|
130
124
|
box-shadow: 0px 2px 8px 0px #ffffff33 inset, 0px 1px 1px 0px #ffffff80 inset,
|
|
131
125
|
0px 0px 1px 0px #ffffffb2;
|
|
@@ -136,16 +130,21 @@ const emits = defineEmits(['close', 'view'])
|
|
|
136
130
|
padding: 15px 10px;
|
|
137
131
|
box-sizing: border-box;
|
|
138
132
|
font-size: 10px;
|
|
133
|
+
|
|
139
134
|
&-link {
|
|
140
135
|
color: #007fff;
|
|
141
136
|
margin-top: 2px;
|
|
142
137
|
font-weight: 600;
|
|
143
138
|
}
|
|
144
139
|
}
|
|
140
|
+
|
|
145
141
|
&-ft {
|
|
142
|
+
position: relative;
|
|
143
|
+
z-index: 10;
|
|
146
144
|
display: flex;
|
|
147
145
|
align-items: center;
|
|
148
146
|
justify-content: center;
|
|
147
|
+
|
|
149
148
|
&-btn {
|
|
150
149
|
background: #007fff;
|
|
151
150
|
color: #fff;
|
|
@@ -20,6 +20,7 @@ import AmountPicker from './AmountPicker.vue'
|
|
|
20
20
|
import { useHttp, endpoints } from '../api'
|
|
21
21
|
import { requestBrandWCPay, requestPayment } from '../services'
|
|
22
22
|
import Taro, { showToast } from '@tarojs/taro'
|
|
23
|
+
import { isWechat } from '../../shared/composables/useDeviceEnv'
|
|
23
24
|
|
|
24
25
|
// 充值用户界面
|
|
25
26
|
// 配置了必须的属性后
|
|
@@ -93,6 +94,14 @@ const onPayClick = () => {
|
|
|
93
94
|
state.buttonLoading = true
|
|
94
95
|
|
|
95
96
|
if (Taro.getEnv() === 'WEB') {
|
|
97
|
+
if (!isWechat()) {
|
|
98
|
+
showToast({
|
|
99
|
+
title: '请使用微信浏览器打开',
|
|
100
|
+
icon: 'none',
|
|
101
|
+
})
|
|
102
|
+
state.buttonLoading = false
|
|
103
|
+
return false
|
|
104
|
+
}
|
|
96
105
|
requestBrandWCPay({
|
|
97
106
|
amount: amounts.value[state.selected].amount,
|
|
98
107
|
app: 'loankitMp',
|
|
@@ -101,7 +110,7 @@ const onPayClick = () => {
|
|
|
101
110
|
channelCode: 'centergzh',
|
|
102
111
|
payFinishJumpUrl: props.payFinishJumpUrl
|
|
103
112
|
}).then(result => {
|
|
104
|
-
|
|
113
|
+
state.buttonLoading = false
|
|
105
114
|
window.location.href = props.payFinishJumpUrl as string
|
|
106
115
|
})
|
|
107
116
|
} else {
|
|
@@ -53,6 +53,7 @@ import { endpoints, useHttp } from '../api'
|
|
|
53
53
|
import { requestBrandWCPayByBean, requestPaymentByBean } from '../services'
|
|
54
54
|
import Taro, { showToast } from '@tarojs/taro'
|
|
55
55
|
import { useAmount } from '../../shared/composables/useAmount'
|
|
56
|
+
import { isWechat } from '../../shared/composables/useDeviceEnv'
|
|
56
57
|
|
|
57
58
|
// 充值用户界面
|
|
58
59
|
// 配置了必须的属性后
|
|
@@ -163,6 +164,14 @@ const onPayClick = () => {
|
|
|
163
164
|
state.buttonLoading = true
|
|
164
165
|
|
|
165
166
|
if (Taro.getEnv() === 'WEB') {
|
|
167
|
+
if (!isWechat()) {
|
|
168
|
+
showToast({
|
|
169
|
+
title: '请使用微信浏览器打开',
|
|
170
|
+
icon: 'none',
|
|
171
|
+
})
|
|
172
|
+
state.buttonLoading = false
|
|
173
|
+
return false
|
|
174
|
+
}
|
|
166
175
|
requestBrandWCPayByBean({
|
|
167
176
|
caseConfigId: amounts.value[state.selected].id,
|
|
168
177
|
amount: amounts.value[state.selected].paymentAmount,
|
|
@@ -172,7 +181,7 @@ const onPayClick = () => {
|
|
|
172
181
|
channelCode: 'centergzh',
|
|
173
182
|
payFinishJumpUrl: props.payFinishJumpUrl
|
|
174
183
|
}).then(result => {
|
|
175
|
-
|
|
184
|
+
state.buttonLoading = false
|
|
176
185
|
window.location.href = props.payFinishJumpUrl as string
|
|
177
186
|
})
|
|
178
187
|
} else {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// 是否微信环境
|
|
2
|
+
export function isWechat() {
|
|
3
|
+
let ua = window.navigator.userAgent.toLowerCase()
|
|
4
|
+
return ua.includes('micromessenger')
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// 是否支付宝环境
|
|
8
|
+
export function isAlipay() {
|
|
9
|
+
let ua = window.navigator.userAgent.toLowerCase()
|
|
10
|
+
return ua.includes('alipayclient')
|
|
11
|
+
}
|