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.
SCASS_project/userview/usereview.js

14 lines
506 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

Page({
  data: {
    record: {},  // 选中的上报记录
    list: []     // 转换后的键值对列表,用于页面展示
  },
  // 在页面的 onLoad 方法中接收数据
onLoad: function (options) {
  const eventChannel = this.getOpenerEventChannel();
  eventChannel.on('sendDetailData', (data) => {
    console.log(data.records);  // 这里可以使用传递过来的记录
    // 处理 data.records
  });
}
});