|
|
|
@ -47,12 +47,11 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup name="Home"> |
|
|
|
import {getEnterpriseMerchantAuthorization} from '../api/Home'; |
|
|
|
import {getEnterpriseMerchantAuthorization,getSiqLoginAuth} from '@/api/Home'; |
|
|
|
const { useCommon } = $globalStore; |
|
|
|
const router = useRouter(); |
|
|
|
const route = useRoute(); |
|
|
|
let carouselList = reactive([]); // 轮播列表 |
|
|
|
let boutique = reactive([]); // 精品数据 |
|
|
|
let recommend = reactive([]); // 推荐 |
|
|
|
let freshMap = reactive({ |
|
|
|
refreshLoad: false, // 是否刷新 |
|
|
|
listLoading: false, // 是否加载中 |
|
|
|
@ -122,7 +121,14 @@ const onLoad = () => { |
|
|
|
}; |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
console.log(useCommon.phonenumber) |
|
|
|
// console.log(useCommon.phonenumber) |
|
|
|
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber); |
|
|
|
// useCommon.SET_USER_ID(success.data.userId); |
|
|
|
getSiqLoginAuth({userId:"",userName:""},success =>{ |
|
|
|
console.log(success.data) |
|
|
|
},error =>{ |
|
|
|
|
|
|
|
}) |
|
|
|
getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber},success =>{ |
|
|
|
console.log(success) |
|
|
|
if(!(success.data == null && success.data.length == 0)){ |
|
|
|
|