Socket
Socket
Sign inDemoInstall

@joyshion/taro-plugin-platform-yunshanfu

Package Overview
Dependencies
311
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @joyshion/taro-plugin-platform-yunshanfu

云闪付小程序平台插件


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@joyshion/taro-plugin-platform-yunshanfu

Taro云闪付小程序平台插件

安装

yarn add @joyshion/taro-plugin-platform-yunshanfu --save-dev

配置

// Taro 项目配置
module.exports = {
  // ...
  plugins: [
    '@joyshion/taro-plugin-platform-yunshanfu'
  ]
}

使用

UPSDK的引用

修改src/index.html,在head中加入云闪付前端SDK的引入标签

<head>
  <title>myApp</title>
  <%= htmlWebpackPlugin.options.upsdk %>
  <script><%= htmlWebpackPlugin.options.script %></script>
</head>
编译打包
taro build --type ysf
开发调试
taro build --type ysf --watch
其他

云闪付小程序平台类型:ysh

  • Taro的API/组件同H5一致
  • 支持内置环境变量,通过process.env.TARO_ENV判断编译平台类型
  • 支持多端组件
  • 支持多端脚本逻辑
  • 支持多端页面路由

Keywords

FAQs

Last updated on 29 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc