|
@@ -145,6 +145,13 @@ export default {
|
|
|
try {
|
|
try {
|
|
|
const res = await this.$u.api.getRedBagAjax(this.bianhao);
|
|
const res = await this.$u.api.getRedBagAjax(this.bianhao);
|
|
|
if (res.code === 200 || res.code === 0) {
|
|
if (res.code === 200 || res.code === 0) {
|
|
|
|
|
+ // getWay: 0-扫码(A) 1-被分享(B);被分享用户无二次分享,直接回首页
|
|
|
|
|
+ if (Number(res.data && res.data.getWay) === 1) {
|
|
|
|
|
+ uni.switchTab({
|
|
|
|
|
+ url: '/pages/sell/index'
|
|
|
|
|
+ });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
this.redBagData = res.data;
|
|
this.redBagData = res.data;
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|