Commit 86f3ebfe063f2938a16fe2baf327b5fe7bc2adbf
1 parent
175902f6
企业联系人E包
Showing
5 changed files
with
19 additions
and
9 deletions
app.json
| @@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
| 29 | "pages/team/team_ping/team_ping", | 29 | "pages/team/team_ping/team_ping", |
| 30 | "pages/cart/cart2_pt/cart2_pt", | 30 | "pages/cart/cart2_pt/cart2_pt", |
| 31 | "pages/cart/cart_wk/cart_wk", | 31 | "pages/cart/cart_wk/cart_wk", |
| 32 | - "pages/qy/contactMe/contactMe", | 32 | + |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | "pages/user/userqy/userqy", | 35 | "pages/user/userqy/userqy", |
| @@ -218,7 +218,8 @@ | @@ -218,7 +218,8 @@ | ||
| 218 | "pages/user/grow_value/grow_value", | 218 | "pages/user/grow_value/grow_value", |
| 219 | "pages/user/labels/labels", | 219 | "pages/user/labels/labels", |
| 220 | "pages/cart/cart2/cart2", | 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 | const app = getApp(); | 2 | const app = getApp(); |
| 3 | var os = app.globalData.setting; | 3 | var os = app.globalData.setting; |
| 4 | -var regeneratorRuntime = require('../../../utils/runtime.js'); | 4 | +var regeneratorRuntime = require('../../../../utils/runtime.js'); |
| 5 | 5 | ||
| 6 | Page({ | 6 | Page({ |
| 7 | data: { | 7 | data: { |
| @@ -14,9 +14,10 @@ Page({ | @@ -14,9 +14,10 @@ Page({ | ||
| 14 | sub: 0, | 14 | sub: 0, |
| 15 | phone:'', | 15 | phone:'', |
| 16 | id:"", | 16 | id:"", |
| 17 | + openuserid:'', | ||
| 17 | }, | 18 | }, |
| 18 | onLoad: function (tt) { | 19 | onLoad: function (tt) { |
| 19 | - // tt.scene="0_0_14" | 20 | + // tt.scene="0_0_1" |
| 20 | if (tt && tt.scene) { | 21 | if (tt && tt.scene) { |
| 21 | var first_leader_str = decodeURIComponent(tt.scene); | 22 | var first_leader_str = decodeURIComponent(tt.scene); |
| 22 | var f_arr = first_leader_str.split("_"); | 23 | var f_arr = first_leader_str.split("_"); |
| @@ -30,7 +31,7 @@ Page({ | @@ -30,7 +31,7 @@ Page({ | ||
| 30 | this.setData({ | 31 | this.setData({ |
| 31 | id:f_arr[2] | 32 | id:f_arr[2] |
| 32 | }) | 33 | }) |
| 33 | - // this.getopenuserid(f_arr[2]) | 34 | + this.getopenuserid(f_arr[2]) |
| 34 | // getApp().globalData.groupchat_id = f_arr[2]; | 35 | // getApp().globalData.groupchat_id = f_arr[2]; |
| 35 | } | 36 | } |
| 36 | 37 | ||
| @@ -85,14 +86,22 @@ Page({ | @@ -85,14 +86,22 @@ Page({ | ||
| 85 | }, | 86 | }, |
| 86 | 87 | ||
| 87 | getopenuserid(id){ | 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 | console.log(res); | 92 | console.log(res); |
| 90 | if (res.data.code == 0) { | 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 | getphone: function (e) { | 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