1.0.9 • Published 6 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) 微信支付