forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-10 31e3890c2a6a81bcc22b6f68c129d580df8e1f0c
gz-wxparty/pages/homePage/index.js
@@ -53,7 +53,8 @@
    imgUrl: $$.url.img,
    agreementMsg: '', // 服务协议
    popupVisible: false,
    banner: [`${$$.url.img}banner-1.png`, `${$$.url.img}banner-2.jpg`, `${$$.url.img}banner-3.jpg`], // 轮播图
    banner: [`${$$.url.img}Banner1.png`, `${$$.url.img}Banner2.png`], // 轮播图
    // banner: [`${$$.url.img}Banner1.png`, `${$$.url.img}Banner2.png`, `${$$.url.img}banner3.png`, `${$$.url.img}banner4.png`], // 轮播图
    countUnitData: {}, //化解资源
    userInfo: {}, //用户信息
    video: [], // 热门视频
@@ -340,6 +341,24 @@
    })
  },
  // 前往查看
  AiModalClick(e) {
    let item = e.currentTarget.dataset.item;
    wx.navigateTo({
      url: '../../pages/AIAide/index?caseDes=' + item.caseDes + '&caseClaim=' + item.caseClaim + '&caseId=' + item.caseId
    });
    this.setData({
      AiModal: false
    })
  },
  // 关闭AI弹窗
  addClosePopup() {
    this.setData({
      AiModal: false
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
@@ -350,6 +369,15 @@
      return
    }
    let userInfo = wx.getStorageSync('userInfo') || {};
    let AICase = wx.getStorageSync('AICase') || '';
    if (AICase) {
      this.setData({
        AiModal: AICase
      })
      wx.removeStorage({
        key: 'AICase'
      })
    }
    let appid = wx.getAccountInfoSync().miniProgram.appId;
    this.setData({
      userInfo
@@ -379,14 +407,10 @@
        }
      },
    });
    let agreement = wx.getStorageSync('agreement');
    // 获取弹窗信息提醒
    if (app.globalData.token) {
      if (!agreement) {
        this.getAgreement();
        return;
      }
      if (!$$.userTest('realName', 'bottom')) {
        this.setData({
          popupMsg: [{