|
@@ -73,7 +73,8 @@ const ASSIST_SUCCESS = { |
|
@@ -73,7 +73,8 @@ const ASSIST_SUCCESS = { |
73
|
const QUEUE_SUCCESS = {
|
73
|
const QUEUE_SUCCESS = {
|
74
|
UNKNOWN: 0,
|
74
|
UNKNOWN: 0,
|
75
|
OK: 1,
|
75
|
OK: 1,
|
76
|
- REPEAT: 2
|
76
|
+ REPEAT: 2,
|
|
|
77
|
+ FULL: 3
|
77
|
};
|
78
|
};
|
78
|
|
79
|
|
79
|
const YB_SHARE_RESULT_L = 'YB_SHARE_RESULT_L';
|
80
|
const YB_SHARE_RESULT_L = 'YB_SHARE_RESULT_L';
|
|
@@ -283,7 +284,8 @@ Page(Object.assign({ |
|
@@ -283,7 +284,8 @@ Page(Object.assign({ |
283
|
productSourceType = PRODUCT_SOURCE_TYPE.ORIGIN;
|
284
|
productSourceType = PRODUCT_SOURCE_TYPE.ORIGIN;
|
284
|
} else if (!this.data.originUnionID && !this.data.originUid) {
|
285
|
} else if (!this.data.originUnionID && !this.data.originUid) {
|
285
|
productSourceType = PRODUCT_SOURCE_TYPE.ORIGIN;
|
286
|
productSourceType = PRODUCT_SOURCE_TYPE.ORIGIN;
|
286
|
- } else if (this.data.originUnionID && this.data.originUnionID !== app.getUnionID()) {
|
287
|
+ } else if ((this.data.originUnionID && this.data.originUnionID !== app.getUnionID()) ||
|
|
|
288
|
+ (this.data.originUid && this.data.originUid !== this.data.uid)) {
|
287
|
productSourceType = PRODUCT_SOURCE_TYPE.SHARE;
|
289
|
productSourceType = PRODUCT_SOURCE_TYPE.SHARE;
|
288
|
}
|
290
|
}
|
289
|
|
291
|
|
|
@@ -504,6 +506,10 @@ Page(Object.assign({ |
|
@@ -504,6 +506,10 @@ Page(Object.assign({ |
504
|
this.setData({
|
506
|
this.setData({
|
505
|
queueSuccess: QUEUE_SUCCESS.REPEAT
|
507
|
queueSuccess: QUEUE_SUCCESS.REPEAT
|
506
|
});
|
508
|
});
|
|
|
509
|
+ } else if (result.code === 402) {
|
|
|
510
|
+ this.setData({
|
|
|
511
|
+ queueSuccess: QUEUE_SUCCESS.FULL
|
|
|
512
|
+ });
|
507
|
} else {
|
513
|
} else {
|
508
|
yas.report(YB_ASSIST_SUCCESS_L, {
|
514
|
yas.report(YB_ASSIST_SUCCESS_L, {
|
509
|
ASSIST_RESULT: ASSIST_FAIL,
|
515
|
ASSIST_RESULT: ASSIST_FAIL,
|
|
@@ -611,10 +617,9 @@ Page(Object.assign({ |
|
@@ -611,10 +617,9 @@ Page(Object.assign({ |
611
|
},
|
617
|
},
|
612
|
init() {
|
618
|
init() {
|
613
|
wx.showLoading();
|
619
|
wx.showLoading();
|
614
|
- return Promise.all([
|
|
|
615
|
- this.productInfo(),
|
|
|
616
|
- this.getUid()
|
|
|
617
|
- ]).then(() => {
|
620
|
+ return this.getUid().then(() => {
|
|
|
621
|
+ return this.productInfo();
|
|
|
622
|
+ }).then(() => {
|
618
|
return this.getAssistInfo();
|
623
|
return this.getAssistInfo();
|
619
|
}).then(() => {
|
624
|
}).then(() => {
|
620
|
wx.hideLoading();
|
625
|
wx.hideLoading();
|