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