1

跳转其他APP

<template>
    <view class="content">        
        <button @tap="ios">跳转微信APP</button>
    </view>
</template>

<script>
export default {
    data() {
        return {
            
        };
    },
    onReady: function() {},
    methods: {
        ios() {
            var UIApplication = plus.ios.import('UIApplication');
            var NSURL = plus.ios.import('NSURL');
            var setting = NSURL.URLWithString('weixin://');
            var application = UIApplication.sharedApplication();
            application.openURL(setting);
            plus.ios.deleteObject(setting);
            plus.ios.deleteObject(application);
        },
        
    }
};
</script>

<style>
</style>

其他APP跳转uni-app
配置manifest.json文件,配置如下:

图片描述

支付宝用户转账URL schemes
支付宝有关的URL schemes


potato1314
470 声望8 粉丝