diff --git a/packages/taro-platform-tt/src/components-react.ts b/packages/taro-platform-tt/src/components-react.ts index ae11eb3baba9..80e0ee15ce66 100644 --- a/packages/taro-platform-tt/src/components-react.ts +++ b/packages/taro-platform-tt/src/components-react.ts @@ -6,3 +6,4 @@ export const AwemeData = 'aweme-data' export const RateButton = 'rate-button' export const OpenData = 'open-data' export const AwemeUserCard = 'aweme-user-card' +export const PaymentChannelSelect = 'payment-channel-select' diff --git a/packages/taro-platform-tt/src/components.ts b/packages/taro-platform-tt/src/components.ts index c119da7c6a79..c3ad588fe7d4 100644 --- a/packages/taro-platform-tt/src/components.ts +++ b/packages/taro-platform-tt/src/components.ts @@ -13,7 +13,7 @@ export const components = { 'adjust-position': _true, 'hold-keyboard': _false, 'clue-type': '0', - bindKeyboardHeightChange: _empty, + bindKeyboardHeightChange: _empty }, Button: { bindGetPhoneNumber: _empty, @@ -22,7 +22,7 @@ export const components = { 'group-id': _empty, 'data-is-half-page': _empty, bindOpenAwemeUserProfile: _empty, - bindJoinGroup: _empty, + bindJoinGroup: _empty }, Form: { 'report-submit-timeout': '0' @@ -57,7 +57,7 @@ export const components = { bindControlTap: _empty, bindEnterBackground: _empty, bindCloseBackground: _empty, - bindLeaveBackground: _empty, + bindLeaveBackground: _empty }, Ad: { fixed: _empty, @@ -83,7 +83,7 @@ export const components = { bindRefresherPulling: _empty, bindRefresherRefresh: _empty, bindRefresherRestore: _empty, - bindRefresherAbort: _empty, + bindRefresherAbort: _empty }, Canvas: { type: _empty @@ -152,7 +152,7 @@ export const components = { 'order-id': _empty, bindInit: _empty, bindSuccess: _empty, - bindError: _empty, + bindError: _empty }, OpenData: { type: _empty, @@ -168,5 +168,15 @@ export const components = { fixed: _false, 'left-right-padding': _empty, bindError: _empty + }, + PaymentChannelSelect: { + scene: 'cash', + 'sku-list': _empty, + 'merchant-uid': _empty, + 'limit-pay-way-list ': _empty, + 'custom-style': _empty, + bindRequestOrder: _empty, + bindError: _empty, + bindGetpaymentresult: _empty } } diff --git a/packages/taro-platform-tt/src/runtime-utils.ts b/packages/taro-platform-tt/src/runtime-utils.ts index 50c34ba5d434..9b77203e34f3 100644 --- a/packages/taro-platform-tt/src/runtime-utils.ts +++ b/packages/taro-platform-tt/src/runtime-utils.ts @@ -5,16 +5,21 @@ export * from './apis-list' export * from './components' export const hostConfig = { initNativeApi, - modifyMpEventImpl (event) { + modifyMpEventImpl(event) { if (event.type === 'regionchange') { event.type = event.detail.type } }, - modifyTaroEventReturn (node, event, returnVal) { + modifyTaroEventReturn(node, event, returnVal) { if (node.nodeName === 'pay-button') { if (event.type === 'applyrefund' || event.type === 'getgoodsinfo') { return returnVal } } - } + if (node.nodeName === 'payment-channel-select') { + if (event.type === 'requestorder' || event.type === 'getpaymentresult') { + return returnVal + } + } + }, }