1.0.5-beta15 • Published 3 years ago
weda-plugin-nanming-membership v1.0.5-beta15
会员中心
独立提测
使用 ‘码上南明一测’ 小程序做为独立提测的小程序
appid:
1、执行命令
yarn dev:weapp
2、上传
使用微信开发者工具打开项目目录上传
整合到 ‘码上南明’ 小程序提测
1、执行命令
yarn build:weapp
2、修改package.json中的version版本号
{
"version": "1.0.2"
}
3、上传npm包
使用公司npm账号上传npm包,账号:yottaclouddev
npm login
npm publish
4、在 ‘码上南明’ 小程序中引入依赖包
{
"extra": {
"npmDependencies": {
"weda-plugin-nanming-membership": "1.0.1"
}
}
}
5、lifecycle.js 中引入会员中心sdk
import * as memberShipSdk from 'weda-plugin-nanming-membership';
async onAppLaunch(launchOpts) {
// 会员中心sdk初始化配置
memberShipSdk.init({
host: 'https://rio.gyssg.com' // 接口域名
})
app.state.memberShipSdk = memberShipSdk; // 需要先在全局 state 中定义 memberShipSdk: null 对象
}
6、跳转到会员中心首页
app.state.memberShipSdk.toHome({
did: '', // 网关的did
sid: '' // 网关的sid
})
1.0.5-beta14
3 years ago
1.0.5-beta15
3 years ago
1.0.5-beta12
3 years ago
1.0.5-beta10
3 years ago
1.0.5-beta11
3 years ago
1.0.5-beta9
3 years ago
1.0.5-beta8
3 years ago
1.0.5-beta7
3 years ago
1.0.5-beta6
3 years ago
1.0.5-beta5
3 years ago
1.0.5-beta4
3 years ago
1.0.5-beta3
3 years ago
1.0.5-beta2
3 years ago
1.0.5-beta1
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago