diff --git a/miniprogram/app.wxss b/miniprogram/app.wxss index 06c6daa..1ca2569 100644 --- a/miniprogram/app.wxss +++ b/miniprogram/app.wxss @@ -250,23 +250,3 @@ page { .nav-back-light { color: rgba(255, 255, 255, 0.9); } - -.debug-actions { - margin-top: 40rpx; - padding: 20rpx; - background: #fff8e1; - border-radius: 12rpx; - border: 2rpx dashed #f5a623; -} - -.debug-label { - font-size: 24rpx; - color: #f5a623; - margin-bottom: 16rpx; - font-weight: 600; -} - -.debug-actions .btn-sm { - margin-top: 12rpx; - font-size: 26rpx; -} diff --git a/miniprogram/config/env.js b/miniprogram/config/env.js index fe07f9a..9414b18 100644 --- a/miniprogram/config/env.js +++ b/miniprogram/config/env.js @@ -1,4 +1,3 @@ -// Production: change to 'prod' to disable debug buttons and mock endpoints var ENV = 'prod' var API_BASES = { @@ -7,10 +6,7 @@ var API_BASES = { prod: 'https://api.vsai.net.cn' } -var __DEV__ = ENV !== 'prod' - module.exports = { ENV: ENV, - API_BASE: API_BASES[ENV], - __DEV__: __DEV__ + API_BASE: API_BASES[ENV] } diff --git a/miniprogram/utils/page.js b/miniprogram/utils/page.js index b02ff6b..be1bc1f 100644 --- a/miniprogram/utils/page.js +++ b/miniprogram/utils/page.js @@ -16,10 +16,4 @@ function navigateBack(fallbackUrl) { }) } -/** Check if dev mode is enabled */ -function isDevMode() { - var config = require('../config/env') - return config.__DEV__ || false -} - -module.exports = { getStatusBarHeight: getStatusBarHeight, navigateBack: navigateBack, isDevMode: isDevMode } +module.exports = { getStatusBarHeight: getStatusBarHeight, navigateBack: navigateBack }