feat: hide trial/subscription text on bind-success when smart_mode_free

这个提交包含在:
Guoguo
2026-07-02 06:43:09 -07:00
父节点 cdc6348ac4
当前提交 cc5159ebb7
修改 2 个文件,包含 9 行新增3 行删除
@@ -2,7 +2,8 @@ Page({
data: {
statusBarHeight: 44,
deviceId: '',
trialDays: 7
trialDays: 7,
isFreeMode: false
},
onBack: function () {
@@ -17,6 +18,11 @@ Page({
var app = getApp()
this.setData({ statusBarHeight: app.globalData.statusBarHeight })
this.setData({ deviceId: options.device_id || '' })
var self = this
var http = require('../../utils/request')
http.get('/api/v1/subscription').then(function (sub) {
if (sub && sub.plan === 'free') self.setData({ isFreeMode: true })
}).catch(function () {})
},
onStart: function () {