|
|
@@ -2,8 +2,7 @@ const _Http = getApp().globalData.http,
|
|
|
getHeight = require("../../../utils/getRheRemainingHeight");
|
|
|
Page({
|
|
|
data: {
|
|
|
- item: {},
|
|
|
-
|
|
|
+ item: null,
|
|
|
result: [],
|
|
|
radio: true,
|
|
|
},
|
|
|
@@ -112,16 +111,19 @@ Page({
|
|
|
startSearch({
|
|
|
detail
|
|
|
}) {
|
|
|
- if (detail == this.data.content.where.condition) return;
|
|
|
+ let condition = this.data.content ? this.data.content.where.condition : this.data.params.content.where.condition;
|
|
|
+ if (detail == condition) return;
|
|
|
this.setData({
|
|
|
- 'content.where.condition': detail
|
|
|
+ 'content.where.condition': detail,
|
|
|
+ 'params.content.where.condition': detail
|
|
|
});
|
|
|
this.getList(true);
|
|
|
},
|
|
|
/* 取消搜索 */
|
|
|
onClear() {
|
|
|
this.setData({
|
|
|
- 'content.where.condition': ""
|
|
|
+ 'content.where.condition': "",
|
|
|
+ 'params.content.where.condition': ""
|
|
|
});
|
|
|
this.getList(true);
|
|
|
},
|