odc.xiaohui
2023-03-06 a8cf20bd911709571446d20fb619ff5e9ebe4eee
miniprogram/pages/user/pubulicty/index.ts
@@ -4,6 +4,7 @@
Page({
    data: {
        swcurrent: 0,
        causeList: [],
        isShow: false
    },
@@ -15,7 +16,13 @@
                method: "GET",
                header: { 'token': wx.getStorageSync('token') },
                success: (res) => {
                    console.log(res)
                    res.data.data.map(i => {
                        if (i.photoStr != null) {
                            i.photoStr = i.photoStr.split(",").map(i => userCause.globalData.imageUrl + "/img/" + i),
                                this.data.images = i.photoStr
                        }
                    })
                    this.setData({
                        causeList: res.data.data
                    })