API
Class

WxShop ($UI/system/api/native/wxShop)

使用范围:UI2

Contents

class WxShop ($UI/system/api/native/wxShop)

微信小店,仅在微信公众号中有效。

 
	 
	  var shop = require('$UI/system/api/native/wxShop');
	  shop.openProductSpecificView({
		  productId : 'pDF3iY_m2M7EQ5EKKKWd95kAxfNw',
		  extInfo : '123'
	  });
	

Constructor Top

  WxShop ()

Static Methods Top

void addCard (Object options)
void chooseCard (Object options)
void openCard (Object options)
void openProductSpecificView (Object options)

Constructor details Top

public WxShop ()

微信小店,仅在微信公众号中有效。

 
	 
	  var shop = require('$UI/system/api/native/wxShop');
	  shop.openProductSpecificView({
		  productId : 'pDF3iY_m2M7EQ5EKKKWd95kAxfNw',
		  extInfo : '123'
	  });
	

Static Methods Detail Top

static public void addCard (Object options)

批量添加卡券接口 see: http://mp.weixin.qq.com/wiki/home/index.html

Parameters

Object options

选项

Return Value

void

static public void chooseCard (Object options)

拉取适用卡券列表并获取用户选择信息 see: http://mp.weixin.qq.com/wiki/home/index.html

Parameters

Object options

选项

Return Value

void

static public void openCard (Object options)

查看微信卡包中的卡券接口 see: http://mp.weixin.qq.com/wiki/home/index.html

Parameters

Object options

选项

Return Value

void

static public void openProductSpecificView (Object options)

打开产品详情页

Parameters

Object options

选项
结构如下:

{ productId : {string} 商品id, viewType: {string} 0.默认值,普通商品详情页1.扫一扫商品详情页2.小店商品详情页 }

Return Value

void