Browse Source

no message

feature/v1.4
xpz2018 4 years ago
parent
commit
167021073b
6 changed files with 24 additions and 29 deletions
  1. 6
      api/payment.js
  2. 6
      colorui/main.wxss
  3. 3
      components/tabbar/index.wxml
  4. 28
      pages/agent/index/index.js
  5. 4
      pages/agent/index/index.wxml
  6. 6
      pages/home/employee/index.wxml

6
api/payment.js

@ -16,9 +16,9 @@ const getBankCardList = () => mGet(`/payment-settlement-center/bankcard/getBankC
const deleteBankcard = (id) => mPost(`/payment-settlement-center/bankcard/delete/bankCard/${id}`, null, pconfig)
const getTradeOrder = (id) => mGet(`/payment-settlement-center/get/payment-order/by-trade-order-id/${id}`, null, pconfig)
const paymentFor = (params) => mPost(`/payment-settlement-center/pay`, params, pconfig)
const getBalanceInfo = () => mGet(`/payment-settlement-center/balance/get/balance`, null, pconfig)
const getWithdrawalList = () => mGet(`/payment-settlement-center/balance/get/order-withdrawal-list`, null, pconfig)
const paymentOrder = (params) => mPost(`/payment-settlement-center/balance/order/withdraw`, params, pconfig)
const getBalanceInfo = () => mGet(`/payment-settlement-center/balance/get/factorybalance`, null, pconfig)
const getWithdrawalList = () => mGet(`/payment-settlement-center/balance/get/factoryorder-withdrawal-list`, null, pconfig)
const paymentOrder = (params) => mPost(`/payment-settlement-center/balance/order/factorywithdraw`, params, pconfig)
const getAgentOrderList = (params) => mGet(`/payment-settlement-center/get/agency-payment-order-receivable-list`, params, pconfig)
export {

6
colorui/main.wxss

@ -619,7 +619,7 @@ view, scroll-view, swiper, button, input, textarea, label, navigator, image {
width: 100%;
top: 0;
z-index: 19;
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
box-shadow: 0 0rpx 2rpx rgba(0, 0, 0, 0.1);
}
.cu-bar.foot {
@ -827,11 +827,9 @@ view, scroll-view, swiper, button, input, textarea, label, navigator, image {
}
.cu-custom .cu-bar {
min-height: 0px;
padding-right: 220rpx;
padding-right: 190rpx;
z-index: 99;
/* box-shadow: 0rpx 0rpx 0rpx; */
box-shadow: 0 -1rpx 4rpx rgba(0, 0, 0, 0.04)
}
.cu-custom .cu-bar .border-custom {

3
components/tabbar/index.wxml

@ -1,4 +1,5 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<view class="custom-class {{ utils.bem('tabbar', { fixed, safe: safeAreaInsetBottom }) }}" style="{{ zIndex ? 'z-index: ' + zIndex : '' }};width:750rpx">
<view class="custom-class {{ utils.bem('tabbar', { fixed, safe: safeAreaInsetBottom }) }}"
style="{{ zIndex ? 'z-index: ' + zIndex : '' }};width:750rpx;box-shadow: 0rpx 0rpx 2rpx grb(0, 0, 0, 0.1);">
<slot />
</view>

28
pages/agent/index/index.js

@ -1,6 +1,5 @@
// pages/index/index.js
import Dialog from '../../../components/dialog/dialog'
import { getStatisticsInfo } from "../../../api/saas"
import { getBalanceInfo } from "../../../api/payment"
import util from '../../../utils/util'
const event = require('../../../utils/event')
const app = getApp()
@ -19,7 +18,8 @@ Component({
{ status: 51, badge: '', name: '待送货', icon: '/assets/agent/icon-dsh.png' },
{ status: 53, badge: '', name: '结算中', icon: '/assets/agent/icon-sjz.png' },
{ status: 54, badge: '', name: '已完成', icon: '/assets/agent/icon-ywc.png' }
]
],
banlanceInfo: {accountMoney: 0, frozenMoney: 0}
},
lifetimes: {
attached: function () {
@ -32,29 +32,25 @@ Component({
},
methods: {
onRestart: function () {
// this.fetchStatisticsInfo(this.data.vdate)
getBalanceInfo().then(result => {
if(result.data){
this.setData({ banlanceInfo: result.data })
}
}).catch(err => { })
},
onEvent: function (message) {
if (message.what == 888) {
}
},
agentList: function (e) {
if(app.userInfo.applicationStatus == 0){
Dialog.alert({ title: '温馨提示', message: '您的申请还在审核中,如有疑问请联系管理员。' }).then(() => {
})
return
}
if(e.currentTarget.dataset.status){
wx.navigateTo({ url: '/pages/agent/order-list/index?status=' + e.currentTarget.dataset.status })
wx.navigateTo({ url: `/pages/agent/order-list/index?status=${e.currentTarget.dataset.status}` })
} else {
wx.navigateTo({ url: '/pages/agent/order-list/index' })
wx.navigateTo({ url: `/pages/agent/order-list/index` })
}
},
fetchStatisticsInfo: function(vdate){
},
settlementInfo: function(vdate){
wx.navigateTo({ url: '/pages/settlement/index/index' })
settlementInfo: function(){
wx.navigateTo({ url: `/pages/settlement/index/index` })
},
}
})

4
pages/agent/index/index.wxml

@ -51,14 +51,14 @@
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">未提现余额</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{totalInfo.availableCreditLine || 0}}</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{banlanceInfo.accountMoney}}</view>
</view>
<view style="flex:1;padding:0rpx 32rpx;margin-left:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">提现中余额</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{totalInfo.usedCreditLine || 0}}</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{banlanceInfo.frozenMoney}}</view>
</view>
</view>
</view>

6
pages/home/employee/index.wxml

@ -41,12 +41,12 @@
<view wx:if="{{memberList.length}}">
<van-index-anchor use-slot><text>所有员工</text></van-index-anchor>
<van-cell clickable wx:for="{{ memberList }}" wx:key="index" data-index="{{index}}" bindtap="lookItem">
<van-cell clickable is-link wx:for="{{ memberList }}" wx:key="index" data-index="{{index}}" bindtap="lookItem">
<view slot="title" class="flex" style="margin-bottom:0rpx">
<van-image round width="90rpx" height="90rpx" src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}" />
<view style="margin-left:18rpx;width:100%">
<view class="flex flex-justify">
<text class="text-sg text-bold">{{item.enterpriseMemberName || ''}}</text>
<view class="flex">
<text class="text-sg text-bold" style="padding-right:24rpx">{{item.enterpriseMemberName || ''}}</text>
<van-tag plain round type="primary" wx:if="{{item.enterpriseRoleNames}}">{{item.enterpriseRoleNames}}</van-tag>
</view>
<view class="text-sm text-gray" style="line-height:18px">{{item.mobile || ''}}</view>

Loading…
Cancel
Save