pull/2/head
xiaozhiyong 2 years ago
parent 2774be4bb9
commit 29ee331456
  1. 11
      api/financialCenter/business.js
  2. 12
      api/financialCenter/serviceStation.js
  3. 125
      driverManagement/index/index.vue
  4. 160
      financialCenter/business/detail.vue
  5. 153
      financialCenter/business/index.vue
  6. 120
      financialCenter/serviceStation/detail.vue
  7. 149
      financialCenter/serviceStation/index.vue
  8. 210
      pages.json
  9. 20
      pages/index/menu.json
  10. 6
      utils/request.js

@ -0,0 +1,11 @@
import request from '@/utils/request'
export default {
getByPage (data) {
return request({
url: '/oil-finance/oilCompanyAccount/getByPage',
method: 'post',
data:data
})
}
}

@ -0,0 +1,12 @@
import request from '@/utils/request'
export default {
getByPage (data) {
return request({
url: '/oil-finance/siteChannelAccount/getByPage',
method: 'post',
data:data
})
}
}

@ -11,8 +11,10 @@
<uni-icons type="forward" size="16" color="white"></uni-icons> <uni-icons type="forward" size="16" color="white"></uni-icons>
</view> </view>
<view class="header_seach_seach"> <view class="header_seach_seach">
<uni-easyinput @confirm='seachFn' style="height: 100%; flex: 1; background-color: #FFFFFF; border-radius:12rpx ;" <uni-easyinput @confirm='seachFn'
prefixIcon="search" placeholder-style="color:#bbbbbb;font-weight: 100;" v-model="getData.params.id" placeholder="司机姓名、司机ID、电话号码" @iconClick="onClick"> style="height: 100%; flex: 1; background-color: #FFFFFF; border-radius:12rpx ;"
prefixIcon="search" placeholder-style="color:#bbbbbb;font-weight: 100;"
v-model="getData.params.id" placeholder="司机姓名、司机ID、电话号码" @iconClick="onClick">
</uni-easyinput> </uni-easyinput>
<button @tap='jump(2)' class="header_seach_butten"> <button @tap='jump(2)' class="header_seach_butten">
<uni-icons type="personadd" size="20" color="#bbbbbb"></uni-icons> <uni-icons type="personadd" size="20" color="#bbbbbb"></uni-icons>
@ -29,23 +31,26 @@
</view> </view>
</view> </view>
<view style="flex: 1;overflow: hidden;"> <view style="flex: 1;overflow: hidden;">
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower='scrolltolower'> <scroll-view style="height: 100%;" scroll-y="true" @scrolltolower='scrolltolower'>
<view v-for="(item,index) in listData" class="form_body"> <view v-for="(item,index) in listData" class="form_body">
<view @tap="jump(1,item)" class="form_body_item"> <view @tap="jump(1,item)" class="form_body_item">
<view class="form_body_item_body"> <view class="form_body_item_body">
<view class="form-item_body_left" style=""> <view class="form-item_body_left" style="">
<image :src="item.headPhoto?item.headPhoto: '../../static/tx.png'" style="width: 100rpx; height: 100rpx;border-radius: 50%;"></image> <image :src="item.headPhoto?item.headPhoto: '../../static/tx.png'"
style="width: 100rpx; height: 100rpx;border-radius: 50%;"></image>
<view class="form_body_item_body_container"> <view class="form_body_item_body_container">
<view :style="{color:item.userName?'':'#999999'}">{{item.userName?item.userName:' 无设置'}}</view> <view :style="{color:item.userName?'':'#999999'}">
{{item.userName?item.userName:' 无设置'}}</view>
<view> <view>
{{item.phone?item.phone:'无设置'}} {{item.phone?item.phone:'无设置'}}
<view class="copy" v-if="item.phone" @tap.stop="copy(item.phone)"></view> <view class="copy" v-if="item.phone" @tap.stop="copy(item.phone)"></view>
</view> </view>
<view class="form-item_body_left_bottom_text" style="">{{item.companyName?item.companyName :'无直属公司'}}</view> <view class="form-item_body_left_bottom_text" style="">
{{item.companyName?item.companyName :'无直属公司'}}</view>
</view> </view>
</view> </view>
<view class="form-item_body_right" style=""> <view class="form-item_body_right" style="">
<view :class="item.enableMark==1?'typeyuan':'seletypeyuan'"></view> <view :class="item.enableMark==1?'typeyuan':'seletypeyuan'"></view>
{{item.enableMark==1? '启用':'禁用'}} {{item.enableMark==1? '启用':'禁用'}}
</view> </view>
</view> </view>
@ -65,15 +70,15 @@
export default { export default {
data() { data() {
return { return {
companyName:'', companyName: '',
candidates:[], candidates: [],
getData: { getData: {
pageSize: 15, pageSize: 15,
currentPage: 1, currentPage: 1,
params: { params: {
userSource: '', userSource: '',
companyId: '', companyId: '',
id:'', id: '',
enableMark: '', enableMark: '',
}, },
sorted: { sorted: {
@ -102,27 +107,32 @@
listData: [] listData: []
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
// //
this.getData.currentPage = 1 this.getData.currentPage = 1
this.getList() this.getList()
console.log('下拉的生命周期') console.log('下拉的生命周期')
}, },
onLoad() { onLoad() {
let that =this let that = this
this.styles = uni.getMenuButtonBoundingClientRect() this.styles = uni.getMenuButtonBoundingClientRect()
uni.$on('company',function(e){ uni.$on('company', function(e) {
let routes = getCurrentPages(); let routes = getCurrentPages();
let routerIndex = routes[ (routes.length-2) ].$page.fullPath.indexOf('?')!=-1? let routerIndex = routes[(routes.length - 2)].$page.fullPath.indexOf('?') != -1 ?
routes[ (routes.length-2) ].$page.fullPath.split('?')[0].split('/')[routes[ (routes.length-2) ].$page.fullPath.split('?')[0].split('/').length-1] routes[(routes.length - 2)].$page.fullPath.split('?')[0].split('/')[routes[(routes.length - 2)]
:routes[ (routes.length-2) ].$page.fullPath.split('/')[routes[ (routes.length-2) ].$page.fullPath.split('/').length-1] .$page.fullPath.split('?')[0].split('/').length - 1] :
console.log(routes,routerIndex,'获取当前打开过的页面路由数组') routes[(routes.length - 2)].$page.fullPath.split('/')[routes[(routes.length - 2)].$page
if(routerIndex!=='index')return .fullPath.split('/').length - 1]
if(e){ console.log(routes, routerIndex, '获取当前打开过的页面路由数组')
( {id:that.getData.params.companyId,name:that.companyName} = e ); if (routerIndex !== 'index') return
if (e) {
({
id: that.getData.params.companyId,
name: that.companyName
} = e);
console.log(that.getData) console.log(that.getData)
}else{ } else {
that.getData.params.companyId='' that.getData.params.companyId = ''
that.companyName = '' that.companyName = ''
} }
}) })
@ -137,11 +147,11 @@
}); });
}, },
scrolltolower() { scrolltolower() {
this.getData.currentPage+=1 this.getData.currentPage += 1
console.log('触底了') console.log('触底了')
this.getList() this.getList()
}, },
seachFn(){ seachFn() {
// this.getData.params.id = this.seachValue // this.getData.params.id = this.seachValue
this.getData.currentPage = 1 this.getData.currentPage = 1
this.getList() this.getList()
@ -149,42 +159,43 @@
}, },
getList() { getList() {
let user = uni.getStorageSync('user'); let user = uni.getStorageSync('user');
console.log(user,'---') console.log(user, '---')
// ({ userSource:this.getData.params.userSource,id:this.getData.params.id} = user); // ({ userSource:this.getData.params.userSource,id:this.getData.params.id} = user);
driverManagement.getByPagesApp(this.getData).then(res => { driverManagement.getByPagesApp(this.getData).then(res => {
if (res.code !== 20000) return if (res.code !== 20000) return
if(this.getData.currentPage!==1){ if (this.getData.currentPage !== 1) {
this.listData = this.listData.concat(res.data.list); this.listData = this.listData.concat(res.data.list);
return return
} }
this.listData = res.data.list this.listData = res.data.list
}) })
}, },
jump(e,item) { jump(e, item) {
switch (e) { switch (e) {
case -1: case -1:
uni.navigateBack() uni.navigateBack()
break; break;
case 0: case 0:
uni.navigateTo({ uni.navigateTo({
url: "../company/company?jsData="+ JSON.stringify(this.companyName) url: "../company/company?jsData=" + JSON.stringify(this.companyName)
}) })
break; break;
case 1: case 1:
console.log(item,JSON.stringify(item)) console.log(item, JSON.stringify(item))
uni.navigateTo({ uni.navigateTo({
url: "../driverDetails/driverDetails?jsData="+ encodeURIComponent(JSON.stringify(item)) url: "../driverDetails/driverDetails?jsData=" + encodeURIComponent(JSON.stringify(
item))
}) })
break; break;
case 2: case 2:
if(uni.getStorageSync('user').authList.includes('driver:info:add')){ if (uni.getStorageSync('user').authList.includes('driver:info:add')) {
uni.navigateTo({ uni.navigateTo({
url:"../addDiver/addDiver" url: "../addDiver/addDiver"
}) })
}else{ } else {
uni.showToast({ uni.showToast({
title:'暂无权限请联系管理员', title: '暂无权限请联系管理员',
icon:'none' icon: 'none'
}) })
} }
@ -192,9 +203,9 @@
} }
}, },
seleFn(e) { seleFn(e) {
if(e.index!=-1){ if (e.index != -1) {
this.getData.params.enableMark = e.index this.getData.params.enableMark = e.index
}else{ } else {
this.getData.params.enableMark = '' this.getData.params.enableMark = ''
} }
this.getData.currentPage = 1 this.getData.currentPage = 1
@ -209,23 +220,26 @@
</script> </script>
<style> <style>
.typeyuan{ .typeyuan {
background-color: #17A00E; background-color: #17A00E;
width: 14rpx; width: 14rpx;
height: 14rpx; height: 14rpx;
border-radius: 50px; border-radius: 50px;
margin-right: 6rpx; margin-right: 6rpx;
} }
.seletypeyuan{
.seletypeyuan {
background-color: red; background-color: red;
width: 14rpx; width: 14rpx;
height: 14rpx; height: 14rpx;
border-radius: 50px; border-radius: 50px;
margin-right: 6rpx; margin-right: 6rpx;
} }
.is-input-border{
.is-input-border {
border: 0px !important; border: 0px !important;
} }
page { page {
background-color: #F0F2FF; background-color: #F0F2FF;
} }
@ -245,10 +259,10 @@
text-align: end; text-align: end;
color: #999999; color: #999999;
font-size: 24rpx; font-size: 24rpx;
height: max-content; height: max-content;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
} }
.form-item_body_left_bottom_text { .form-item_body_left_bottom_text {
@ -369,11 +383,11 @@
} }
.header { .header {
background-color: #007AFF; /* background-color: #007AFF; */
color: white; color: white;
min-height: 403rpx; min-height: 403rpx;
background-image: url('https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/sjbj.png'); background: url('https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/sjbj.png') 100%/100%;
background-size: 100% 100%; /* background-size: 100% 100%; */
position: relative; position: relative;
} }
@ -385,6 +399,7 @@
.top { .top {
height: var(--status-bar-height); height: var(--status-bar-height);
} }
.copy { .copy {
position: relative; position: relative;
top: 7rpx; top: 7rpx;
@ -392,6 +407,6 @@
margin-left: 15rpx; margin-left: 15rpx;
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
background: url('../../static/copy.png') 100%/ 100%; background: url('../../static/copy.png') 100%/ 100%;
} }
</style> </style>

@ -0,0 +1,160 @@
<template>
<view class="detail">
<view class="card">
<view>{{info.companyName}}</view>
<view>{{handlerNumber(info.totalBalance)}}</view>
<view>企业总余额()</view>
</view>
<view class="card-sec">
<view class="first">
<view>{{handlerNumber(info.balance)}}</view>
<view>账户总余额()</view>
</view>
<view class="second">
<view class="sepcial">
<view>{{handlerNumber(+info.outCountBalance + +info.inCountBalance)}}</view>
<view>油卡总余额</view>
</view>
<view>
<view>{{handlerNumber(info.inCountBalance)}}</view>
<view>自营油卡余额</view>
</view>
<view>
<view>{{handlerNumber(info.outCountBalance)}}</view>
<view>外营油卡余额</view>
</view>
<view class="sepcial">
<view>{{handlerNumber(+info.rechargeRebateBalance + +info.consumeRebateBalance)}}</view>
<view>返利总余额</view>
</view>
<view>
<view>{{handlerNumber(info.rechargeRebateBalance)}}</view>
<view>充值返利余额</view>
</view>
<view>
<view>{{handlerNumber(info.consumeRebateBalance)}}</view>
<view>消费返利余额</view>
</view>
<view class="sepcial">
<view>{{handlerNumber( +info.chargeRechargeBalance + +info.totalChargeAmount)}}</view>
<view>充值余额</view>
</view>
<view class="sepcial">
<view>{{handlerNumber(info.chargeRechargeBalance)}}</view>
<view>赊销充值余额</view>
</view>
<view class="sepcial">
<view>{{handlerNumber(info.totalChargeAmount)}}</view>
<view>赊销待还金额</view>
</view>
</view>
</view>
</view>
</template>
<script>
// import serve from '@/api/financialCenter/business.js'
export default {
data() {
return {
info: {}
}
},
onLoad(options) {
if (options.item) {
this.info = JSON.parse(decodeURI(options.item))
}
},
methods: {
handlerNumber(number) {
if (number == 0) return number
if (!number) {
return '--'
}
return +number.toFixed(2)
},
}
}
</script>
<style>
.detail {
padding: 100rpx 35rpx 0;
}
.sepcial {
padding-top: 13rpx !important;
}
.sepcial view:nth-of-type(1) {
font-size: 38rpx;
}
.card {
padding: 50rpx 40rpx 0;
wdith: 100%;
height: 285rpx;
background: url('https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/oms-card-bg.png') #fff 100%/100% no-repeat;
border-radius: 30rpx;
}
.card view {
color: #fff;
}
.card view:nth-of-type(2) {
margin-top: 60rpx;
font-size: 44rpx;
}
.card view:nth-of-type(1),
.card view:nth-of-type(3) {
font-size: 26rpx;
}
.card-sec {
width: 100%;
min-height: 500rpx;
padding: 45rpx 35rpx;
background: #FAEBD770;
border-radius: 30rpx;
}
.card-sec .first {
width: 100%;
}
.card-sec .first view:nth-of-type(1) {
font-size: 46rpx;
}
.card-sec .first view:nth-of-type(2) {
font-size: 26rpx;
}
.card-sec .second {
display: flex;
flex-wrap: wrap;
margin-top: 20rpx;
}
.card-sec .second>view {
padding-top: 20rpx;
padding-left: 5rpx;
width: 33.3%;
height: 120rpx;
}
.card-sec .second>view view:nth-of-type(1) {
color: #333;
word-break: break-word;
}
.card-sec .second>view view:nth-of-type(2) {
color: #696969;
font-size: 24rpx;
}
</style>

@ -0,0 +1,153 @@
<template>
<view style="height: 100vh;display: flex;flex-direction: column;">
<view class="header">
<view :style="{height:styles.top+'px'}"></view>
<uni-nav-bar @clickLeft='jump(-1)' :border="false" color='white' backgroundColor="rgba(0,0,0,0)"
left-icon="back" title="公司账户管理" />
<view class="seach">
<uni-easyinput @confirm='seachFn' style="border-radius:12rpx ;" prefixIcon="search"
placeholder-style="color:#bbb;font-weight: 100;" confirmType="搜索" v-model="paramter.params.companyName"
placeholder="请输入公司名称">
</uni-easyinput>
</view>
</view>
<view style="flex:1;overflow: hidden;">
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower='scrolltolower'>
<view class="container">
<view class="item" v-for="item,index in tableList" :key="index"
@tap="jump(1,'/financialCenter/business/detail',item)">
<image class="logo"></image>
<view>{{item.companyName}}</view>
<view>企业总余额{{handlerNumber(item.totalBalance)}}</view>
</view>
</view>
</scroll-view>
</view>
</view>
</template>
<script>
import serve from '@/api/financialCenter/business.js'
export default {
data() {
return {
styles: {},
paramter: {
currentPage: 1,
pageSize: 10,
params: {
companyName:''
}
},
tableList: []
}
},
onLoad() {
this.styles = uni.getMenuButtonBoundingClientRect()
this.getByPage()
},
// onShow() {
// this.getByPage()
// },
methods: {
seachFn() {
this.tableList = []
this.paramter.currentPage = 1
this.getByPage()
console.log('seachFn')
},
getByPage() {
serve.getByPage(this.paramter).then(res => {
this.tableList = this.tableList.concat(res.data.list);
})
},
//
scrolltolower() {
this.paramter.currentPage += 1
this.getByPage()
},
handlerNumber(number) {
if (number == 0) return number
if (!number) {
return '--'
}
return +number.toFixed(2)
},
jump(e, path,item) {
switch (e) {
case -1:
uni.navigateBack()
break;
case 1:
uni.navigateTo({
url: `${path}?item=${encodeURI(JSON.stringify(item))}`
})
break;
}
},
}
}
</script>
<style>
.uni-easyinput__content {
background-color: #fff;
}
.header {
position: relative;
width: 100%;
min-height: 403rpx;
background: url('https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/sjbj.png') center/100% no-repeat;
}
.header .seach {
margin-top: 60rpx;
padding: 0 50rpx;
}
.container {
padding: 30rpx 55rpx;
}
.container .item {
position: relative;
margin-bottom: 25rpx;
padding-top: 60rpx;
height: 200rpx;
width: 100%;
background: #fff;
/* border: 1px solid #333; */
border-radius: 10rpx;
}
.container .item .logo {
position: absolute;
left: 20rpx;
top: 50%;
transform: translateY(-50%);
width: 100rpx;
height: 100rpx;
border-radius: 50%;
border: 1px solid #333;
}
.container .item view {
padding-left: 150rpx;
}
.container .item view:nth-of-type(1) {
/* margin-top: 57rpx; */
color: #333;
font-size: 30rpx;
font-weight: 550;
}
.container .item view:nth-of-type(2) {
margin-top: 10rpx;
color: #778899;
font-size: 24rpx;
}
</style>

@ -0,0 +1,120 @@
<template>
<view class="detail">
<view class="card">
<view>{{info.accountName}}</view>
<view>{{handlerNumber(info.balance)}}</view>
<view>账户总余额()</view>
</view>
<view class="card-sec">
<view class="second">
<view class="sepcial">
<view>{{handlerNumber(info.rechargeBalance)}}</view>
<view>账户充值余额</view>
</view>
<view class="sepcial">
<view>{{handlerNumber(info.rechargeRebateBalance)}}</view>
<view>充值返利余额</view>
</view>
<view class="sepcial">
<view>{{handlerNumber(info.consumeRebateBalance)}}</view>
<view>消费返利余额</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
info: {}
}
},
onLoad(options) {
if (options.item) {
this.info = JSON.parse(decodeURI(options.item))
}
},
methods: {
handlerNumber(number) {
console.log(number)
if (number == 0) return number
if (!number) {
return '--'
}
return +number.toFixed(2)
},
}
}
</script>
<style>
.detail {
padding: 100rpx 35rpx 0;
}
.sepcial {
padding-top: 13rpx !important;
}
.sepcial view:nth-of-type(1) {
font-size: 38rpx;
}
.card {
padding: 50rpx 40rpx 0;
wdith: 100%;
height: 285rpx;
background: url('https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/oms-card-bg.png') #fff 100%/100% no-repeat;
border-radius: 30rpx;
}
.card view {
color: #fff;
}
.card view:nth-of-type(2) {
margin-top: 60rpx;
font-size: 44rpx;
}
.card view:nth-of-type(1),
.card view:nth-of-type(3) {
font-size: 26rpx;
/* margin-top: 10rpx; */
}
.card-sec {
width: 100%;
/* min-height: 500rpx; */
padding: 35rpx;
background: #FAEBD770;
border-radius: 30rpx;
}
.card-sec .second {
display: flex;
flex-wrap: wrap;
margin-top: 20rpx;
}
.card-sec .second>view {
padding-top: 20rpx;
padding-left: 5rpx;
width: 33.3%;
height: 120rpx;
}
.card-sec .second>view view:nth-of-type(1) {
color: #333;
word-break: break-word;
}
.card-sec .second>view view:nth-of-type(2) {
color: #696969;
font-size: 24rpx;
}
</style>

@ -0,0 +1,149 @@
<template>
<view style="height: 100vh;display: flex;flex-direction: column; background: #F0F2FF;">
<view class="header">
<view :style="{height:styles.top+'px'}"></view>
<uni-nav-bar @clickLeft='jump(-1)' :border="false" color='white' backgroundColor="rgba(0,0,0,0)"
left-icon="back" title="油站账户管理" />
<view class="seach">
<uni-easyinput @confirm='seachFn' style="border-radius:12rpx ;" prefixIcon="search"
placeholder-style="color:#bbb;font-weight: 100;" confirmType="搜索"
v-model="paramter.params.accountName" placeholder="请输入油站账户名称">
</uni-easyinput>
</view>
</view>
<view style="flex:1;overflow: hidden;">
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower='scrolltolower'>
<view class="container">
<view class="item" v-for="item,index in tableList" :key="index"
@tap="jump(1,'/financialCenter/serviceStation/detail',item)">
<image class="logo"></image>
<view>{{item.accountName}}</view>
<view>账户总余额{{handlerNumber(item.balance)}}</view>
</view>
</view>
</scroll-view>
</view>
</view>
</template>
<script>
import serve from '@/api/financialCenter/serviceStation.js'
export default {
data() {
return {
styles: {},
paramter: {
currentPage: 1,
pageSize: 10,
params: {
accountName: ''
}
},
tableList: []
}
},
onLoad() {
this.styles = uni.getMenuButtonBoundingClientRect()
this.getByPage()
},
// onShow() {
// this.getByPage()
// },
methods: {
seachFn() {
this.tableList = []
this.paramter.currentPage = 1
this.getByPage()
console.log('seachFn')
},
getByPage() {
serve.getByPage(this.paramter).then(res => {
this.tableList = this.tableList.concat(res.data.list);
})
},
//
scrolltolower() {
this.paramter.currentPage += 1
this.getByPage()
},
handlerNumber(number) {
if (number == 0) return number
if (!number) {
return '--'
}
return +number.toFixed(2)
},
jump(e, path, item) {
switch (e) {
case -1:
uni.navigateBack()
break;
case 1:
uni.navigateTo({
url: `${path}?item=${encodeURI(JSON.stringify(item))}`
})
break;
}
},
}
}
</script>
<style>
.uni-easyinput__content {
background-color: #fff;
}
.header {
position: relative;
width: 100%;
min-height: 403rpx;
background: url('https://xoi-support.oss-cn-hangzhou.aliyuncs.com/星油admin小程序/sjbj.png') center/100% no-repeat;
}
.header .seach {
margin-top: 30rpx;
padding: 0 50rpx;
}
.container {
padding: 30rpx 55rpx;
}
.container .item {
position: relative;
margin-bottom: 25rpx;
padding-top: 60rpx;
height: 200rpx;
width: 100%;
background: #fff;
border-radius: 10rpx;
}
.container .item .logo {
position: absolute;
left: 20rpx;
top: 50%;
transform: translateY(-50%);
width: 100rpx;
height: 100rpx;
border-radius: 50%;
border: 1px solid #333;
}
.container .item view {
padding-left: 150rpx;
}
.container .item view:nth-of-type(1) {
color: #333;
font-size: 30rpx;
font-weight: 550;
}
.container .item view:nth-of-type(2) {
margin-top: 10rpx;
color: #778899;
font-size: 24rpx;
}
</style>

@ -21,8 +21,8 @@
"titleNView": { "titleNView": {
"autoBackButton": false "autoBackButton": false
}, },
"bounce":"none" ,// , "bounce": "none", // ,
"disableScroll": true "disableScroll": true
}, },
"navigationBarTitleText": "" "navigationBarTitleText": ""
@ -83,17 +83,17 @@
// } // }
// } // }
// ,{ // ,{
// "path" : "pages/index/newindex", // "path" : "pages/index/newindex",
// "style" : // "style" :
// { // {
// "navigationBarTitleText": "", // "navigationBarTitleText": "",
// "enablePullDownRefresh": false // "enablePullDownRefresh": false
// } // }
// } // }
], ],
"subPackages": [{ "subPackages": [{
"root": "salesRanking", "root": "salesRanking",
"pages": [{ "pages": [{
@ -111,40 +111,36 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},{ }, {
"path": "page/contribution/contribution", "path": "page/contribution/contribution",
"style": { "style": {
"navigationBarTitleText": "消费支出", "navigationBarTitleText": "消费支出",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},{ }, {
"path": "page/rechargeRecord/rechargeRecord", "path": "page/rechargeRecord/rechargeRecord",
"style": { "style": {
"navigationBarTitleText": "充值记录", "navigationBarTitleText": "充值记录",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} ,{ }, {
"path" : "page/orderQuantity/orderQuantity", "path": "page/orderQuantity/orderQuantity",
"style" : "style": {
{ "navigationBarTitleText": "订单",
"navigationBarTitleText": "订单", "enablePullDownRefresh": false
"enablePullDownRefresh": false }
}
}, {
} "path": "page/index/enterpriseIndex",
,{ "style": {
"path" : "page/index/enterpriseIndex",
"style" :
{
"navigationStyle": "custom", "navigationStyle": "custom",
"navigationBarTitleText": "企业动销", "navigationBarTitleText": "企业动销",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
} }]
]
}, },
{ {
"root": "driverManagement", "root": "driverManagement",
@ -309,7 +305,7 @@
} }
} }
] ]
}, },
{ {
"root": "priceAdjustmentTask", "root": "priceAdjustmentTask",
@ -322,77 +318,103 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, {
"path": "addTask/addTask",
"style": {
"navigationBarTitleText": "新增调价任务",
"enablePullDownRefresh": false
}
} }
,{ ]
"path" : "addTask/addTask",
"style" :
{
"navigationBarTitleText": "新增调价任务",
"enablePullDownRefresh": false
}
}
]
}, },
{ {
"root": "oilAccount", "root": "oilAccount",
"pages": [{ "pages": [{
"path" : "page/accountRecharge/index", "path": "page/accountRecharge/index",
"style" : "style": {
{ "navigationBarTitleText": "账户充值",
"navigationBarTitleText": "账户充值",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }, {
,{ "path": "page/companyRecharge/index",
"path" : "page/companyRecharge/index", "style": {
"style" : "navigationBarTitleText": "公司充值",
{
"navigationBarTitleText": "公司充值",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }, {
,{ "path": "page/companyRecharge/details",
"path" : "page/companyRecharge/details", "style": {
"style" : "navigationBarTitleText": "油站公司充值详情",
{ "enablePullDownRefresh": false
"navigationBarTitleText": "油站公司充值详情", }
"enablePullDownRefresh": false
} }, {
"path": "page/companyRecharge/add",
} "style": {
,{ "navigationBarTitleText": "油站公司充值",
"path" : "page/companyRecharge/add", "enablePullDownRefresh": false
"style" : }
{
"navigationBarTitleText": "油站公司充值", }, {
"enablePullDownRefresh": false "path": "page/accountRecharge/details",
} "style": {
"navigationBarTitleText": "油站账户充值详情",
} "enablePullDownRefresh": false
,{ }
"path" : "page/accountRecharge/details",
"style" : }, {
{ "path": "page/accountRecharge/add",
"navigationBarTitleText": "油站账户充值详情", "style": {
"enablePullDownRefresh": false "navigationBarTitleText": "油站账户充值(仅调回拨)",
} "enablePullDownRefresh": false
}
}
,{ }]
"path" : "page/accountRecharge/add", },
"style" : {
{ "root": "financialCenter",
"navigationBarTitleText": "油站账户充值(仅调回拨)", "pages": [{
"enablePullDownRefresh": false "path": "business/index",
} "style": {
"navigationBarTitleText": "企业账户管理",
} "navigationStyle": "custom",
] "enablePullDownRefresh": false
}
}, {
"path": "serviceStation/index",
"style": {
"navigationBarTitleText": "油站账户管理",
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
{
"path": "business/detail",
"style": {
"navigationBarBackgroundColor": "#2866FF",
"navigationBarTitleText": "企业账户管理",
"enablePullDownRefresh": false
}
},
{
"path": "serviceStation/detail",
"style": {
"navigationBarBackgroundColor": "#2866FF",
"navigationBarTitleText": "油站账户管理",
"enablePullDownRefresh": false
}
}
]
} }
], ],
"globalStyle": { "globalStyle": {

@ -112,5 +112,25 @@
"lable":"sys:siteAcct:recharge" "lable":"sys:siteAcct:recharge"
} }
] ]
},
{
"name":"财务中心",
"icon":"iconqichexiangguan-jiayouzhan",
"label":"financialCenter",
"colorOpen":false,
"submenu":[
{
"icon":"iconxiugaijiage",
"name":"企业账户管理",
"router":"/financialCenter/business/index",
"lable":"sys:siteCompany:recharge"
},
{
"icon":"iconxiugaijiage",
"name":"油站账户管理",
"router":"/financialCenter/serviceStation/index",
"lable":"sys:siteAcct:recharge"
}
]
} }
] ]

@ -2,11 +2,11 @@ import axios from 'axios'
import utils from '@/utils/encode' import utils from '@/utils/encode'
// const env = process.env.NODE_ENV // const env = process.env.NODE_ENV
// const env = 'test' // const env = 'test'
const env = 'production' const env = 'test'
const testUrl = 'http://192.168.110.10:38080' const testUrl = 'http://192.168.1.83:38080'
// const productUrl = 'https://www.xingoil.com/adminapi' // const productUrl = 'https://www.xingoil.com/adminapi'
// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new // const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
const productUrl = 'http://uat.xingoil.com/adminapi' // const productUrl = 'http://uat.xingoil.com/adminapi'
const service = axios.create({ const service = axios.create({
baseURL: env == 'production' ? productUrl : testUrl, baseURL: env == 'production' ? productUrl : testUrl,

Loading…
Cancel
Save