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.

52 lines
1013 B

1 year ago
import { urlPrefix } from '../../config/index'
Page({
/**
* 页面的初始数据
*/
data: {
dataList: [
],
jd_count: 0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
onShow() {
this.loadData();
},
loadData() {
let that = this;
wx.request({
url: urlPrefix + '/QingLong/HuiYa/wxGetJournal',
method: 'POST',
header: {
'content-type': 'application/x-www-form-urlencoded'
},
data: {
token: wx.getStorageSync('token'),
page: 1,
limit: 1000
},
success(res) {
if (res.data.success) {
if (res.data.token) {
wx.setStorageSync('token', res.data.token);
}
that.setData({
dataList: res.data.data.list
})
} else {
console.log('获取token失败' + res.errMsg)
}
}
});
},
})