cheConfirmAnOrder.js 1.6 KB
// pages/4SConfirmAnOrder/4SConfirmAnOrder.js
const a = getApp()
Page({
  data: {
    imagesUrl: a.globalData.baseUrl,
    img: false,
    status: 1,
    order_no: '',
    publicList: [],

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let that = this
    that.setData({
      order_no: options.order_no
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    wx.showToast({
      title: '加载中',
      icon: "loading",
      duration: 1000
    })
    this.getPublicList()
  },
  async getPublicList() {
    let that = this
    const {
      data: {
        data
      }
    } = await request({
      url: 'api/my/updateChe',

    })
    //  console.log(data, "订单也");
    that.setData({
      publicList: data
    })

  },
  // changeReceiverAddress() {
  //   wx.navigateTo({
  //     url: '/pages/receiverAddress/receiverAddress'
  //   })
  // },
  distributionChange() {
    wx.navigateTo({
      url: '/pages/distributionChanged/distributionChanged'
    })
  },
  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})