增加线上配置

This commit is contained in:
chenglijuan
2026-05-20 10:05:47 +08:00
parent f26d767cca
commit dbfc8011c4
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
<!--appointment.wxml--> <!--appointment.wxml-->
<view class="page"> <view class="page">
<!-- 预约人信息 --> <!-- 来访人信息 -->
<view class="section"> <view class="section">
<view class="section-title">预约人信息</view> <view class="section-title">来访人信息</view>
<view class="form-group"> <view class="form-group">
<text class="form-label">姓名<text class="required">*</text></text> <text class="form-label">姓名<text class="required">*</text></text>
<view class="form-field-wrap"> <view class="form-field-wrap">
+4
View File
@@ -2,6 +2,7 @@
// 环境地址配置 // 环境地址配置
const ENV_CONFIG = { const ENV_CONFIG = {
release: 'https://smartguest.bmser.com:8091',
trial: 'https://smartguest.bmser.com:8091', trial: 'https://smartguest.bmser.com:8091',
// develop: 'https://192.168.123.76:8080' // develop: 'https://192.168.123.76:8080'
develop: 'https://10.50.13.191:8091' develop: 'https://10.50.13.191:8091'
@@ -12,6 +13,9 @@ function getBaseUrl() {
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const envVersion = accountInfo.miniProgram.envVersion const envVersion = accountInfo.miniProgram.envVersion
// release = 正式版, develop = 开发版, trial = 体验版 // release = 正式版, develop = 开发版, trial = 体验版
if (envVersion === 'release') {
return ENV_CONFIG.release
}
return envVersion === 'trial' ? ENV_CONFIG.trial : ENV_CONFIG.develop return envVersion === 'trial' ? ENV_CONFIG.trial : ENV_CONFIG.develop
} }