<view v-for="(item, index) in list" :key="index" class='scroll-list'>
<view v-if="storage.get(APP_USER_KIND)=='8' && storage.get(APP_USER_ID)=='10682' && item.title =='体质健康'"></view>
<view v-else>
<view class="scroll-list-item" :style="{'background': item.backColor,'margin-right':index==list.length-1?'0rpx':'10rpx' }"
@click='scrollItemRouter(item.router)'>
<view :style="{'width':item.width,'height':item.height }"
class='scroll-image'>
<image :src="item.image" class="img" />
</view>
<text class='text' :style="{ color: item.fontColor }">{{item.title}}</text>
</view>
</view>
</view>
const list = [{
// 'url(' + require('../../assets/infoCardBg1.png') + ')'
title: '学情管理',
// image: ${imgUrl}/static/home/pic_Learn@2x.png
,
// image: '@/pages/new_mobile/static/home/home-xueqing.png',
image: '../../../../../static/static-new/home/home-xueqing.png',
//../../../../..
// "@/static/static-new/home/home-xueqing.png",
width: '74rpx',
height: '74rpx',
router: '/pages-home/study-situation/study-situation',
fontColor: '#6684E1',
backColor: 'linear-gradient(to bottom, #E2E9FF, white)',
// 'linear-gradient(to bottom, #E2E9FF, white)'
}, {
title: '行为管理',
// image: ${imgUrl}/static/home/pic_safe@2x.png
,
image: '../../../../../static/static-new/home/home-beahior.png',
width: '74rpx',
height: '74rpx',
router: '/pages-home/behavioral-safety/behavioral-safety',
fontColor: '#DF8B45',
backColor: ' linear-gradient(to bottom, #FDEACA, white)'
}, {
title: '体质健康',
// image: ${imgUrl}/static/home/hel_icon_3@2x.png
,
image: '../../../../../static/static-new/home/home-healthy.png',
width: '74rpx',
height: '74rpx',
// router: '/pages-my/apply-leave/apply-leave',
router: '/pages-home/physical-health-report/index',
fontColor: '#65A3D1',
backColor: ' linear-gradient(to bottom, #DDEEFA, white)'
}, {
title: '心理成长',
// image: `${imgUrl}/static/home/pic_psychology@2x.png`,
image: '../../../../../static/static-new/home/home-grow.png',
width: '74rpx',
height: '74rpx',
router: '/pages-home/psychological-health/psychological-health',
fontColor: '#D77697',
backColor: ' linear-gradient(to bottom, #FAE7ED, white)'
}, ]
网友评论