Ver código fonte

Merge branch 'master' of http://192.168.18.147:9000/liugang/channel_business

release/210823_需求对对碰
pai
commit
e23e2fe177
2 arquivos alterados com 10 adições e 6 exclusões
  1. 3
    2
      pages/msgModule/index.js
  2. 7
    4
      pages/releaseModule/index.js

+ 3
- 2
pages/msgModule/index.js Ver arquivo

* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
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 Ver arquivo

* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
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;

Carregando…
Cancelar
Salvar