新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
@ -6,24 +6,22 @@
|
||||
@update: 2023-11-08 16:20
|
||||
-->
|
||||
<script setup>
|
||||
import { wechat } from "@/utils/images";
|
||||
import { loginLogoIcon, wechat } from "@/utils/images";
|
||||
import { useRouter } from "@/hooks/useRouter";
|
||||
import { loginMethods } from "@/pages/login/index.data";
|
||||
import { wxLogin } from "@/utils/wechatUtils";
|
||||
import { error } from "@/uni_modules/uv-ui-tools/libs/function";
|
||||
import { nextTick, ref } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useInterface } from "@/hooks/useInterface";
|
||||
import { privacyAgreementUrl, userAgreementUrl, weixinLogin } from "@/api/auth";
|
||||
import { useMainStore } from "@/store/store";
|
||||
import { afterLogin } from "@/utils";
|
||||
import { loginLogoIcon } from "@/utils/images";
|
||||
|
||||
const {toast, loading, hideLoading} = useInterface()
|
||||
const {goBack, push} = useRouter()
|
||||
const mainStore = useMainStore()
|
||||
|
||||
async function toLogin(loginMethod) {
|
||||
push({url: '/pages/login/index', animationType: 'slide-in-right'}, {data: {...loginMethod}})
|
||||
push({url: '/pages/login/index', animationType: 'slide-in-right'}, {data: {...loginMethod}})
|
||||
}
|
||||
|
||||
// ============================= 微信登录相关
|
||||
@ -56,6 +54,7 @@ async function getPhoneNumber(e) {
|
||||
});
|
||||
if (res) {
|
||||
await mainStore.setAccessToken(res)
|
||||
await mainStore.getUserInfo()
|
||||
afterLogin()
|
||||
}
|
||||
} catch (e) {
|
||||
@ -67,7 +66,6 @@ async function getPhoneNumber(e) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
const privacyPolicy = ref([]) // 协议双向绑定
|
||||
|
||||
const isPrivacyError = ref(false) // 未勾选协议
|
||||
@ -121,11 +119,11 @@ function toAgreement(type) {
|
||||
class="button animation-button disabled"
|
||||
@click="checkPrivacy"
|
||||
>
|
||||
<image
|
||||
class="icon"
|
||||
:src="wechat"
|
||||
/>
|
||||
微信快捷登录
|
||||
<!-- <image-->
|
||||
<!-- class="icon"-->
|
||||
<!-- :src="wechat"-->
|
||||
<!-- />-->
|
||||
一键登录
|
||||
</view>
|
||||
<button
|
||||
v-else
|
||||
@ -134,11 +132,11 @@ function toAgreement(type) {
|
||||
@getphonenumber="getPhoneNumber"
|
||||
@click="getCode"
|
||||
>
|
||||
<image
|
||||
class="icon"
|
||||
:src="wechat"
|
||||
/>
|
||||
微信快捷登录
|
||||
<!-- <image-->
|
||||
<!-- class="icon"-->
|
||||
<!-- :src="wechat"-->
|
||||
<!-- />-->
|
||||
一键登录
|
||||
</button>
|
||||
<!-- #endif -->
|
||||
<template
|
||||
@ -229,6 +227,7 @@ function toAgreement(type) {
|
||||
height: 88rpx;
|
||||
font-size: 28rpx;
|
||||
border-radius: 0;
|
||||
|
||||
.icon {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
|
Reference in New Issue
Block a user