[关闭]
@a5635268 2018-03-06T13:21:58.000000Z 字数 4258 阅读 1610

前端交互接口

接口文档


所有返回的status,为0时失败,为1时成功

基本信息新增与编辑(必填项)

新增

接口: Member/basicAdd
链接: http://my.xf9h.com/Member/basicAdd.html
页面: new/Application/My/View/Member/basicAdd.html

编辑

接口: Member/basicInfo
链接: http://my.xf9h.com/Member/basicInfo/customerId/285974.html
页面: new/Application/My/View/Member/basicInfo.html

参数

  1. {
  2. "card_id_verify": 5,
  3. "referrer": "2015440000009",
  4. "sms_status": "1",
  5. "portrait": "http://img.xf9.com/20160921/1474441621_1055345447.jpg",
  6. "store_name": "计算机",
  7. "real_name": "天猫1",
  8. "card_id": "362531199002113313",
  9. "birthday": "1990-02-11",
  10. "yl_birthday": "1990-02-11",
  11. "age": "20",
  12. "sex": "1",
  13. "height": "160",
  14. "weight": "60",
  15. "mobile": "13661976520",
  16. "phone_zone": "",
  17. "phone_number": "",
  18. "province": "10",
  19. "city": "107",
  20. "address": "上海123",
  21. "district": "1167"
  22. }

成功会返回一个link链接,然后通过link链接跳转到下一个页面

基本信息(非必填项)

接口: Member/extendAdd
链接: http://my.xf9h.com/Member/extendAdd/customerId/285974.html
页面: new/Application/My/View/Member/extendAdd/customerId/285974.html

参数

  1. {
  2. "customer_id": "285974",
  3. "nation": "汉",
  4. "qq_number": "1072666913",
  5. "emergency_contact_name": "吴志忠1",
  6. "emergency_contact_phone": "13661976520",
  7. "emergency_contact_relation": "本人",
  8. "is_children_live": "2",
  9. "is_retired": "1",
  10. "work_units": "上海幸福九号",
  11. "record_formal_schooling": "本科",
  12. "religious_beliefs": "无",
  13. "favorite_holiday": "骑行",
  14. "proud_achievement": "无",
  15. "hobby": "睡觉"
  16. }

儿女信息新增与编辑

新增

接口: Member/childrenAdd
链接: http://my.xf9h.com/Member/childrenAdd.html
页面: new/Application/My/View/Member/childrenAdd.html

成功后获得儿女的id,然后请求下面的那个 “获取单个儿女信息” 的接口,获得数据填充在下面即可;

编辑

接口: Member/childrenInfo
链接: http://my.xf9h.com/Member/childrenInfo.html
页面: new/Application/My/View/Member/childrenInfo.html

参数

  1. {
  2. "id": 1, // 有就编辑,没有就添加
  3. "customer_id": "285974",
  4. "real_name": "李子",
  5. "nation": "汉",
  6. "birthday": "1990-02-12",
  7. "mobile": "13661976520",
  8. "record_formal_schooling": "本科",
  9. "work_units": "幸福九号",
  10. "position": "鼓励师",
  11. "income": "1",
  12. "province": "10",
  13. "city": "107",
  14. "district": "1160",
  15. "address": "沙拉卡死了",
  16. "visit_parents": "一周一次",
  17. "is_live_parents": "1",
  18. "is_buy_care_product": "2",
  19. "is_parents_cometoxf9": "2",
  20. "is_accompanied_parents_cometoxf9": "2",
  21. "create_user": "vz120"
  22. }

家庭信息

接口: Member/familyAdd
链接: http://my.xf9h.com/Member/familyAdd.html
页面: new/Application/My/View/Member/familyAdd.html

参数

  1. {
  2. "name": "吴吴",
  3. "birthday": "1990-02-11",
  4. "spouse_education": "其他",
  5. "spouse_education1": "没读书",
  6. "spouse_healthy": "患有疾病",
  7. "spouse_healthy_disease": "不能说的秘密",
  8. "economic": "完全自主",
  9. "insurance": "社保",
  10. "fincome": "3000以下",
  11. "consum": "1000以下/月",
  12. "family_status": "相互和睦"
  13. }

健康状况

