Authored by QC-L

修复上报不正确的问题

... ... @@ -474,7 +474,7 @@ export const bindAction = (phoneNumb, verifyCode, areaCode, inviteCode, callback
if (ret && ret.code === 200 && ret.data && ret.data.uid > 0) {
if (ret.data.nFlag === 'Y') {
event.emit('report-new-user-created');
event.emit('store-new-user-created');
event.emit('store-new-user-created', ret.data.uid);
}
let userInfo = {
ssouid: ret.data.ssouid,
... ... @@ -518,7 +518,7 @@ export const bindAction = (phoneNumb, verifyCode, areaCode, inviteCode, callback
if (ret.code === 200 && (ret.data.uid !== null) && ret.data.uid > 0 && ret.data.uid !== undefined) {//验证正确
if (ret.data.nFlag === 'Y') {
event.emit('report-new-user-created');
event.emit('store-new-user-created');
event.emit('store-new-user-created', ret.data.uid);
}
userInfo = {
ssouid: ret.data.ssouid,
... ...
... ... @@ -52,8 +52,8 @@ Component({
* 组件的方法列表
*/
methods: {
newUser() {
this.triggerEvent('reportStoreId');
newUser(id) {
this.triggerEvent('reportStoreId', id);
},
getPhonenumberError(error) {
... ...
... ... @@ -362,7 +362,7 @@ export const getPhoneNumber = (e) => {
}).then(result => {
if(result.nFlag === 'Y') {
event.emit('report-new-user-created');
event.emit('store-new-user-created');
event.emit('store-new-user-created', result.uid);
}
if (result.is_register !== undefined && result.is_register === 0) {
const newUserInfo = {
... ...
... ... @@ -60,13 +60,14 @@ export default {
}
})
},
storeIdLoginReport(storeId, fromPage) {
storeIdLoginReport(storeId, fromPage, uid) {
return api.get({
api: 'yohoApi',
data: {
method: 'app.passport.recordRegisterSource',
storeId: storeId,
fromPage: fromPage,
uid
}
})
}
... ...
... ... @@ -383,9 +383,11 @@ export default class ProductDetail extends Component {
}
}
reportStoreId(storeId) {
reportStoreId(storeId, e) {
debugger
console.log(storeId);
productDetailModel.storeIdLoginReport(storeId, 'OfflineStore').then(ret => {});
console.log(e);
productDetailModel.storeIdLoginReport(storeId, 'OfflineStore', e.detail).then(ret => {});
}
onShareAppMessage(res) {
... ...
... ... @@ -351,7 +351,7 @@ function checkVerifyCode(phoneNumb, verifyCode, areaCode, inviteCode, callbackFu
if (data.code === 200 && (data.data.uid !== null) && data.data.uid > 0 && data.data.uid !== undefined) {//验证正确
if(data.data.nFlag === 'Y') {
event.emit('report-new-user-created');
event.emit('store-new-user-created');
event.emit('store-new-user-created', data.data.uid);
}
let userInfo = {}
userInfo.ssouid = data.data.ssouid;
... ... @@ -459,7 +459,7 @@ function autoSignin(mobile, verifyCode, areaCode, inviteCode, callbackFunc) {
if(data.data.nFlag === 'Y') {
event.emit('report-new-user-created');
event.emit('store-new-user-created');
event.emit('store-new-user-created', data.data.uid);
}
let userInfo = {}
... ... @@ -567,7 +567,7 @@ function BindMiniAppByAuto(mobile, countryCode, inviteCode, callbackFunc){
if(data.data && data.data.nFlag === 'Y') {
event.emit('report-new-user-created');
event.emit('store-new-user-created');
event.emit('store-new-user-created', data.data.uid);
}
if (data.data.is_register !== undefined && data.data.is_register !== null && data.data.is_register === 0) {
... ...