提交 080a3a22 编写于 作者: hbcui1984's avatar hbcui1984

Merge branch 'master' of https://github.com/dcloudio/unidocs-zh

...@@ -20,10 +20,12 @@ ...@@ -20,10 +20,12 @@
[...contentChildren].forEach((child, index) => { [...contentChildren].forEach((child, index) => {
if (child.nodeName === 'UL') { if (child.nodeName === 'UL') {
const ulHeight = child.clientHeight; const ulHeight = child.clientHeight;
const isVisible = visibleHeight + window.scrollY > child.offsetTop - 500; const ulOffsetTop = child.offsetTop;
const isVisible = visibleHeight + window.scrollY > ulOffsetTop - 500;
const isOver = window.scrollY > ulOffsetTop + ulHeight
child.style.height = `${ulHeight}px`; child.style.height = `${ulHeight}px`;
if (!isVisible) { if (!isVisible || isOver) {
const _ul = document.createDocumentFragment(); const _ul = document.createDocumentFragment();
[...child.children].forEach(item => _ul.appendChild(item)); [...child.children].forEach(item => _ul.appendChild(item));
(!this.contentFrame[index] || !this.contentFrame[index].children.length) && (!this.contentFrame[index] || !this.contentFrame[index].children.length) &&
......
...@@ -287,7 +287,7 @@ uni.requestPayment({ ...@@ -287,7 +287,7 @@ uni.requestPayment({
注意事项 注意事项
- 相同订单,重复调用 `restoreCompletedTransactions``transactionReceipt` 会发生变化,并非唯一值 - 相同订单,重复调用 `restoreCompletedTransactions``transactionReceipt` 会发生变化,并非唯一值
- 调用 `finishTransaction` 关闭订单可能不会立即生效,取决于苹果的服务器
### 订单丢失场景 ### 订单丢失场景
...@@ -449,8 +449,8 @@ uni.requestPayment({ ...@@ -449,8 +449,8 @@ uni.requestPayment({
// await this.validatePaymentResult({ // await this.validatePaymentResult({
// orderId: orderId, // orderId: orderId,
// username: username, // username: username,
// transactionReceipt: transaction.transactionReceipt, // transactionReceipt: transaction.transactionReceipt, // 不可作为订单唯一标识
// transactionIdentifier: transaction.transactionIdentifier // 不可作为订单唯一标识 // transactionIdentifier: transaction.transactionIdentifier
// }); // });
// 验证成功后关闭订单 // 验证成功后关闭订单
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册