- Profile: show "未订阅" card when subscription inactive/0 days - Profile: subscription management navigates to page instead of modal - Subscribe-plans: data-driven plan cards with mock payment flow - Subscribe-plans: show current subscription status at top - Subscribe-prompt: "先使用普通模式" goes to wear-check directly - Add help and contact placeholder pages - Fix unbindDevice to work without explicit deviceId
27 行
522 B
JavaScript
27 行
522 B
JavaScript
Page({
|
|
data: {
|
|
statusBarHeight: 44
|
|
},
|
|
|
|
onLoad: function () {
|
|
var app = getApp()
|
|
this.setData({ statusBarHeight: app.globalData.statusBarHeight })
|
|
},
|
|
|
|
onViewPlans: function () {
|
|
wx.navigateTo({ url: '/pages/subscribe-plans/subscribe-plans' })
|
|
},
|
|
|
|
onBack: function () {
|
|
wx.navigateBack({
|
|
fail: function () {
|
|
wx.reLaunch({ url: '/pages/index/index' })
|
|
}
|
|
})
|
|
},
|
|
|
|
onUseFreeMode: function () {
|
|
wx.redirectTo({ url: '/pages/wear-check/wear-check?mode=0' })
|
|
}
|
|
})
|