新增注册来源功能
This commit is contained in:
@ -142,7 +142,7 @@
|
||||
import { onPageScroll, onReachBottom } from '@dcloudio/uni-app'
|
||||
import useMescroll from "@/uni_modules/mescroll-uni/hooks/useMescroll.js"
|
||||
import { LOCATION_DENY_TIME_KEY, handleEnsureLocationAuthHooks, LOCATION_DEFAULT_CITY, handleGetLocationCity, LOCATION_CITY_KEY, handleForceGetLocation } from '@/hooks/useLocation'
|
||||
import { getHomeBannerList, getHomeCouponPopup, claimIndexCoupon } from '@/api/home'
|
||||
import { getHomeBannerList, getHomeCouponPopup, claimIndexCoupon, getWxacode } from '@/api/home'
|
||||
import { getHomeTeaStoreList } from '@/api/tea-room'
|
||||
import { useUserStore } from '@/store'
|
||||
import { useToast } from 'wot-design-uni'
|
||||
@ -213,7 +213,11 @@
|
||||
}
|
||||
})
|
||||
|
||||
onLoad(async() => {
|
||||
onLoad(async(args) => {
|
||||
|
||||
// 获取小程序码注册来源
|
||||
// getWxacode().then( res => {})
|
||||
|
||||
// 初始化页面数据
|
||||
Index.handleInit()
|
||||
|
||||
|
||||
@ -62,6 +62,7 @@
|
||||
|
||||
const OSS = inject('OSS')
|
||||
const env = import.meta.env.VITE_NODE_ENV
|
||||
const userStore = useUserStore()
|
||||
|
||||
// 服务协议条款
|
||||
const agree = ref<boolean>(false)
|
||||
@ -89,7 +90,7 @@
|
||||
mask: true
|
||||
})
|
||||
try {
|
||||
const userStore = useUserStore()
|
||||
console.log("🚀 ~ Login userRegisterSource=", userStore.userRegisterSource)
|
||||
const res = await userStore.wxLogin()
|
||||
console.log("🚀 ~ res:", res)
|
||||
console.log("🚀 ~ token:", uni.getStorageSync('token'))
|
||||
@ -122,6 +123,7 @@
|
||||
* 一键授权绑定手机号码
|
||||
*/
|
||||
handleBindMobile: async (e: any) => {
|
||||
console.log("🚀 ~ e:", e)
|
||||
uni.showLoading({ title: '绑定中...', mask: true })
|
||||
try {
|
||||
await getMobileByMnp(e.code)
|
||||
|
||||
Reference in New Issue
Block a user