diff --git a/src/components/game-bottom-bar.wpy b/src/components/game-bottom-bar.wpy index 04c3534..3761a52 100644 --- a/src/components/game-bottom-bar.wpy +++ b/src/components/game-bottom-bar.wpy @@ -33,7 +33,7 @@ @@ -47,7 +47,8 @@ mainBtnIconClass: '', mainBtnTitle: '', secondBtnIconClass: '', - secondBtnTitle: '' + secondBtnTitle: '', + primary: false } } data = { diff --git a/src/pages/gameInfo.wpy b/src/pages/gameInfo.wpy index 4fa4b87..4f7c61d 100644 --- a/src/pages/gameInfo.wpy +++ b/src/pages/gameInfo.wpy @@ -81,6 +81,7 @@ hide: false, mainBtnIconClass: 'icon-cart', mainBtnTitle: '开通游戏', + primary: false, secondBtnIconClass: 'icon-coin-yen', secondBtnTitle: '领取金币' } @@ -195,9 +196,11 @@ if (this.record.owned) { this.bottomActionCfg.mainBtnIconClass = 'icon-merge'; this.bottomActionCfg.mainBtnTitle = '开始游戏'; + this.bottomActionCfg.primary = true; } else { this.bottomActionCfg.mainBtnIconClass = 'icon-cart'; this.bottomActionCfg.mainBtnTitle = '开通游戏'; + this.bottomActionCfg.primary = false; } if (this.record.taglist) { this.tagList = this.record.taglist.split(',');