mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 19:36:47 +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 class="medal-name">上线纪念章 <text style="font-size: 24upx;color:#387DF7;margin-left: 6upx;"></text></view>
|
||||||
</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>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@@ -78,12 +87,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { mapGetters,mapActions} from 'vuex';
|
import { mapGetters,mapActions} from 'vuex';
|
||||||
import apiStat from '@/api/phase2/stat.js';
|
import apiStat from '@/api/phase2/stat.js';
|
||||||
|
import apiYearMedal from '@/api/phase2/yearMedal.js';
|
||||||
export default {
|
export default {
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
webBaseUrl:this.$config.context,
|
webBaseUrl:this.$config.context,
|
||||||
showLevel:1,
|
showLevel:1,
|
||||||
show:false,
|
show:false,
|
||||||
|
year2023:false,
|
||||||
fileBaseUrl:this.$config.fileUrl,
|
fileBaseUrl:this.$config.fileUrl,
|
||||||
medalList:[],
|
medalList:[],
|
||||||
medalData:{},
|
medalData:{},
|
||||||
@@ -97,6 +108,11 @@
|
|||||||
...mapGetters(['userInfo'])
|
...mapGetters(['userInfo'])
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
apiYearMedal.has2023().then(rs=>{
|
||||||
|
if(rs.status==200 && rs.result){
|
||||||
|
this.year2023=true;
|
||||||
|
}
|
||||||
|
});
|
||||||
this.getMedal();
|
this.getMedal();
|
||||||
this.getConfig();
|
this.getConfig();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user