|
|
|
@ -102,7 +102,7 @@ import sha1 from 'crypto-js/sha1'; |
|
|
|
import { getEnterpriseMerchantAuthorization, getSiqLoginAuth, getSiqLoginAuthMock, siqCode, getCarouselBannerList, getSystemNoticeList } from '../../../api/enterprise'; |
|
|
|
import 'vant/es/toast/style'; |
|
|
|
import Vconsolefrom from 'vconsole'; |
|
|
|
|
|
|
|
import { showToast } from 'vant'; |
|
|
|
const { useCommon } = $globalStore; |
|
|
|
const router = useRouter(); |
|
|
|
const isLoading = ref(true); |
|
|
|
@ -233,7 +233,7 @@ const hasUserInfo = () => { |
|
|
|
}; |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
// new Vconsolefrom(); |
|
|
|
new Vconsolefrom(); |
|
|
|
console.log("企业端 Home onMounted"); |
|
|
|
// new Vconsolefrom(); |
|
|
|
//debugger; |
|
|
|
@ -310,6 +310,7 @@ onMounted(() => { |
|
|
|
success: function (res) { |
|
|
|
console.log("认证", res); |
|
|
|
console.log("code: " + res.result.result.code); |
|
|
|
showToast("深i企认证成功"); |
|
|
|
// getSiqLoginAuth({ code: "13b6a16b-1d08-4e9c-b4b6-4cc2101cd770" }, success => { |
|
|
|
getSiqLoginAuth({ code: res.result.result.code }, success => { |
|
|
|
useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
|
|
|
@ -336,12 +337,15 @@ onMounted(() => { |
|
|
|
new Vconsolefrom() |
|
|
|
} |
|
|
|
}, error => { |
|
|
|
console.log("认证失败", error) |
|
|
|
console.log("系统认证失败", error) |
|
|
|
showToast("系统认证失败:"+error.message); |
|
|
|
}) |
|
|
|
}, |
|
|
|
fail: function (err) { |
|
|
|
console.log(err) |
|
|
|
console.log("认证失败", err); |
|
|
|
showToast("深i企认证失败:"+err.message); |
|
|
|
showToast("深i企认证失败:"+err.code); |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|