feat: 按配置获取主体信息
This commit is contained in:
@@ -2,23 +2,19 @@
|
||||
<view class="login-wrapper" :style="{ backgroundImage: `url(${loginBg})` }">
|
||||
<!-- 返回按钮 -->
|
||||
<view class="back-btn" @click="goBack">
|
||||
<uni-icons fontFamily="znicons" size="24" color="#333">{{
|
||||
zniconsMap["zn-nav-arrow-left"]
|
||||
}}</uni-icons>
|
||||
<uni-icons fontFamily="znicons" size="24" color="#333">
|
||||
{{ zniconsMap["zn-nav-arrow-left"] }}
|
||||
</uni-icons>
|
||||
</view>
|
||||
|
||||
<!-- 头部内容 -->
|
||||
<view class="login-header">
|
||||
<!-- 卡通形象 -->
|
||||
<image class="login-avatar" src="./images/dh.png" mode="widthFix"></image>
|
||||
<image
|
||||
class="login-title"
|
||||
src="./images/dhwq.png"
|
||||
mode="widthFix"
|
||||
></image>
|
||||
<image class="login-avatar" :src="logo" mode="widthFix"></image>
|
||||
<image class="login-title" :src="subLogo" mode="widthFix"></image>
|
||||
|
||||
<!-- 描述 -->
|
||||
<view class="login-desc">您好,欢迎来到朵花温泉!</view>
|
||||
<view class="login-desc">{{ loginDesc }}</view>
|
||||
</view>
|
||||
|
||||
<!-- 按钮区域 -->
|
||||
@@ -82,6 +78,7 @@ import loginBg from "./images/bg.png";
|
||||
import CheckBox from "@/components/CheckBox/index.vue";
|
||||
import AgreePopup from "./components/AgreePopup/index.vue";
|
||||
import { zniconsMap } from "@/static/fonts/znicons.js";
|
||||
import { getCurrentConfig } from "@/constant/base";
|
||||
|
||||
const isAgree = ref(false);
|
||||
const visible = ref(false);
|
||||
@@ -89,6 +86,10 @@ const serviceAgreement = ref("");
|
||||
const privacyAgreement = ref("");
|
||||
// 协议类型
|
||||
const AgreeType = ref("service");
|
||||
const logo = computed(() => getCurrentConfig().logo);
|
||||
const subLogo = computed(() => getCurrentConfig().subLogo);
|
||||
const loginDesc = computed(() => getCurrentConfig().loginDesc);
|
||||
const clientId = computed(() => getCurrentConfig().clientId);
|
||||
|
||||
// 同意隐私协议并获取手机号
|
||||
const handleAgreeAndGetPhone = () => {
|
||||
|
||||
Reference in New Issue
Block a user