1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- const _Http = getApp().globalData.http;
- Page({
- data: {
- contactsid: 0,
- tabsActive: 0, //tabs 选中项
- tabsList: [{
- label: "详细信息",
- num: 132
- }, {
- label: "跟进动态",
- num: 132
- }, {
- label: "地址",
- num: 132
- }],
- },
- onLoad(options) {
- if (options.contactsid) {
- this.setData({
- contactsid: options.contactsid
- });
- this.getDetail();
- }
- },
- /* 获取详情信息 */
- getDetail() {
- _Http.basic({
- "id": 20221026110602,
- "content": {
- "contactsid": this.data.contactsid
- }
- }).then(res => {
- console.log("联系人详情", res)
- const item = res.data;
- this.setData({
- detail: item,
- briefs: [{
- label: "手机号码",
- value: item.phonenumber
- }, {
- label: "性别",
- value: item.sex
- }, {
- label: "生日",
- value: item.birthday
- }, {
- label: "最近跟进时间",
- value: ""
- }],
- list1: [{
- label: "手机号码",
- value: item.phonenumber
- }, {
- label: "性别",
- value: item.sex
- }, {
- label: "生日",
- value: item.birthday
- }, {
- label: "邮箱",
- value: item.email
- }, {
- label: "部门",
- value: item.depname
- }, {
- label: "职位",
- value: item.position
- }, {
- label: "备注",
- value: item.remarks
- }]
- });
- })
- },
- onShareAppMessage() {}
- })
|