| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391 |
- <html>
- <head>
- <style>
- .mobile-home{
- padding: 10px;
- }
- .mobile-home-card{
- background-color: #fff;
- border-radius: 6px;
- margin-bottom: 10px;
- overflow: hidden;
- }
- .van-swipe img{
- width: 100%;
- }
- .van-swipe p{
- width: 100%;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 1;
- overflow: hidden;
- height: 36px;
- line-height: 36px;
- padding: 0 10px;
- box-sizing: border-box;
- text-align: center;
- }
- .van-swipe__indicators{
- bottom: 48px;
- }
- /* 快捷按钮 */
- .grid {
- text-align: center;
- padding: 10px;
- }
- .grid ul {
- display: flex;
- flex-wrap: wrap;
- }
- .grid li {
- width: 25%;
- padding: 10px 0;
- }
- .grid li:hover a {
- color: #409EFF;
- }
- .grid dt {
- background-color: #409EFF;
- border-radius: 4px;
- width: 50px;
- height: 50px;
- line-height: 50px;
- margin: 0 auto;
- }
- .grid dt i {
- font-size: 30px;
- color: #fff;
- vertical-align: middle;
- }
- .grid dd {
- margin-top: 8px;
- }
- /* 头部 */
- .mobile-home-top{
- display: flex;
- background-color: #1989fa;
- color: #fff;
- padding: 0 12px;
- }
- .mobile-home-left,
- .mobile-home-center,
- .mobile-home-right{
- /* display: inline-block; */
- line-height: 54px;
- flex: auto;
- text-align: center;
- }
- .mobile-home-left{
- overflow: hidden;
- text-overflow:ellipsis;
- white-space: nowrap;
- text-align: left;
- }
- .mobile-home-left img{
- width: 30px;
- height: 30px;
- border-radius: 3px;
- vertical-align: middle;
- }
- .mobile-home-left span{
- position: relative;
- }
- .mobile-home-left span i,
- .function-module dt b{
- position: absolute;
- top: -2px;
- right: -2px;
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background-color: #ee0a24;
- }
- .mobile-home-right{
- text-align: right;
- }
- .mobile-home-right i{
- font-size: 22px;
- vertical-align: middle;
- margin-top: -6px;
- }
- .mobile-home-right .van-badge__wrapper{
- line-height: initial;
- }
- /* 主功能模块 */
- .function-module dt{
- border-radius: 50%;
- position: relative;
- }
- .function-module dt b{
- width: 8px;
- height: 8px;
- top: 0;
- right: 0;
- }
- .mobile-home-tipText {
- padding: 12px;
- position: relative;
- }
- .mobile-home-tipText ul{
- width: calc(100% - 25px);
- }
- .mobile-home-tipText ul li{
- width: 100%;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 1;
- overflow: hidden;
- height: 28px;
- line-height: 28px;
- }
- .mobile-home-tipText ul span{
- color: #999;
- }
- .mobile-home-tipText ul i{
- vertical-align: middle;
- }
- .mobile-home-tipText-right{
- position: absolute;
- top: 0;
- right: 0;
- height: 100%;
- padding-right: 12px;
- width: 20px;
- }
- .mobile-home-tipText-right i{
- font-size: 18px;
- color: #999;
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- }
- </style>
- </head>
- <body class="body-bg-gray">
- <div id="space-content">
- <div class="content-wrap">
- <div class="mobile-home-top">
- <div class="mobile-home-left">
- <img src="${appUser.iconPath}" alt=""/>
- <span>
- ${appUser.post.name}
- <!-- <i class="dot"></i> -->
- </span>
- </div>
- <!-- <div class="mobile-home-center">
- <van-search v-model="searchValue" placeholder="请输入搜索关键词" background="#1989fa"></van-search>
- </div> -->
- <div class="mobile-home-right">
- <van-badge :dot="!isViewAll">
- <van-icon name="bell" onclick='@service{type:"appwin", name:`system_message_list`, page:"mobile_sys_msg.msg_list", params:`{rowCountPerPage: "20"}`, end:"space.vue.getMsgNotReadFlag"}@'></van-icon>
- </van-badge>
- </div>
- </div>
- <div class="mobile-home">
-
- <!-- 轮播 -->
- <div class="mobile-home-card">
- <van-swipe :autoplay="3000" indicator-color="white">
- <van-swipe-item>
- <a href="javascript:;">
- <img src="/apps/space/images/homepage/img1.png" alt="">
- <p>
- 智能化办公-语音智能办公助手,为组织每位成员配备了一位7×24小时智能助手
- </p>
- </a>
- </van-swipe-item>
- <van-swipe-item>
- <a href="javascript:;">
- <img src="/apps/space/images/homepage/img2.png" alt="">
- <p>全程电子化-契约锁为企业构建“智能、高效、简捷、安全、合规、具有法律效力”企业运营体系</p>
- </a>
- </van-swipe-item>
- <van-swipe-item>
- <a href="javascript:;">
- <img src="/apps/space/images/homepage/img3.png" alt="">
- <p>智能化办公-语音智能办公助手,为组织每位成员配备了一位7×24小时智能助手</p>
- </a>
- </van-swipe-item>
- <van-swipe-item>
- <a href="javascript:;">
- <img src="/apps/space/images/homepage/img4.png" alt="">
- <p>全程电子化-契约锁为企业构建“智能、高效、简捷、安全、合规、具有法律效力”企业运营体系</p>
- </a>
- </van-swipe-item>
- <van-swipe-item>
- <a href="javascript:;">
- <img src="/apps/space/images/homepage/img5.png" alt="">
- <p>
- 智能化办公-写点啥智能化办公-写点啥智能化办公-写点啥智能化办公-写点啥智能化办公-写点啥智能化办公-写点啥智能化办公
- </p>
- </a>
- </van-swipe-item>
- </van-swipe>
- </div>
- <!-- 主功能模块 -->
- <div class="mobile-home-card">
- <div class="grid function-module">
- <ul>
- <li>
- <a href="javascript:;">
- <dl>
- <dt >
- <i class="spaceicon icon-yanzhongchengdu"></i>
- <b class="dot"></b>
- </dt>
- <dd>
- 服务提醒
- </dd>
- </dl>
- </a>
- </li>
- <li>
- <a href="javascript:;">
- <dl>
- <dt >
- <i class="spaceicon icon-monday"></i>
- <b class="dot"></b>
- </dt>
- <dd>
- 日程
- </dd>
- </dl>
- </a>
- </li>
- <li>
- <a href="javascript:;">
- <dl>
- <dt >
- <i class="spaceicon icon-statement"></i>
- </dt>
- <dd>
- 待办
- </dd>
- </dl>
- </a>
- </li>
- <li>
- <a href="javascript:;">
- <dl>
- <dt >
- <i class="spaceicon icon-unit2"></i>
- </dt>
- <dd>
- 工作台
- </dd>
- </dl>
- </a>
- </li>
- </ul>
- </div>
- </div>
- <!-- 自定义卡片 -->
- <div class="mobile-home-card" v-if="articleRanking.length > 0">
- <div class="mobile-home-tipText">
- <ul>
- <li v-for="(item,index) in articleRanking" :key="index" v-if="index < 2" @click="articleInfo(item.articleid)" >
- <a href="javascript:;">
- <i class="spaceicon icon-roundness2"></i>
- {{item.title}}
- <span>{{item.releaseTime}}</span>
- </a>
- </li>
- </ul>
- <div class="mobile-home-tipText-right" onclick='@service{ type:"appwin", name:`cultural.companyArticles_list`, page: `cultural.company_articles_mobile.list`, params:`{catcode: "10010"}` }@'>
- <i class="spaceicon icon-right"></i>
- </div>
- </div>
- </div>
- <!-- 快捷方式 -->
- <div class="mobile-home-card" v-show="${subassemblyList.size() > 0}">
- <div class="grid">
- <ul>
- <c:forEach items="${subassemblyList }" var="item">
- <li onclick='@service{ type:"appwin", page: "${item.zjid}", pageTranslate: "false" }@'>
- <a href="javascript:;">
- <dl>
- <dt style="background-color: ${item.tb_bjs};">
- <i class="${item.tb}" style="color: ${item.tb_zts};"></i>
- </dt>
- <dd>
- ${item.mc}
- </dd>
- </dl>
- </a>
- </li>
- </c:forEach>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data: function() {
- return {
- // 文章排行
- articleRanking: [],
- searchValue: '',
- isViewAll: true, //消息是否全读
- }
- },
- created: function () {
- var that = this;
- // 获取是否有未读的消息
- that.getMsgNotReadFlag();
- // 文章排行
- space.utils.ajax({
- url: "@service{ name: 'website.website_visit_articleHot' }@",
- dataType: 'json',
- callback: function (resp) {
- that.articleRanking = resp.data;
- }
- });
- },
- methods: {
- articleInfo: function(id) {
- space.plugin.appWindow.show({
- title: '详情',
- position: 'right',
- url: '@service{ name:`website.article_info`, page:`website.article.article_info` }@',
- param: {
- "articleid": id
- }
- });
- },
- //获取是否有未读的消息
- getMsgNotReadFlag: function() {
- var that = this;
- space.utils.ajax({
- url: '@service{ name:`system_message_not_read` }@',
- dataType: 'json',
- loadLayer: false,
- callback: function(data) {
- if(data.code == "success") {
- that.isViewAll = !data.notReadFlag;
- }else{
- space.message.error("消息接口异常");
- }
- }
- });
- },
- },
-
- })
- </script>
-
- </html>
|