mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
添加我的勋章显示
This commit is contained in:
@@ -35,6 +35,15 @@
|
||||
|
||||
<view class="medal-name">上线纪念章 <text style="font-size: 24upx;color:#387DF7;margin-left: 6upx;"></text></view>
|
||||
</view>
|
||||
<view class="medal-list-index" v-if="year2023" >
|
||||
<view class="medal-img-index">
|
||||
<image style="width:136upx;height:152upx" src="/static/images/medal//medal2023.png" mode=""></image>
|
||||
<text class="img-name">元旦勋章 </text>
|
||||
<text class="img-level"></text>
|
||||
</view>
|
||||
|
||||
<view class="medal-name">元旦勋章 <text style="font-size: 24upx;color:#387DF7;margin-left: 6upx;"></text></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@@ -78,12 +87,14 @@
|
||||
<script>
|
||||
import { mapGetters,mapActions} from 'vuex';
|
||||
import apiStat from '@/api/phase2/stat.js';
|
||||
import apiYearMedal from '@/api/phase2/yearMedal.js';
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
webBaseUrl:this.$config.context,
|
||||
showLevel:1,
|
||||
show:false,
|
||||
year2023:false,
|
||||
fileBaseUrl:this.$config.fileUrl,
|
||||
medalList:[],
|
||||
medalData:{},
|
||||
@@ -97,6 +108,11 @@
|
||||
...mapGetters(['userInfo'])
|
||||
},
|
||||
mounted() {
|
||||
apiYearMedal.has2023().then(rs=>{
|
||||
if(rs.status==200 && rs.result){
|
||||
this.year2023=true;
|
||||
}
|
||||
});
|
||||
this.getMedal();
|
||||
this.getConfig();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user