新增营销系统、分销系统、会员功能、门店、提现功能

This commit is contained in:
Shaw
2024-02-08 21:01:37 +08:00
parent 68b3f2dcc3
commit 17c043348a
1398 changed files with 81279 additions and 56269 deletions

View File

@ -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;