<template> <view> <cu-custom bgColor="bg-gradual-blueness" :isBack="true"> <block slot="backText">返回</block> <block slot="content">学习园地</block> </cu-custom> <scroll-view scroll-y> <view class="cu-list menu card-menu margin-top" v-for="item in listVal"> <view class="cu-item" @click="$noMultipleClicks(goStuToOpen,item.FILEPATH)"> <view class="content"> <text class="cuIcon-read text-blue"></text> <text class="text-grey">{{item.TITLE}}</text> </view> </view> </view> <!-- <view class="cu-tabbar-height"></view> --> </scroll-view> </view> </template> <script> import { basePath,corpinfoId,loginSession,baseImgPath } from '@/common/tool.js'; export default { data() { return { noClick:true, listVal :[], } }, onLoad() { this.getData(); loginSession(); }, methods: { //跳转事件 goToEdit(e) { uni.navigateTo({ url: '/pages/application/basic-info-manage/basic-information/basic-information-edit' }); }, getData() { var _this = this; uni.showLoading({ title: '请稍候' }) uni.request({ url: basePath + '/app/studysection/list', method: 'POST', dataType: 'json', header:{ 'Content-type':'application/x-www-form-urlencoded' }, data: { CORPINFO_ID: corpinfoId, }, success: (res) => { uni.hideLoading();//结束加载中动画 var result = res.data.result; if ("success" == result) { _this.listVal = res.data.varList; } } }); }, goStuToOpen(e) { var url=baseImgPath + e ; var url2 = encodeURI(url); plus.runtime.openURL(url2, function(res) { }); }, } } </script> <style> .content{ overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; } </style>