1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import {
- getMyInfo,
- } from '~/api/user'
- import {
- getSaleData
- } from '~/api/sale'
- import {
- createStoreBindings
- } from 'mobx-miniprogram-bindings'
- import {
- store
- } from '~/store/index'
- Page({
- data: {
- userInfo: {},
- allIncome: {}
- },
- async onLoad() {
- // 手工绑定
- this.storeBindings = createStoreBindings(this, {
- store,
- fields: {
- userInfo: 'userInfo',
- }
- })
- },
- async onShow() {
- let allIncome = await getSaleData()
- console.log(allIncome);
- this.setData({
- allIncome
- })
- },
- jump({
- currentTarget
- }) {
- wx.navigateTo({
- url: `/salesperson/pages/${currentTarget.dataset.url}/index`,
- })
- },
- openInvite() {
- this.selectComponent("#InvitePop").openInvite()
- },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
- }
- })
|