支付宝小程序&财富号&基金相关页面之间相关跳转

支付宝小程序跳转

%小程序跳转财富号

this.$global.urlHandler(`alipays://platformapi/startapp?appId=xxxx00002019101768404279&query=publicId%3Dxxxx00002018061160393077&nbupdate=syncforcee`)

%小程序跳转基金组合推广页面

this.$global.urlHandler(`https://open.antfortune.com/p/q/normal-testkczk6olu/pages/index/index.html`)    // xxxx组合 
this.$global.urlHandler(`https://open.antfortune.com/p/q/normal-testk83v4u9x/pages/index/index.html`)    // xx固收佳 从这个组合突破的

%小程序跳转单品推广页面

    my.ap.navigateToAlipayPage({
      // 例如跳转到共享单车页面,其 scheme 格式为:
      // alipays://platformapi/startapp?appId=60000155&chInfo=ch_${appid},${appid} 替换为自己的16位 appid,例如:
      path:'https://open.antfortune.com/p/q/normal-testku54f0lk/pages/index/index.html',
    })
// ‘小程序跳转基金组合推广页面’ 和 ‘小程序跳转单品推广页面’ 的两种方式都可以互用,重点是推广页面的id: testku54f0lk;

注意:‘小程序跳转基金组合推广页面’ 和 ‘小程序跳转单品推广页面’ 的两种方式都可以互用,重点是推广页面的id: testku54f0lk;

%小程序跳转基金详情和购买页面

this.$global.urlHandler(`alipayFinanceApi:type=fundDetail&fundCode=xxxxxx`)    // 基金详情
this.$global.urlHandler(`alipayFinanceApi:type=fundDetail&fundCode=${this.openPayload.fundCode}&amount=1000`) // 基金详情页面带金额
this.$global.urlHandler(`alipayFinanceApi:type=fundBuy&fundCode=xxxxxx`)    // 基金购买
this.$global.urlHandler(`alipayFinanceApi:type=fundBuy&fundCode=${this.openPayload.fundCode}&amount=1000`) // 基金购买页面带金额

%小程序跳转到基金讨论区

urlHandler(`alipayFinanceApi:type=h5Page&url=`+encodeURIComponent(`alipays://platformapi/startapp?appId=66666741&pullRefresh=YES&appClearTop=false&startMultApp=YES&url=%2Fwww%2Fforum.html%3FtopicId%3D2018042600023003xxxx0000000000014803%26topicType%3DFUND`))

以上方法都是建立在引入支付宝跳转相关SDK的前提下 目前暂未对外开发

import urlHandler from 'mp-alipay-url-handler'

%小程序跳标准组合详情页面\组合购买页面
参考:#参考: https://opensupport.alipay.com/support/article_pre/438/66771/201602626332?ant_source=manual&recommend=d6cd07a68fd4161c6573bb7773e91068

my.ap.navigateToFinance({
      // type: 'portfolioDetail', // 组合详情页面
      type: 'portfolioBuy',//组合购买页面
      fundCode: 'JY99xxxx001', // 基金组合代码   JY99xxxx001
      amount: 1000
});
// 组合代码获取:财富号管理后台有个组合模块 这里可以看到公司所有的组合代码

注意:组合代码获取:财富号管理后台有个组合模块 这里可以看到公司所有的组合代码
在这里插入图片描述

%小程序跳短视频财富达人直播(视频)

// urlHandler(`https://render.alipay.com/p/h5/lifeNews/www/contentDetail.html?contentId=xx202100215666069502d4c77905794b2d9af97c1d2e4c9b27&SourceId=writer_promotion&LinkSource=share`)
// urlHandler(`alipayFinanceApi:type=h5Page&url=`+encodeURIComponent(`alipays://platformapi/startapp?appId=77700199&pullRefresh=YES&appClearTop=false&startMultApp=YES&url=%2Fwww%2FcontentDetail.html%3FcontentId%3Dxx202100215666069502d4c77905794b2d9af97c1d2e4c9b27`))
// urlHandler(`alipayFinanceApi:type=h5Page&url=`+encodeURIComponent(`alipays://platformapi/startapp?appId=77700199&startMultApp=YES&appClearTop=NO&page=pages/index/index?scene%3dsingle%26videoId%3dMEDIA_xx2021103002400109428702%26fromscenario%3ddianman_backstage`)) //成功
urlHandler(`alipays://platformapi/startapp?appId=77700199&startMultApp=YES&appClearTop=NO&page=pages/index/index?scene%3dsingle%26videoId%3dMEDIA_xx2021103002400109428702%26fromscenario%3ddianman_backstage`)//成功

注意:对应的地址找财富达人运营同事去财富号平台的短视频里面拿
在这里插入图片描述

