1.0.9 • Published 4 years ago
sg-native-midea v1.0.9
sg-native-midea
安装依赖
npm install
运行项目
npm run serve
打包项目
npm run build
打包发布至npm
npm run lib
npm login
npm publish
测试
npm run test
项目使用sg-native协议方 安装依赖
npm install sg-native --save
npm install sg-native-midea --save
入口文件引入
import SgNative from 'sg-native'
import SgNativeMidea from 'sg-native-yzj'
Vue.use(SgNative)
SgNative.use(SgNativeMidea)
mideaapi
this.$mapi.api.returnNative() 返回原生
this.$mapi.api.camera(params, cb) 调用相机
this.$mapi.api.share(params, cb) 分享
this.$mapi.api.scanQrCode(cb) 扫描
this.$mapi.api.signature(params, cb) 签名
this.$mapi.api.weChatPay(params, cb) 微信支付