odc.xiaohui
2023-04-07 f693c859cdaf607c2a146ef89a7a2ce0d9476d1a
miniprogram/pages/user/pubulicty/index.ts
@@ -50,26 +50,30 @@
    },
    // 事件处理函数
    onLoad() {
        this.getMobile()
        let  info=wx.getStorageSync('card')
        console.log(info);
        if (wx.getStorageSync('token')) {
            this.setData({
                cardFig:false
            })
        }
        // this.getMobile()
        // let  info=wx.getStorageSync('card')
        // console.log(info);
        
                            if (info) {
                              this.setData({
                                  cardFig :false
                              })
                            }else{
                                this.setData({
                                    cardFig :true
                                })
                            }
        //                     if (info) {
        //                       this.setData({
        //                           cardFig :false
        //                       })
        //                     }else{
        //                         this.setData({
        //                             cardFig :true
        //                         })
        //                     }
        wx.request(
            {
                url: userCause.globalData.url + "/wx/publicity",
                method: "GET",
                header: { 'token': wx.getStorageSync('token') },
                // header: { 'token': wx.getStorageSync('token') },
                success: (res) => {
                    res.data.data.map(i => {
                        if (i.photoStr != null) {
                            i.photoStr = i.photoStr.split(",").map(i => userCause.globalData.imageUrl + "/img/" + i),