更新页面显示效果

This commit is contained in:
qianlile
2021-09-06 11:54:30 +08:00
parent 7b673421ad
commit c708b0f16f
18 changed files with 433 additions and 140 deletions

View File

@@ -0,0 +1,30 @@
// miniprogram/components/aboutUs/index.js
Page({
/**
* 页面的初始数据
*/
data: {
info:{}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getLastPageData();
},
getLastPageData(){
const eventChannel = this.getOpenerEventChannel();
eventChannel.on('getInfo',(res)=>{
this.setData({
info:res
});
wx.setNavigationBarTitle({
title: res.name,
})
})
},
})