|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <!--
- * @Author: gaorf30153 gaorf30153@hundsun.com
- * @Date: 2024-06-20 09:16:17
- * @LastEditors: gaorf30153 gaorf30153@hundsun.com
- * @LastEditTime: 2024-07-11 15:42:53
- * @FilePath: \wxminipro\doc\README.md
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- -->
- ## 插件接入
-
- ```
- "plugins": {
- "issuer-plugin": {
- "version": "", // 版本号 开发版本 dev-xxxxxxx 正式版本 例:1.0.0
- "provider": "wx06bc6021dc900553"
- }
- }
- ```
-
- ## 支付接入
-
- 1.需要在宿主小程序根目录下增加functional-pages/request-payment.js文件,并且暴露beforeRequestPayment函数
-
- 2.宿主小程序app.json 中配置 "functionalPages": true
-
- ```
- exports.beforeRequestPayment = function (paymentArgs, callback) {
- // 自定义的参数,此处应为从插件传递过来的 paymentArgs
- var error = null
- //该对象为下单所需参数
- var requestPaymentArgs = {
- timeStamp: paymentArgs.timeStamp,
- nonceStr: paymentArgs.nonceStr,
- package: paymentArgs.package,
- signType: paymentArgs.signType,
- paySign: paymentArgs.paySign,
- }
- callback(error, requestPaymentArgs) //重点:返回requestPaymentArgs
- }
- ```
- ## APP跳转方式
-
- ### APP拉起小程序所带参数
-
- 1. 小程序URL?wechatSignNo=xxxxx
-
- ### 小程序拉起插件所带参数
-
- 2. plugin://issuer-plugin/login?wechatSignNo=xxx&redirectUrl=xxxxx
-
- 3. wechatSignNo APP拉起小程序所带的签约信息编号由APP端调用接口生成
-
-
- ## 小程序跳转方式
-
- 1. 新办路径 plugin://issuer-plugin/login?etcProductId=xxx&accountType=1&carType=0&redirectUrl=xxxxx
-
- 2. 车辆续办 plugin://issuer-plugin/login?etcProductId=xxx&plateNum=浙A0P73H_0&handleType=continuation&redirectUrl=xxxxx
-
- 4. 重新激活 plugin://issuer-plugin/login?plateNum=浙A0P73H_0&handleType=reactivate&redirectUrl=xxxxx
-
- 5. 仅获取登录凭证 plugin://issuer-plugin/login?type=1&redirectUrl=xxxxx
-
- 6. 车辆售后 plugin://issuer-plugin/login?plateNum=浙A0P73H_0&handleType=aftersale&afterType=1&orderNo=xxxx&redirectUrl=xxxxx
-
-
- ## 跳转参数说明
-
- 1. redirectUrl 小程序重定向地址 例:/pages/login/login
-
- 2. orderNo 订单编号
-
- 3. plateNum 车牌号码和颜色编号 例:浙A0P73H_0
-
- 4. handleType 办理类型 continuation 续办 aftersale 售后 reactivate 重新激活
-
- 5. afterType 售后办理类型 1.挂失/解挂 3.更换 4.续期 5.补办 6.注销 7.换货 8.退货 9.补货
-
- 6. type 登录类型 1.只获取登录凭证用登录完成跳转回小程序指定页面
-
- 7. accountType 1 个人 2企业
-
- 8. carType 0 客车 1 货车
-
- 9. etcProductId 产品编号
-
|