更新
This commit is contained in:
@@ -54,12 +54,14 @@
|
|||||||
<view class="task-liest">
|
<view class="task-liest">
|
||||||
能量碎片任务
|
能量碎片任务
|
||||||
</view>
|
</view>
|
||||||
<view class="task-item" v-for="(item, index) in task" :key="index" @click="JumpUrl(item.url, item.title)">
|
<block v-for="(item, index) in task" :key="index">
|
||||||
<image class="task-icon" :src="item.ico" mode="aspectFill"></image>
|
<view class="task-item" v-if="item.rule.name != 'sign_crystal'" @click="JumpUrl(item.url, item.title, item.is_finish)">
|
||||||
<view class="task-title">{{item.title}}</view>
|
<image class="task-icon" :src="item.ico" mode="aspectFill"></image>
|
||||||
<view class="task-subtitle">{{item.remark}}</view>
|
<view class="task-title">{{item.title}}</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 class="task-subtitle">{{item.remark}}</view>
|
||||||
</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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -153,7 +155,14 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 能量跳转
|
// 能量跳转
|
||||||
JumpUrl(open, title) {
|
JumpUrl(open, title, finish) {
|
||||||
|
if(finish) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '您已完成此任务',
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
var type = open.openType;
|
var type = open.openType;
|
||||||
switch(type){
|
switch(type){
|
||||||
case 'switchTab':
|
case 'switchTab':
|
||||||
@@ -371,6 +380,10 @@
|
|||||||
color: #999;
|
color: #999;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
line-height: 30rpx;
|
line-height: 30rpx;
|
||||||
|
text{
|
||||||
|
font-size: $title-size-sm - 6;
|
||||||
|
margin-left: $margin/2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.task-label {
|
.task-label {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -382,6 +395,9 @@
|
|||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
&.active {
|
||||||
|
color: $text-gray-m;
|
||||||
|
}
|
||||||
.task-label-icon {
|
.task-label-icon {
|
||||||
width: 34rpx;
|
width: 34rpx;
|
||||||
height: 34rpx;
|
height: 34rpx;
|
||||||
|
|||||||
@@ -218,7 +218,7 @@
|
|||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
x: 86,
|
x: 86,
|
||||||
y: 630,
|
y: 628,
|
||||||
zIndex: 99,
|
zIndex: 99,
|
||||||
w: width - (20 * 2),
|
w: width - (20 * 2),
|
||||||
text: '邀请码:' + invite,
|
text: '邀请码:' + invite,
|
||||||
@@ -353,7 +353,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.button {
|
.button {
|
||||||
background: $mian-color-deep;
|
background: $text-price;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
line-height: 90rpx;
|
line-height: 90rpx;
|
||||||
@@ -375,7 +375,7 @@
|
|||||||
left: 10rpx;
|
left: 10rpx;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10rpx 30rpx 20rpx;
|
padding: 16rpx 30rpx 20rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
.codeCont-avatar {
|
.codeCont-avatar {
|
||||||
@@ -389,7 +389,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding: 10rpx 40rpx 0 140rpx;
|
padding: 14rpx 40rpx 0 140rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.codeCont-name {
|
.codeCont-name {
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
|||||||
@@ -725,8 +725,9 @@ export default {
|
|||||||
margin: 15px 0 2.5px;
|
margin: 15px 0 2.5px;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
.user-name-identity {
|
.user-name-identity {
|
||||||
|
vertical-align: top;
|
||||||
width: 90rpx;
|
width: 90rpx;
|
||||||
height: 15px;
|
height: 32rpx;
|
||||||
margin: 5px 0 0 5px;
|
margin: 5px 0 0 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -928,6 +929,7 @@ export default {
|
|||||||
.userNew-icon {
|
.userNew-icon {
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
|
vertical-align: top;
|
||||||
margin: 24rpx 20rpx 0 0;
|
margin: 24rpx 20rpx 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ const router = createRouter({
|
|||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
const token = store.getters.getToken || uni.getStorageSync('token')
|
const token = store.getters.getToken || uni.getStorageSync('token')
|
||||||
// 检查是否需要微信授权
|
// 检查是否需要微信授权
|
||||||
if(store.getters.getCode === '' && to.name != 'wxAuth'){
|
// if(store.getters.getCode === '' && to.name != 'wxAuth'){
|
||||||
next({
|
// next({
|
||||||
name: 'wxAuth'
|
// name: 'wxAuth'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
// 检查是否需要登录
|
// 检查是否需要登录
|
||||||
if(to.auth && token === ''){
|
if(to.auth && token === ''){
|
||||||
next({
|
next({
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 451 B After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user