DESKTOP-U8MQ1V2\Administrator 4 лет назад
Родитель
Сommit
e23e2fe177
2 измененных файлов: 10 добавлений и 6 удалений
  1. 3
    2
      pages/msgModule/index.js
  2. 7
    4
      pages/releaseModule/index.js

+ 3
- 2
pages/msgModule/index.js Просмотреть файл

* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad() { onLoad() {
},
onShow() {
if (!app.globalData.customerId) { if (!app.globalData.customerId) {
app.goLogin(); app.goLogin();
return return
} }
},
onShow() {
const businessCommunicationCustomer = wx.getStorageSync('businessCommunicationCustomer') || null; const businessCommunicationCustomer = wx.getStorageSync('businessCommunicationCustomer') || null;
if (businessCommunicationCustomer) { if (businessCommunicationCustomer) {
this.setData({ this.setData({

+ 7
- 4
pages/releaseModule/index.js Просмотреть файл

* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad() { onLoad() {
if (!app.globalData.customerId) {
app.goLogin();
return
}
const eventChannel = this.getOpenerEventChannel() const eventChannel = this.getOpenerEventChannel()
if (eventChannel.on) { if (eventChannel.on) {
// 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
} }
this.getTags(); this.getTags();
}, },
onShow(){
if (!app.globalData.customerId) {
app.goLogin();
return
}
},
// 输入框输入 // 输入框输入
textareaInput(e) { textareaInput(e) {
let value = e.detail.value; let value = e.detail.value;

Загрузка…
Отмена
Сохранить