正在显示
3 个修改的文件
包含
13 行增加
和
4 行删除
@@ -35,13 +35,13 @@ | @@ -35,13 +35,13 @@ | ||
35 | <h1>{$msg}</h1> | 35 | <h1>{$msg}</h1> |
36 | {if $url} | 36 | {if $url} |
37 | <p class="jump"> | 37 | <p class="jump"> |
38 | - {:__('This page will be re-directed in %s seconds', '<span id="wait">' . $wait . '</span>')} | 38 | + |
39 | </p> | 39 | </p> |
40 | {/if} | 40 | {/if} |
41 | <p class="clearfix"> | 41 | <p class="clearfix"> |
42 | - <a href="__PUBLIC__" class="btn btn-grey">{:__('Go back')}</a> | 42 | + |
43 | {if $url} | 43 | {if $url} |
44 | - <a href="{$url}" class="btn btn-primary">{:__('Jump now')}</a> | 44 | + <a href="{$url}" class="btn btn-primary">{:__('点击跳转')}</a> |
45 | {/if} | 45 | {/if} |
46 | </p> | 46 | </p> |
47 | </div> | 47 | </div> |
@@ -60,6 +60,9 @@ class Index extends Frontend | @@ -60,6 +60,9 @@ class Index extends Frontend | ||
60 | $data = Db::name('savemes') | 60 | $data = Db::name('savemes') |
61 | ->where('id',$file_id) | 61 | ->where('id',$file_id) |
62 | ->find(); | 62 | ->find(); |
63 | + if($data['is_open'] == 2){ | ||
64 | + $this->error('该文件为私密,请在APP内打开'); | ||
65 | + } | ||
63 | if($data['type'] == 2){ | 66 | if($data['type'] == 2){ |
64 | $data['video'] = ''; | 67 | $data['video'] = ''; |
65 | $data['video_image'] = ''; | 68 | $data['video_image'] = ''; |
@@ -100,7 +103,7 @@ class Index extends Frontend | @@ -100,7 +103,7 @@ class Index extends Frontend | ||
100 | $file_id = $this->request->param('file_id'); | 103 | $file_id = $this->request->param('file_id'); |
101 | $info_res = Db::name('folder')->where('id',$file_id)->find(); | 104 | $info_res = Db::name('folder')->where('id',$file_id)->find(); |
102 | if($info_res['is_open'] == 2){ | 105 | if($info_res['is_open'] == 2){ |
103 | - $this->error('该文件夹为私密,请在APP内打开',"index/filedetail"); | 106 | + $this->error('该文件夹为私密,请在APP内打开'); |
104 | } | 107 | } |
105 | 108 | ||
106 | //文件夹 | 109 | //文件夹 |
@@ -47,12 +47,14 @@ | @@ -47,12 +47,14 @@ | ||
47 | <div class="file-item"> | 47 | <div class="file-item"> |
48 | <div class="time">{$vo.times}</div> | 48 | <div class="time">{$vo.times}</div> |
49 | {foreach $vo.info as $val} | 49 | {foreach $vo.info as $val} |
50 | + <a href="{:url('index/detail',array('file_id'=>$val.id))}"> | ||
50 | <div class="file-item-bottom"> | 51 | <div class="file-item-bottom"> |
51 | <div class="file_item_img"> | 52 | <div class="file_item_img"> |
52 | <img src="/assets/cai/image/biji_icon@2x.png" alt=""> | 53 | <img src="/assets/cai/image/biji_icon@2x.png" alt=""> |
53 | </div> | 54 | </div> |
54 | {$val.name} | 55 | {$val.name} |
55 | </div> | 56 | </div> |
57 | + </a> | ||
56 | {/foreach} | 58 | {/foreach} |
57 | </div> | 59 | </div> |
58 | {/foreach} | 60 | {/foreach} |
@@ -68,9 +70,11 @@ | @@ -68,9 +70,11 @@ | ||
68 | 70 | ||
69 | <div class="file-item-bottom pic"> | 71 | <div class="file-item-bottom pic"> |
70 | {foreach $vo.info as $val} | 72 | {foreach $vo.info as $val} |
73 | + <a href="{:url('index/detail',array('file_id'=>$val.id))}"> | ||
71 | <div class="file_item_icon"> | 74 | <div class="file_item_icon"> |
72 | <img src="{$val.images}" alt=""> | 75 | <img src="{$val.images}" alt=""> |
73 | </div> | 76 | </div> |
77 | + </a> | ||
74 | {/foreach} | 78 | {/foreach} |
75 | </div> | 79 | </div> |
76 | 80 | ||
@@ -88,10 +92,12 @@ | @@ -88,10 +92,12 @@ | ||
88 | 92 | ||
89 | <div class="file-item-bottom"> | 93 | <div class="file-item-bottom"> |
90 | {foreach $vo.info as $val} | 94 | {foreach $vo.info as $val} |
95 | + <a href="{:url('index/detail',array('file_id'=>$val.id))}"> | ||
91 | <div class="video"> | 96 | <div class="video"> |
92 | <img src="{$val.video_image}" alt="" class="videoImg"> | 97 | <img src="{$val.video_image}" alt="" class="videoImg"> |
93 | <div class="blackPop"><img src="/assets/cai/image/bofang_icon@2x.png" alt=""></div> | 98 | <div class="blackPop"><img src="/assets/cai/image/bofang_icon@2x.png" alt=""></div> |
94 | </div> | 99 | </div> |
100 | + </a> | ||
95 | {/foreach} | 101 | {/foreach} |
96 | </div> | 102 | </div> |
97 | 103 |
-
请 注册 或 登录 后发表评论