| 12345678910111213141516171819202122232425262728293031 | 
							- <template>
 
- 	<view>
 
- 		<up-line-progress v-if="growthType!==3" :percentage="progress" :showText="false" activeColor="#54e1fe" class="game-progress-box"></up-line-progress>
 
- 		<text v-if="growthType!==3" class="game-progress-text">成长值:{{progress}}%</text>
 
- 		<image :src="imgUrl" class="goose-img-box"></image>
 
- 	</view>
 
- </template>
 
- <script setup>
 
- 	import {gooseGrowthTypeList} from "./constantConfig.js"
 
- 	import { ref,computed } from "vue";
 
- 	import upLineProgress from "uview-plus/components/u-line-progress/u-line-progress.vue";  
 
- 	
 
- 	const props = defineProps({
 
-     growthType: {
 
- 			type: [String,Number]
 
- 		},
 
- 		progress: {
 
- 			type: [String,Number],
 
- 			default: 0
 
- 		}
 
- 	})
 
- 	
 
- 	const imgUrl = computed(() => {
 
- 		const active = gooseGrowthTypeList.find(item => item.id == props.growthType)
 
- 		return active ? active.imgUrl: ''
 
- 	})
 
- </script>
 
- <style>
 
- </style>
 
 
  |