纸通宝SAAS仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
770 B

// pages/process/order-check/index.js
import Scene from '../../index/scene'
import { getOrderLog } from "../../../api/saas"
const util = require('../../../utils/util')
Scene({
/**
* 页面的初始数据
*/
data: {
loading: true,
form: null
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
if(options.orderId){
this.fetchOrderInfo(options.orderId)
}
},
fetchOrderInfo(orderId){
wx.showLoading({ title: '正在获取', mask: true })
getOrderLog(orderId).then(result => {
wx.hideLoading()
this.setData({ form: result.data.records, loading: false })
}).catch(err => {
wx.hideLoading()
util.showToast(err)
this.setData({ loading: false })
})
}
})