Browse Source

游戏进度修改

tanxue 4 months ago
parent
commit
ddc2fc1fed
2 changed files with 6 additions and 4 deletions
  1. 4 1
      common/styles/global/pages.scss
  2. 2 3
      pages/game/components/goose.vue

+ 4 - 1
common/styles/global/pages.scss

@@ -1046,7 +1046,10 @@
 	.game-jf-box{position: absolute;right: 24rpx;top: var(--status-bar-height);}
 	// goose
 	.game-goose-box{
-		position: absolute;bottom: 300rpx;right: 80rpx;
+		position: absolute;bottom: 300rpx;right: 80rpx;color: #0d5f84;
+		.game-progress-text{
+			position: absolute;left: 50%;transform: translateX(-50%);font-size: 18rpx;bottom: 303rpx;
+		}
 		.game-progress-box{
 			width: 138rpx;height: 25rpx;position: absolute;left: 48rpx;
 			.u-line-progress__background{

+ 2 - 3
pages/game/components/goose.vue

@@ -1,8 +1,7 @@
 <template>
 	<view>
-    <up-line-progress v-if="growthType!==3" :percentage="20" activeColor="#54e1fe" class="game-progress-box">
-      <text class="u-percentage-slot">20</text>
-    </up-line-progress>
+		<up-line-progress v-if="growthType!==3" :percentage="30" :showText="false" activeColor="#54e1fe" class="game-progress-box"> </up-line-progress>
+		<text class="game-progress-text">成长值:{{progress}}%</text>
 		<image :src="imgUrl" class="goose-img-box"></image>
 	</view>
 </template>