|
@@ -114,8 +114,7 @@ Page({
|
|
|
wx.showLoading({ title: '加载中', mask: true })
|
|
|
//验证规则函数
|
|
|
that.initValidate();
|
|
|
- await that.searchUser()
|
|
|
- await that.search()
|
|
|
+ that.searchUser()
|
|
|
wx.hideLoading()
|
|
|
},
|
|
|
initValidate() {
|
|
@@ -129,7 +128,8 @@ Page({
|
|
|
key: 'user',
|
|
|
async success(res) {
|
|
|
that.setData({ user: res.data })
|
|
|
- that.searchOther()
|
|
|
+ await that.searchOther()
|
|
|
+ await that.search()
|
|
|
},
|
|
|
fail(err) {
|
|
|
// console.log(err);
|