efront 4.32.3 → 4.32.4
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/apps/pay/alipay.jsp +1 -1
- package/coms/compile/Html.js +11 -2
- package/coms/compile/translate.js +0 -1
- package/coms/frame/payment.html +2 -2
- package/coms/zimoli/appendChild.js +10 -3
- package/coms/zimoli/marker.js +3 -2
- package/coms/zimoli/password.js +1 -1
- package/coms/zimoli/password.less +8 -1
- package/coms/zimoli/remove.js +2 -0
- package/coms/zimoli/render.js +1 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
- package/public//346/226/207/344/273/266/347/263/273/347/273/237//344/270/273/351/241/265.jsp +2 -2
package/apps/pay/alipay.jsp
CHANGED
|
@@ -51,7 +51,7 @@ ACQ.MERCHANT_PERM_RECEIPT_DAY_LIMIT 超过单日累计收款额度 联系支付
|
|
|
51
51
|
return a;
|
|
52
52
|
}
|
|
53
53
|
var amount = request.id;
|
|
54
|
-
if (!/^(\d+)(\.\d+)?$/.test(amount)) amount = encode62.packdecode(request.id);
|
|
54
|
+
if (!/^(\d+)(\.\d+)?$/.test(amount)) amount = crypt$encode62.packdecode(request.id);
|
|
55
55
|
var [amount, subject = '网页扫码支付'] = amount.split(',');
|
|
56
56
|
var trade_no = createId();
|
|
57
57
|
if (!+amount) return forbidden("参数异常");
|
package/coms/compile/Html.js
CHANGED
|
@@ -82,7 +82,15 @@ var fixElement = function (o) {
|
|
|
82
82
|
ps = ps.slice(cx);
|
|
83
83
|
if (!ps.length);
|
|
84
84
|
else if (ps.length === 1) {
|
|
85
|
-
|
|
85
|
+
if (ps[0].type === SCOPED) {
|
|
86
|
+
push(ps[0]);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
push(new Node({
|
|
90
|
+
type: QUOTED,
|
|
91
|
+
text: strings.encode(ps[0].text)
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
86
94
|
}
|
|
87
95
|
else {
|
|
88
96
|
ps.type = QUOTED;
|
|
@@ -206,7 +214,6 @@ Html.prototype.createScoped = function (code) {
|
|
|
206
214
|
break;
|
|
207
215
|
case QUOTED:
|
|
208
216
|
case PIECE:
|
|
209
|
-
|
|
210
217
|
if (c.length) {
|
|
211
218
|
c.forEach(run);
|
|
212
219
|
break;
|
|
@@ -227,10 +234,12 @@ Html.prototype.createScoped = function (code) {
|
|
|
227
234
|
used[k].push(...s.used[k]);
|
|
228
235
|
}
|
|
229
236
|
}
|
|
237
|
+
for (var k in vars) delete used[k];
|
|
230
238
|
}
|
|
231
239
|
break;
|
|
232
240
|
case EXPRESS:
|
|
233
241
|
if (inScript || noTag) break;
|
|
242
|
+
if (c.queue.type === QUOTED) break;
|
|
234
243
|
var t = c.text;
|
|
235
244
|
t = parseExpress(t);
|
|
236
245
|
var s = createScoped(t);
|
|
@@ -163,7 +163,6 @@ function translate([imap, supports], code) {
|
|
|
163
163
|
var a = scanner2(`[]`);
|
|
164
164
|
v.map(function (o) {
|
|
165
165
|
var name = o.name;
|
|
166
|
-
if (!name) return o;
|
|
167
166
|
if (!name) return scanner2(`(${JSON.stringify(o)})`)[0];
|
|
168
167
|
delete o.name;
|
|
169
168
|
name = ctn('i18n' + getm(name, t.nodup, t.warn), t);
|
package/coms/frame/payment.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div class="body">
|
|
6
6
|
<item>
|
|
7
7
|
<label>原始价格:</label>
|
|
8
|
-
<span
|
|
8
|
+
<span -bind="(+price).toFixed(2)"></span>元
|
|
9
9
|
</item>
|
|
10
10
|
<item>
|
|
11
11
|
<label>支付渠道:</label>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<item ng-if="+paytype">
|
|
23
23
|
<label>应支付:</label>
|
|
24
24
|
<span style="color: red;">
|
|
25
|
-
<span
|
|
25
|
+
<span -bind=finalpay></span>元
|
|
26
26
|
</span>
|
|
27
27
|
</item>
|
|
28
28
|
<item ng-if="+paytype">
|
|
@@ -20,13 +20,20 @@ function _onappend(node, append = createEvent("append"), mount = createEvent("mo
|
|
|
20
20
|
dispatch(node, mount);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
var unremove = function (o) {
|
|
24
|
+
if (o.removeTimer) {
|
|
25
|
+
clearTimeout(o.removeTimer);
|
|
26
|
+
delete o.removeTimer;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
23
30
|
function appendChild(parent, obj, transition) {
|
|
24
31
|
var children = getArgsChildren(arguments);
|
|
25
32
|
if (parent.appendChild) {
|
|
26
33
|
for (var cx = 0, dx = children.length; cx < dx; cx++) {
|
|
27
34
|
var o = release(children[cx]);
|
|
28
35
|
if (!o) continue;
|
|
29
|
-
|
|
36
|
+
unremove(o);
|
|
30
37
|
if (hasEnterStyle(o) && transition !== false) {
|
|
31
38
|
isFunction(appendChild.transition) && appendChild.transition(o);
|
|
32
39
|
}
|
|
@@ -44,7 +51,7 @@ function insertBefore(alreadyMounted, obj, transition) {
|
|
|
44
51
|
for (var cx = 0, dx = children.length; cx < dx; cx++) {
|
|
45
52
|
var o = release(children[cx]);
|
|
46
53
|
if (!o) continue;
|
|
47
|
-
|
|
54
|
+
unremove(o);
|
|
48
55
|
parent.insertBefore(o, alreadyMounted);
|
|
49
56
|
o.with && insertBefore(alreadyMounted, o.with, transition);
|
|
50
57
|
if (isMounted(parent)) _onappend(o);
|
|
@@ -64,7 +71,7 @@ function insertAfter(alreadyMounted, obj, transition) {
|
|
|
64
71
|
for (var cx = 0, dx = children.length; cx < dx; cx++) {
|
|
65
72
|
var o = release(children[cx]);
|
|
66
73
|
if (!o) continue;
|
|
67
|
-
|
|
74
|
+
unremove(o);
|
|
68
75
|
parent.insertBefore(o, nextSibling);
|
|
69
76
|
o.with && insertBefore(nextSibling, o.with, transition);
|
|
70
77
|
if (isMounted(parent)) _onappend(o);
|
package/coms/zimoli/marker.js
CHANGED
|
@@ -11,8 +11,9 @@ function marker(e) {
|
|
|
11
11
|
if (!e) e = document.createElement("marker");
|
|
12
12
|
on("changes")(e, function () {
|
|
13
13
|
remove(e.childNodes);
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
var source = this.source;
|
|
15
|
+
if (isEmpty(source)) source = '';
|
|
16
|
+
else if (typeof source === 'string') source = mark(source, this.search, wrap);
|
|
16
17
|
if (isArray(source)) appendChild(this, source);
|
|
17
18
|
else this.innerText = source;
|
|
18
19
|
});
|
package/coms/zimoli/password.js
CHANGED
|
@@ -9,7 +9,7 @@ function password() {
|
|
|
9
9
|
if (numhide !== null) numhide = !numhide; break;
|
|
10
10
|
case 20/*capslock*/: if (capslock !== null) capslock = !capslock; break;
|
|
11
11
|
}
|
|
12
|
-
if (!numhide && /^Numpad/.test(event.code)) {
|
|
12
|
+
if (!numhide && /^Numpad/.test(event.code) && which !== 13) {
|
|
13
13
|
numhide = which < 96;
|
|
14
14
|
}
|
|
15
15
|
if (which >= 65 && which <= 90) {
|
package/coms/zimoli/remove.js
CHANGED
|
@@ -5,11 +5,13 @@ function remove(node, transition) {
|
|
|
5
5
|
node = args[cx];
|
|
6
6
|
if (!node) continue;
|
|
7
7
|
if (node.removeTimer) clearTimeout(node.removeTimer);
|
|
8
|
+
delete node.removeTimer;
|
|
8
9
|
if (hasLeaveStyle(node) && transition !== false && isFunction(remove.transition)) {
|
|
9
10
|
var duration = remove.transition(node, true);
|
|
10
11
|
if (duration) {
|
|
11
12
|
node.removeTimer = setTimeout(function (node) {
|
|
12
13
|
return function () {
|
|
14
|
+
delete node.removeTimer;
|
|
13
15
|
remove(node, false);
|
|
14
16
|
};
|
|
15
17
|
}(node), +duration || 100);
|
package/coms/zimoli/render.js
CHANGED
|
@@ -429,7 +429,7 @@ var ifset = function (shouldMount) {
|
|
|
429
429
|
var c = elements[cx];
|
|
430
430
|
if (cx === shouldMount) {
|
|
431
431
|
var e = c.$template;
|
|
432
|
-
if (c.nextSibling !== e) appendChild.after(c, e);
|
|
432
|
+
if (c.nextSibling !== e || e.removeTimer) appendChild.after(c, e);
|
|
433
433
|
if (renderIds.get(e) < 0) {
|
|
434
434
|
renderIds.set(e, this.$id);
|
|
435
435
|
e = c.$template = render(e);
|