mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 10:56:47 +08:00
提交
This commit is contained in:
@@ -51,14 +51,14 @@
|
||||
<view class="" style="height: 50upx;">
|
||||
<image v-if="showLevel== index+1" style="width:32upx;height:16upx" src="../../static/images/triangle.png" mode=""></image>
|
||||
</view>
|
||||
<view class="medal-img-index">
|
||||
<view class="medal-img-index" @click="tabQu(ru,index+1)">
|
||||
<image v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" style="width:104upx;height:120upx" :src="fileBaseUrl+rulesData.icon" mode=""></image>
|
||||
<image @click="tabQu(ru)" v-else style="width:104upx;height:120upx" :src="fileBaseUrl+rulesData.iconGrey" mode=""></image>
|
||||
<image v-else style="width:104upx;height:120upx" :src="fileBaseUrl+rulesData.iconGrey" mode=""></image>
|
||||
<text v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" class="img-name">{{medalData.medalName}} </text>
|
||||
<text class="img-level">LV.{{index+1}}</text>
|
||||
</view>
|
||||
<text v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" style="color: #387DF7;font-size: 24upx;">LV.{{index+1}}</text>
|
||||
<text v-else @click="tabQu(ru)" style="color: color: #666666;font-size: 24upx;">LV.{{index+1}}</text>
|
||||
<text v-else style="color: color: #666666;font-size: 24upx;">LV.{{index+1}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -91,9 +91,11 @@
|
||||
this.getConfig();
|
||||
},
|
||||
methods:{
|
||||
tabQu(ru) {
|
||||
this.medalData.requirement = ru.remark;
|
||||
this.showLevel = ru.level;
|
||||
tabQu(ru,index) {
|
||||
if(index == this.medalData.medalLevel || index > this.medalData.medalLevel) {
|
||||
this.medalData.requirement = ru.remark;
|
||||
this.showLevel = ru.level;
|
||||
}
|
||||
},
|
||||
back(){
|
||||
uni.navigateBack();
|
||||
|
||||
Reference in New Issue
Block a user