mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
35 lines
682 B
JavaScript
35 lines
682 B
JavaScript
/**
|
|
* @param {Object} dataObj
|
|
* page: 1,
|
|
row: 15,
|
|
cityCode: this.areaCode,
|
|
state: '1100',
|
|
name: this.searchValue
|
|
*/
|
|
export function getCommunitys(dataObj) {
|
|
return new Promise(
|
|
(resolve, reject) => {
|
|
uni.request({
|
|
url: constant.url.listCommunitys,
|
|
header: context.getHeaders(),
|
|
method: "GET",
|
|
data: dataObj,
|
|
//动态数据
|
|
success: function(res) {
|
|
if (res.statusCode == 200) {
|
|
let _communtiys = res.data.communitys;
|
|
|
|
_that.communitys = _communtiys;
|
|
}
|
|
},
|
|
fail: function(e) {
|
|
wx.showToast({
|
|
title: "服务器异常了",
|
|
icon: 'none',
|
|
duration: 2000
|
|
});
|
|
}
|
|
});
|
|
})
|
|
}
|