From 917bf27fdb68a52e36ecc2efd3090b31f93224ba Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 21 Feb 2019 10:24:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=BA=95=E9=83=A8button=E6=A0=B9=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E6=9D=A1=E4=BB=B6=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E7=9A=84=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/game-bottom-bar.wpy | 5 +++-- src/pages/gameInfo.wpy | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) 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(',');