纸通宝小程序
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.
 

63 lines
1.3 KiB

const util = require('../../../utils/util')
const app = getApp()
import {
getPaperMillOfInformationList
} from "../../api/ztb"
Page({
/**
* 页面的初始数据
*/
data: {
height: app.globalData.safeFragmentHeight - 190,
safeBottom: app.globalData.safeBottom,
orderList: [],
tableSgin: null,
loading: false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
StatusBar: app.globalData.StatusBar || 40,
CustomBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 80),
})
this.getPaperMillOfInformationListFct({
queryWay: 1
})
},
toPage: function (e) {
if (e.currentTarget.id == 'toqb') {
util.navigateTo('/pages/article/index/index')
}
},
changeTable: function (e) {
var a = e.currentTarget.id
if (e.currentTarget.id === this.data.tableSgin) {
this.setData({
tableSgin: null
})
} else {
this.setData({
tableSgin: e.currentTarget.id
})
}
},
getPaperMillOfInformationListFct(model) {
this.setData({
loading: true
})
getPaperMillOfInformationList(model).then(res => {
this.setData({
orderList: res.data
})
this.setData({
loading: false
})
})
},
})