From bf580d5477d65f5eefb70a8fb9a6b37eaf0ae9bb Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 06 九月 2022 09:16:25 +0800
Subject: [PATCH] 2022.9.6
---
pages/module_consult/consultresultmore/consultresultmore.js | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/pages/module_consult/consultresultmore/consultresultmore.js b/pages/module_consult/consultresultmore/consultresultmore.js
index 43ba971..1224c19 100644
--- a/pages/module_consult/consultresultmore/consultresultmore.js
+++ b/pages/module_consult/consultresultmore/consultresultmore.js
@@ -18,6 +18,8 @@
onLoad(options) {
var that = this
this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) {
+ console.log('getOpenerEventChannel:');
+ console.log(data);
that.setData({
keyword: data.keyword,
typeId: data.typeId,
@@ -27,14 +29,14 @@
})
},
- // onReachBottom () {
- // console.log('onReachBottom');
- // if (this.cPage && this.tPage) {
- // if (this.cPage < this.tPage) {
- // this.search(this.cPage + 1)
- // }
- // }
- // },
+ onReachBottom () {
+ console.log('onReachBottom');
+ if (this.cPage && this.tPage) {
+ if (this.cPage < this.tPage) {
+ this.search(this.cPage + 1)
+ }
+ }
+ },
search (cPage = 1) {
var that = this
@@ -56,7 +58,7 @@
success (res) {
let result = that.data.result
res.forEach(r => {
- r.des = r.des.replace('\\n', '<br/>')
+ r.des = r.des.replaceAll('\\n', '<br/>')
if (result.length === 0) {
result.push({
typeId: r.typeId,
--
Gitblit v1.9.3