更新
This commit is contained in:
@@ -54,12 +54,14 @@
|
||||
<view class="task-liest">
|
||||
能量碎片任务
|
||||
</view>
|
||||
<view class="task-item" v-for="(item, index) in task" :key="index" @click="JumpUrl(item.url, item.title)">
|
||||
<image class="task-icon" :src="item.ico" mode="aspectFill"></image>
|
||||
<view class="task-title">{{item.title}}</view>
|
||||
<view class="task-subtitle">{{item.remark}}</view>
|
||||
<view class="task-label">{{item.tips}}<image @click.stop="showHelp" class="task-label-icon" src="@/static/imgs/user-crystalMark-grey.png"></image></view>
|
||||
</view>
|
||||
<block v-for="(item, index) in task" :key="index">
|
||||
<view class="task-item" v-if="item.rule.name != 'sign_crystal'" @click="JumpUrl(item.url, item.title, item.is_finish)">
|
||||
<image class="task-icon" :src="item.ico" mode="aspectFill"></image>
|
||||
<view class="task-title">{{item.title}}</view>
|
||||
<view class="task-subtitle">{{item.remark}}</view>
|
||||
<view class="task-label" :class="{'active' : item.is_finish}">{{item.is_finish ? '已完成' : item.tips}}<image @click.stop="showHelp" class="task-label-icon" src="@/static/imgs/user-crystalMark-grey.png"></image></view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -153,7 +155,14 @@
|
||||
},
|
||||
|
||||
// 能量跳转
|
||||
JumpUrl(open, title) {
|
||||
JumpUrl(open, title, finish) {
|
||||
if(finish) {
|
||||
uni.showToast({
|
||||
title: '您已完成此任务',
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
var type = open.openType;
|
||||
switch(type){
|
||||
case 'switchTab':
|
||||
@@ -371,6 +380,10 @@
|
||||
color: #999;
|
||||
font-size: 26rpx;
|
||||
line-height: 30rpx;
|
||||
text{
|
||||
font-size: $title-size-sm - 6;
|
||||
margin-left: $margin/2;
|
||||
}
|
||||
}
|
||||
.task-label {
|
||||
position: absolute;
|
||||
@@ -382,6 +395,9 @@
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
&.active {
|
||||
color: $text-gray-m;
|
||||
}
|
||||
.task-label-icon {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
|
||||
Reference in New Issue
Block a user