公司小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
718 B

3 years ago
import SkipData from './SkipData.js'
import { post } from "./api.js"
export default class KeHuToppic{
url = 'customer/getcustomertopurl';
toppicadd = new SkipData();
toppicinfo = new SkipData();
///数据是否加载过了
isLoaded = false;
/**
* 从服务器获取信息
*/
async get(){
var res = await post(this.url,{});
var Define = getApp().globalData.Define;
var data = Define.onNetMessage(res);
if(!data){
return false;
}
var toppicadd = data.toppicadd;
var toppicinfo = data.toppicinfo;
this.toppicadd.initWithNetData(toppicadd);
this.toppicinfo.initWithNetData(toppicinfo);
this.isLoaded = true;
console.log("获取到客户topic信息:",data);
return true;
}
}