更新
This commit is contained in:
332
bankEnterpriseConnection/balanceInquiry/components/listItem.vue
Normal file
332
bankEnterpriseConnection/balanceInquiry/components/listItem.vue
Normal file
@@ -0,0 +1,332 @@
|
||||
<template>
|
||||
<view :style="{background:ifUrgent(item)}" class="card_bg">
|
||||
<view class="listCard">
|
||||
<view class="listCard_header">
|
||||
<view class="flexOne textOverflow mr">
|
||||
<view class="listCard_header_Name textOverflow ">{{item.AcName||'暂无'}}</view>
|
||||
<view class="listCard_header_Order textOverflow" style="margin-top:10rpx"> {{item.AcNo||'暂无'}} </view>
|
||||
</view>
|
||||
<!-- <view :style="{background:typeBackground(item.auditMark),color:typeColor(item.auditMark)}" class="listCard_header_Type">
|
||||
<view :style="{background:typeColor(item.auditMark)}" class="garden"></view>
|
||||
<text>{{item.auditMark|typeText}}</text>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="listCard_content flex ">
|
||||
<view class="hui">账户余额</view>
|
||||
<view class=" flexGrow textOverflow">{{item.accountBalance || '暂无'}}</view>
|
||||
</view>
|
||||
<view class="listCard_footer flex jb">
|
||||
<view class="flex">
|
||||
<view class="hui" style="margin-right: 20rpx;">昨日账户余额</view>
|
||||
<view class=" flexGrow textOverflow">{{item.SRZ1YE || '暂无'}}</view>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<view class="hui" style="margin-right: 20rpx;">可用账户余额</view>
|
||||
<view class=" flexGrow textOverflow">{{item.availableBalance ||'暂无'}}</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "listItem",
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
default: () => null
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// setTimeout(()=>{
|
||||
// console.log(this.item,'//')
|
||||
// },1000)
|
||||
},
|
||||
created() {
|
||||
// console.log(this.item.operationCode,this.item.createSource,'================================')
|
||||
},
|
||||
filters: {
|
||||
state: function(e) {
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return '即时'
|
||||
case 1:
|
||||
return '预约'
|
||||
default:
|
||||
return '---'
|
||||
}
|
||||
},
|
||||
typeText: function(e) {
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return '等待审核'
|
||||
case 1:
|
||||
return '审核通过'
|
||||
case -1:
|
||||
return '审核失败'
|
||||
case 2:
|
||||
return '等待付款'
|
||||
case 3:
|
||||
return '付款完成'
|
||||
case 4:
|
||||
return '取消充值'
|
||||
default:
|
||||
return '---'
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
methods: {
|
||||
ifUrgent(e) {
|
||||
return 'rgba(0, 199, 119, 0.6)'
|
||||
if (e.operationCode !== null && e.operationCode !== undefined) {
|
||||
return '#ff4949'
|
||||
} else {
|
||||
if (e.createSource == 'WECHAT_COMPANY') {
|
||||
return 'rgba(0, 199, 119, 0.6)'
|
||||
} else {
|
||||
return '#ffffff'
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
icontype(a, b) {
|
||||
return a > b ? 'icona-shangzhang1' : a < b ? 'icona-xiadie2' : 'iconchiping'
|
||||
},
|
||||
iconFn(a, b) {
|
||||
return a > b ? '#ff5555' : a < b ? '#2CE308' : '#f9d06f'
|
||||
},
|
||||
stateColor(e) {
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return '#00AAFF'
|
||||
case 1:
|
||||
return '#9F43CC'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
},
|
||||
stateBackground(e) {
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return 'rgba(0, 170, 255, 0.1)'
|
||||
case 1:
|
||||
return 'rgba(159, 67, 204, 0.1)'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
},
|
||||
typeBackground: function(e) {
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return '#E8CD3026'
|
||||
case 1:
|
||||
return '#17A00E26'
|
||||
case -1:
|
||||
return '#EC454526'
|
||||
case 2:
|
||||
return '#ffba00'
|
||||
case 3:
|
||||
return '#13ce66'
|
||||
case 4:
|
||||
return '#ff4949'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
},
|
||||
typeColor: function(e) {
|
||||
console.log(e, '-----')
|
||||
switch (Number(e)) {
|
||||
case 0:
|
||||
return '#E8CD30'
|
||||
case 1:
|
||||
return '#17A00E'
|
||||
case -1:
|
||||
return '#EC4545'
|
||||
case 2:
|
||||
return '#ffffff'
|
||||
case 3:
|
||||
return '#ffffff'
|
||||
case 4:
|
||||
return '#ffffff'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
},
|
||||
scrolltolower() {
|
||||
this.$emit('scrolltolower')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.flexGrow {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.price {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.card_bg {
|
||||
width: 670rpx;
|
||||
margin: 0 auto;
|
||||
border-radius: 20rpx;
|
||||
padding-left: 10rpx;
|
||||
margin-top: 20rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.listCard_footer_Type {
|
||||
background: rgba(0, 170, 255, 0.1);
|
||||
color: #00AAFF;
|
||||
Width: 88rpx;
|
||||
Height: 40rpx
|
||||
}
|
||||
|
||||
.jb {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.listCard_footer {
|
||||
margin-top: 15rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.listCard_content_yz view {
|
||||
margin-right: 10rpx !important;
|
||||
}
|
||||
|
||||
.listCard_content_fg view {
|
||||
margin-right: 10rpx !important;
|
||||
}
|
||||
|
||||
.de {
|
||||
text-decoration: line-through;
|
||||
|
||||
}
|
||||
|
||||
.samlltext {
|
||||
font-size: 20rpx;
|
||||
}
|
||||
|
||||
.hui {
|
||||
color: #BBBBBB;
|
||||
}
|
||||
|
||||
/* .an {
|
||||
align-items: flex-end;
|
||||
} */
|
||||
|
||||
.listCard_content view {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.listCard_content :last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.listCard_content_code {
|
||||
width: 100rpx;
|
||||
height: 60rpx;
|
||||
background: #F0F0F0;
|
||||
color: #666666;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.jc {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.ac {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.garden {
|
||||
background-color: #E8CD30;
|
||||
border-radius: 50%;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
.listCard_header_Type {
|
||||
background: rgba(232, 205, 48, 0.15);
|
||||
border-radius: 40rpx;
|
||||
color: #E8CD30;
|
||||
/* padding: 10rpx 20rpx; */
|
||||
font-size: 24rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
Width:
|
||||
180rpx;
|
||||
Height:
|
||||
54rpx;
|
||||
}
|
||||
|
||||
.listCard_header_Order {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.listCard_header_Name {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mr {
|
||||
margin-right: 40rpx;
|
||||
}
|
||||
|
||||
.textOverflow {
|
||||
overflow: hidden;
|
||||
/*超出部分隐藏*/
|
||||
white-space: nowrap;
|
||||
/*不换行*/
|
||||
text-overflow: ellipsis;
|
||||
/*超出部分文字以...显示*/
|
||||
}
|
||||
|
||||
.listCard_header_Order {
|
||||
color: #BBBBBB;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flexOne {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.listCard_footer {}
|
||||
|
||||
.listCard_content {
|
||||
margin-top: 15rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.listCard_header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.listCard {
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
/* margin: 10rpx auto; */
|
||||
padding: 28rpx 34rpx 28rpx 24rpx;
|
||||
color: #666666;
|
||||
font-size: 28rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
365
bankEnterpriseConnection/balanceInquiry/index.vue
Normal file
365
bankEnterpriseConnection/balanceInquiry/index.vue
Normal file
@@ -0,0 +1,365 @@
|
||||
<template>
|
||||
<view style="height: 100vh;display: flex;flex-direction: column;">
|
||||
<topBar height="223rpx" title="账户余额">
|
||||
<view slot="coment">
|
||||
<view class="header_seach">
|
||||
<!-- <view class="header_seach_seach">
|
||||
<view class="seach_input">
|
||||
<uni-easyinput prefixIconSize='25' prefixIcon="search" confirmType='search' @confirm='seachFn'
|
||||
placeholder-style="color:#bbbbbb;font-weight: 100;" v-model="seachValue"
|
||||
placeholder="请输入油站公司名称" @iconClick="onClick" />
|
||||
</view>
|
||||
<button @tap='jump(1)' class="header_seach_butten">
|
||||
<view class="rechargeText" >刷新</view>
|
||||
</button>
|
||||
</view> -->
|
||||
<!-- <view class="Navigation">
|
||||
<view @tap="seleFn(item);seleindex=index"
|
||||
:class="seleindex==index?'navigation_seleitem':'navigation_item'"
|
||||
v-for="(item,index) in navigation">
|
||||
{{item.text}}
|
||||
<uni-icons :animation="animationData" class="icoon" v-if="index==0" type="refreshempty"
|
||||
style="margin-left: 10rpx;" size="15" color="#bbbbbb"></uni-icons>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</topBar>
|
||||
<view style="flex: 1;overflow: hidden;">
|
||||
<scroll-view :refresher-triggered='isShow.refresherTriggered' :refresher-enabled='true'
|
||||
v-if="listData.length!=0" style="height: 100%;" scroll-y="true">
|
||||
<listItem :item="item" v-for="(item,index) in listData" :key="index"></listItem>
|
||||
</scroll-view>
|
||||
<view v-if="listData.length==0"
|
||||
style="width: 100vw; height: 100%; display: flex;align-items: center;justify-content: center;">
|
||||
<image src="@/static/qx.png" style="width: 536rpx; height: 399rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import serve from '@/api/bankEnterpriseConnection/balanceInquiry.js'
|
||||
|
||||
import topBar from '@/components/topbar'
|
||||
|
||||
import listItem from './components/listItem.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
topBar,
|
||||
listItem,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
listData: []
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getCEBBalanceList();
|
||||
},
|
||||
methods: {
|
||||
|
||||
getCEBBalanceList() {
|
||||
serve.getCEBBalanceList().then(res => {
|
||||
if(res.code === 20000) {
|
||||
this.listData = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.rechargeText {
|
||||
color: #2866FF;
|
||||
}
|
||||
|
||||
.icoon :active {
|
||||
color: #007AFF;
|
||||
}
|
||||
|
||||
.yuan {
|
||||
width: 13rpx;
|
||||
height: 13rpx;
|
||||
background: #E9CF31;
|
||||
border-radius: 50%;
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
|
||||
.large_text {
|
||||
font-size: 32rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.company_msg_content {
|
||||
max-width: 330rpx;
|
||||
font-size: 28rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
.examine_popup_body {
|
||||
padding: 0 47rpx;
|
||||
margin: 33rpx 0;
|
||||
}
|
||||
|
||||
.company_msg {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.item_price {
|
||||
font-size: 24rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.form_body_item_body_content_right {
|
||||
/* max-width: 215rpx; */
|
||||
text-align: -webkit-right;
|
||||
font-size: 26rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.form_body_item_body_content_left {
|
||||
/* max-width: 215rpx; */
|
||||
text-align: left;
|
||||
font-size: 26rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.form_body_item_img {
|
||||
width: 80rpx;
|
||||
height: 70rpx;
|
||||
}
|
||||
|
||||
.form_body_item_body_content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-top: 15rpx;
|
||||
padding-bottom: 14rpx;
|
||||
}
|
||||
|
||||
.form_body_item_body_header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.samll_txext {
|
||||
font-size: 24rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #999999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
.leftTip {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
background-color: #E9CF31;
|
||||
width: 10rpx;
|
||||
}
|
||||
|
||||
.compay_tip {
|
||||
/* width: 94rpx; */
|
||||
/* height: 36rpx; */
|
||||
background: #F1F1F1;
|
||||
margin-top: 18rpx;
|
||||
color: #BBBBBB;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 24rpx;
|
||||
/* margin-bottom: 14rpx; */
|
||||
width: 130rpx;
|
||||
padding: 10rpx;
|
||||
|
||||
}
|
||||
|
||||
/* .seach_input {
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 12rpx;
|
||||
flex: 1;
|
||||
} */
|
||||
|
||||
.typeyuan {
|
||||
background-color: #17A00E;
|
||||
width: 14rpx;
|
||||
height: 14rpx;
|
||||
border-radius: 50px;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.seletypeyuan {
|
||||
background-color: red;
|
||||
width: 14rpx;
|
||||
height: 14rpx;
|
||||
border-radius: 50px;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.is-input-border {
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
page {
|
||||
background-color: #F0F2FF;
|
||||
}
|
||||
|
||||
.form_body_item_footer {
|
||||
display: flex;
|
||||
color: #BBBBBB;
|
||||
font-size: 22rpx;
|
||||
justify-content: space-between;
|
||||
/* margin-top: 15rpx; */
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
padding: 26rpx 0;
|
||||
}
|
||||
|
||||
.form_body_item_body {
|
||||
display: flex;
|
||||
border-bottom: 1rpx solid #F0F0F0;
|
||||
/* padding-bottom: 14rpx; */
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.form_body_item {
|
||||
min-height: 267rpx;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 3px 9px 0px rgba(88, 88, 88, 0.2);
|
||||
border-radius: 12rpx;
|
||||
font-size: 28rpx;
|
||||
padding: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-bottom: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.form_body {
|
||||
width: 100vw;
|
||||
padding: 0 10px;
|
||||
margin-top: 40rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.navigation_seleitem {
|
||||
width: 150rpx;
|
||||
height: 59rpx;
|
||||
background: #F0F2FF;
|
||||
border-top-left-radius: 11rpx;
|
||||
border-top-right-radius: 11rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transition: all 0.3s;
|
||||
position: relative;
|
||||
bottom: -2px;
|
||||
}
|
||||
|
||||
.navigation_item {
|
||||
width: 150rpx;
|
||||
height: 59rpx;
|
||||
border-top-left-radius: 11rpx;
|
||||
border-top-right-radius: 11rpx;
|
||||
font-size: 26rpx;
|
||||
color: #F0F2FF;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transition: all 0.3s;
|
||||
bottom: -2px;
|
||||
}
|
||||
|
||||
/* .Navigation {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
transition: all .5s;
|
||||
} */
|
||||
|
||||
.header_seach_butten {
|
||||
font-size: 24rpx !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
margin: 0 !important;
|
||||
flex-shrink: 1;
|
||||
margin-left: 9rpx !important;
|
||||
background: #FFFFFF !important;
|
||||
justify-content: center;
|
||||
color: #2866FF;
|
||||
width: 160rpx;
|
||||
}
|
||||
|
||||
.uni-easyinput__content {
|
||||
height: 80rpx;
|
||||
}
|
||||
|
||||
.uni-easyinput {
|
||||
height: 80rpx;
|
||||
}
|
||||
|
||||
.header_seach_seach {
|
||||
display: flex;
|
||||
height: 80rpx;
|
||||
margin-top: 23rpx;
|
||||
}
|
||||
|
||||
.header_seach_title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header_seach {
|
||||
font-size: 26rpx;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.uni-navbar--border {
|
||||
border: 0px !important;
|
||||
}
|
||||
|
||||
/* .header {
|
||||
background-color: #007AFF;
|
||||
color: white;
|
||||
min-height: 403rpx;
|
||||
background-image: url('https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/sjbj.png');
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
} */
|
||||
|
||||
.uni-navbar__header-btns-right {
|
||||
padding-right: 0 !important;
|
||||
width: 120rpx !important;
|
||||
}
|
||||
|
||||
.top {
|
||||
height: var(--status-bar-height);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user