%小程序跳支付宝官方“淘宝直播财富频道”直播/回播

官方地址:https://opensupport.alipay.com/support/article_pre/438/66771/201602626333?ant_source=manual&recommend=d6cd07a68fd4161c6573bb7773e91068

my.navigateToMiniProgram({
  appId: '20210011****4332',//跳转直播间链接中获取的小程序appid
  path: 'pages/index/index?id=27395***8846&userId=38691***94',//链接中获取
  success: (res) => {
    // 跳转成功
    my.alert({
			title: 'success', // alert框的标题
			content: JSON.stringify(res)
    });
  },
  fail: (res) => {
		// 跳转失败
		my.alert({
			title: 'fail', // alert框的标题
			content: JSON.stringify(res)
    });
  }
});

%小程序跳转小程序 — 小程序之间互跳

💪支付宝——小程序互跳

// .js
my.navigateToMiniProgram({
      appId: 'xxxx',  // 要跳转的目标小程序 appId。
      path: 'pages/index/index',  // 打开的页面路径,如果为空则打开首页。 
      extraData:{// 需要传递给目标小程序的数据,为键值对的格式,数值的类型为字符串。目标小程序可在 App.onLaunch() 、 App.onShow()  中获取到这份数据。
        "data1":"test"
      },
      success: (res) => {
        console.log(JSON.stringify(res))
      },
      fail: (res) => {
        console.log(JSON.stringify(res))
      },
      complete:(res) => {
           console.log(JSON.stringify(res))
      }
    });

在这里插入图片描述

H5跳转

%H5跳转基金详情页面

location.href = `alipays://platformapi/startapp?appId=20000793&pullRefresh=NO&appClearTop=false&startMultApp=YES&url=/www/detail.html?productId=2017xxxx021600023003xxxx0000000000011913`

%H5跳转支付宝小程序

location.href = 'alipays://platformapi/startapp?appId=202100116967xxxx&page=pages/entry/index'

%支付宝内各模块ID总结(scheme协议格式可采用:alipays+appId、alipayqr+saId)

alipays://platformapi/startapp?appId=20000793#支付宝基金
alipays://platformapi/startapp?appId=20000835#支付宝语音助手

💪💪💪
URLScheme 之 支付宝(应该是比较全的了) --> 更多
🔥🔥🔥🔥🔥

💪💪💪
可以带的参数支付宝文档说明
在这里插入图片描述

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
具体可以看我的博客文章 https://blog.csdn.net/zyqytsoft/article/details/107161356 由于支付签约接口有千6的手续费 网上查了一下 支付免签约即时到帐的实现方案 基本都是在账备注里按格式写入固定格式数据 然后后台抓取数据入账 *** ## 后台的数据实时数据抓取主要2种方式 *** **一、登录pc端web页面的后台 实时刷新和抓取数据通过备注入账** 这里主要有2个问题 1)现在支付的post登录非常难处理,所以一般还是浏览器登录抓取数据 不过浏览器登录有个cookie过期的问题 支付在一段时间后会退出登录 2)解决的办法主要是2点 第一点、模拟人工操作点击页面和定时刷新页面 不过这个只能延长退出登录的时间 实际测试一下一般能保证20小时左右不退出 第二点,通过判断浏览器地址判断是否退出状态 然后写个post脚本不管是微信通知邮件通知反正通知提醒重新登录一下 **二、通过手机端的消息栏支付消息触发post脚本** 这个方式测试了一下不太可行 手机的消息只有金额没有备注 结论:采用pc端数据抓取结合模拟人工操作演出退出登录时长同时做好退出登录的消息提醒,实测20小时需要登录一次还是能够接受的 *** ## 前端生成付款二维码 接口1: alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={"s": "money","u": "商户id","a": "金额","m":"备注"} 接口2: alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=金额&userId=商户id&memo=备注 *** 说明 alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=1.00&userId=2088501156491651&memo=备注2088501156491651 具体的链接:alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=金额&userId=用户id&memo=备注 这里的链接 “用户id” 并非支付收款账号,PC登录到支付右键查看源代码,搜索关键字 “uid”,出现的就是你的支付的用户id,这里的appid不要去动他这是对应的appid来打开支付对应操作 =======================l 二维码例子 alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={"s": "money","u": "2088501156491651","a": "1","m":"CSDN,一块测试,20200609093339863"} 以上文本生成一个二维码 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20200706163825652.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3p5cXl0c29mdA==,size_16,color_FFFFFF,t_70#pic_center) 支付扫一扫就可以看到效果 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20200706163947524.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3p5cXl0c29mdA==,size_16,color_FFFFFF,t_70#pic_center)*** ## 后台抓取的客户端我写了一个DEMO *** 下载地址 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20200706164118645.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3p5c
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值