|
|
@ -142,17 +142,17 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
import { |
|
|
|
getAmount |
|
|
|
} from '@/api/account/transactionRecord.js' |
|
|
|
import scanTheCode from '@/components/scan/scanTheCode.vue' |
|
|
|
import { |
|
|
|
} from '@/api/account/transactionRecord.js' |
|
|
|
import scanTheCode from '@/components/scan/scanTheCode.vue' |
|
|
|
import { |
|
|
|
getToken |
|
|
|
} from '@/utils/auth' |
|
|
|
import { |
|
|
|
} from '@/utils/auth' |
|
|
|
import { |
|
|
|
showConfirm |
|
|
|
} from '@/utils/common' |
|
|
|
export default { |
|
|
|
} from '@/utils/common' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
scanTheCode |
|
|
|
}, |
|
|
@ -187,12 +187,14 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon: this.$store.state.user.userCate == '2' ? 'man-add' : 'more-dot-fill', |
|
|
|
name: this.$store.state.user.userCate == '2' ? this.$languageData.home.proxyPayment : this.$languageData.home.tbc, |
|
|
|
name: this.$store.state.user.userCate == '2' ? this.$languageData.home.proxyPayment : this |
|
|
|
.$languageData.home.tbc, |
|
|
|
url: this.$store.state.user.userCate == '2' ? '/pages/functions/proxyPayment' : undefined |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon: this.$store.state.user.userCate != '0' ? 'order' : 'more-dot-fill', |
|
|
|
name: this.$store.state.user.userCate != '0' ? this.$languageData.home.businessData : this.$languageData.home.tbc, |
|
|
|
name: this.$store.state.user.userCate != '0' ? this.$languageData.home.businessData : this |
|
|
|
.$languageData.home.tbc, |
|
|
|
url: this.$store.state.user.userCate != '0' ? '/pages/mchManage/index' : undefined |
|
|
|
}, |
|
|
|
{ |
|
|
@ -266,12 +268,14 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon: this.$store.state.user.userCate == '2' ? 'man-add' : 'more-dot-fill', |
|
|
|
name: this.$store.state.user.userCate == '2' ? this.$languageData.home.proxyPayment : this.$languageData.home.tbc, |
|
|
|
name: this.$store.state.user.userCate == '2' ? this.$languageData.home.proxyPayment : this |
|
|
|
.$languageData.home.tbc, |
|
|
|
url: this.$store.state.user.userCate == '2' ? '/pages/functions/proxyPayment' : undefined |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon: this.$store.state.user.userCate != '0' ? 'order' : 'more-dot-fill', |
|
|
|
name: this.$store.state.user.userCate != '0' ? this.$languageData.home.businessData : this.$languageData.home.tbc, |
|
|
|
name: this.$store.state.user.userCate != '0' ? this.$languageData.home.businessData : this |
|
|
|
.$languageData.home.tbc, |
|
|
|
url: this.$store.state.user.userCate != '0' ? '/pages/mchManage/index' : undefined |
|
|
|
}, |
|
|
|
{ |
|
|
@ -303,17 +307,17 @@ export default { |
|
|
|
this.languageData = this.$languageData; |
|
|
|
// 切换TabBar标题 |
|
|
|
this.setTabBarTabBar(this.languageData.tabbar); |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.languageData = this.$languageData; |
|
|
|
if (getToken()) { |
|
|
|
this.user; |
|
|
|
this.selectAmount(); |
|
|
|
// this.delItem(); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
//不登录的时候不展示 |
|
|
|
this.funItem.splice(1,2) |
|
|
|
this.funItem.splice(1, 2) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.languageData = this.$languageData; |
|
|
|
this.getScan(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -330,11 +334,15 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
goAuth() { |
|
|
|
if(this.$store.state.user.userCate == '1'){ |
|
|
|
uni.navigateTo({url:'/pages/mine/info/merchant/edit'}) |
|
|
|
}else if(this.$store.state.user.userCate == '2'){ |
|
|
|
uni.navigateTo({url:'/pages/mine/info/proxy/edit'}) |
|
|
|
}else{ |
|
|
|
if (this.$store.state.user.userCate == '1') { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/mine/info/merchant/edit' |
|
|
|
}) |
|
|
|
} else if (this.$store.state.user.userCate == '2') { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/mine/info/proxy/edit' |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$tab.navigateTo('/pages/mine/info/edit') |
|
|
|
} |
|
|
|
}, |
|
|
@ -349,13 +357,13 @@ export default { |
|
|
|
let userInfo = uni.getStorageSync("storage_data"); |
|
|
|
if (userInfo.vuex_userCate === '0') { |
|
|
|
//如果登录用户是个人0 |
|
|
|
this.funItem.splice(1,2) |
|
|
|
}else if(userInfo.vuex_userCate === '1'){ |
|
|
|
this.funItem.splice(1, 2) |
|
|
|
} else if (userInfo.vuex_userCate === '1') { |
|
|
|
//如果登录用户是商户1 |
|
|
|
this.funItem.splice(1,1) |
|
|
|
} else if(userInfo.vuex_userCate === '2'){ |
|
|
|
this.funItem.splice(1, 1) |
|
|
|
} else if (userInfo.vuex_userCate === '2') { |
|
|
|
//如果登录用户是代理2 |
|
|
|
this.funItem.splice(2,1) |
|
|
|
this.funItem.splice(2, 1) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -458,41 +466,41 @@ export default { |
|
|
|
return rs |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
page { |
|
|
|
page { |
|
|
|
height: 100%; |
|
|
|
width: 100%; |
|
|
|
background-color: #f5f5f5; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
body { |
|
|
|
body { |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.language-list { |
|
|
|
.language-list { |
|
|
|
padding: 40rpx; |
|
|
|
border: 1rpx solid #ffffff; |
|
|
|
background-color: #fafafa; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.account-title { |
|
|
|
.account-title { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
font-size: 36rpx; |
|
|
|
color: white; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.app-container { |
|
|
|
.app-container { |
|
|
|
width: 100%; |
|
|
|
height: 100vh; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.nav-bar { |
|
|
|
.nav-bar { |
|
|
|
height: 88rpx; |
|
|
|
background-color: #ffffff; |
|
|
|
display: flex; |
|
|
@ -500,29 +508,29 @@ body { |
|
|
|
justify-content: space-between; |
|
|
|
padding: 0 32rpx; |
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.text-lg { |
|
|
|
.text-lg { |
|
|
|
font-size: 16px; |
|
|
|
font-weight: 500; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.nav-right { |
|
|
|
.nav-right { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
position: absolute; |
|
|
|
right: 0; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.content-area { |
|
|
|
.content-area { |
|
|
|
// padding: 32rpx 32rpx 70rpx; |
|
|
|
padding: 32rpx 0; |
|
|
|
padding-top: 19rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.account-card { |
|
|
|
.account-card { |
|
|
|
background-image: url('/static/svgs/lines.svg'); |
|
|
|
background-size: cover; |
|
|
|
background-position: center; |
|
|
@ -534,42 +542,42 @@ body { |
|
|
|
min-height: 240rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.account-info { |
|
|
|
.account-info { |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.balance-label { |
|
|
|
.balance-label { |
|
|
|
font-size: 14px; |
|
|
|
color: rgba(255, 255, 255, 0.9); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.balance-amount { |
|
|
|
.balance-amount { |
|
|
|
font-size: 23px; |
|
|
|
color: #ffffff; |
|
|
|
font-weight: 700; |
|
|
|
margin-top: 12rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.button-group { |
|
|
|
.button-group { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 16rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.action-button { |
|
|
|
.action-button { |
|
|
|
background-color: rgba(255, 255, 255, 0.2) !important; |
|
|
|
border: none !important; |
|
|
|
color: #ffffff !important; |
|
|
|
font-size: 14px !important; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.features-grid { |
|
|
|
.features-grid { |
|
|
|
background: white; |
|
|
|
padding: 10px; |
|
|
|
border-radius: 12px; |
|
|
@ -580,15 +588,15 @@ body { |
|
|
|
// position: relative; |
|
|
|
// top: -70rpx; |
|
|
|
top: 13rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.feature-item { |
|
|
|
.feature-item { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.feature-icon { |
|
|
|
.feature-icon { |
|
|
|
width: 96rpx; |
|
|
|
height: 96rpx; |
|
|
|
background-color: rgba(171, 146, 231, 0.1); |
|
|
@ -598,9 +606,9 @@ body { |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
margin-bottom: 16rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.feature-name { |
|
|
|
.feature-name { |
|
|
|
font-size: 14px; |
|
|
|
color: #333333; |
|
|
|
text-align: center; |
|
|
@ -608,9 +616,9 @@ body { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
font-weight: 500; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.promotion-banner { |
|
|
|
.promotion-banner { |
|
|
|
background-color: rgba(255, 125, 0, 0.05); |
|
|
|
border: 1px solid rgba(255, 125, 0, 0.1); |
|
|
|
border-radius: 16rpx; |
|
|
@ -618,53 +626,53 @@ body { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
// margin-bottom: 48rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.promotion-text { |
|
|
|
.promotion-text { |
|
|
|
font-size: 14px; |
|
|
|
color: #666666; |
|
|
|
margin-left: 24rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.section-header { |
|
|
|
.section-header { |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
margin-bottom: 32rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.section-title { |
|
|
|
.section-title { |
|
|
|
font-size: 16px; |
|
|
|
font-weight: 500; |
|
|
|
color: #333333; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.view-all { |
|
|
|
.view-all { |
|
|
|
font-size: 14px; |
|
|
|
color: #999999; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.transaction-list { |
|
|
|
.transaction-list { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 32rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.transaction-item { |
|
|
|
.transaction-item { |
|
|
|
background-color: #ffffff; |
|
|
|
border-radius: 16rpx; |
|
|
|
padding: 32rpx; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.transaction-left { |
|
|
|
.transaction-left { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.transaction-icon { |
|
|
|
.transaction-icon { |
|
|
|
width: 80rpx; |
|
|
|
height: 80rpx; |
|
|
|
background-color: #f5f5f5; |
|
|
@ -673,58 +681,58 @@ body { |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
margin-right: 24rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.transaction-info { |
|
|
|
.transaction-info { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.transaction-title { |
|
|
|
.transaction-title { |
|
|
|
font-size: 14px; |
|
|
|
color: #333333; |
|
|
|
font-weight: 500; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.transaction-time { |
|
|
|
.transaction-time { |
|
|
|
font-size: 12px; |
|
|
|
color: #999999; |
|
|
|
margin-top: 8rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.transaction-amount { |
|
|
|
.transaction-amount { |
|
|
|
font-size: 14px; |
|
|
|
font-weight: 500; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.income { |
|
|
|
.income { |
|
|
|
color: #00b578; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.expense { |
|
|
|
.expense { |
|
|
|
color: #ff4d4f; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.tab-text { |
|
|
|
.tab-text { |
|
|
|
font-size: 12px; |
|
|
|
color: #999999; |
|
|
|
margin-top: 8rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.active-text { |
|
|
|
.active-text { |
|
|
|
color: #1B6EF3; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.languageIcon { |
|
|
|
.languageIcon { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.c { |
|
|
|
.c { |
|
|
|
display: flex; |
|
|
|
justify-content: left; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |