Authored by htoooth

fix

... ... @@ -268,8 +268,6 @@ Page(Object.assign({
showAssisList = true;
}
console.log(this.data.productSourceType, assisStatus);
this.setData({
avatarList: result.data.list || [],
assisStatus,
... ... @@ -305,7 +303,7 @@ Page(Object.assign({
}
},
assisShare() {
if (!app.getUnionID()) {
if (!app.getUid()) {
this.goLogin();
return;
}
... ... @@ -315,6 +313,11 @@ Page(Object.assign({
assisAction() {
let userInfo = app.getUserInfo();
if (!userInfo.wechat) {
this.goLogin(0);
return;
}
detailModel.addAssist({
userId: this.data.originUid,
helpUserId: app.getUnionID(),
... ... @@ -341,6 +344,11 @@ Page(Object.assign({
queueAction() {
let userInfo = app.getUserInfo();
if (!userInfo.wechat) {
this.goLogin(0);
return;
}
detailModel.addQueue({
userId: this.data.originUid,
helpUserId: app.getUnionID(),
... ... @@ -389,9 +397,7 @@ Page(Object.assign({
},
goQueueList() {
router.go('queueList', {
uid: this.data.originUid || this.data.uid,
limitProductCode: this.data.limitProductCode,
activityId: this.data.activityId
actId: this.data.activityId
});
},
showError() {
... ... @@ -404,7 +410,7 @@ Page(Object.assign({
error: false
});
},
goLogin() {
goLogin(login = 1) {
let data = {};
if (this.data.originUid) {
... ... @@ -419,7 +425,7 @@ Page(Object.assign({
router.go('userCenter', {
referer,
login: 0
login
});
}
... ...