12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- showUploadTip: false,
- haveGetRecord: false,
- envId: '',
- record: ''
- },
- onLoad(options) {
- this.setData({
- envId: options.envId
- });
- wx.showLoading({
- title: '',
- });
- wx.cloud.callFunction({
- name: 'quickstartFunctions',
- data: {
- type: 'sumRecord'
- }
- }).then((resp) => {
- this.setData({
- record: resp.result.list
- });
- wx.hideLoading();
- }).catch((e) => {
- console.log(e);
- this.setData({
- showUploadTip: true
- });
- wx.hideLoading();
- });
- },
- goBack() {
- wx.navigateBack();
- },
- });
|