接口: Member/healthAdd
链接: http://my.xf9h.com/Member/healthAdd.html
页面: new/Application/My/View/Member/healthAdd.html

参数

  1. {
  2. "customer_id": "279367",
  3. "eating_habits": "酸甜口",
  4. "exercise_habits": "很少运动",
  5. "exercise_time": "早上运动多",
  6. "use_healthy_product": ["康/益治疗仪", "其他"],
  7. "use_healthy_product1": "使用过的健康理疗产品",
  8. "lately_buy_product_time": "2008-04-06",
  9. "lately_buy_product": "计算机",
  10. "use_health_product": "骨源液",
  11. "visit_type": ["电话回访", "上门回访"],
  12. "visit_frequency": "每周",
  13. "follow_brand": ["安利", "汤臣倍健", "其他"],
  14. "follow_brand1": "关注品牌",
  15. //身体状况
  16. "other1": "恶心、呕吐、",
  17. "h1": ["恶心", "呕吐"],
  18. // 患病状况
  19. "other2": "高血压、高血脂、急性上呼吸道感染、支气管炎、心血管动脉硬化、心肌病、眼底出血、白内障、胃炎、急性胃炎、三叉神经痛、面神经痛、周期性瘫痪、骨折、肾盂肾炎、膀胱炎、",
  20. "h21": [
  21. "高血压",
  22. "高血脂"
  23. ],
  24. "h22": [
  25. "急性上呼吸道感染",
  26. "支气管炎"
  27. ],
  28. "h23": [
  29. "心血管动脉硬化",
  30. "心肌病"
  31. ],
  32. "h24": [
  33. "眼底出血",
  34. "白内障"
  35. ],
  36. "h25": [
  37. "胃炎",
  38. "急性胃炎"
  39. ],
  40. "h26": [
  41. "三叉神经痛",
  42. "面神经痛"
  43. ],
  44. "h27": [
  45. "周期性瘫痪",
  46. "骨折"
  47. ],
  48. "h28": [
  49. "肾盂肾炎",
  50. "膀胱炎"
  51. ],
  52. //服用的保健品
  53. "other3": "安琪硒、纳豆激酶、",
  54. "h3": [
  55. "安琪硒",
  56. "纳豆激酶"
  57. ],
  58. //服用的药品
  59. "other4": "氨咖甘片、元顺、",
  60. "h4": [
  61. "氨咖甘片",
  62. "元顺"
  63. ],
  64. }

获取单个儿女信息

点某个儿女编辑的时候用,通过点击编辑获得儿女信息进入上面的框进行编辑,这块有点复杂,如果搞不定可以放在周一一起讨论一下

接口: Member/getChildren
链接: http://my.xf9h.com/Member/childrenAdd.html
页面: new/Application/My/View/Member/childrenAdd.html

参数

  1. {"id":"1"}

相册的新增与编辑

接口: Album/addEdit
链接: http://my.xf9h.com/Album/photo.html
页面: new/Application/My/View/Album/photo.html

参数

  1. {
  2. "id": "1", //在编辑的时候要给
  3. "customer_id": "285974",
  4. "group_name": "相册1",
  5. "description": "我的相册1"
  6. }

多图上传

接口: Album/photoApi
  1. {
  2. "photos": [
  3. "http://img.xf9.com/xfgj/ceshi/photo/20170627/505c45ba-82c5-4f3c-920d-b413d6140dc8.jpg",
  4. "http://img.xf9.com/xfgj/ceshi/photo/20170627/505c45ba-82c5-4f3c-920d-b413d6140dc8.jpg",
  5. ],
  6. "photo_date": "1498492800",
  7. "location": "点对点",
  8. "group_id": "7",
  9. "customer_id": "285988"
  10. }

电话共享人

Member/checkMobileAndPhone
{"mobile":"13661976520","phone":"021-15245865","customerId":""}
customerId:编辑的时候要传

相册删除

Album/del 参数ID

相片批量删除

Album/delPhoto 
{"id":[3,4]}

其他相关链接

相册列表:http://my.xf9h.com/Album/photo.html
相册详情:http://my.xf9h.com/Album/detail

其他问题

  1. 客户信息的详情查看还没有搞定,先放旁边
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注