| 12345678910111213141516171819202122 |
- // pages/index/index.js
- import {
- getApi,
- postApi
- } from "../../apis/api"
- import cloudApi from "../../apis/cloudApi"
- Page({
- data: {
- indexInfo:{}
- },
- async getIndexInfo() {
- let res = await postApi('/voyage/index', {
- cargoOwnerId: wx.getStorageSync('cargoOwnerId')
- })
- this.setData({
- indexInfo:res.data.result
- })
- },
- onLoad() {
- this.getIndexInfo()
- }
- })
|