Commit 86f3ebfe063f2938a16fe2baf327b5fe7bc2adbf

Authored by 前端开发-罗建龙
1 parent 175902f6

企业联系人E包

app.json
... ... @@ -29,7 +29,7 @@
29 29 "pages/team/team_ping/team_ping",
30 30 "pages/cart/cart2_pt/cart2_pt",
31 31 "pages/cart/cart_wk/cart_wk",
32   - "pages/qy/contactMe/contactMe",
  32 +
33 33  
34 34  
35 35 "pages/user/userqy/userqy",
... ... @@ -218,7 +218,8 @@
218 218 "pages/user/grow_value/grow_value",
219 219 "pages/user/labels/labels",
220 220 "pages/cart/cart2/cart2",
221   - "pages/barCodeBank/barCodeBank"
  221 + "pages/barCodeBank/barCodeBank",
  222 + "pages/qy/contactMe/contactMe"
222 223 ]
223 224 }
224 225  
... ...
pages/qy/contactMe/contactMe.js renamed to packageE/pages/qy/contactMe/contactMe.js
1   -var t = require("../../../utils/common.js");
  1 +var t = require("../../../../utils/common.js");
2 2 const app = getApp();
3 3 var os = app.globalData.setting;
4   -var regeneratorRuntime = require('../../../utils/runtime.js');
  4 +var regeneratorRuntime = require('../../../../utils/runtime.js');
5 5  
6 6 Page({
7 7 data: {
... ... @@ -14,9 +14,10 @@ Page({
14 14 sub: 0,
15 15 phone:'',
16 16 id:"",
  17 + openuserid:'',
17 18 },
18 19 onLoad: function (tt) {
19   - // tt.scene="0_0_14"
  20 + // tt.scene="0_0_1"
20 21 if (tt && tt.scene) {
21 22 var first_leader_str = decodeURIComponent(tt.scene);
22 23 var f_arr = first_leader_str.split("_");
... ... @@ -30,7 +31,7 @@ Page({
30 31 this.setData({
31 32 id:f_arr[2]
32 33 })
33   - // this.getopenuserid(f_arr[2])
  34 + this.getopenuserid(f_arr[2])
34 35 // getApp().globalData.groupchat_id = f_arr[2];
35 36 }
36 37  
... ... @@ -85,14 +86,22 @@ Page({
85 86 },
86 87  
87 88 getopenuserid(id){
88   - getApp().request.promiseGet("/api/weshop/qyWeChat/qywxStaffcode", { data: {id} }).then(res => {
  89 + let url=`/api/weshop/qyWeChat/qywxStaffcode/get/${id}`
  90 + console.log(url);
  91 + getApp().request.promiseGet(url,{data:{}}).then(res => {
89 92 console.log(res);
90 93 if (res.data.code == 0) {
91   - let resdata=JSON.parse(res.data.data);
92   -
  94 + // let resdata=JSON.parse(res.data.data);
  95 + let openuserid=res.data.data.openuserid;
  96 + this.setData({
  97 + openuserid
  98 + })
93 99 }
94 100 })
95 101 },
  102 + getqy(){
  103 +
  104 + },
96 105  
97 106 //绑定手机号
98 107 getphone: function (e) {
... ...
pages/qy/contactMe/contactMe.json renamed to packageE/pages/qy/contactMe/contactMe.json
pages/qy/contactMe/contactMe.wxml renamed to packageE/pages/qy/contactMe/contactMe.wxml
pages/qy/contactMe/contactMe.wxss renamed to packageE/pages/qy/contactMe/contactMe.wxss