|
@@ -396,6 +396,7 @@ export default {
|
|
|
.then((result) => {
|
|
|
uni.hideLoading();
|
|
|
// const result = resp.data;
|
|
|
+ console.log(399, result);
|
|
|
if (result.code == '000000' && result.data) {
|
|
|
log.info(`手机号登录成功:保存授权信息`);
|
|
|
const authInfo = result.data;
|
|
@@ -418,6 +419,8 @@ export default {
|
|
|
// }
|
|
|
_this.saveAgreementAction();
|
|
|
_this.queryMember();
|
|
|
+ // 返回首页
|
|
|
+ _this.$router.replace({ path: '/' });
|
|
|
} else {
|
|
|
log.warn(`手机号登录请求成功: 未获取到授权信息`);
|
|
|
uni.showModal({
|
|
@@ -559,18 +562,20 @@ export default {
|
|
|
mask: true,
|
|
|
});
|
|
|
const newGroupId = uni.getStorageSync('groupId');
|
|
|
- const newMallid = uni.getStorageSync('mallid');
|
|
|
+ const newMallid = uni.getStorageSync('mallId');
|
|
|
const params = {
|
|
|
groupId: newGroupId,
|
|
|
kipUserId: kipMemberInfo.id,
|
|
|
mallId: newMallid,
|
|
|
};
|
|
|
crmQueryMemberInfo(params)
|
|
|
- .then((resp) => {
|
|
|
+ .then((result) => {
|
|
|
uni.hideLoading();
|
|
|
log.info(`获取crm会员请求失败`);
|
|
|
- const result = resp.data;
|
|
|
+ // const result = resp.data;
|
|
|
if (result && result.code == '0') {
|
|
|
+
|
|
|
+
|
|
|
const member = result.data;
|
|
|
const optionsQuery = uni.getStorageSync('options_query') || {};
|
|
|
if (member) {
|
|
@@ -579,28 +584,29 @@ export default {
|
|
|
'==>这里走埋点--手机号码---crmQueryMemberInfo',
|
|
|
member
|
|
|
);
|
|
|
+ uni.setStorageSync()
|
|
|
// TODO: 埋点公共属性重新赋值
|
|
|
- _this.$sensors.registerApp({
|
|
|
- $open_id: _this.globalData?.member?.openId || '',
|
|
|
- $profile_id:
|
|
|
- _this.globalData?.member?.kipUserId ||
|
|
|
- member?.kipUserId ||
|
|
|
- '',
|
|
|
- $member_id: _this.globalData?.member?.id || member?.id || '',
|
|
|
- $union_id: _this.globalData?.member?.unionid || '',
|
|
|
- // $location: _this.globalData?.mallid,
|
|
|
- // $brand_id: _this.globalData?.groupId,
|
|
|
- // $utm_source: JSON.stringify(uni.getStorageSync('options_query')) || '',
|
|
|
- // $channel: optionsQuery?.channel || '',
|
|
|
- $utm_lbs: optionsQuery?.utm_lbs || '',
|
|
|
- // $utm_channel: optionsQuery?.utm_channel || '',
|
|
|
- // $utm_method: optionsQuery?.utm_method || '',
|
|
|
- // $utm_source: optionsQuery?.utm_source || '',
|
|
|
- // $utm_function: optionsQuery?.utm_function || '',
|
|
|
- // $utm_user: optionsQuery?.utm_user || '',
|
|
|
- });
|
|
|
- MemberCacheTool.setMemberInfoCache(app, member, kipMemberInfo);
|
|
|
- _this.checkIsNewUser();
|
|
|
+ // _this.$sensors.registerApp({
|
|
|
+ // $open_id: _this.globalData?.member?.openId || '',
|
|
|
+ // $profile_id:
|
|
|
+ // _this.globalData?.member?.kipUserId ||
|
|
|
+ // member?.kipUserId ||
|
|
|
+ // '',
|
|
|
+ // $member_id: _this.globalData?.member?.id || member?.id || '',
|
|
|
+ // $union_id: _this.globalData?.member?.unionid || '',
|
|
|
+ // // $location: _this.globalData?.mallid,
|
|
|
+ // // $brand_id: _this.globalData?.groupId,
|
|
|
+ // // $utm_source: JSON.stringify(uni.getStorageSync('options_query')) || '',
|
|
|
+ // // $channel: optionsQuery?.channel || '',
|
|
|
+ // $utm_lbs: optionsQuery?.utm_lbs || '',
|
|
|
+ // // $utm_channel: optionsQuery?.utm_channel || '',
|
|
|
+ // // $utm_method: optionsQuery?.utm_method || '',
|
|
|
+ // // $utm_source: optionsQuery?.utm_source || '',
|
|
|
+ // // $utm_function: optionsQuery?.utm_function || '',
|
|
|
+ // // $utm_user: optionsQuery?.utm_user || '',
|
|
|
+ // });
|
|
|
+ // MemberCacheTool.setMemberInfoCache(app, member, kipMemberInfo);
|
|
|
+ // _this.checkIsNewUser();
|
|
|
} else {
|
|
|
uni.hideLoading();
|
|
|
log.error(`获取crm会员请求失败`);
|