Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frontend
mall-webview
Commits
57c0976d
Commit
57c0976d
authored
May 18, 2026
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(util): 新增商户转账功能
新增 RequestMerchantTransferParams 接口定义,包含商户号、 应用ID和包信息参数。 新增 requestMerchantTransfer 方法,用于调用原生桥接进行商户转账操作。
parent
e0c4e097
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
use-native-bridge.ts
src/util/use-native-bridge.ts
+13
-0
No files found.
src/util/use-native-bridge.ts
View file @
57c0976d
...
@@ -137,3 +137,16 @@ export function makeCall (phone: string) {
...
@@ -137,3 +137,16 @@ export function makeCall (phone: string) {
export
function
goHome
()
{
export
function
goHome
()
{
return
invokeNativeMethod
<
null
,
null
>
({
type
:
'goHome'
})
return
invokeNativeMethod
<
null
,
null
>
({
type
:
'goHome'
})
}
}
export
interface
RequestMerchantTransferParams
{
/** 商户号,与发起转账接口 mchid 一致 */
mchId
:
string
;
/** 开放平台移动应用 appid,与发起转账一致 */
appId
:
string
;
/** 发起转账应答中的 package_info(单据为 WAIT_USER_CONFIRM 时返回) */
package
:
string
;
}
export
function
requestMerchantTransfer
(
params
:
RequestMerchantTransferParams
)
{
return
invokeNativeMethod
<
null
,
RequestMerchantTransferParams
>
({
type
:
'requestMerchantTransfer'
,
data
:
params
})
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment