Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: taro 组件支持字节 PaymentChannelSelect 组件 #16889

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/taro-platform-tt/src/components-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
10 changes: 10 additions & 0 deletions packages/taro-platform-tt/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,15 @@
fixed: _false,
'left-right-padding': _empty,
bindError: _empty
},
PaymentChannelSelect:{

Check failure on line 172 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Missing space before value for key 'PaymentChannelSelect'

Check failure on line 172 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Missing space before value for key 'PaymentChannelSelect'

Check failure on line 172 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Missing space before value for key 'PaymentChannelSelect'

Check failure on line 172 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Missing space before value for key 'PaymentChannelSelect'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请保证代码风格,如:Missing space before value for key 'PaymentChannelSelect'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tks

scene:'cash',

Check failure on line 173 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Missing space before value for key 'scene'

Check failure on line 173 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Missing space before value for key 'scene'

Check failure on line 173 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Missing space before value for key 'scene'

Check failure on line 173 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Missing space before value for key 'scene'
"sku-list":_empty,

Check failure on line 174 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 174 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Missing space before value for key 'sku-list'

Check failure on line 174 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 174 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Missing space before value for key 'sku-list'

Check failure on line 174 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Strings must use singlequote

Check failure on line 174 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Missing space before value for key 'sku-list'

Check failure on line 174 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Strings must use singlequote

Check failure on line 174 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Missing space before value for key 'sku-list'
"merchant-uid":_empty,

Check failure on line 175 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 175 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Missing space before value for key 'merchant-uid'

Check failure on line 175 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 175 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Missing space before value for key 'merchant-uid'

Check failure on line 175 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Strings must use singlequote

Check failure on line 175 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Missing space before value for key 'merchant-uid'

Check failure on line 175 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Strings must use singlequote

Check failure on line 175 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Missing space before value for key 'merchant-uid'
"limit-pay-way-list ":_empty,

Check failure on line 176 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 176 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Missing space before value for key 'limit-pay-way-list '

Check failure on line 176 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 176 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Missing space before value for key 'limit-pay-way-list '

Check failure on line 176 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Strings must use singlequote

Check failure on line 176 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Missing space before value for key 'limit-pay-way-list '

Check failure on line 176 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Strings must use singlequote

Check failure on line 176 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Missing space before value for key 'limit-pay-way-list '
"custom-style":_empty,

Check failure on line 177 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 177 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Missing space before value for key 'custom-style'

Check failure on line 177 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 177 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Missing space before value for key 'custom-style'

Check failure on line 177 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Strings must use singlequote

Check failure on line 177 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-12)

Missing space before value for key 'custom-style'

Check failure on line 177 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Strings must use singlequote

Check failure on line 177 in packages/taro-platform-tt/src/components.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Missing space before value for key 'custom-style'
bindRequestOrder: _empty,
bindError: _empty,
bindGetpaymentresult: _empty
}
}
6 changes: 6 additions & 0 deletions packages/taro-platform-tt/src/runtime-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,11 @@ export const hostConfig = {
return returnVal
}
}
if(node.nodeName === 'payment-channel-select'){
if(event.type === 'requestorder'||event.type ==='getpaymentresult'){
return returnVal
}
}
}
}

9 changes: 9 additions & 0 deletions packages/taro-tt/src/components-react.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export * from '@tarojs/components/mini'
export const RtcRoom = 'rtc-room'
export const PayButton = 'pay-button'
export const ConsumeCard = 'consume-card'
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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件应该是多余的

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got it

Loading