bug修改
This commit is contained in:
+2
-11
@@ -46,18 +46,7 @@ Page({
|
||||
list: []
|
||||
})
|
||||
}
|
||||
const reg = new RegExp("<p>","g")
|
||||
const reg1 = new RegExp("</p>","g")
|
||||
if(res.result.records && res.result.records.length){
|
||||
// res.result.records.forEach(item=>{
|
||||
// item.msgContent = item.msgContent.replace(reg,"")
|
||||
// item.msgContent = item.msgContent.replace(reg1,"")
|
||||
// const startIndex = item.msgContent.indexOf("<a")
|
||||
// const endIndex = item.msgContent.lastIndexOf("</a>")
|
||||
// if(startIndex > -1 && endIndex > -1 ){
|
||||
// item.msgContent = item.msgContent.substring(0, startIndex) + item.msgContent.slice(endIndex + 4) + '点击报名'
|
||||
// }
|
||||
// })
|
||||
this.setData({
|
||||
list: [...this.data.list, ...res.result.records]
|
||||
})
|
||||
@@ -174,6 +163,7 @@ Page({
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
let searchParams = {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
@@ -182,6 +172,7 @@ Page({
|
||||
endTime: '' // 结束日期
|
||||
}
|
||||
this.setData({
|
||||
list: [],
|
||||
searchParams
|
||||
})
|
||||
this.loadData()
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ Page({
|
||||
wx.removeStorage({
|
||||
key: 'avatarUrl'
|
||||
})
|
||||
wx.redirectTo({
|
||||
wx.navigateTo({
|
||||
url: '../login/login',
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user