优化登录体验并更新小程序域名
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
TARO_APP_API_BASE_URL="https://biz.wanderqtrip.com/api"
|
||||
TARO_APP_H5_URL="https://www.example.com"
|
||||
TARO_APP_API_BASE_URL="https://bizwanderq.nianxx.com/api"
|
||||
TARO_APP_H5_URL="https://wanderq.nianxx.com"
|
||||
|
||||
@@ -21,7 +21,8 @@ MINIAPP_MEMORY_DB=1 npm run dev:api:memory
|
||||
在根目录环境中设置:
|
||||
|
||||
```bash
|
||||
TARO_APP_API_BASE_URL="https://biz.wanderqtrip.com/api"
|
||||
TARO_APP_API_BASE_URL="https://bizwanderq.nianxx.com/api"
|
||||
TARO_APP_H5_URL="https://wanderq.nianxx.com"
|
||||
```
|
||||
|
||||
然后执行:
|
||||
|
||||
@@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url";
|
||||
import { defineConfig, type UserConfigExport } from "@tarojs/cli";
|
||||
|
||||
const appRoot = path.resolve(fileURLToPath(new URL("..", import.meta.url)));
|
||||
const DEFAULT_API_BASE_URL = "https://biz.wanderqtrip.com/api";
|
||||
const DEFAULT_API_BASE_URL = "https://bizwanderq.nianxx.com/api";
|
||||
|
||||
class StripWxssWebpackBannersPlugin {
|
||||
apply(compiler: any) {
|
||||
|
||||
@@ -45,8 +45,7 @@ export default function LoginPage() {
|
||||
<View className="login-page">
|
||||
<View className="login-hero">
|
||||
<Text className="eyebrow">万趣账号</Text>
|
||||
<Text className="login-title">登录后,行程在小程序和 H5 之间同步</Text>
|
||||
<Text className="login-note">手机号仅用于识别账号和联系服务管家,不会公开展示。</Text>
|
||||
<Text className="login-title">登录万趣,开启贵州旅程</Text>
|
||||
</View>
|
||||
<Button
|
||||
className="phone-login-button"
|
||||
@@ -57,7 +56,7 @@ export default function LoginPage() {
|
||||
{loading ? "登录中..." : "微信手机号一键登录"}
|
||||
</Button>
|
||||
{message ? <Text className="login-message">{message}</Text> : null}
|
||||
<Text className="login-privacy">登录即表示你同意万趣为本次服务保存必要的账号信息。</Text>
|
||||
<Text className="login-privacy">登录即同意万趣保存必要账号信息</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Taro from "@tarojs/taro";
|
||||
|
||||
const DEFAULT_API_BASE_URL = "https://biz.wanderqtrip.com/api";
|
||||
const DEFAULT_API_BASE_URL = "https://bizwanderq.nianxx.com/api";
|
||||
const API_BASE = String(process.env.TARO_APP_API_BASE_URL || DEFAULT_API_BASE_URL).replace(/\/+$/, "");
|
||||
const TOKEN_KEY = "wanqu_mini_program_token";
|
||||
const LOCAL_FAVORITES_KEY = "wanqu_mini_program_favorites";
|
||||
|
||||
Reference in New Issue
Block a user