Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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