|
@@ -6,6 +6,7 @@ style:
|
|
import { weixinMiniAppLogin } from '@/core/libs/requests'
|
|
import { weixinMiniAppLogin } from '@/core/libs/requests'
|
|
import { logo } from '@/core/libs/svgs'
|
|
import { logo } from '@/core/libs/svgs'
|
|
import { useUserStore } from '@/store'
|
|
import { useUserStore } from '@/store'
|
|
|
|
+import { loginAccountIcon, loginPswIcon, loginPswEye } from '@designer-hub/assets/src/svgs'
|
|
|
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
const { setUserInfo } = userStore
|
|
const { setUserInfo } = userStore
|
|
@@ -71,86 +72,54 @@ const getTestCode = async ({ detail }) => {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<template>
|
|
<template>
|
|
- <div class="flex-grow flex flex-col items-center justify-around px-3.5">
|
|
|
|
- <div>
|
|
|
|
- <wd-img :src="logo" width="78" height="78"></wd-img>
|
|
|
|
- <div class="text-black text-2xl font-normal font-['PingFang SC'] leading-[10.18px]">
|
|
|
|
- 筑巢荟
|
|
|
|
|
|
+ <div class="flex-grow flex flex-col items-center justify-start px-7.5 bg-[#ffffff] pt-[100px]">
|
|
|
|
+ <div class="flex flex-col justify-start mb-[57px] title">
|
|
|
|
+ <div class="text-black text-2xl font-normal font-['PingFang SC']">你好!</div>
|
|
|
|
+ <div class="text-black text-2xl font-normal font-['PingFang SC'] mt-[9px]">
|
|
|
|
+ 欢迎来到筑巢荟
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="w-full">
|
|
|
|
- <button
|
|
|
|
- type="primary"
|
|
|
|
- size="large"
|
|
|
|
- :style="{
|
|
|
|
- backgroundColor: 'black',
|
|
|
|
- }"
|
|
|
|
- open-type="getPhoneNumber"
|
|
|
|
- @getphonenumber="getPhoneNumber"
|
|
|
|
- >
|
|
|
|
- 手机号一键登录
|
|
|
|
- </button>
|
|
|
|
- <div class="w-[318px] mt-8">
|
|
|
|
- <span class="text-black/40 text-xs font-normal font-['PingFang SC'] leading-tight">
|
|
|
|
- 如您点击授权,您将同意并授权
|
|
|
|
- </span>
|
|
|
|
- <span class="text-[#0cbe7c] text-xs font-normal font-['PingFang SC'] leading-tight">
|
|
|
|
- 《筑巢荟用户服务协议》、《隐私政策》、《注册协议》
|
|
|
|
- </span>
|
|
|
|
|
|
+ <div class="w-full form">
|
|
|
|
+ <div class="bg-[#F6F6F6] item mb-[10px] flex items-center">
|
|
|
|
+ <wd-img :src="loginAccountIcon" mode="widthFix" width="19px" class="mr-[16px]" />
|
|
|
|
+ <wd-input type="number" placeholder="请输入手机号" />
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="bg-[#F6F6F6] item flex items-center">
|
|
|
|
+ <wd-img :src="loginPswIcon" mode="widthFix" width="19px" class="mr-[16px]" />
|
|
|
|
+ <wd-input type="number" placeholder="请输入密码" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="w-full flex items-center justify-between mt-[19px]">
|
|
|
|
+ <wd-checkbox :modelValue="true" shape="square">记住密码</wd-checkbox>
|
|
|
|
+ <div class="text-[#2357e9] text-xs font-normal font-['PingFang SC']">忘记密码?</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="w-full mt-[50px]"><wd-button block :round="false">登录</wd-button></div>
|
|
|
|
+ <div class="mt-8">
|
|
|
|
+ <span class="text-black/40 text-xs font-normal font-['PingFang SC'] leading-tight">
|
|
|
|
+ 登录即代表您已阅读并同意筑巢荟的
|
|
|
|
+ </span>
|
|
|
|
+ <span class="text-[#2357e9] text-xs font-normal font-['PingFang SC'] leading-tight">
|
|
|
|
+ 《服务使用协议》
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <!-- <view class="content">
|
|
|
|
- <textarea v-model="loginCode" placeholder="" placeholder-class="textarea-placeholder" />
|
|
|
|
- <textarea v-model="phoneCode" placeholder="" placeholder-class="textarea-placeholder" />
|
|
|
|
- <button style="margin: 20px 0 20px 0" @click="toUserInfoPage">个人资料</button>
|
|
|
|
- <uni-forms-item label="切换登录方式" labelWidth="70">
|
|
|
|
- <uni-data-checkbox
|
|
|
|
- :multiple="false"
|
|
|
|
- v-model="loginType"
|
|
|
|
- :localdata="loginTypeOption"
|
|
|
|
- mode="button"
|
|
|
|
- ></uni-data-checkbox>
|
|
|
|
- </uni-forms-item>
|
|
|
|
- <button @click="weixinLogin">前往登录</button> -->
|
|
|
|
- <!-- #ifdef MP-WEIXIN -->
|
|
|
|
- <!-- <button type="primary" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber"> -->
|
|
|
|
- <!-- 手机号一键登录
|
|
|
|
- </button> -->
|
|
|
|
- <!-- #endif -->
|
|
|
|
- <!-- #ifdef MP-WEIXIN -->
|
|
|
|
- <!-- <button type="primary" open-type="getPhoneNumber" @getphonenumber="getTestCode">
|
|
|
|
- 获取测试码
|
|
|
|
- </button> -->
|
|
|
|
- <!-- #endif -->
|
|
|
|
- <!-- </view> -->
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
-.content {
|
|
|
|
- display: flex;
|
|
|
|
- flex-direction: column;
|
|
|
|
- align-items: center;
|
|
|
|
- justify-content: center;
|
|
|
|
- padding: 6rpx;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.logo {
|
|
|
|
- width: 200rpx;
|
|
|
|
- height: 200rpx;
|
|
|
|
- margin-top: 200rpx;
|
|
|
|
- margin-right: auto;
|
|
|
|
- margin-bottom: 50rpx;
|
|
|
|
- margin-left: auto;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.text-area {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
.title {
|
|
.title {
|
|
- font-size: 18px;
|
|
|
|
- color: #8f8f94;
|
|
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
|
|
+.form {
|
|
|
|
+ .item {
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ // height: 50px;
|
|
|
|
+ padding: 10px;
|
|
|
|
+ :deep(.wd-input) {
|
|
|
|
+ background: transparent;
|
|
|
|
+ height: 100%;
|
|
|
|
+ border: none;
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|