bug修改

This commit is contained in:
姚亚男
2021-11-02 14:10:17 +08:00
parent 612f6538dc
commit 3429cae2d5
2 changed files with 3 additions and 12 deletions
+2 -11
View File
@@ -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
View File
@@ -49,7 +49,7 @@ Page({
wx.removeStorage({
key: 'avatarUrl'
})
wx.redirectTo({
wx.navigateTo({
url: '../login/login',
})
})