odc.xiaohui
2023-03-20 1ad98e72e116155c30b14beb2da59e80ca971a6b
miniprogram/pages/user/pubulicty/index.ts
@@ -50,26 +50,25 @@
    },
    // 事件处理函数
    onLoad() {
        this.getMobile()
        let  info=wx.getStorageSync('card')
        console.log(info);
        // 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),