From 5151fedba4c2224f80acc65bb65a1a782d3680a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=85=A8=E6=A0=88=E5=B0=8F=E5=AD=A6=E7=94=9F?=
<1518079521@qq.com>
Date: Sat, 28 Sep 2024 09:41:06 +0800
Subject: [PATCH] up
---
uni-app/src/App.vue | 154 ++--
uni-app/src/app/api/auth.ts | 2 +-
uni-app/src/app/api/diy.ts | 7 -
uni-app/src/app/api/system.ts | 33 +-
.../app/components/diy/active-cube/index.vue | 66 +-
.../components/diy/carousel-search/index.vue | 78 +-
.../app/components/diy/float-btn/index.vue | 2 +-
.../app/components/diy/graphic-nav/index.vue | 6 +-
.../app/components/diy/member-info/index.vue | 75 +-
.../app/components/diy/member-level/index.vue | 54 +-
.../src/app/components/diy/notice/index.vue | 10 +-
.../app/components/diy/rubik-cube/index.vue | 24 +-
uni-app/src/app/components/diy/text/index.vue | 17 +-
.../app/locale/zh-Hans/pages.auth.bind.json | 14 +-
.../app/locale/zh-Hans/pages.auth.index.json | 8 +
.../app/locale/zh-Hans/pages.auth.login.json | 11 +-
.../locale/zh-Hans/pages.auth.register.json | 3 +-
.../locale/zh-Hans/pages.auth.resetpwd.json | 9 +-
.../zh-Hans/pages.member.account_edit.json | 6 +
.../locale/zh-Hans/pages.member.cash_out.json | 7 +-
.../locale/zh-Hans/pages.member.personal.json | 4 +-
uni-app/src/app/pages/auth/agreement.vue | 46 +-
uni-app/src/app/pages/auth/bind.vue | 198 +++--
uni-app/src/app/pages/auth/index.vue | 285 +++++++
uni-app/src/app/pages/auth/login.vue | 519 ++++++-------
uni-app/src/app/pages/auth/register.vue | 253 ++++---
uni-app/src/app/pages/auth/resetpwd.vue | 116 +--
uni-app/src/app/pages/index/close.vue | 21 +-
uni-app/src/app/pages/index/diy.vue | 14 +-
uni-app/src/app/pages/index/index.vue | 14 +-
uni-app/src/app/pages/index/nosite.vue | 23 +-
uni-app/src/app/pages/member/account.vue | 61 +-
uni-app/src/app/pages/member/account_edit.vue | 79 +-
uni-app/src/app/pages/member/address.vue | 121 +--
uni-app/src/app/pages/member/address_edit.vue | 198 ++---
.../src/app/pages/member/apply_cash_out.vue | 77 +-
uni-app/src/app/pages/member/balance.vue | 114 ++-
uni-app/src/app/pages/member/cash_out.vue | 29 +-
.../src/app/pages/member/cash_out_detail.vue | 106 +--
uni-app/src/app/pages/member/commission.vue | 76 +-
.../pages/member/components/select-date.vue | 20 +-
uni-app/src/app/pages/member/contact.vue | 22 +-
.../src/app/pages/member/detailed_account.vue | 55 +-
uni-app/src/app/pages/member/index.vue | 15 +-
uni-app/src/app/pages/member/level.vue | 98 +--
uni-app/src/app/pages/member/personal.vue | 186 +++--
uni-app/src/app/pages/member/point.vue | 86 +--
uni-app/src/app/pages/member/point_detail.vue | 76 +-
uni-app/src/app/pages/member/sign_in.vue | 128 ++--
uni-app/src/app/pages/pay/result.vue | 36 +-
uni-app/src/app/pages/setting/index.vue | 72 +-
uni-app/src/app/pages/verify/detail.vue | 61 +-
uni-app/src/app/pages/verify/index.vue | 92 +--
uni-app/src/app/pages/verify/record.vue | 153 ++--
uni-app/src/app/pages/verify/verify.vue | 70 +-
uni-app/src/app/pages/webview/index.vue | 2 +-
.../components/area-select/area-select.vue | 20 +-
.../components/bind-mobile/bind-mobile.vue | 121 +--
.../information-filling.vue | 107 +--
.../components/loading-page/loading-page.vue | 27 +
.../components/mescroll/hooks/useMescroll.js | 114 +--
.../mescroll/mescroll-body/mescroll-body.css | 20 +-
.../mescroll-empty/mescroll-empty.vue | 33 +-
.../src/components/nc-contact/nc-contact.vue | 3 +-
uni-app/src/components/pay/pay.vue | 121 +--
.../components/select-date/select-date.vue | 68 +-
.../components/share-poster/share-poster.vue | 33 +-
uni-app/src/components/sms-code/sms-code.vue | 24 +-
uni-app/src/components/tabbar/tabbar.vue | 102 ++-
.../src/components/top-tabbar/top-tabbar.vue | 59 +-
.../src/components/x-skeleton/x-skeleton.vue | 6 +-
uni-app/src/hooks/useCaptcha.ts | 2 +-
uni-app/src/hooks/useDiy.ts | 55 +-
uni-app/src/hooks/useLogin.ts | 153 ++--
uni-app/src/hooks/useSendSms.ts | 6 +-
uni-app/src/hooks/useShare.ts | 13 +-
uni-app/src/locale/zh-Hans.json | 100 ++-
uni-app/src/locale/zh-Hans/common.json | 201 ++---
uni-app/src/stores/config.ts | 27 +-
uni-app/src/stores/member.ts | 73 +-
uni-app/src/stores/system.ts | 86 ++-
uni-app/src/styles/common.scss | 332 ++++++++-
uni-app/src/styles/iconfont.css | 82 ++-
uni-app/src/styles/member_record_list.scss | 2 +-
uni-app/src/styles/official-iconfont.css | 74 +-
.../components/uni-popup/keypress.js | 45 ++
.../uni-popup/components/uni-popup/popup.js | 25 +
.../components/uni-popup/uni-popup.uvue | 90 +++
.../components/uni-popup/uni-popup.vue | 501 +++++++++++++
.../src/uni_modules/uni-popup/package.json | 88 +++
uni-app/src/uni_modules/uni-scss/changelog.md | 8 +
uni-app/src/uni_modules/uni-scss/index.scss | 1 +
uni-app/src/uni_modules/uni-scss/package.json | 82 +++
uni-app/src/uni_modules/uni-scss/readme.md | 4 +
.../uni_modules/uni-scss/styles/index.scss | 7 +
.../uni-scss/styles/setting/_border.scss | 3 +
.../uni-scss/styles/setting/_color.scss | 66 ++
.../uni-scss/styles/setting/_radius.scss | 55 ++
.../uni-scss/styles/setting/_space.scss | 56 ++
.../uni-scss/styles/setting/_styles.scss | 167 +++++
.../uni-scss/styles/setting/_text.scss | 24 +
.../uni-scss/styles/setting/_variables.scss | 146 ++++
.../uni-scss/styles/tools/functions.scss | 19 +
uni-app/src/uni_modules/uni-scss/theme.scss | 31 +
.../src/uni_modules/uni-scss/variables.scss | 62 ++
.../uni_modules/uni-transition/changelog.md | 24 +
.../uni-transition/createAnimation.js | 131 ++++
.../uni-transition/uni-transition.vue | 286 +++++++
.../uni_modules/uni-transition/package.json | 85 +++
.../src/uni_modules/uni-transition/readme.md | 11 +
uni-app/src/utils/common.ts | 696 ++++++++++--------
uni-app/src/utils/interceptor.ts | 16 +-
uni-app/src/utils/mixin.ts | 18 +-
uni-app/src/utils/storage.ts | 18 +-
uni-app/src/utils/topTabbar.ts | 100 +--
uni-app/src/utils/wechat.ts | 110 +--
116 files changed, 6339 insertions(+), 2812 deletions(-)
create mode 100644 uni-app/src/app/locale/zh-Hans/pages.auth.index.json
create mode 100644 uni-app/src/app/pages/auth/index.vue
create mode 100644 uni-app/src/components/loading-page/loading-page.vue
create mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup/keypress.js
create mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup/popup.js
create mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup/uni-popup.uvue
create mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup/uni-popup.vue
create mode 100644 uni-app/src/uni_modules/uni-popup/package.json
create mode 100644 uni-app/src/uni_modules/uni-scss/changelog.md
create mode 100644 uni-app/src/uni_modules/uni-scss/index.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/package.json
create mode 100644 uni-app/src/uni_modules/uni-scss/readme.md
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/index.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/setting/_border.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/setting/_color.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/setting/_radius.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/setting/_space.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/setting/_styles.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/setting/_text.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/setting/_variables.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/styles/tools/functions.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/theme.scss
create mode 100644 uni-app/src/uni_modules/uni-scss/variables.scss
create mode 100644 uni-app/src/uni_modules/uni-transition/changelog.md
create mode 100644 uni-app/src/uni_modules/uni-transition/components/uni-transition/createAnimation.js
create mode 100644 uni-app/src/uni_modules/uni-transition/components/uni-transition/uni-transition.vue
create mode 100644 uni-app/src/uni_modules/uni-transition/package.json
create mode 100644 uni-app/src/uni_modules/uni-transition/readme.md
diff --git a/uni-app/src/App.vue b/uni-app/src/App.vue
index a32f12251..40acd9300 100644
--- a/uni-app/src/App.vue
+++ b/uni-app/src/App.vue
@@ -1,14 +1,14 @@
-
+
diff --git a/uni-app/src/app/pages/auth/bind.vue b/uni-app/src/app/pages/auth/bind.vue
index ebb5fec72..a5eac8305 100644
--- a/uni-app/src/app/pages/auth/bind.vue
+++ b/uni-app/src/app/pages/auth/bind.vue
@@ -1,70 +1,72 @@
-
-
-
-
-
- {{ t('bindMobile') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('agreeTips') }}
-
- 《{{ t('userAgreement') }}》
-
-
- 《{{ t('privacyAgreement') }}》
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{t('bindMobile')}}
+ {{t('bindMobileTip')}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('agreeTips') }}
+ 《{{t('privacyAgreement')}}》
+ {{ t('and') }}
+ 《{{t('userAgreement')}}》
+
+
+
+
+
-
diff --git a/uni-app/src/app/pages/auth/index.vue b/uni-app/src/app/pages/auth/index.vue
new file mode 100644
index 000000000..40741aa9f
--- /dev/null
+++ b/uni-app/src/app/pages/auth/index.vue
@@ -0,0 +1,285 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/src/app/pages/auth/login.vue b/uni-app/src/app/pages/auth/login.vue
index c1eead3e0..4010db5bb 100644
--- a/uni-app/src/app/pages/auth/login.vue
+++ b/uni-app/src/app/pages/auth/login.vue
@@ -1,102 +1,171 @@
-
-
-
-
-
-
- {{ t('login') }}
-
-
-
- {{ item.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('noAccount') }}
- {{ t('toRegister') }}
-
- {{ t('resetpwd') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('agreeTips') }}
-
- {{ t('userAgreement') }}
-
- {{ t('and') }}
-
- {{ t('privacyAgreement') }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ type == 'username' ? t('accountLogin') : t('mobileLogin') }}
+ {{ type == 'username' ? t('accountLoginTip') : t('mobileLoginTip') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{t('resetpwd')}}
+
+
+
+
+
+
+ {{ t('agreeTips') }}
+ 《{{t('privacyAgreement')}}》
+ {{ t('and') }}
+ 《{{t('userAgreement')}}》
+
+
+
+
+
+ {{ type == 'username' ? t('mobileLogin') : t('accountLogin') }}
+
+
+ {{ t('noAccount') }},
+ {{ t('toRegister') }}
+
+
+
+
+
+
-
-
-
+ :deep(.u-checkbox){
+ margin: 0 !important;
+ }
+ :deep(.u-form-item){
+ flex:1;
+ .u-line{
+ display:none;
+ }
+ }
+ .footer{
+ margin-top:200rpx;
+ padding-bottom:calc(151rpx + constant(safe-area-inset-bottom));
+ padding-bottom:calc(151rpx + env(safe-area-inset-bottom));
+ }
+
\ No newline at end of file
diff --git a/uni-app/src/app/pages/auth/register.vue b/uni-app/src/app/pages/auth/register.vue
index 179dd55f1..8379be765 100644
--- a/uni-app/src/app/pages/auth/register.vue
+++ b/uni-app/src/app/pages/auth/register.vue
@@ -1,84 +1,82 @@
-
-
-
-
-
-
- {{ t('register') }}
-
-
-
- {{ item.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('haveAccount') }},{{ t('toLogin') }}
-
-
-
-
-
-
-
-
-
- {{ t('registerAgreeTips') }}
-
- {{ t('userAgreement') }}
-
- {{ t('and') }}
-
- {{ t('privacyAgreement') }}
-
-
+
+
+
+
+
+
+
+ {{ type == 'username' ? t('usernameRegister') : t('mobileRegister') }}
+ {{ type == 'username' ? t('usernameRegisterTip') : t('mobileRegisterTip') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('agreeTips') }}
+ 《{{t('privacyAgreement')}}》
+ {{ t('and') }}
+ 《{{t('userAgreement')}}》
+
+
+
+
+ {{ type == 'username' ? t('mobileRegister') : t('usernameRegister') }}
+
+ {{ t('haveAccount') }},
+ {{ t('toLogin') }}
+
+
+
+
@@ -90,9 +88,22 @@
import { useLogin } from '@/hooks/useLogin'
import { useCaptcha } from '@/hooks/useCaptcha'
import { t } from '@/locale'
- import { redirect, getToken } from '@/utils/common'
+ import { redirect, getToken,pxToRpx } from '@/utils/common'
import { onLoad } from '@dcloudio/uni-app';
-
+ import { topTabar } from '@/utils/topTabbar'
+
+ let menuButtonInfo: any = {};
+ // 如果是小程序,获取右上角胶囊的尺寸信息,避免导航栏右侧内容与胶囊重叠(支付宝小程序非本API,尚未兼容)
+ // #ifdef MP-WEIXIN || MP-BAIDU || MP-TOUTIAO || MP-QQ
+ menuButtonInfo = uni.getMenuButtonBoundingClientRect();
+ // #endif
+ /********* 自定义头部 - start ***********/
+ const topTabarObj = topTabar()
+ let param = topTabarObj.setTopTabbarParam({title:'',topStatusBar:{bgColor: '#fff',textColor: '#333'}})
+ /********* 自定义头部 - end ***********/
+ const headerHeight = computed(()=>{
+ return Object.keys(menuButtonInfo).length ? pxToRpx(Number(menuButtonInfo.height)) + pxToRpx(menuButtonInfo.top) + pxToRpx(8)+'rpx':'auto'
+ })
const formData = reactive({
username: '',
password: '',
@@ -114,20 +125,25 @@
const memberStore = useMemberStore()
const configStore = useConfigStore()
+ const loginType=ref('')
- onLoad(async() =>{
- await configStore.getLoginConfig()
- if (!uni.getStorageSync('autoLoginLock')) {
- uni.getStorageSync('openid') && (Object.assign(formData, {openid: uni.getStorageSync('openid')}))
- uni.getStorageSync('pid') && (Object.assign(formData, {pid: uni.getStorageSync('pid')}))
- }
- uni.getStorageSync('unionid') && (Object.assign(formData, { unionid: uni.getStorageSync('unionid') }))
- if(!getToken() && !configStore.login.is_username && !configStore.login.is_mobile && !configStore.login.is_bind_mobile){
- uni.showToast({ title: '商家未开启普通账号登录注册', icon: 'none' })
- setTimeout(() => {
- redirect({ url: '/app/pages/index/index', mode: 'reLaunch' })
- }, 100)
- }
+ onLoad(async (option: any) => {
+ await configStore.getLoginConfig()
+ if (!getToken() && !configStore.login.is_username && !configStore.login.is_mobile && !configStore.login.is_bind_mobile) {
+ uni.showToast({ title: '商家未开启普通账号注册', icon: 'none' })
+ setTimeout(() => {
+ redirect({ url: '/app/pages/index/index', mode: 'reLaunch' })
+ }, 100)
+ }
+ uni.getStorageSync('openid') && (Object.assign(formData, { openid: uni.getStorageSync('openid') }))
+ uni.getStorageSync('pid') && (Object.assign(formData, { pid: uni.getStorageSync('pid') }))
+
+ if (configStore.login.is_username) {
+ type.value = 'username'
+ } else if ((configStore.login.is_mobile || configStore.login.is_bind_mobile)) {
+ type.value = 'mobile'
+ }
+ loginType.value = option.type
})
const captcha = useCaptcha(formData)
@@ -136,12 +152,13 @@
const loading = ref(false)
const type = ref('')
-
+ const agreeChange = () => {
+ isAgree.value = !isAgree.value
+ }
const registerType = computed(()=> {
const value = []
configStore.login.is_username && (value.push({ type: 'username', title: t('usernameRegister') }))
configStore.login.is_mobile && !configStore.login.is_bind_mobile && (value.push({ type: 'mobile', title: t('mobileRegister') }))
- type.value = value[0] ? value[0].type : ''
return value
})
@@ -167,7 +184,7 @@
trigger: ['blur', 'change']
},
{
- validator(rule, value){
+ validator(rule: any, value: any){
return value == formData.password
},
message: t('confirmPasswordError'),
@@ -182,7 +199,7 @@
trigger: ['blur', 'change'],
},
{
- validator(rule, value){
+ validator(rule: any, value: any){
if (type.value != 'mobile' && !configStore.login.is_bind_mobile) return true
else return uni.$u.test.mobile(value)
},
@@ -207,7 +224,7 @@
const isAgree = ref(false)
- const formRef = ref(null)
+ const formRef: any = ref(null)
const handleRegister = () => {
formRef.value.validate().then(() => {
@@ -220,7 +237,7 @@
const register = type.value == 'username' ? usernameRegister : mobileRegister
- register(formData).then((res: responseResult) => {
+ register(formData).then((res: any) => {
memberStore.setToken(res.data.token)
useLogin().handleLoginBack()
}).catch(() => {
@@ -229,10 +246,40 @@
})
})
}
+ const toLink = ()=> {
+ const pages = getCurrentPages(); // 获取页面栈
+ if (pages.length > 1) {
+ const currentPage = pages[pages.length - 2].route;
+ if (currentPage == 'app/pages/auth/login') {
+ // 返回上一页
+ uni.navigateBack({
+ delta: 1 // 默认值是1,表示返回的页面层数
+ });
+ }else{
+ redirect({ url: '/app/pages/auth/login',mode:'redirectTo' })
+ }
+ }else{
+ redirect({ url: '/app/pages/auth/login',mode:'redirectTo' })
+ }
+
+ }
-
diff --git a/uni-app/src/app/pages/auth/resetpwd.vue b/uni-app/src/app/pages/auth/resetpwd.vue
index 17bf4c252..9a8a3c603 100644
--- a/uni-app/src/app/pages/auth/resetpwd.vue
+++ b/uni-app/src/app/pages/auth/resetpwd.vue
@@ -1,54 +1,65 @@
-
-
-
-
-
- {{ t('findPassword') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{t('findPassword')}}
+ {{t('findPasswordTip')}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
diff --git a/uni-app/src/app/pages/index/close.vue b/uni-app/src/app/pages/index/close.vue
index 058971b59..8827fc89e 100644
--- a/uni-app/src/app/pages/index/close.vue
+++ b/uni-app/src/app/pages/index/close.vue
@@ -1,12 +1,27 @@
-
-
+
+
+
+ {{t('siteClose')}}
+
\ No newline at end of file
diff --git a/uni-app/src/app/pages/index/diy.vue b/uni-app/src/app/pages/index/diy.vue
index 0c1b24b43..3180cdc89 100644
--- a/uni-app/src/app/pages/index/diy.vue
+++ b/uni-app/src/app/pages/index/diy.vue
@@ -1,7 +1,7 @@
-
+
@@ -30,7 +30,7 @@
\ No newline at end of file
diff --git a/uni-app/src/app/pages/member/account.vue b/uni-app/src/app/pages/member/account.vue
index 9f87b9397..8507884a0 100644
--- a/uni-app/src/app/pages/member/account.vue
+++ b/uni-app/src/app/pages/member/account.vue
@@ -1,30 +1,30 @@
-
+
-
-
-
+
@@ -32,7 +32,7 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/uni-app/src/app/pages/member/account_edit.vue b/uni-app/src/app/pages/member/account_edit.vue
index 250c04919..c623ffca4 100644
--- a/uni-app/src/app/pages/member/account_edit.vue
+++ b/uni-app/src/app/pages/member/account_edit.vue
@@ -1,26 +1,24 @@
-
-
-
-
diff --git a/uni-app/src/app/pages/member/address_edit.vue b/uni-app/src/app/pages/member/address_edit.vue
index 520edacf9..aac20e320 100644
--- a/uni-app/src/app/pages/member/address_edit.vue
+++ b/uni-app/src/app/pages/member/address_edit.vue
@@ -1,50 +1,55 @@
-
+
+
+
+
+
+
+
+
+
@@ -55,7 +60,7 @@
\ No newline at end of file
diff --git a/uni-app/src/app/pages/member/apply_cash_out.vue b/uni-app/src/app/pages/member/apply_cash_out.vue
index 462b594e1..e2f570764 100644
--- a/uni-app/src/app/pages/member/apply_cash_out.vue
+++ b/uni-app/src/app/pages/member/apply_cash_out.vue
@@ -1,46 +1,44 @@
-
-
@@ -140,7 +143,7 @@
transfer_type: [] // 提现方式
})
- let query:AnyObject | undefined = {}
+ let query:any = {}
onLoad(async (data) => {
query = data
@@ -237,7 +240,7 @@
data.account_id = query.account_id
}
alipayLoading.value = true
- request(data).then(res => {
+ request(data).then((res: any) => {
if (res.data && res.data.account_id) {
alipayAccountInfo.value = res.data
// 初始化赋值
@@ -253,7 +256,7 @@
* 获取银行卡提现账号信息
*/
const bankLoading = ref(false)
- const bankAccountInfo = ref(null)
+ const bankAccountInfo: any = ref(null)
const getBankAccountInfo = () => {
const data = { account_type: 'bank', account_id: 0 }
let request = getFirstCashoutAccountInfo
@@ -263,7 +266,7 @@
data.account_id = query.account_id
}
bankLoading.value = true
- request(data).then(res => {
+ request(data).then((res: any) => {
if (res.data && res.data.account_id) {
bankAccountInfo.value = res.data
// 初始化赋值
@@ -312,9 +315,17 @@
diff --git a/uni-app/src/app/pages/member/balance.vue b/uni-app/src/app/pages/member/balance.vue
index 70238ec7a..ae044d105 100644
--- a/uni-app/src/app/pages/member/balance.vue
+++ b/uni-app/src/app/pages/member/balance.vue
@@ -1,75 +1,68 @@
-
-
-
+
+
+
- {{t('accountBalance')}}
-
- ¥
- {{ memberStore.info ? moneyFormat((parseFloat(memberStore.info.balance) + parseFloat(memberStore.info.money)).toString()) : '0.00' }}
+ {{t('accountBalance')}}
+
+ ¥
+ {{ memberStore.info ? moneyFormat((parseFloat(memberStore.info.balance) + parseFloat(memberStore.info.money)).toString()).split('.')[0] : '0' }}.
+ {{ memberStore.info ? moneyFormat((parseFloat(memberStore.info.balance) + parseFloat(memberStore.info.money)).toString()).split('.')[1] : '00' }}
-