...
|
...
|
@@ -151,6 +151,27 @@ Page(Object.assign({ |
|
|
|
|
|
yas = new Yas(app); // 实例化埋点
|
|
|
yas.pageOpenReport();
|
|
|
|
|
|
wx.showLoading({
|
|
|
title: '加载中...',
|
|
|
mask: true,
|
|
|
});
|
|
|
|
|
|
setTimeout(() => {
|
|
|
app = app || getApp();
|
|
|
|
|
|
if (this.data.scene) {
|
|
|
this.loadDataFromCode().then(() => {
|
|
|
this.init().then(() => {
|
|
|
this._showRepeat();
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
|
this.init().then(() => {
|
|
|
this._showRepeat();
|
|
|
});
|
|
|
}
|
|
|
}, app ? 0 : 1000);
|
|
|
},
|
|
|
|
|
|
loadDataFromCode() {
|
...
|
...
|
@@ -169,17 +190,6 @@ Page(Object.assign({ |
|
|
});
|
|
|
},
|
|
|
onShow() {
|
|
|
setTimeout(() => {
|
|
|
app = app || getApp();
|
|
|
|
|
|
if (this.data.scene) {
|
|
|
this.loadDataFromCode().then(() => {
|
|
|
this.init();
|
|
|
});
|
|
|
} else {
|
|
|
this.init();
|
|
|
}
|
|
|
}, app ? 0 : 1000);
|
|
|
},
|
|
|
onShareAppMessage: function(res) {
|
|
|
let params = {
|
...
|
...
|
@@ -371,19 +381,11 @@ Page(Object.assign({ |
|
|
showAssistList = true;
|
|
|
}
|
|
|
|
|
|
if (assistStatus === ASSIST_STATUS.ASSIST_ALREADY_ACTION) {
|
|
|
this.setData({
|
|
|
assistStatus,
|
|
|
assistSuccess: ASSIST_SUCCESS.REPEAT,
|
|
|
modal: true
|
|
|
});
|
|
|
} else {
|
|
|
this.setData({
|
|
|
avatarList: result.data.list || [],
|
|
|
assistStatus,
|
|
|
showAssistList
|
|
|
});
|
|
|
}
|
|
|
this.setData({
|
|
|
avatarList: result.data.list || [],
|
|
|
assistStatus,
|
|
|
showAssistList
|
|
|
});
|
|
|
});
|
|
|
} else if (this.data.limitProductType === LIMIT_TYPE.QUEUE) {
|
|
|
return detailModel.getAssistInfo(uid, this.data.limitProductCode).then(result => {
|
...
|
...
|
@@ -424,17 +426,9 @@ Page(Object.assign({ |
|
|
queueStatus = QUEUE_STATUS.QUEUE_HELP;
|
|
|
}
|
|
|
|
|
|
if (queueStatus === QUEUE_STATUS.QUEUE_HELP) {
|
|
|
this.setData({
|
|
|
queueStatus,
|
|
|
queueSuccess: QUEUE_SUCCESS.REPEAT,
|
|
|
modal: true
|
|
|
});
|
|
|
} else {
|
|
|
this.setData({
|
|
|
queueStatus
|
|
|
});
|
|
|
}
|
|
|
this.setData({
|
|
|
queueStatus
|
|
|
});
|
|
|
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -640,6 +634,11 @@ Page(Object.assign({ |
|
|
refreshText: '加载中...'
|
|
|
});
|
|
|
|
|
|
wx.showLoading({
|
|
|
title: '加载中...',
|
|
|
mask: true,
|
|
|
});
|
|
|
|
|
|
this.init().then(() => {
|
|
|
wx.stopPullDownRefresh();
|
|
|
this.setData({
|
...
|
...
|
@@ -658,11 +657,6 @@ Page(Object.assign({ |
|
|
});
|
|
|
},
|
|
|
init() {
|
|
|
wx.showLoading({
|
|
|
title: '加载中...',
|
|
|
mask: true,
|
|
|
});
|
|
|
|
|
|
return this.getUid().then(() => {
|
|
|
return this.productInfo();
|
|
|
}).then(() => {
|
...
|
...
|
@@ -703,5 +697,20 @@ Page(Object.assign({ |
|
|
});
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
_showRepeat() {
|
|
|
if (this.data.queueStatus === QUEUE_STATUS.QUEUE_HELP) {
|
|
|
this.setData({
|
|
|
queueSuccess: QUEUE_SUCCESS.REPEAT,
|
|
|
modal: true
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (this.data.assistStatus === ASSIST_STATUS.ASSIST_ALREADY_ACTION) {
|
|
|
this.setData({
|
|
|
assistSuccess: ASSIST_SUCCESS.REPEAT,
|
|
|
modal: true
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}, Actionsheet)); |
...
|
...
|
|