feat:登录
This commit is contained in:
1 parent
8cfe87e31e
commit
2fde3715e3
10 files changed
+32
-221
No files matched your search
@@ -43,7 +43,6 @@ const doSubmit = async () => {
|
||||
return;
|
||||
}
|
||||
uni.setStorageSync(tokenKey, res.data);
|
||||
uni.setStorageSync(refreshTokenKey, res.data);
|
||||
const { data: userData } = await userApi.userInfo();
|
||||
uni.setStorageSync(userInfoKey, userData);
|
||||
uni.hideLoading();
|
||||
|
||||
@@ -7,6 +7,8 @@ import uqrcode from "@@/utils/uqrcode"
|
||||
import { hooks, router } from "@@/index"
|
||||
import { merchantApi, walletApi } from "@@/api"
|
||||
|
||||
import { filePath } from "@@/utils/file"
|
||||
|
||||
const state = reactive<any>({
|
||||
showBindDialog: false,
|
||||
showFreezeDialog: false,
|
||||
@@ -35,7 +37,7 @@ onShow(() => {
|
||||
})
|
||||
|
||||
const pageRef = ref<any>(null)
|
||||
const pageHook = hooks.usePage(pageRef, walletApi.all, null, 'data')
|
||||
const pageHook = hooks.usePage(pageRef, walletApi.all, null, 'data.records')
|
||||
const query = (page: number, pagesize: number) => {
|
||||
pageHook.startPage(page, pagesize, false, state.pa);
|
||||
}
|
||||
@@ -147,13 +149,13 @@ const doFreeze = async () => {
|
||||
</view>
|
||||
<view class="flex-row items-center justify-between m-t-10rpx">
|
||||
<view class="flex-row items-center">
|
||||
<image class="size-50rpx rounded-full" :src="v.walletIcon" mode="aspectFill" />
|
||||
<image class="size-50rpx rounded-full" :src="filePath(v.walletIcon)" mode="aspectFill" />
|
||||
<text class="m-l-25rpx sub-text-28">
|
||||
{{ v.walletTypeStr }}
|
||||
{{ v.walletTypeName }}
|
||||
</text>
|
||||
</view>
|
||||
<view v-if="v.cardNumber">
|
||||
<tm-tag v-if="v.checkFreezeStatus == 1" size="s" color="info">冻结审核中</tm-tag>
|
||||
<tm-tag v-if="v.isFreeze" size="s" color="info">冻结审核中</tm-tag>
|
||||
<slot v-else>
|
||||
<tm-tag v-if="!v.isFreeze" size="s" color="success">正常</tm-tag>
|
||||
<tm-tag v-else size="s" color="error">已冻结</tm-tag>
|
||||
|
||||
@@ -103,7 +103,7 @@ const doPay = async () => {
|
||||
</view>
|
||||
<view class="flex-row-center">
|
||||
<view class="m-l-25rpx main-text-32 color-#fbddb0!">
|
||||
{{ state.detail.walletTypeStr }}
|
||||
{{ state.detail.walletTypeName }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in new issue
Block a user