Bläddra i källkod

处理发布需求、消息页登录拦截~

release/210823_需求对对碰
王饶冀 3 år sedan
förälder
incheckning
35a84d435d
2 ändrade filer med 10 tillägg och 6 borttagningar
  1. 3
    2
      pages/msgModule/index.js
  2. 7
    4
      pages/releaseModule/index.js

+ 3
- 2
pages/msgModule/index.js Visa fil

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

+ 7
- 4
pages/releaseModule/index.js Visa fil

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

Laddar…
Avbryt
Spara