|
@@ -304,8 +304,24 @@ var _default = {
|
|
|
},
|
|
|
getMyAccount: function getMyAccount() {
|
|
|
var _this3 = this;
|
|
|
+ var channelUrl = 'http://192.168.2.21:9120/zs/channel/admin/';
|
|
|
this.$api.base("post", "/userApi/getUserAccount", {}, {}).then(function (res) {
|
|
|
_this3.userinfo = res.accountInfo;
|
|
|
+ // 识别用户是否通过分销码进入小程序
|
|
|
+ uni.request({
|
|
|
+ url: channelUrl + 'ums/umsAdminUser/distributionBindUser',
|
|
|
+ method: 'POST',
|
|
|
+ header: {
|
|
|
+ 'content-type': 'application/json'
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ userId: uni.getStorageSync('USER_INFO').id,
|
|
|
+ adminUserId: parseInt(uni.getStorageSync('adminUserId'))
|
|
|
+ },
|
|
|
+ success: function success(res) {
|
|
|
+ console.info('扫码接口调用');
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
onGetPhoneNumber: function onGetPhoneNumber(e) {
|