Authored by huangyi

Merge branch 'feature/code-style' of http://git.yoho.cn/fe/yoho-luck into feature/code-style

@@ -74,7 +74,7 @@ const pageOpen = data => { @@ -74,7 +74,7 @@ const pageOpen = data => {
74 PAGE_PARAM: _pageParam(options, path), 74 PAGE_PARAM: _pageParam(options, path),
75 PAGE_NAME: _pageName(options, path), 75 PAGE_NAME: _pageName(options, path),
76 FROM_PAGE_NAME: _pageName(options, fromPath), 76 FROM_PAGE_NAME: _pageName(options, fromPath),
77 - FROM_PAGE_PARAM: _pageParam(fromOptions, fromPath) 77 + FROM_PAGE_PARAM: options.fromPageParam || _pageParam(fromOptions, fromPath)
78 }); 78 });
79 }; 79 };
80 80
@@ -58,6 +58,7 @@ Component({ @@ -58,6 +58,7 @@ Component({
58 } else { 58 } else {
59 router.go('detail', { 59 router.go('detail', {
60 tabIdx: +this.data.tabIdx + 1, 60 tabIdx: +this.data.tabIdx + 1,
  61 + fromPageParam: +this.data.tabIdx + 1,
61 actPrizeId: this.properties.item.act_prize_id 62 actPrizeId: this.properties.item.act_prize_id
62 }); 63 });
63 } 64 }
@@ -11,6 +11,7 @@ Component({ @@ -11,6 +11,7 @@ Component({
11 onClick() { 11 onClick() {
12 router.go('detail', { 12 router.go('detail', {
13 tabIdx: +this.data.tabIdx + 1, 13 tabIdx: +this.data.tabIdx + 1,
  14 + fromPageParam: +this.data.tabIdx + 1,
14 actPrizeId: this.properties.product.id 15 actPrizeId: this.properties.product.id
15 }); 16 });
16 } 17 }
@@ -13,6 +13,7 @@ Component({ @@ -13,6 +13,7 @@ Component({
13 goDetail() { 13 goDetail() {
14 router.go('detail', { 14 router.go('detail', {
15 tabIdx: +this.data.tabIdx + 1, 15 tabIdx: +this.data.tabIdx + 1,
  16 + fromPageParam: +this.data.tabIdx + 1,
16 actPrizeId: this.properties.product.id 17 actPrizeId: this.properties.product.id
17 }); 18 });
18 } 19 }