npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cordova-plugin-taobao-baichuan

v0.0.4

Published

codrova/phonegap wrapper for taobao baichuan sdk

Readme

cordova-plugin-taobao-baichuan

Cordova plugin for Taobao Baichuan SDK (淘宝百川Cordova插件)

Android is finished

iOS not ready yet

Hope some iOS developers Join in to develop ios side(IOS版本期待您的加入)

Feature

  1. Open taobao page in your cordova app (打开淘宝商品页面)
  2. Open taobaoke taobao page in your cordova app (打开淘宝客商品页面)
  3. No taobao login needed in order page (淘宝订单页面免登陆)
  4. Api for both h5 taobao page and naive taobao page (提供淘宝H5以及原生两种方式打开商品界面)

简单的说,就是集成百川SDK后,就能在app内实现应用内淘宝交易闭环,用户可以不跳转手机淘宝,在APP内直接购买淘宝商品,极大的优化了无线购买体验。

Usage

Show taobao item page 打开淘宝商品

TaobaoBaichuan.item_show(args, successCallback, errorCallback)

  • args.itemid: taobao item id; 商品id.支持标准的商品id,eg.37196464781;同时支持openItemId,必填,不允许为null;

  • args.type: default 'taobao' for naive,'h5' for html5 style; 淘宝打开方式,默认原生,也可以是h5方式

  • args.pid: default null, taobaoke pid; 淘宝联盟PID

  • successCallback: function 成功后回调

  • errorCallback function 失败后回调

TaobaoBaichuan.item_show({
       itemid:'39155470728',
       type:'taobao'
    },function(){
        console.log(" success");
    },function(err){
        console.log("err:"+err);
});

Show taobao cart page 打开淘宝购物车(需要高级电商功能)

TaobaoBaichuan.cart_show(successCallback, errorCallback)

  • successCallback: function 成功后回调
  • errorCallback function 失败后回调
TaobaoBaichuan.cart_show(function(){
        console.log(" success");
    },function(err){
        console.log("err:"+err);
});

Add item to taobao cart 将商品加入到淘宝购物车(需要高级电商功能)

TaobaoBaichuan.cart_add(openid,successCallback, errorCallback)

  • openid 商品openid
  • successCallback: function 成功后回调
  • errorCallback function 失败后回调
TaobaoBaichuan.cart_add("AHd5d-HAAeGwJedwSnHktBI",function(){
        console.log(" success");
    },function(err){
        console.log("err:"+err);
});

Show orders page 打开淘宝订单页面

TaobaoBaichuan.orders_show(successCallback, errorCallback)

  • successCallback: function 成功后回调
  • errorCallback function 失败后回调
TaobaoBaichuan.orders_show(function(){
        console.log(" success");
    },function(err){
        console.log("err:"+err);
});

Prepare 安装预备(必读)

  1. 注册您的百川账号

  2. 创建 百川无线应用

  3. 完善你的应用 基本信息

  4. 申请开通 初级电商能力

  5. 生成客户端SDK包,并下载

  6. 解压到下载的SDK

  7. 将上一步中的 libs以及res目录 覆盖到 你的cordova项目目录下的\platforms\android 中

Install

  1. cordova plugin add https://github.com/uuleaf/cordova-plugin-taobao-baichuan.git
  2. cordova build android

FAQ

TODO

  1. Add Taobao Login Api
  2. Add iOS version
  3. Other Apis
  4. Android version update

Links

  1. 更多百川信息
  2. [百川客户端SDK基础集成(]http://baichuan.taobao.com/doc2/detail.htm?treeId=51&articleId=102861&docType=1)