|
@@ -8,9 +8,11 @@ definePage({
|
|
|
islogin: false,
|
|
islogin: false,
|
|
|
style: {
|
|
style: {
|
|
|
navigationBarTitleText: '市民请集合',
|
|
navigationBarTitleText: '市民请集合',
|
|
|
|
|
+ navigationStyle: 'custom',
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
const { token, redirectName, userInfo } = storeToRefs(useUserStore())
|
|
const { token, redirectName, userInfo } = storeToRefs(useUserStore())
|
|
|
|
|
+const { thirdPartyName, thirdPartyLogo } = storeToRefs(useSysStore())
|
|
|
const { data, send } = useRequest((code, phoneCode) => Apis.sys.auth({ params: {
|
|
const { data, send } = useRequest((code, phoneCode) => Apis.sys.auth({ params: {
|
|
|
grant_type: 'wechat',
|
|
grant_type: 'wechat',
|
|
|
code,
|
|
code,
|
|
@@ -23,6 +25,9 @@ const code = ref('')
|
|
|
// 验证码倒计时
|
|
// 验证码倒计时
|
|
|
const countdown = ref(0)
|
|
const countdown = ref(0)
|
|
|
const isSending = ref(false)
|
|
const isSending = ref(false)
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ console.log(redirectName.value, '==================================')
|
|
|
|
|
+})
|
|
|
// 发送验证码
|
|
// 发送验证码
|
|
|
async function handleSendCode() {
|
|
async function handleSendCode() {
|
|
|
if (!phone.value) {
|
|
if (!phone.value) {
|
|
@@ -71,6 +76,8 @@ async function handleLogin() {
|
|
|
useGlobalToast().show('登录成功')
|
|
useGlobalToast().show('登录成功')
|
|
|
const user = await Apis.general.get_smqjh_system_app_api_v1_members_me()
|
|
const user = await Apis.general.get_smqjh_system_app_api_v1_members_me()
|
|
|
userInfo.value = user.data as Api.userInfo
|
|
userInfo.value = user.data as Api.userInfo
|
|
|
|
|
+ console.log(redirectName.value, '==========redirectName.value')
|
|
|
|
|
+
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
if (tabList.includes(redirectName.value)) {
|
|
if (tabList.includes(redirectName.value)) {
|
|
|
router.pushTab({ path: redirectName.value })
|
|
router.pushTab({ path: redirectName.value })
|
|
@@ -121,6 +128,11 @@ function goBack() {
|
|
|
<view>
|
|
<view>
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
<view class="header px24rpx">
|
|
<view class="header px24rpx">
|
|
|
|
|
+ <wd-navbar
|
|
|
|
|
+ title="市民请集合" custom-style="background-color:transparent !important" :bordered="false" :z-index="99"
|
|
|
|
|
+
|
|
|
|
|
+ safe-area-inset-top placeholder fixed
|
|
|
|
|
+ />
|
|
|
<view class="pt150rpx">
|
|
<view class="pt150rpx">
|
|
|
<view class="w-full flex items-center justify-center">
|
|
<view class="w-full flex items-center justify-center">
|
|
|
<image
|
|
<image
|
|
@@ -144,9 +156,14 @@ function goBack() {
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef H5 -->
|
|
<!-- #ifdef H5 -->
|
|
|
<view class="login-page min-h-100vh px48rpx">
|
|
<view class="login-page min-h-100vh px48rpx">
|
|
|
|
|
+ <wd-navbar
|
|
|
|
|
+ :title="thirdPartyName" custom-style="background-color:transparent !important" :bordered="false" :z-index="99"
|
|
|
|
|
+
|
|
|
|
|
+ safe-area-inset-top placeholder fixed
|
|
|
|
|
+ />
|
|
|
<view class="w-full flex items-center justify-center pt40rpx">
|
|
<view class="w-full flex items-center justify-center pt40rpx">
|
|
|
<image
|
|
<image
|
|
|
- :src="`${StaticUrl}/smqjh-logo.png`"
|
|
|
|
|
|
|
+ :src="`${thirdPartyLogo}`"
|
|
|
class="h120rpx w120rpx"
|
|
class="h120rpx w120rpx"
|
|
|
/>
|
|
/>
|
|
|
</view>
|
|
</view>
|