|
|
@@ -77,26 +77,10 @@ const goToAmtInByPaidUrl = (item: Model.AccountOutInApplyRsp) => {
|
|
|
exchticket: item.exchticket
|
|
|
}
|
|
|
}).then((res) => {
|
|
|
- openWebview(res.data.url)
|
|
|
+ plus.openURL(res.data.url)
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const openWebview = (url: string) => {
|
|
|
- const ua = window.navigator.userAgent.toLowerCase()
|
|
|
- if (ua.indexOf('micromessenger') !== -1) {
|
|
|
- showToast({
|
|
|
- type: 'fail',
|
|
|
- message: '请使用浏览器打开此页面'
|
|
|
- })
|
|
|
- } else {
|
|
|
- plus.openWebview({
|
|
|
- url,
|
|
|
- titleText: '实名认证',
|
|
|
- onClose: () => run()
|
|
|
- })
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
// 暴露组件属性给父组件调用
|
|
|
defineExpose({
|
|
|
closed,
|