正在显示
46 个修改的文件
包含
1020 行增加
和
155 行删除
@@ -84,7 +84,7 @@ class IndexController extends HomeBaseController | @@ -84,7 +84,7 @@ class IndexController extends HomeBaseController | ||
84 | 84 | ||
85 | //星探推荐 | 85 | //星探推荐 |
86 | $position = CityCategoryModel::xttj; | 86 | $position = CityCategoryModel::xttj; |
87 | - $field = 'id,post_title,price,thumbnail,place'; | 87 | + $field = 'id,post_title,price,index_thumbnail,place'; |
88 | $res_xttj = $this->getParentArticle($position,$field,16); | 88 | $res_xttj = $this->getParentArticle($position,$field,16); |
89 | $this->assign('res_xttj',$res_xttj); | 89 | $this->assign('res_xttj',$res_xttj); |
90 | 90 | ||
@@ -194,7 +194,7 @@ class IndexController extends HomeBaseController | @@ -194,7 +194,7 @@ class IndexController extends HomeBaseController | ||
194 | ->whereIn('id',$post_id) | 194 | ->whereIn('id',$post_id) |
195 | ->where('month', $month) | 195 | ->where('month', $month) |
196 | ->where('delete_time', 0) | 196 | ->where('delete_time', 0) |
197 | - ->field('id,month,post_title,thumbnail,post_excerpt') | 197 | + ->field('id,month,post_title,index_thumbnail,thumbnail,post_excerpt') |
198 | ->limit(1) | 198 | ->limit(1) |
199 | ->order('weigh desc') | 199 | ->order('weigh desc') |
200 | ->find(); | 200 | ->find(); |
@@ -160,6 +160,9 @@ class LoginController extends HomeBaseController | @@ -160,6 +160,9 @@ class LoginController extends HomeBaseController | ||
160 | if($login){ | 160 | if($login){ |
161 | $userModel = new UserModel(); | 161 | $userModel = new UserModel(); |
162 | $id = cmf_get_current_user_id(); | 162 | $id = cmf_get_current_user_id(); |
163 | + if(empty($nickname)){ | ||
164 | + $this->apiResponse(0,'昵称不能为空!'); | ||
165 | + } | ||
163 | $res = $userModel->allowField(true)->update(['id'=>$id,'user_nickname'=>$nickname]); | 166 | $res = $userModel->allowField(true)->update(['id'=>$id,'user_nickname'=>$nickname]); |
164 | if($res){ | 167 | if($res){ |
165 | $userInfo = $userModel->where('id',$id)->find(); | 168 | $userInfo = $userModel->where('id',$id)->find(); |
@@ -94,7 +94,7 @@ class ScoutController extends HomeBaseController | @@ -94,7 +94,7 @@ class ScoutController extends HomeBaseController | ||
94 | $res = $starModel->getDetail($id,$field); | 94 | $res = $starModel->getDetail($id,$field); |
95 | if($res){ | 95 | if($res){ |
96 | $more = json_decode($res['more'],true); | 96 | $more = json_decode($res['more'],true); |
97 | - $res['image_url'] = isset($more['photos']) && !empty($more['photos'])?$more['photos']:''; | 97 | + $res['image_url'] = isset($more['photos']) && !empty($more['photos'])?$more['photos'][0]['url']:''; |
98 | } | 98 | } |
99 | $this->assign('res',$res); | 99 | $this->assign('res',$res); |
100 | return $this->fetch(':scenery_detail'); | 100 | return $this->fetch(':scenery_detail'); |
@@ -168,11 +168,44 @@ class StarController extends HomeBaseController | @@ -168,11 +168,44 @@ class StarController extends HomeBaseController | ||
168 | $position['city_id'] = $city_id; | 168 | $position['city_id'] = $city_id; |
169 | $field = 'id,thumbnail,post_title,post_hits,post_favorites'; | 169 | $field = 'id,thumbnail,post_title,post_hits,post_favorites'; |
170 | $res = $this->getChildArticlePage($position,$field); | 170 | $res = $this->getChildArticlePage($position,$field); |
171 | + | ||
172 | + $position['is_show'] = 1; | ||
173 | + $is_show_img = $this->getShowImg($position,$field,5); | ||
174 | + $this->assign('image',$is_show_img); | ||
175 | + | ||
171 | $this->assign('res',$res['data']); | 176 | $this->assign('res',$res['data']); |
172 | $this->assign('page',$res['page']); | 177 | $this->assign('page',$res['page']); |
173 | return $this->fetch(); | 178 | return $this->fetch(); |
174 | } | 179 | } |
175 | 180 | ||
181 | + //获取网红美景展示图片 | ||
182 | + public function getShowImg($position,$field,$limit = ''){ | ||
183 | + $pre = CityCategoryModel::pre; | ||
184 | + $limit = empty($limit)?$this->more_limit:$limit; | ||
185 | + $post_id = Db::table($pre.'portal_category_post') | ||
186 | + ->whereIn('category_id',$position['category_id']) | ||
187 | + ->field('post_id') | ||
188 | + ->select() | ||
189 | + ->toArray(); | ||
190 | + $post_id = array_column($post_id,'post_id'); | ||
191 | + //查询文章 | ||
192 | + if($position['city_id'] == 0){ | ||
193 | + //所有 | ||
194 | + $where = ['delete_time'=>0,'is_show'=>$position['is_show']]; | ||
195 | + }else{ | ||
196 | + $where = ['city_id'=>$position['city_id'],'delete_time'=>0,'is_show'=>$position['is_show']]; | ||
197 | + } | ||
198 | + $res = Db::table($pre.'portal_post') | ||
199 | + ->whereIn('id',$post_id) | ||
200 | + ->where($where) | ||
201 | + ->field($field) | ||
202 | + ->order('weigh desc') | ||
203 | + ->limit($limit) | ||
204 | + ->select() | ||
205 | + ->toArray(); | ||
206 | + return $res; | ||
207 | + } | ||
208 | + | ||
176 | //网红美景详情 | 209 | //网红美景详情 |
177 | public function getSceneryDetail(){ | 210 | public function getSceneryDetail(){ |
178 | $id = $this->request->param('id',0,'intval'); | 211 | $id = $this->request->param('id',0,'intval'); |
@@ -106,7 +106,27 @@ | @@ -106,7 +106,27 @@ | ||
106 | <div class="col-md-3"> | 106 | <div class="col-md-3"> |
107 | <table class="table table-bordered"> | 107 | <table class="table table-bordered"> |
108 | <tr> | 108 | <tr> |
109 | - <th><b>缩略图</b></th> | 109 | + <th><b>首页缩略图</b></th> |
110 | + </tr> | ||
111 | + <tr> | ||
112 | + <td> | ||
113 | + <div style="text-align: center;"> | ||
114 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value=""> | ||
115 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
116 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
117 | + id="index_thumbnail-preview" | ||
118 | + width="135" style="cursor: pointer"/> | ||
119 | + </a> | ||
120 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
121 | + </div> | ||
122 | + <div style="margin-top:30px;"> | ||
123 | + <span class="form-required">图片参考尺寸:290*200</span> | ||
124 | + </div> | ||
125 | + </td> | ||
126 | + </tr> | ||
127 | + | ||
128 | + <tr> | ||
129 | + <th><b>列表页缩略图</b></th> | ||
110 | </tr> | 130 | </tr> |
111 | <tr> | 131 | <tr> |
112 | <td> | 132 | <td> |
@@ -119,6 +139,9 @@ | @@ -119,6 +139,9 @@ | ||
119 | </a> | 139 | </a> |
120 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 140 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
121 | </div> | 141 | </div> |
142 | + <div style="margin-top:30px;"> | ||
143 | + <span class="form-required">图片参考尺寸:380*380</span> | ||
144 | + </div> | ||
122 | </td> | 145 | </td> |
123 | </tr> | 146 | </tr> |
124 | <tr> | 147 | <tr> |
@@ -153,7 +176,12 @@ | @@ -153,7 +176,12 @@ | ||
153 | editorcontent.sync(); | 176 | editorcontent.sync(); |
154 | } catch (err) { | 177 | } catch (err) { |
155 | } | 178 | } |
156 | - | 179 | + //首页缩略图 |
180 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
181 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
182 | + $('#index_thumbnail').val(''); | ||
183 | + }); | ||
184 | + //列表页缩略图 | ||
157 | $('.btn-cancel-thumbnail').click(function () { | 185 | $('.btn-cancel-thumbnail').click(function () { |
158 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 186 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
159 | $('#thumbnail').val(''); | 187 | $('#thumbnail').val(''); |
@@ -124,7 +124,33 @@ | @@ -124,7 +124,33 @@ | ||
124 | <div class="col-md-3"> | 124 | <div class="col-md-3"> |
125 | <table class="table table-bordered"> | 125 | <table class="table table-bordered"> |
126 | <tr> | 126 | <tr> |
127 | - <th>缩略图</th> | 127 | + <th>首页缩略图</th> |
128 | + </tr> | ||
129 | + <tr> | ||
130 | + <td> | ||
131 | + <div style="text-align: center;"> | ||
132 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" | ||
133 | + value="{$post.index_thumbnail|default=''}"> | ||
134 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
135 | + <if condition="empty($post.index_thumbnail)"> | ||
136 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
137 | + id="index_thumbnail-preview" | ||
138 | + width="135" style="cursor: pointer"/> | ||
139 | + <else/> | ||
140 | + <img src="{:cmf_get_image_preview_url($post.index_thumbnail)}" | ||
141 | + id="index_thumbnail-preview" | ||
142 | + width="135" style="cursor: pointer"/> | ||
143 | + </if> | ||
144 | + </a> | ||
145 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
146 | + </div> | ||
147 | + <div style="margin-top:30px;"> | ||
148 | + <span class="form-required">图片参考尺寸:290*200</span> | ||
149 | + </div> | ||
150 | + </td> | ||
151 | + </tr> | ||
152 | + <tr> | ||
153 | + <th>列表页缩略图</th> | ||
128 | </tr> | 154 | </tr> |
129 | <tr> | 155 | <tr> |
130 | <td> | 156 | <td> |
@@ -144,6 +170,9 @@ | @@ -144,6 +170,9 @@ | ||
144 | </a> | 170 | </a> |
145 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 171 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
146 | </div> | 172 | </div> |
173 | + <div style="margin-top:30px;"> | ||
174 | + <span class="form-required">图片参考尺寸:380*380</span> | ||
175 | + </div> | ||
147 | </td> | 176 | </td> |
148 | </tr> | 177 | </tr> |
149 | <tr> | 178 | <tr> |
@@ -184,7 +213,12 @@ | @@ -184,7 +213,12 @@ | ||
184 | editorcontent.sync(); | 213 | editorcontent.sync(); |
185 | } catch (err) { | 214 | } catch (err) { |
186 | } | 215 | } |
187 | - | 216 | + //首页缩略图 |
217 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
218 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
219 | + $('#index_thumbnail').val(''); | ||
220 | + }); | ||
221 | + //列表页缩略图 | ||
188 | $('.btn-cancel-thumbnail').click(function () { | 222 | $('.btn-cancel-thumbnail').click(function () { |
189 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 223 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
190 | $('#thumbnail').val(''); | 224 | $('#thumbnail').val(''); |
@@ -106,7 +106,27 @@ | @@ -106,7 +106,27 @@ | ||
106 | <div class="col-md-3"> | 106 | <div class="col-md-3"> |
107 | <table class="table table-bordered"> | 107 | <table class="table table-bordered"> |
108 | <tr> | 108 | <tr> |
109 | - <th><b>缩略图</b></th> | 109 | + <th><b>首页缩略图</b></th> |
110 | + </tr> | ||
111 | + <tr> | ||
112 | + <td> | ||
113 | + <div style="text-align: center;"> | ||
114 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value=""> | ||
115 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
116 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
117 | + id="index_thumbnail-preview" | ||
118 | + width="135" style="cursor: pointer"/> | ||
119 | + </a> | ||
120 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
121 | + </div> | ||
122 | + <div style="margin-top:30px;"> | ||
123 | + <span class="form-required">图片参考尺寸:290*200</span> | ||
124 | + </div> | ||
125 | + </td> | ||
126 | + </tr> | ||
127 | + | ||
128 | + <tr> | ||
129 | + <th><b>列表页缩略图</b></th> | ||
110 | </tr> | 130 | </tr> |
111 | <tr> | 131 | <tr> |
112 | <td> | 132 | <td> |
@@ -119,6 +139,9 @@ | @@ -119,6 +139,9 @@ | ||
119 | </a> | 139 | </a> |
120 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 140 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
121 | </div> | 141 | </div> |
142 | + <div style="margin-top:30px;"> | ||
143 | + <span class="form-required">图片参考尺寸:648*648</span> | ||
144 | + </div> | ||
122 | </td> | 145 | </td> |
123 | </tr> | 146 | </tr> |
124 | <tr> | 147 | <tr> |
@@ -154,11 +177,16 @@ | @@ -154,11 +177,16 @@ | ||
154 | } catch (err) { | 177 | } catch (err) { |
155 | } | 178 | } |
156 | 179 | ||
180 | + //首页缩略图 | ||
181 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
182 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
183 | + $('#index_thumbnail').val(''); | ||
184 | + }); | ||
185 | + //列表页缩略图 | ||
157 | $('.btn-cancel-thumbnail').click(function () { | 186 | $('.btn-cancel-thumbnail').click(function () { |
158 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 187 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
159 | $('#thumbnail').val(''); | 188 | $('#thumbnail').val(''); |
160 | }); | 189 | }); |
161 | - | ||
162 | }); | 190 | }); |
163 | 191 | ||
164 | function doSelectCategory() { | 192 | function doSelectCategory() { |
@@ -124,7 +124,33 @@ | @@ -124,7 +124,33 @@ | ||
124 | <div class="col-md-3"> | 124 | <div class="col-md-3"> |
125 | <table class="table table-bordered"> | 125 | <table class="table table-bordered"> |
126 | <tr> | 126 | <tr> |
127 | - <th>缩略图</th> | 127 | + <th>首页缩略图</th> |
128 | + </tr> | ||
129 | + <tr> | ||
130 | + <td> | ||
131 | + <div style="text-align: center;"> | ||
132 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" | ||
133 | + value="{$post.index_thumbnail|default=''}"> | ||
134 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
135 | + <if condition="empty($post.index_thumbnail)"> | ||
136 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
137 | + id="index_thumbnail-preview" | ||
138 | + width="135" style="cursor: pointer"/> | ||
139 | + <else/> | ||
140 | + <img src="{:cmf_get_image_preview_url($post.index_thumbnail)}" | ||
141 | + id="index_thumbnail-preview" | ||
142 | + width="135" style="cursor: pointer"/> | ||
143 | + </if> | ||
144 | + </a> | ||
145 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
146 | + </div> | ||
147 | + <div style="margin-top:30px;"> | ||
148 | + <span class="form-required">图片参考尺寸:290*200</span> | ||
149 | + </div> | ||
150 | + </td> | ||
151 | + </tr> | ||
152 | + <tr> | ||
153 | + <th>列表页缩略图</th> | ||
128 | </tr> | 154 | </tr> |
129 | <tr> | 155 | <tr> |
130 | <td> | 156 | <td> |
@@ -144,6 +170,9 @@ | @@ -144,6 +170,9 @@ | ||
144 | </a> | 170 | </a> |
145 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 171 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
146 | </div> | 172 | </div> |
173 | + <div style="margin-top:30px;"> | ||
174 | + <span class="form-required">图片参考尺寸:648*648</span> | ||
175 | + </div> | ||
147 | </td> | 176 | </td> |
148 | </tr> | 177 | </tr> |
149 | <tr> | 178 | <tr> |
@@ -185,6 +214,12 @@ | @@ -185,6 +214,12 @@ | ||
185 | } catch (err) { | 214 | } catch (err) { |
186 | } | 215 | } |
187 | 216 | ||
217 | + //首页缩略图 | ||
218 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
219 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
220 | + $('#index_thumbnail').val(''); | ||
221 | + }); | ||
222 | + //列表页缩略图 | ||
188 | $('.btn-cancel-thumbnail').click(function () { | 223 | $('.btn-cancel-thumbnail').click(function () { |
189 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 224 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
190 | $('#thumbnail').val(''); | 225 | $('#thumbnail').val(''); |
@@ -106,7 +106,26 @@ | @@ -106,7 +106,26 @@ | ||
106 | <div class="col-md-3"> | 106 | <div class="col-md-3"> |
107 | <table class="table table-bordered"> | 107 | <table class="table table-bordered"> |
108 | <tr> | 108 | <tr> |
109 | - <th><b>缩略图</b></th> | 109 | + <th><b>首页缩略图</b></th> |
110 | + </tr> | ||
111 | + <tr> | ||
112 | + <td> | ||
113 | + <div style="text-align: center;"> | ||
114 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value=""> | ||
115 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
116 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
117 | + id="index_thumbnail-preview" | ||
118 | + width="135" style="cursor: pointer"/> | ||
119 | + </a> | ||
120 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
121 | + </div> | ||
122 | + <div style="margin-top:30px;"> | ||
123 | + <span class="form-required">图片参考尺寸:290*200</span> | ||
124 | + </div> | ||
125 | + </td> | ||
126 | + </tr> | ||
127 | + <tr> | ||
128 | + <th><b>列表页缩略图</b></th> | ||
110 | </tr> | 129 | </tr> |
111 | <tr> | 130 | <tr> |
112 | <td> | 131 | <td> |
@@ -119,6 +138,9 @@ | @@ -119,6 +138,9 @@ | ||
119 | </a> | 138 | </a> |
120 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 139 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
121 | </div> | 140 | </div> |
141 | + <div style="margin-top:30px;"> | ||
142 | + <span class="form-required">图片参考尺寸:480*480</span> | ||
143 | + </div> | ||
122 | </td> | 144 | </td> |
123 | </tr> | 145 | </tr> |
124 | <tr> | 146 | <tr> |
@@ -153,7 +175,12 @@ | @@ -153,7 +175,12 @@ | ||
153 | editorcontent.sync(); | 175 | editorcontent.sync(); |
154 | } catch (err) { | 176 | } catch (err) { |
155 | } | 177 | } |
156 | - | 178 | + //首页缩略图 |
179 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
180 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
181 | + $('#index_thumbnail').val(''); | ||
182 | + }); | ||
183 | + //列表页缩略图 | ||
157 | $('.btn-cancel-thumbnail').click(function () { | 184 | $('.btn-cancel-thumbnail').click(function () { |
158 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 185 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
159 | $('#thumbnail').val(''); | 186 | $('#thumbnail').val(''); |
@@ -124,7 +124,34 @@ | @@ -124,7 +124,34 @@ | ||
124 | <div class="col-md-3"> | 124 | <div class="col-md-3"> |
125 | <table class="table table-bordered"> | 125 | <table class="table table-bordered"> |
126 | <tr> | 126 | <tr> |
127 | - <th>缩略图</th> | 127 | + <th>首页缩略图</th> |
128 | + </tr> | ||
129 | + <tr> | ||
130 | + <td> | ||
131 | + <div style="text-align: center;"> | ||
132 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" | ||
133 | + value="{$post.index_thumbnail|default=''}"> | ||
134 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
135 | + <if condition="empty($post.index_thumbnail)"> | ||
136 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
137 | + id="index_thumbnail-preview" | ||
138 | + width="135" style="cursor: pointer"/> | ||
139 | + <else/> | ||
140 | + <img src="{:cmf_get_image_preview_url($post.index_thumbnail)}" | ||
141 | + id="index_thumbnail-preview" | ||
142 | + width="135" style="cursor: pointer"/> | ||
143 | + </if> | ||
144 | + </a> | ||
145 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
146 | + </div> | ||
147 | + <div style="margin-top:30px;"> | ||
148 | + <span class="form-required">图片参考尺寸:290*200</span> | ||
149 | + </div> | ||
150 | + </td> | ||
151 | + </tr> | ||
152 | + | ||
153 | + <tr> | ||
154 | + <th>列表页缩略图</th> | ||
128 | </tr> | 155 | </tr> |
129 | <tr> | 156 | <tr> |
130 | <td> | 157 | <td> |
@@ -144,6 +171,9 @@ | @@ -144,6 +171,9 @@ | ||
144 | </a> | 171 | </a> |
145 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 172 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
146 | </div> | 173 | </div> |
174 | + <div style="margin-top:30px;"> | ||
175 | + <span class="form-required">图片参考尺寸:480*480</span> | ||
176 | + </div> | ||
147 | </td> | 177 | </td> |
148 | </tr> | 178 | </tr> |
149 | <tr> | 179 | <tr> |
@@ -184,7 +214,12 @@ | @@ -184,7 +214,12 @@ | ||
184 | editorcontent.sync(); | 214 | editorcontent.sync(); |
185 | } catch (err) { | 215 | } catch (err) { |
186 | } | 216 | } |
187 | - | 217 | + //首页缩略图 |
218 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
219 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
220 | + $('#index_thumbnail').val(''); | ||
221 | + }); | ||
222 | + //列表页缩略图 | ||
188 | $('.btn-cancel-thumbnail').click(function () { | 223 | $('.btn-cancel-thumbnail').click(function () { |
189 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 224 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
190 | $('#thumbnail').val(''); | 225 | $('#thumbnail').val(''); |
@@ -106,7 +106,26 @@ | @@ -106,7 +106,26 @@ | ||
106 | <div class="col-md-3"> | 106 | <div class="col-md-3"> |
107 | <table class="table table-bordered"> | 107 | <table class="table table-bordered"> |
108 | <tr> | 108 | <tr> |
109 | - <th><b>缩略图</b></th> | 109 | + <th><b>首页缩略图</b></th> |
110 | + </tr> | ||
111 | + <tr> | ||
112 | + <td> | ||
113 | + <div style="text-align: center;"> | ||
114 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value=""> | ||
115 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
116 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
117 | + id="index_thumbnail-preview" | ||
118 | + width="135" style="cursor: pointer"/> | ||
119 | + </a> | ||
120 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
121 | + </div> | ||
122 | + <div style="margin-top:30px;"> | ||
123 | + <span class="form-required">图片参考尺寸:290*200</span> | ||
124 | + </div> | ||
125 | + </td> | ||
126 | + </tr> | ||
127 | + <tr> | ||
128 | + <th><b>列表页缩略图</b></th> | ||
110 | </tr> | 129 | </tr> |
111 | <tr> | 130 | <tr> |
112 | <td> | 131 | <td> |
@@ -119,6 +138,9 @@ | @@ -119,6 +138,9 @@ | ||
119 | </a> | 138 | </a> |
120 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 139 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
121 | </div> | 140 | </div> |
141 | + <div style="margin-top:30px;"> | ||
142 | + <span class="form-required">图片参考尺寸:648*648</span> | ||
143 | + </div> | ||
122 | </td> | 144 | </td> |
123 | </tr> | 145 | </tr> |
124 | <tr> | 146 | <tr> |
@@ -153,7 +175,12 @@ | @@ -153,7 +175,12 @@ | ||
153 | editorcontent.sync(); | 175 | editorcontent.sync(); |
154 | } catch (err) { | 176 | } catch (err) { |
155 | } | 177 | } |
156 | - | 178 | + //首页缩略图 |
179 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
180 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
181 | + $('#index_thumbnail').val(''); | ||
182 | + }); | ||
183 | + //列表页缩略图 | ||
157 | $('.btn-cancel-thumbnail').click(function () { | 184 | $('.btn-cancel-thumbnail').click(function () { |
158 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 185 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
159 | $('#thumbnail').val(''); | 186 | $('#thumbnail').val(''); |
@@ -124,7 +124,33 @@ | @@ -124,7 +124,33 @@ | ||
124 | <div class="col-md-3"> | 124 | <div class="col-md-3"> |
125 | <table class="table table-bordered"> | 125 | <table class="table table-bordered"> |
126 | <tr> | 126 | <tr> |
127 | - <th>缩略图</th> | 127 | + <th>首页缩略图</th> |
128 | + </tr> | ||
129 | + <tr> | ||
130 | + <td> | ||
131 | + <div style="text-align: center;"> | ||
132 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" | ||
133 | + value="{$post.index_thumbnail|default=''}"> | ||
134 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
135 | + <if condition="empty($post.index_thumbnail)"> | ||
136 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
137 | + id="index_thumbnail-preview" | ||
138 | + width="135" style="cursor: pointer"/> | ||
139 | + <else/> | ||
140 | + <img src="{:cmf_get_image_preview_url($post.index_thumbnail)}" | ||
141 | + id="index_thumbnail-preview" | ||
142 | + width="135" style="cursor: pointer"/> | ||
143 | + </if> | ||
144 | + </a> | ||
145 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
146 | + </div> | ||
147 | + <div style="margin-top:30px;"> | ||
148 | + <span class="form-required">图片参考尺寸:290*200</span> | ||
149 | + </div> | ||
150 | + </td> | ||
151 | + </tr> | ||
152 | + <tr> | ||
153 | + <th>列表页缩略图</th> | ||
128 | </tr> | 154 | </tr> |
129 | <tr> | 155 | <tr> |
130 | <td> | 156 | <td> |
@@ -144,6 +170,9 @@ | @@ -144,6 +170,9 @@ | ||
144 | </a> | 170 | </a> |
145 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 171 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
146 | </div> | 172 | </div> |
173 | + <div style="margin-top:30px;"> | ||
174 | + <span class="form-required">图片参考尺寸:648*648</span> | ||
175 | + </div> | ||
147 | </td> | 176 | </td> |
148 | </tr> | 177 | </tr> |
149 | <tr> | 178 | <tr> |
@@ -184,7 +213,12 @@ | @@ -184,7 +213,12 @@ | ||
184 | editorcontent.sync(); | 213 | editorcontent.sync(); |
185 | } catch (err) { | 214 | } catch (err) { |
186 | } | 215 | } |
187 | - | 216 | + //首页缩略图 |
217 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
218 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
219 | + $('#index_thumbnail').val(''); | ||
220 | + }); | ||
221 | + //列表页缩略图 | ||
188 | $('.btn-cancel-thumbnail').click(function () { | 222 | $('.btn-cancel-thumbnail').click(function () { |
189 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 223 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
190 | $('#thumbnail').val(''); | 224 | $('#thumbnail').val(''); |
@@ -90,7 +90,27 @@ | @@ -90,7 +90,27 @@ | ||
90 | <div class="col-md-3"> | 90 | <div class="col-md-3"> |
91 | <table class="table table-bordered"> | 91 | <table class="table table-bordered"> |
92 | <tr> | 92 | <tr> |
93 | - <th><b>缩略图</b><span class="form-required">*</span></th> | 93 | + <th><b>首页缩略图</b><span class="form-required">*</span></th> |
94 | + </tr> | ||
95 | + <tr> | ||
96 | + <td> | ||
97 | + <div style="text-align: center;"> | ||
98 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value=""> | ||
99 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
100 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
101 | + id="index_thumbnail-preview" | ||
102 | + width="135" style="cursor: pointer"/> | ||
103 | + </a> | ||
104 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
105 | + </div> | ||
106 | + <div style="margin-top:30px;"> | ||
107 | + <span class="form-required">图片参考尺寸:290*230</span> | ||
108 | + </div> | ||
109 | + </td> | ||
110 | + </tr> | ||
111 | + | ||
112 | + <tr> | ||
113 | + <th><b>列表页缩略图</b><span class="form-required">*</span></th> | ||
94 | </tr> | 114 | </tr> |
95 | <tr> | 115 | <tr> |
96 | <td> | 116 | <td> |
@@ -103,6 +123,9 @@ | @@ -103,6 +123,9 @@ | ||
103 | </a> | 123 | </a> |
104 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 124 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
105 | </div> | 125 | </div> |
126 | + <div style="margin-top:30px;"> | ||
127 | + <span class="form-required">图片参考尺寸:230*230</span> | ||
128 | + </div> | ||
106 | </td> | 129 | </td> |
107 | </tr> | 130 | </tr> |
108 | <tr> | 131 | <tr> |
@@ -137,7 +160,12 @@ | @@ -137,7 +160,12 @@ | ||
137 | editorcontent.sync(); | 160 | editorcontent.sync(); |
138 | } catch (err) { | 161 | } catch (err) { |
139 | } | 162 | } |
140 | - | 163 | + //首页缩略图 |
164 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
165 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
166 | + $('#index_thumbnail').val(''); | ||
167 | + }); | ||
168 | + //列表页缩略图 | ||
141 | $('.btn-cancel-thumbnail').click(function () { | 169 | $('.btn-cancel-thumbnail').click(function () { |
142 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 170 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
143 | $('#thumbnail').val(''); | 171 | $('#thumbnail').val(''); |
@@ -108,7 +108,34 @@ | @@ -108,7 +108,34 @@ | ||
108 | <div class="col-md-3"> | 108 | <div class="col-md-3"> |
109 | <table class="table table-bordered"> | 109 | <table class="table table-bordered"> |
110 | <tr> | 110 | <tr> |
111 | - <th>缩略图<span class="form-required">*</span></th> | 111 | + <th>首页缩略图<span class="form-required">*</span></th> |
112 | + </tr> | ||
113 | + <tr> | ||
114 | + <td> | ||
115 | + <div style="text-align: center;"> | ||
116 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" | ||
117 | + value="{$post.index_thumbnail|default=''}"> | ||
118 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
119 | + <if condition="empty($post.index_thumbnail)"> | ||
120 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
121 | + id="index_thumbnail-preview" | ||
122 | + width="135" style="cursor: pointer"/> | ||
123 | + <else/> | ||
124 | + <img src="{:cmf_get_image_preview_url($post.index_thumbnail)}" | ||
125 | + id="index_thumbnail-preview" | ||
126 | + width="135" style="cursor: pointer"/> | ||
127 | + </if> | ||
128 | + </a> | ||
129 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
130 | + </div> | ||
131 | + <div style="margin-top:30px;"> | ||
132 | + <span class="form-required">图片参考尺寸:290*230</span> | ||
133 | + </div> | ||
134 | + </td> | ||
135 | + </tr> | ||
136 | + | ||
137 | + <tr> | ||
138 | + <th>列表页缩略图<span class="form-required">*</span></th> | ||
112 | </tr> | 139 | </tr> |
113 | <tr> | 140 | <tr> |
114 | <td> | 141 | <td> |
@@ -128,6 +155,9 @@ | @@ -128,6 +155,9 @@ | ||
128 | </a> | 155 | </a> |
129 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 156 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
130 | </div> | 157 | </div> |
158 | + <div style="margin-top:30px;"> | ||
159 | + <span class="form-required">图片参考尺寸:230*230</span> | ||
160 | + </div> | ||
131 | </td> | 161 | </td> |
132 | </tr> | 162 | </tr> |
133 | <tr> | 163 | <tr> |
@@ -168,7 +198,12 @@ | @@ -168,7 +198,12 @@ | ||
168 | editorcontent.sync(); | 198 | editorcontent.sync(); |
169 | } catch (err) { | 199 | } catch (err) { |
170 | } | 200 | } |
171 | - | 201 | + //首页缩略图 |
202 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
203 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
204 | + $('#index_thumbnail').val(''); | ||
205 | + }); | ||
206 | + //列表页缩略图 | ||
172 | $('.btn-cancel-thumbnail').click(function () { | 207 | $('.btn-cancel-thumbnail').click(function () { |
173 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 208 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
174 | $('#thumbnail').val(''); | 209 | $('#thumbnail').val(''); |
@@ -90,7 +90,27 @@ | @@ -90,7 +90,27 @@ | ||
90 | <div class="col-md-3"> | 90 | <div class="col-md-3"> |
91 | <table class="table table-bordered"> | 91 | <table class="table table-bordered"> |
92 | <tr> | 92 | <tr> |
93 | - <th><b>缩略图</b><span class="form-required">*</span></th> | 93 | + <th><b>首页缩略图</b><span class="form-required">*</span></th> |
94 | + </tr> | ||
95 | + <tr> | ||
96 | + <td> | ||
97 | + <div style="text-align: center;"> | ||
98 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value=""> | ||
99 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
100 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
101 | + id="index_thumbnail-preview" | ||
102 | + width="135" style="cursor: pointer"/> | ||
103 | + </a> | ||
104 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
105 | + </div> | ||
106 | + <div style="margin-top:30px;"> | ||
107 | + <span class="form-required">图片参考尺寸:290*230</span> | ||
108 | + </div> | ||
109 | + </td> | ||
110 | + </tr> | ||
111 | + | ||
112 | + <tr> | ||
113 | + <th><b>列表页缩略图</b><span class="form-required">*</span></th> | ||
94 | </tr> | 114 | </tr> |
95 | <tr> | 115 | <tr> |
96 | <td> | 116 | <td> |
@@ -103,6 +123,9 @@ | @@ -103,6 +123,9 @@ | ||
103 | </a> | 123 | </a> |
104 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 124 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
105 | </div> | 125 | </div> |
126 | + <div style="margin-top:30px;"> | ||
127 | + <span class="form-required">图片参考尺寸:230*230</span> | ||
128 | + </div> | ||
106 | </td> | 129 | </td> |
107 | </tr> | 130 | </tr> |
108 | <tr> | 131 | <tr> |
@@ -137,7 +160,12 @@ | @@ -137,7 +160,12 @@ | ||
137 | editorcontent.sync(); | 160 | editorcontent.sync(); |
138 | } catch (err) { | 161 | } catch (err) { |
139 | } | 162 | } |
140 | - | 163 | + //首页缩略图 |
164 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
165 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
166 | + $('#index_thumbnail').val(''); | ||
167 | + }); | ||
168 | + //列表页缩略图 | ||
141 | $('.btn-cancel-thumbnail').click(function () { | 169 | $('.btn-cancel-thumbnail').click(function () { |
142 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 170 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
143 | $('#thumbnail').val(''); | 171 | $('#thumbnail').val(''); |
@@ -108,7 +108,34 @@ | @@ -108,7 +108,34 @@ | ||
108 | <div class="col-md-3"> | 108 | <div class="col-md-3"> |
109 | <table class="table table-bordered"> | 109 | <table class="table table-bordered"> |
110 | <tr> | 110 | <tr> |
111 | - <th>缩略图<span class="form-required">*</span></th> | 111 | + <th>首页缩略图<span class="form-required">*</span></th> |
112 | + </tr> | ||
113 | + <tr> | ||
114 | + <td> | ||
115 | + <div style="text-align: center;"> | ||
116 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" | ||
117 | + value="{$post.index_thumbnail|default=''}"> | ||
118 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
119 | + <if condition="empty($post.index_thumbnail)"> | ||
120 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
121 | + id="index_thumbnail-preview" | ||
122 | + width="135" style="cursor: pointer"/> | ||
123 | + <else/> | ||
124 | + <img src="{:cmf_get_image_preview_url($post.index_thumbnail)}" | ||
125 | + id="index_thumbnail-preview" | ||
126 | + width="135" style="cursor: pointer"/> | ||
127 | + </if> | ||
128 | + </a> | ||
129 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
130 | + </div> | ||
131 | + <div style="margin-top:30px;"> | ||
132 | + <span class="form-required">图片参考尺寸:290*230</span> | ||
133 | + </div> | ||
134 | + </td> | ||
135 | + </tr> | ||
136 | + | ||
137 | + <tr> | ||
138 | + <th>列表页缩略图<span class="form-required">*</span></th> | ||
112 | </tr> | 139 | </tr> |
113 | <tr> | 140 | <tr> |
114 | <td> | 141 | <td> |
@@ -128,6 +155,9 @@ | @@ -128,6 +155,9 @@ | ||
128 | </a> | 155 | </a> |
129 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 156 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
130 | </div> | 157 | </div> |
158 | + <div style="margin-top:30px;"> | ||
159 | + <span class="form-required">图片参考尺寸:230*230</span> | ||
160 | + </div> | ||
131 | </td> | 161 | </td> |
132 | </tr> | 162 | </tr> |
133 | <tr> | 163 | <tr> |
@@ -168,7 +198,12 @@ | @@ -168,7 +198,12 @@ | ||
168 | editorcontent.sync(); | 198 | editorcontent.sync(); |
169 | } catch (err) { | 199 | } catch (err) { |
170 | } | 200 | } |
171 | - | 201 | + //首页缩略图 |
202 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
203 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
204 | + $('#index_thumbnail').val(''); | ||
205 | + }); | ||
206 | + //列表页缩略图 | ||
172 | $('.btn-cancel-thumbnail').click(function () { | 207 | $('.btn-cancel-thumbnail').click(function () { |
173 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 208 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
174 | $('#thumbnail').val(''); | 209 | $('#thumbnail').val(''); |
@@ -90,7 +90,27 @@ | @@ -90,7 +90,27 @@ | ||
90 | <div class="col-md-3"> | 90 | <div class="col-md-3"> |
91 | <table class="table table-bordered"> | 91 | <table class="table table-bordered"> |
92 | <tr> | 92 | <tr> |
93 | - <th><b>缩略图</b><span class="form-required">*</span></th> | 93 | + <th><b>首页缩略图</b><span class="form-required">*</span></th> |
94 | + </tr> | ||
95 | + <tr> | ||
96 | + <td> | ||
97 | + <div style="text-align: center;"> | ||
98 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value=""> | ||
99 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
100 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
101 | + id="index_thumbnail-preview" | ||
102 | + width="135" style="cursor: pointer"/> | ||
103 | + </a> | ||
104 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
105 | + </div> | ||
106 | + <div style="margin-top:30px;"> | ||
107 | + <span class="form-required">图片参考尺寸:290*230</span> | ||
108 | + </div> | ||
109 | + </td> | ||
110 | + </tr> | ||
111 | + | ||
112 | + <tr> | ||
113 | + <th><b>列表页缩略图</b><span class="form-required">*</span></th> | ||
94 | </tr> | 114 | </tr> |
95 | <tr> | 115 | <tr> |
96 | <td> | 116 | <td> |
@@ -103,6 +123,9 @@ | @@ -103,6 +123,9 @@ | ||
103 | </a> | 123 | </a> |
104 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 124 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
105 | </div> | 125 | </div> |
126 | + <div style="margin-top:30px;"> | ||
127 | + <span class="form-required">图片参考尺寸:230*230</span> | ||
128 | + </div> | ||
106 | </td> | 129 | </td> |
107 | </tr> | 130 | </tr> |
108 | <tr> | 131 | <tr> |
@@ -137,7 +160,12 @@ | @@ -137,7 +160,12 @@ | ||
137 | editorcontent.sync(); | 160 | editorcontent.sync(); |
138 | } catch (err) { | 161 | } catch (err) { |
139 | } | 162 | } |
140 | - | 163 | + //首页缩略图 |
164 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
165 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
166 | + $('#index_thumbnail').val(''); | ||
167 | + }); | ||
168 | + //列表页缩略图 | ||
141 | $('.btn-cancel-thumbnail').click(function () { | 169 | $('.btn-cancel-thumbnail').click(function () { |
142 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 170 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
143 | $('#thumbnail').val(''); | 171 | $('#thumbnail').val(''); |
@@ -108,7 +108,34 @@ | @@ -108,7 +108,34 @@ | ||
108 | <div class="col-md-3"> | 108 | <div class="col-md-3"> |
109 | <table class="table table-bordered"> | 109 | <table class="table table-bordered"> |
110 | <tr> | 110 | <tr> |
111 | - <th>缩略图<span class="form-required">*</span></th> | 111 | + <th>首页缩略图<span class="form-required">*</span></th> |
112 | + </tr> | ||
113 | + <tr> | ||
114 | + <td> | ||
115 | + <div style="text-align: center;"> | ||
116 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" | ||
117 | + value="{$post.index_thumbnail|default=''}"> | ||
118 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
119 | + <if condition="empty($post.index_thumbnail)"> | ||
120 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
121 | + id="index_thumbnail-preview" | ||
122 | + width="135" style="cursor: pointer"/> | ||
123 | + <else/> | ||
124 | + <img src="{:cmf_get_image_preview_url($post.index_thumbnail)}" | ||
125 | + id="index_thumbnail-preview" | ||
126 | + width="135" style="cursor: pointer"/> | ||
127 | + </if> | ||
128 | + </a> | ||
129 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
130 | + </div> | ||
131 | + <div style="margin-top:30px;"> | ||
132 | + <span class="form-required">图片参考尺寸:290*230</span> | ||
133 | + </div> | ||
134 | + </td> | ||
135 | + </tr> | ||
136 | + | ||
137 | + <tr> | ||
138 | + <th>列表页缩略图<span class="form-required">*</span></th> | ||
112 | </tr> | 139 | </tr> |
113 | <tr> | 140 | <tr> |
114 | <td> | 141 | <td> |
@@ -128,6 +155,9 @@ | @@ -128,6 +155,9 @@ | ||
128 | </a> | 155 | </a> |
129 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 156 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
130 | </div> | 157 | </div> |
158 | + <div style="margin-top:30px;"> | ||
159 | + <span class="form-required">图片参考尺寸:230*230</span> | ||
160 | + </div> | ||
131 | </td> | 161 | </td> |
132 | </tr> | 162 | </tr> |
133 | <tr> | 163 | <tr> |
@@ -168,7 +198,12 @@ | @@ -168,7 +198,12 @@ | ||
168 | editorcontent.sync(); | 198 | editorcontent.sync(); |
169 | } catch (err) { | 199 | } catch (err) { |
170 | } | 200 | } |
171 | - | 201 | + //首页缩略图 |
202 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
203 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
204 | + $('#index_thumbnail').val(''); | ||
205 | + }); | ||
206 | + //列表页缩略图 | ||
172 | $('.btn-cancel-thumbnail').click(function () { | 207 | $('.btn-cancel-thumbnail').click(function () { |
173 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 208 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
174 | $('#thumbnail').val(''); | 209 | $('#thumbnail').val(''); |
@@ -108,7 +108,27 @@ | @@ -108,7 +108,27 @@ | ||
108 | <div class="col-md-3"> | 108 | <div class="col-md-3"> |
109 | <table class="table table-bordered"> | 109 | <table class="table table-bordered"> |
110 | <tr> | 110 | <tr> |
111 | - <th><b>缩略图</b><span class="form-required">*</span></th> | 111 | + <th><b>首页缩略图</b><span class="form-required">*</span></th> |
112 | + </tr> | ||
113 | + <tr> | ||
114 | + <td> | ||
115 | + <div style="text-align: center;"> | ||
116 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value=""> | ||
117 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
118 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
119 | + id="index_thumbnail-preview" | ||
120 | + width="135" style="cursor: pointer"/> | ||
121 | + </a> | ||
122 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
123 | + </div> | ||
124 | + <div style="margin-top:30px;"> | ||
125 | + <span class="form-required">图片参考尺寸:290*230</span> | ||
126 | + </div> | ||
127 | + </td> | ||
128 | + </tr> | ||
129 | + | ||
130 | + <tr> | ||
131 | + <th><b>列表页缩略图</b><span class="form-required">*</span></th> | ||
112 | </tr> | 132 | </tr> |
113 | <tr> | 133 | <tr> |
114 | <td> | 134 | <td> |
@@ -121,6 +141,9 @@ | @@ -121,6 +141,9 @@ | ||
121 | </a> | 141 | </a> |
122 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 142 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
123 | </div> | 143 | </div> |
144 | + <div style="margin-top:30px;"> | ||
145 | + <span class="form-required">图片参考尺寸:386*303</span> | ||
146 | + </div> | ||
124 | </td> | 147 | </td> |
125 | </tr> | 148 | </tr> |
126 | <tr> | 149 | <tr> |
@@ -155,7 +178,12 @@ | @@ -155,7 +178,12 @@ | ||
155 | editorcontent.sync(); | 178 | editorcontent.sync(); |
156 | } catch (err) { | 179 | } catch (err) { |
157 | } | 180 | } |
158 | - | 181 | + //首页缩略图 |
182 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
183 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
184 | + $('#index_thumbnail').val(''); | ||
185 | + }); | ||
186 | + //列表页缩略图 | ||
159 | $('.btn-cancel-thumbnail').click(function () { | 187 | $('.btn-cancel-thumbnail').click(function () { |
160 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 188 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
161 | $('#thumbnail').val(''); | 189 | $('#thumbnail').val(''); |
@@ -126,7 +126,34 @@ | @@ -126,7 +126,34 @@ | ||
126 | <div class="col-md-3"> | 126 | <div class="col-md-3"> |
127 | <table class="table table-bordered"> | 127 | <table class="table table-bordered"> |
128 | <tr> | 128 | <tr> |
129 | - <th>缩略图<span class="form-required">*</span></th> | 129 | + <th>首页缩略图<span class="form-required">*</span></th> |
130 | + </tr> | ||
131 | + <tr> | ||
132 | + <td> | ||
133 | + <div style="text-align: center;"> | ||
134 | + <input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" | ||
135 | + value="{$post.index_thumbnail|default=''}"> | ||
136 | + <a href="javascript:uploadOneImage('图片上传','#index_thumbnail');"> | ||
137 | + <if condition="empty($post.index_thumbnail)"> | ||
138 | + <img src="__TMPL__/public/assets/images/default-thumbnail.png" | ||
139 | + id="index_thumbnail-preview" | ||
140 | + width="135" style="cursor: pointer"/> | ||
141 | + <else/> | ||
142 | + <img src="{:cmf_get_image_preview_url($post.index_thumbnail)}" | ||
143 | + id="index_thumbnail-preview" | ||
144 | + width="135" style="cursor: pointer"/> | ||
145 | + </if> | ||
146 | + </a> | ||
147 | + <input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片"> | ||
148 | + </div> | ||
149 | + <div style="margin-top:30px;"> | ||
150 | + <span class="form-required">图片参考尺寸:290*230</span> | ||
151 | + </div> | ||
152 | + </td> | ||
153 | + </tr> | ||
154 | + | ||
155 | + <tr> | ||
156 | + <th>列表页缩略图<span class="form-required">*</span></th> | ||
130 | </tr> | 157 | </tr> |
131 | <tr> | 158 | <tr> |
132 | <td> | 159 | <td> |
@@ -146,6 +173,9 @@ | @@ -146,6 +173,9 @@ | ||
146 | </a> | 173 | </a> |
147 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> | 174 | <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片"> |
148 | </div> | 175 | </div> |
176 | + <div style="margin-top:30px;"> | ||
177 | + <span class="form-required">图片参考尺寸:386*303</span> | ||
178 | + </div> | ||
149 | </td> | 179 | </td> |
150 | </tr> | 180 | </tr> |
151 | <tr> | 181 | <tr> |
@@ -186,7 +216,12 @@ | @@ -186,7 +216,12 @@ | ||
186 | editorcontent.sync(); | 216 | editorcontent.sync(); |
187 | } catch (err) { | 217 | } catch (err) { |
188 | } | 218 | } |
189 | - | 219 | + //首页缩略图 |
220 | + $('.btn-cancel-index_thumbnail').click(function () { | ||
221 | + $('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | ||
222 | + $('#index_thumbnail').val(''); | ||
223 | + }); | ||
224 | + //列表页缩略图 | ||
190 | $('.btn-cancel-thumbnail').click(function () { | 225 | $('.btn-cancel-thumbnail').click(function () { |
191 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); | 226 | $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png'); |
192 | $('#thumbnail').val(''); | 227 | $('#thumbnail').val(''); |
@@ -57,6 +57,14 @@ | @@ -57,6 +57,14 @@ | ||
57 | </td> | 57 | </td> |
58 | </tr> | 58 | </tr> |
59 | <tr> | 59 | <tr> |
60 | + <th>是否显示<span class="form-required">*</span></th> | ||
61 | + <td> | ||
62 | + 否:<input class="" type="radio" name="post[is_show]" checked value="0"/> | ||
63 | + | ||
64 | + 是:<input class="" type="radio" name="post[is_show]" value="1"/> | ||
65 | + </td> | ||
66 | + </tr> | ||
67 | + <tr> | ||
60 | <th>简介<span class="form-required">*</span></th> | 68 | <th>简介<span class="form-required">*</span></th> |
61 | <td> | 69 | <td> |
62 | <textarea class="form-control" required name="post[post_excerpt]" style="height: 50px;" | 70 | <textarea class="form-control" required name="post[post_excerpt]" style="height: 50px;" |
@@ -61,6 +61,14 @@ | @@ -61,6 +61,14 @@ | ||
61 | </td> | 61 | </td> |
62 | </tr> | 62 | </tr> |
63 | <tr> | 63 | <tr> |
64 | + <th>是否显示<span class="form-required">*</span></th> | ||
65 | + <td> | ||
66 | + 否:<input class="" type="radio" name="post[is_show]" value="0" <eq name="0" value="$post.is_show">checked</eq>/> | ||
67 | + | ||
68 | + 是:<input class="" type="radio" name="post[is_show]" value="1" <eq name="1" value="$post.is_show">checked</eq>/> | ||
69 | + </td> | ||
70 | + </tr> | ||
71 | + <tr> | ||
64 | <th>简介<span class="form-required">*</span></th> | 72 | <th>简介<span class="form-required">*</span></th> |
65 | <td> | 73 | <td> |
66 | <textarea class="form-control" required name="post[post_excerpt]" style="height: 50px;" | 74 | <textarea class="form-control" required name="post[post_excerpt]" style="height: 50px;" |
@@ -18,9 +18,12 @@ | @@ -18,9 +18,12 @@ | ||
18 | max-width: 1200px; | 18 | max-width: 1200px; |
19 | } | 19 | } |
20 | .Spot_main .swiper-slide-next .Spot_top img { | 20 | .Spot_main .swiper-slide-next .Spot_top img { |
21 | - width: 625px; | 21 | + width: 648px; |
22 | height: 648px; | 22 | height: 648px; |
23 | } | 23 | } |
24 | + .Spot_item, .swiper-slide-prev, .swiper-slide-prev .Spot_item img { | ||
25 | + max-width: 648px; | ||
26 | + } | ||
24 | </style> | 27 | </style> |
25 | </head> | 28 | </head> |
26 | 29 | ||
@@ -242,23 +245,6 @@ | @@ -242,23 +245,6 @@ | ||
242 | </div> | 245 | </div> |
243 | </div> | 246 | </div> |
244 | </volist> | 247 | </volist> |
245 | - <volist name="res_hwtt" id="vo"> | ||
246 | - <div class="swiper-slide"> | ||
247 | - <div class="Spot_item"> | ||
248 | - <a href="/portal/enjoy/getEnjoyDetail?id={$vo.id}"> | ||
249 | - <div class="Spot_top main_top"><img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""></div> | ||
250 | - <div class="Spot_bottom"> | ||
251 | - <div class="Spot_bottom_title"> | ||
252 | - {$vo.post_title} | ||
253 | - </div> | ||
254 | - <div class="Spot_bottom_main main_left"> | ||
255 | - {$vo.post_excerpt} | ||
256 | - </div> | ||
257 | - </div> | ||
258 | - </a> | ||
259 | - </div> | ||
260 | - </div> | ||
261 | - </volist> | ||
262 | </div> | 248 | </div> |
263 | </div> | 249 | </div> |
264 | </div> | 250 | </div> |
@@ -22,10 +22,46 @@ | @@ -22,10 +22,46 @@ | ||
22 | .swiper-container6 .swiper-wrapper{ | 22 | .swiper-container6 .swiper-wrapper{ |
23 | transition-duration:1.5s !important; | 23 | transition-duration:1.5s !important; |
24 | } | 24 | } |
25 | + .mask { | ||
26 | + width: 100%; | ||
27 | + height: 100%; | ||
28 | + position: fixed; | ||
29 | + top: 0; | ||
30 | + z-index: 9999; | ||
31 | + background-color: rgba(0, 0, 0, 0.5); | ||
32 | + display: none; | ||
33 | + } | ||
34 | + .mask_video { | ||
35 | + position: relative; | ||
36 | + top: 50%; | ||
37 | + left: 50%; | ||
38 | + width: 800px; | ||
39 | + height: 500px; | ||
40 | + background-color: black; | ||
41 | + transform: translate(-50%, -50%); | ||
42 | + } | ||
43 | + .mask_video video { | ||
44 | + margin: auto; | ||
45 | + display: block; | ||
46 | + height: 100%; | ||
47 | + } | ||
48 | + .mask_video img { | ||
49 | + cursor: pointer; | ||
50 | + position: absolute; | ||
51 | + right: -100px; | ||
52 | + top: -30px; | ||
53 | + } | ||
25 | </style> | 54 | </style> |
26 | </head> | 55 | </head> |
27 | 56 | ||
28 | <body> | 57 | <body> |
58 | +<!-- 弹框视频 --> | ||
59 | +<div class="mask" id="mask"> | ||
60 | + <div class="mask_video" > | ||
61 | + <img id="nos" src="__TMPL__/public/assets/starImg/nos.png" alt=""> | ||
62 | + <video id="video2" src="http://xingqiu.qiniu.brotop.cn/portal/20190513/79713d2ec80f05fcaea36c685494c86b.mp4?e=1558360608&token=UjVH2DxMRL57-Lx4-JFaELCh7icERqJ1NxWf6smj:BgYec03rGPUNK7FcCld3qgrLMk0=&attname=Greenland+-+Rough.+Real+Remote..mp4"></video> | ||
63 | + </div> | ||
64 | +</div> | ||
29 | <!-- 侧边 --> | 65 | <!-- 侧边 --> |
30 | <div class="index_sidebar"> | 66 | <div class="index_sidebar"> |
31 | <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1309572580&site=qq&menu=yes"> | 67 | <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1309572580&site=qq&menu=yes"> |
@@ -49,9 +85,9 @@ | @@ -49,9 +85,9 @@ | ||
49 | <!--<div class="swiper-pagination">--> | 85 | <!--<div class="swiper-pagination">--> |
50 | 86 | ||
51 | <!--</div>--> | 87 | <!--</div>--> |
52 | - | ||
53 | </div> | 88 | </div> |
54 | 89 | ||
90 | + | ||
55 | <!-- 首页主体内容 --> | 91 | <!-- 首页主体内容 --> |
56 | <div id="star_main"> | 92 | <div id="star_main"> |
57 | <!-- 星球奇境 --> | 93 | <!-- 星球奇境 --> |
@@ -164,13 +200,15 @@ | @@ -164,13 +200,15 @@ | ||
164 | <!-- 图片 --> | 200 | <!-- 图片 --> |
165 | <notempty name="res_month.January"> | 201 | <notempty name="res_month.January"> |
166 | <div class="reverse_Imgs"> | 202 | <div class="reverse_Imgs"> |
167 | - <img src="{:cmf_get_image_url($res_month.January.thumbnail)}"/> | 203 | + <img src="{:cmf_get_image_url($res_month.January.index_thumbnail)}"/> |
168 | </div> | 204 | </div> |
169 | <!-- 图片下方文字 --> | 205 | <!-- 图片下方文字 --> |
170 | - <div class="img_bottom"> | ||
171 | - <p>{$res_month.January.post_title}</p> | ||
172 | - <p>{$res_month.January.category_name}</p> | ||
173 | - </div> | 206 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.January.id}"> |
207 | + <div class="img_bottom"> | ||
208 | + <p>{$res_month.January.post_title}</p> | ||
209 | + <p>{$res_month.January.category_name}</p> | ||
210 | + </div> | ||
211 | + </a> | ||
174 | <else/> | 212 | <else/> |
175 | <div class="reverse_Imgs"> | 213 | <div class="reverse_Imgs"> |
176 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 214 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -199,13 +237,15 @@ | @@ -199,13 +237,15 @@ | ||
199 | <!-- 图片 --> | 237 | <!-- 图片 --> |
200 | <notempty name="res_month.February"> | 238 | <notempty name="res_month.February"> |
201 | <div class="reverse_Imgs"> | 239 | <div class="reverse_Imgs"> |
202 | - <img src="{:cmf_get_image_url($res_month.February.thumbnail)}"/> | 240 | + <img src="{:cmf_get_image_url($res_month.February.index_thumbnail)}"/> |
203 | </div> | 241 | </div> |
204 | <!-- 图片下方文字 --> | 242 | <!-- 图片下方文字 --> |
205 | - <div class="img_bottom"> | ||
206 | - <p>{$res_month.February.post_title}</p> | ||
207 | - <p>{$res_month.February.category_name}</p> | ||
208 | - </div> | 243 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.February.id}"> |
244 | + <div class="img_bottom"> | ||
245 | + <p>{$res_month.February.post_title}</p> | ||
246 | + <p>{$res_month.February.category_name}</p> | ||
247 | + </div> | ||
248 | + </a> | ||
209 | <else/> | 249 | <else/> |
210 | <div class="reverse_Imgs"> | 250 | <div class="reverse_Imgs"> |
211 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 251 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -235,13 +275,15 @@ | @@ -235,13 +275,15 @@ | ||
235 | <!-- 图片 --> | 275 | <!-- 图片 --> |
236 | <notempty name="res_month.March"> | 276 | <notempty name="res_month.March"> |
237 | <div class="reverse_Imgs"> | 277 | <div class="reverse_Imgs"> |
238 | - <img src="{:cmf_get_image_url($res_month.March.thumbnail)}"/> | 278 | + <img src="{:cmf_get_image_url($res_month.March.index_thumbnail)}"/> |
239 | </div> | 279 | </div> |
240 | <!-- 图片下方文字 --> | 280 | <!-- 图片下方文字 --> |
241 | - <div class="img_bottom"> | ||
242 | - <p>{$res_month.March.post_title}</p> | ||
243 | - <p>{$res_month.March.category_name}</p> | ||
244 | - </div> | 281 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.March.id}"> |
282 | + <div class="img_bottom"> | ||
283 | + <p>{$res_month.March.post_title}</p> | ||
284 | + <p>{$res_month.March.category_name}</p> | ||
285 | + </div> | ||
286 | + </a> | ||
245 | <else/> | 287 | <else/> |
246 | <div class="reverse_Imgs"> | 288 | <div class="reverse_Imgs"> |
247 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 289 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -272,13 +314,15 @@ | @@ -272,13 +314,15 @@ | ||
272 | <!-- 图片 --> | 314 | <!-- 图片 --> |
273 | <notempty name="res_month.April"> | 315 | <notempty name="res_month.April"> |
274 | <div class="reverse_Imgs"> | 316 | <div class="reverse_Imgs"> |
275 | - <img src="{:cmf_get_image_url($res_month.April.thumbnail)}"/> | 317 | + <img src="{:cmf_get_image_url($res_month.April.index_thumbnail)}"/> |
276 | </div> | 318 | </div> |
277 | <!-- 图片下方文字 --> | 319 | <!-- 图片下方文字 --> |
278 | - <div class="img_bottom"> | ||
279 | - <p>{$res_month.April.post_title}</p> | ||
280 | - <p>{$res_month.April.category_name}</p> | ||
281 | - </div> | 320 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.April.id}"> |
321 | + <div class="img_bottom"> | ||
322 | + <p>{$res_month.April.post_title}</p> | ||
323 | + <p>{$res_month.April.category_name}</p> | ||
324 | + </div> | ||
325 | + </a> | ||
282 | <else/> | 326 | <else/> |
283 | <div class="reverse_Imgs"> | 327 | <div class="reverse_Imgs"> |
284 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 328 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -308,13 +352,15 @@ | @@ -308,13 +352,15 @@ | ||
308 | <!-- 图片 --> | 352 | <!-- 图片 --> |
309 | <notempty name="res_month.May"> | 353 | <notempty name="res_month.May"> |
310 | <div class="reverse_Imgs"> | 354 | <div class="reverse_Imgs"> |
311 | - <img src="{:cmf_get_image_url($res_month.May.thumbnail)}"/> | 355 | + <img src="{:cmf_get_image_url($res_month.May.index_thumbnail)}"/> |
312 | </div> | 356 | </div> |
313 | <!-- 图片下方文字 --> | 357 | <!-- 图片下方文字 --> |
314 | - <div class="img_bottom"> | ||
315 | - <p>{$res_month.May.post_title}</p> | ||
316 | - <p>{$res_month.May.category_name}</p> | ||
317 | - </div> | 358 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.May.id}"> |
359 | + <div class="img_bottom"> | ||
360 | + <p>{$res_month.May.post_title}</p> | ||
361 | + <p>{$res_month.May.category_name}</p> | ||
362 | + </div> | ||
363 | + </a> | ||
318 | <else/> | 364 | <else/> |
319 | <div class="reverse_Imgs"> | 365 | <div class="reverse_Imgs"> |
320 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 366 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -343,13 +389,15 @@ | @@ -343,13 +389,15 @@ | ||
343 | <!-- 图片 --> | 389 | <!-- 图片 --> |
344 | <notempty name="res_month.June"> | 390 | <notempty name="res_month.June"> |
345 | <div class="reverse_Imgs"> | 391 | <div class="reverse_Imgs"> |
346 | - <img src="{:cmf_get_image_url($res_month.June.thumbnail)}"/> | 392 | + <img src="{:cmf_get_image_url($res_month.June.index_thumbnail)}"/> |
347 | </div> | 393 | </div> |
348 | <!-- 图片下方文字 --> | 394 | <!-- 图片下方文字 --> |
349 | - <div class="img_bottom"> | ||
350 | - <p>{$res_month.June.post_title}</p> | ||
351 | - <p>{$res_month.June.category_name}</p> | ||
352 | - </div> | 395 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.June.id}"> |
396 | + <div class="img_bottom"> | ||
397 | + <p>{$res_month.June.post_title}</p> | ||
398 | + <p>{$res_month.June.category_name}</p> | ||
399 | + </div> | ||
400 | + </a> | ||
353 | <else/> | 401 | <else/> |
354 | <div class="reverse_Imgs"> | 402 | <div class="reverse_Imgs"> |
355 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 403 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -380,13 +428,15 @@ | @@ -380,13 +428,15 @@ | ||
380 | <!-- 图片 --> | 428 | <!-- 图片 --> |
381 | <notempty name="res_month.July"> | 429 | <notempty name="res_month.July"> |
382 | <div class="reverse_Imgs"> | 430 | <div class="reverse_Imgs"> |
383 | - <img src="{:cmf_get_image_url($res_month.July.thumbnail)}"/> | 431 | + <img src="{:cmf_get_image_url($res_month.July.index_thumbnail)}"/> |
384 | </div> | 432 | </div> |
385 | <!-- 图片下方文字 --> | 433 | <!-- 图片下方文字 --> |
386 | - <div class="img_bottom"> | ||
387 | - <p>{$res_month.July.post_title}</p> | ||
388 | - <p>{$res_month.July.category_name}</p> | ||
389 | - </div> | 434 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.July.id}"> |
435 | + <div class="img_bottom"> | ||
436 | + <p>{$res_month.July.post_title}</p> | ||
437 | + <p>{$res_month.July.category_name}</p> | ||
438 | + </div> | ||
439 | + </a> | ||
390 | <else/> | 440 | <else/> |
391 | <div class="reverse_Imgs"> | 441 | <div class="reverse_Imgs"> |
392 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 442 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -417,13 +467,15 @@ | @@ -417,13 +467,15 @@ | ||
417 | <!-- 图片 --> | 467 | <!-- 图片 --> |
418 | <notempty name="res_month.August"> | 468 | <notempty name="res_month.August"> |
419 | <div class="reverse_Imgs"> | 469 | <div class="reverse_Imgs"> |
420 | - <img src="{:cmf_get_image_url($res_month.August.thumbnail)}"/> | 470 | + <img src="{:cmf_get_image_url($res_month.August.index_thumbnail)}"/> |
421 | </div> | 471 | </div> |
422 | <!-- 图片下方文字 --> | 472 | <!-- 图片下方文字 --> |
423 | - <div class="img_bottom"> | ||
424 | - <p>{$res_month.August.post_title}</p> | ||
425 | - <p>{$res_month.August.category_name}</p> | ||
426 | - </div> | 473 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.August.id}"> |
474 | + <div class="img_bottom"> | ||
475 | + <p>{$res_month.August.post_title}</p> | ||
476 | + <p>{$res_month.August.category_name}</p> | ||
477 | + </div> | ||
478 | + </a> | ||
427 | <else/> | 479 | <else/> |
428 | <div class="reverse_Imgs"> | 480 | <div class="reverse_Imgs"> |
429 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 481 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -454,13 +506,15 @@ | @@ -454,13 +506,15 @@ | ||
454 | <!-- 图片 --> | 506 | <!-- 图片 --> |
455 | <notempty name="res_month.September"> | 507 | <notempty name="res_month.September"> |
456 | <div class="reverse_Imgs"> | 508 | <div class="reverse_Imgs"> |
457 | - <img src="{:cmf_get_image_url($res_month.September.thumbnail)}"/> | 509 | + <img src="{:cmf_get_image_url($res_month.September.index_thumbnail)}"/> |
458 | </div> | 510 | </div> |
459 | <!-- 图片下方文字 --> | 511 | <!-- 图片下方文字 --> |
460 | - <div class="img_bottom"> | ||
461 | - <p>{$res_month.September.post_title}</p> | ||
462 | - <p>{$res_month.September.category_name}</p> | ||
463 | - </div> | 512 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.September.id}"> |
513 | + <div class="img_bottom"> | ||
514 | + <p>{$res_month.September.post_title}</p> | ||
515 | + <p>{$res_month.September.category_name}</p> | ||
516 | + </div> | ||
517 | + </a> | ||
464 | <else/> | 518 | <else/> |
465 | <div class="reverse_Imgs"> | 519 | <div class="reverse_Imgs"> |
466 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 520 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -489,13 +543,15 @@ | @@ -489,13 +543,15 @@ | ||
489 | <!-- 图片 --> | 543 | <!-- 图片 --> |
490 | <notempty name="res_month.October"> | 544 | <notempty name="res_month.October"> |
491 | <div class="reverse_Imgs"> | 545 | <div class="reverse_Imgs"> |
492 | - <img src="{:cmf_get_image_url($res_month.October.thumbnail)}"/> | 546 | + <img src="{:cmf_get_image_url($res_month.October.index_thumbnail)}"/> |
493 | </div> | 547 | </div> |
494 | <!-- 图片下方文字 --> | 548 | <!-- 图片下方文字 --> |
495 | - <div class="img_bottom"> | ||
496 | - <p>{$res_month.October.post_title}</p> | ||
497 | - <p>{$res_month.October.category_name}</p> | ||
498 | - </div> | 549 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.October.id}"> |
550 | + <div class="img_bottom"> | ||
551 | + <p>{$res_month.October.post_title}</p> | ||
552 | + <p>{$res_month.October.category_name}</p> | ||
553 | + </div> | ||
554 | + </a> | ||
499 | <else/> | 555 | <else/> |
500 | <div class="reverse_Imgs"> | 556 | <div class="reverse_Imgs"> |
501 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 557 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -526,13 +582,15 @@ | @@ -526,13 +582,15 @@ | ||
526 | <!-- 图片 --> | 582 | <!-- 图片 --> |
527 | <notempty name="res_month.November"> | 583 | <notempty name="res_month.November"> |
528 | <div class="reverse_Imgs"> | 584 | <div class="reverse_Imgs"> |
529 | - <img src="{:cmf_get_image_url($res_month.November.thumbnail)}"/> | 585 | + <img src="{:cmf_get_image_url($res_month.November.index_thumbnail)}"/> |
530 | </div> | 586 | </div> |
531 | <!-- 图片下方文字 --> | 587 | <!-- 图片下方文字 --> |
532 | - <div class="img_bottom"> | ||
533 | - <p>{$res_month.November.post_title}</p> | ||
534 | - <p>{$res_month.November.category_name}</p> | ||
535 | - </div> | 588 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.November.id}"> |
589 | + <div class="img_bottom"> | ||
590 | + <p>{$res_month.November.post_title}</p> | ||
591 | + <p>{$res_month.November.category_name}</p> | ||
592 | + </div> | ||
593 | + </a> | ||
536 | <else/> | 594 | <else/> |
537 | <div class="reverse_Imgs"> | 595 | <div class="reverse_Imgs"> |
538 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 596 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -563,13 +621,15 @@ | @@ -563,13 +621,15 @@ | ||
563 | <!-- 图片 --> | 621 | <!-- 图片 --> |
564 | <notempty name="res_month.December"> | 622 | <notempty name="res_month.December"> |
565 | <div class="reverse_Imgs"> | 623 | <div class="reverse_Imgs"> |
566 | - <img src="{:cmf_get_image_url($res_month.December.thumbnail)}"/> | 624 | + <img src="{:cmf_get_image_url($res_month.December.index_thumbnail)}"/> |
567 | </div> | 625 | </div> |
568 | <!-- 图片下方文字 --> | 626 | <!-- 图片下方文字 --> |
569 | - <div class="img_bottom"> | ||
570 | - <p>{$res_month.December.post_title}</p> | ||
571 | - <p>{$res_month.December.category_name}</p> | ||
572 | - </div> | 627 | + <a href="/portal/enjoy/getEnjoyDetail?id={$res_month.December.id}"> |
628 | + <div class="img_bottom"> | ||
629 | + <p>{$res_month.December.post_title}</p> | ||
630 | + <p>{$res_month.December.category_name}</p> | ||
631 | + </div> | ||
632 | + </a> | ||
573 | <else/> | 633 | <else/> |
574 | <div class="reverse_Imgs"> | 634 | <div class="reverse_Imgs"> |
575 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> | 635 | <img src="__TMPL__/public/assets/starImg/aicon_28.png"/> |
@@ -600,10 +660,10 @@ | @@ -600,10 +660,10 @@ | ||
600 | <!-- 视频 --> | 660 | <!-- 视频 --> |
601 | <div class="star_video"> | 661 | <div class="star_video"> |
602 | <notempty name="res_xqyy"> | 662 | <notempty name="res_xqyy"> |
603 | - <video id="video" width="100%" height="675" src="{:cmf_get_file_download_url($res_xqyy.video)}"></video> | 663 | + <video id="video" width="100%" height="675" src="{:cmf_get_file_download_url($res_xqyy.video)}" controlsList="nodownload"></video> |
604 | <img class="show_in_poster" src="{:cmf_get_image_url($res_xqyy.thumbnail)}" alt=""> | 664 | <img class="show_in_poster" src="{:cmf_get_image_url($res_xqyy.thumbnail)}" alt=""> |
605 | <else/> | 665 | <else/> |
606 | - <video id="video" width="100%" height="675" src="__TMPL__//public/assets/starImg/video.mp4"></video> | 666 | + <video id="video" width="100%" height="675" src="__TMPL__//public/assets/starImg/video.mp4" controlsList="nodownload"></video> |
607 | <img class="show_in_poster" src="__TMPL__/public/assets/starImg/bicon_34.png" alt=""> | 667 | <img class="show_in_poster" src="__TMPL__/public/assets/starImg/bicon_34.png" alt=""> |
608 | </notempty> | 668 | </notempty> |
609 | <img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> | 669 | <img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> |
@@ -611,7 +671,6 @@ | @@ -611,7 +671,6 @@ | ||
611 | <!-- 人物简介 --> | 671 | <!-- 人物简介 --> |
612 | <notempty name="res_mxft"> | 672 | <notempty name="res_mxft"> |
613 | <!-- 标题 --> | 673 | <!-- 标题 --> |
614 | - | ||
615 | <div class="star_personal clearfix star_ming"> | 674 | <div class="star_personal clearfix star_ming"> |
616 | <div class="star_title clearfix"> | 675 | <div class="star_title clearfix"> |
617 | <span> | 676 | <span> |
@@ -643,6 +702,10 @@ | @@ -643,6 +702,10 @@ | ||
643 | </div> | 702 | </div> |
644 | </div> | 703 | </div> |
645 | </div> | 704 | </div> |
705 | + <!-- 更多按钮 --> | ||
706 | + <div class="star_gall_more"> | ||
707 | + <a href="/portal/region/getMoreStar">MORE+</a> | ||
708 | + </div> | ||
646 | </notempty> | 709 | </notempty> |
647 | </div> | 710 | </div> |
648 | </div> | 711 | </div> |
@@ -662,7 +725,9 @@ | @@ -662,7 +725,9 @@ | ||
662 | <ul class="swiper-wrapper"> | 725 | <ul class="swiper-wrapper"> |
663 | <volist name="res_xyhl" id="vo"> | 726 | <volist name="res_xyhl" id="vo"> |
664 | <li class="swiper-slide"> | 727 | <li class="swiper-slide"> |
665 | - <img class="swiper-slide slide-image" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 728 | + <a href="/portal/region/getGalleryDetail?id={$vo.id}"> |
729 | + <img class="swiper-slide slide-image" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
730 | + </a> | ||
666 | </li> | 731 | </li> |
667 | </volist> | 732 | </volist> |
668 | </ul> | 733 | </ul> |
@@ -697,7 +762,7 @@ | @@ -697,7 +762,7 @@ | ||
697 | <volist name="res_xttj" id="vo"> | 762 | <volist name="res_xttj" id="vo"> |
698 | <li class="swiper-slide scout_box"> | 763 | <li class="swiper-slide scout_box"> |
699 | <div class="scout_image"> | 764 | <div class="scout_image"> |
700 | - <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 765 | + <img src="{:cmf_get_image_url($vo.index_thumbnail)}" alt=""> |
701 | </div> | 766 | </div> |
702 | <empty name="vo.place"> | 767 | <empty name="vo.place"> |
703 | <a href="/portal/scout/getSceneryDetail?id={$vo.id}"> | 768 | <a href="/portal/scout/getSceneryDetail?id={$vo.id}"> |
@@ -720,6 +785,10 @@ | @@ -720,6 +785,10 @@ | ||
720 | 785 | ||
721 | </div> | 786 | </div> |
722 | </div> | 787 | </div> |
788 | + <!-- 更多按钮 --> | ||
789 | + <div class="star_gall_more"> | ||
790 | + <a href="/portal/scout/index">MORE+</a> | ||
791 | + </div> | ||
723 | </div> | 792 | </div> |
724 | </div> | 793 | </div> |
725 | <!-- 星际活动 --> | 794 | <!-- 星际活动 --> |
@@ -752,6 +821,30 @@ | @@ -752,6 +821,30 @@ | ||
752 | <script src="__TMPL__/public/assets/js/swiper4/swiper.min.js"></script> | 821 | <script src="__TMPL__/public/assets/js/swiper4/swiper.min.js"></script> |
753 | <script src="__TMPL__/public/assets/js/public.js"></script> | 822 | <script src="__TMPL__/public/assets/js/public.js"></script> |
754 | <script> | 823 | <script> |
824 | + // 弹框视频 | ||
825 | + var users = $('#users').val(); | ||
826 | + if(users == 1){ | ||
827 | + $('.mask').css('display','block'); | ||
828 | + var video2 = document.getElementById("video2"); //获取ID | ||
829 | + console.log(video2); | ||
830 | + $(function() { | ||
831 | + if (video2.paused) { //判读是否播放 | ||
832 | +// video2.paused = false; | ||
833 | + video2.play(); //没有就播放 | ||
834 | + } | ||
835 | + }); | ||
836 | + var nos = document.getElementById("nos"); | ||
837 | + var mask = document.getElementById("mask"); | ||
838 | + | ||
839 | + nos.onclick = function nos() { | ||
840 | + mask.style.display = "none"; | ||
841 | + video2.pause(); | ||
842 | + }; | ||
843 | + } | ||
844 | + // 禁止下载 | ||
845 | + $('video').bind('contextmenu', function() { | ||
846 | + return false; | ||
847 | + }); | ||
755 | // 点击返回头部 | 848 | // 点击返回头部 |
756 | $(window).scroll(function() { | 849 | $(window).scroll(function() { |
757 | if ($(window).scrollTop() > 2000) { | 850 | if ($(window).scrollTop() > 2000) { |
@@ -833,10 +926,11 @@ | @@ -833,10 +926,11 @@ | ||
833 | 926 | ||
834 | function bofang() { | 927 | function bofang() { |
835 | video.play(); | 928 | video.play(); |
836 | - $('#video').attr('controls', 'controls') | 929 | + $('#video').attr('controls', 'controls'); |
837 | $('.show_in_banner2').hide(); | 930 | $('.show_in_banner2').hide(); |
838 | $('.show_in_poster').hide(); | 931 | $('.show_in_poster').hide(); |
839 | } | 932 | } |
933 | + | ||
840 | </script> | 934 | </script> |
841 | </body> | 935 | </body> |
842 | 936 |
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | <notempty name="user.avatar"> | 25 | <notempty name="user.avatar"> |
26 | <img src="{:cmf_get_image_url($user.avatar)}" alt=""> | 26 | <img src="{:cmf_get_image_url($user.avatar)}" alt=""> |
27 | <else/> | 27 | <else/> |
28 | - <img src="__TMPL__/public/assets/starImg/aicon_83.png" alt=""> | 28 | + <img src="__TMPL__/public/assets/starImg/aicon_82.png" alt=""> |
29 | </notempty> | 29 | </notempty> |
30 | </div> | 30 | </div> |
31 | <div class="updateInfo"> | 31 | <div class="updateInfo"> |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | <notempty name="user.user_nickname"> | 33 | <notempty name="user.user_nickname"> |
34 | <input type="text" value="{$user.user_nickname}" id="nickname"/> | 34 | <input type="text" value="{$user.user_nickname}" id="nickname"/> |
35 | <else/> | 35 | <else/> |
36 | - <input type="text" value="随风漂泊" id="nickname"/> | 36 | + <input type="text" value="" id="nickname"/> |
37 | </notempty> | 37 | </notempty> |
38 | </div> | 38 | </div> |
39 | <!--編輯頭像--> | 39 | <!--編輯頭像--> |
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | <script> | 53 | <script> |
54 | $(function(){ | 54 | $(function(){ |
55 | $('.save_info').click(function(){ | 55 | $('.save_info').click(function(){ |
56 | - var nickname = $('#nickname').val(); | 56 | + var nickname = $.trim($('#nickname').val()); |
57 | $.ajax({ | 57 | $.ajax({ |
58 | type: 'POST', | 58 | type: 'POST', |
59 | url: "/portal/login/updateNickname", | 59 | url: "/portal/login/updateNickname", |
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | <notempty name="user.avatar"> | 25 | <notempty name="user.avatar"> |
26 | <img src="{:cmf_get_image_url($user.avatar)}" alt=""> | 26 | <img src="{:cmf_get_image_url($user.avatar)}" alt=""> |
27 | <else/> | 27 | <else/> |
28 | - <img src="__TMPL__/public/assets/starImg/aicon_83.png" alt=""> | 28 | + <img src="__TMPL__/public/assets/starImg/aicon_82.png" alt=""> |
29 | </notempty> | 29 | </notempty> |
30 | </div> | 30 | </div> |
31 | <!--編輯頭像--> | 31 | <!--編輯頭像--> |
@@ -51,15 +51,18 @@ | @@ -51,15 +51,18 @@ | ||
51 | spaceBetween: 10, | 51 | spaceBetween: 10, |
52 | slidesPerView: 4, | 52 | slidesPerView: 4, |
53 | freeMode: true, | 53 | freeMode: true, |
54 | + loop:true, | ||
54 | watchSlidesVisibility: true, | 55 | watchSlidesVisibility: true, |
55 | watchSlidesProgress: true, | 56 | watchSlidesProgress: true, |
56 | }); | 57 | }); |
57 | var galleryTop = new Swiper('.gallery-top', { | 58 | var galleryTop = new Swiper('.gallery-top', { |
58 | spaceBetween: 10, | 59 | spaceBetween: 10, |
60 | + loop:true, | ||
59 | navigation: { | 61 | navigation: { |
60 | nextEl: '.swiper-button-next8', | 62 | nextEl: '.swiper-button-next8', |
61 | prevEl: '.swiper-button-prev8', | 63 | prevEl: '.swiper-button-prev8', |
62 | }, | 64 | }, |
65 | + | ||
63 | thumbs: { | 66 | thumbs: { |
64 | swiper: galleryThumbs | 67 | swiper: galleryThumbs |
65 | } | 68 | } |
@@ -15,11 +15,11 @@ | @@ -15,11 +15,11 @@ | ||
15 | <include file="public@header"/> | 15 | <include file="public@header"/> |
16 | <div class="happy_gallery"> | 16 | <div class="happy_gallery"> |
17 | <!-- banner --> | 17 | <!-- banner --> |
18 | - <div class="happy_gallery_banner"> | ||
19 | - <volist name="coverImg" id="vo"> | ||
20 | - <img src="{:cmf_get_image_url($vo.image)}" alt=""> | ||
21 | - </volist> | ||
22 | - </div> | 18 | + <!--<div class="happy_gallery_banner">--> |
19 | + <!--<volist name="coverImg" id="vo">--> | ||
20 | + <!--<img src="{:cmf_get_image_url($vo.image)}" alt="">--> | ||
21 | + <!--</volist>--> | ||
22 | + <!--</div>--> | ||
23 | <!-- 内容 --> | 23 | <!-- 内容 --> |
24 | <div class="happy_gallery_con"> | 24 | <div class="happy_gallery_con"> |
25 | <!-- 顶部标题 --> | 25 | <!-- 顶部标题 --> |
@@ -9,6 +9,13 @@ | @@ -9,6 +9,13 @@ | ||
9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap4.0.css"> | 9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap4.0.css"> |
10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> | 10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> |
11 | <link rel="stylesheet" href="__TMPL__/public/assets/css/audio.css"> | 11 | <link rel="stylesheet" href="__TMPL__/public/assets/css/audio.css"> |
12 | + <style> | ||
13 | + .right_audio{ | ||
14 | + width:800px; | ||
15 | + height: 400px; | ||
16 | + float: left; | ||
17 | + } | ||
18 | + </style> | ||
12 | </head> | 19 | </head> |
13 | 20 | ||
14 | <body> | 21 | <body> |
@@ -25,7 +32,7 @@ | @@ -25,7 +32,7 @@ | ||
25 | <div> | 32 | <div> |
26 | <!-- 内容 --> | 33 | <!-- 内容 --> |
27 | <div class="show_INMain_con2_2 "> | 34 | <div class="show_INMain_con2_2 "> |
28 | - <volist name="res['data']" id="vo"> | 35 | + <volist name="res['data']" id="vo" offset="0" length="1"> |
29 | <div class="show_index_con2Txt clearfix"> | 36 | <div class="show_index_con2Txt clearfix"> |
30 | <a href="/portal/star/getStoryDetail?id={$vo.id}"> | 37 | <a href="/portal/star/getStoryDetail?id={$vo.id}"> |
31 | <!-- 左侧图片 --> | 38 | <!-- 左侧图片 --> |
@@ -46,6 +53,161 @@ | @@ -46,6 +53,161 @@ | ||
46 | </div> | 53 | </div> |
47 | </volist> | 54 | </volist> |
48 | 55 | ||
56 | + <volist name="res['data']" id="vo" offset="1" length="1"> | ||
57 | + <div class="show_index_con2Txt clearfix"> | ||
58 | + <div class="right_audio"> | ||
59 | + <!-- 文字 --> | ||
60 | + <div class="show_index_con2Txt2"> | ||
61 | + {$vo.excerpt} | ||
62 | + </div> | ||
63 | + <!-- 进度条 --> | ||
64 | + <div class="show_index_progress"> | ||
65 | + <notempty name="vo.audio"> | ||
66 | + <audio src="{:cmf_get_file_download_url($vo.audio)}"></audio> | ||
67 | + <else/> | ||
68 | + <audio src="http://link.hhtjim.com/163/442869240.mp3"></audio> | ||
69 | + </notempty> | ||
70 | + </div> | ||
71 | + </div> | ||
72 | + <a href="/portal/star/getStoryDetail?id={$vo.id}" style="float: left"> | ||
73 | + <!-- 左侧图片 --> | ||
74 | + <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
75 | + </a> | ||
76 | + </div> | ||
77 | + </volist> | ||
78 | + | ||
79 | + <volist name="res['data']" id="vo" offset="2" length="1"> | ||
80 | + <div class="show_index_con2Txt clearfix"> | ||
81 | + <a href="/portal/star/getStoryDetail?id={$vo.id}"> | ||
82 | + <!-- 左侧图片 --> | ||
83 | + <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
84 | + </a> | ||
85 | + <!-- 文字 --> | ||
86 | + <div class="show_index_con2Txt2"> | ||
87 | + {$vo.excerpt} | ||
88 | + </div> | ||
89 | + <!-- 进度条 --> | ||
90 | + <div class="show_index_progress"> | ||
91 | + <notempty name="vo.audio"> | ||
92 | + <audio src="{:cmf_get_file_download_url($vo.audio)}"></audio> | ||
93 | + <else/> | ||
94 | + <audio src="http://link.hhtjim.com/163/442869240.mp3"></audio> | ||
95 | + </notempty> | ||
96 | + </div> | ||
97 | + </div> | ||
98 | + </volist> | ||
99 | + | ||
100 | + <volist name="res['data']" id="vo" offset="3" length="1"> | ||
101 | + <div class="show_index_con2Txt clearfix"> | ||
102 | + <div class="right_audio"> | ||
103 | + <!-- 文字 --> | ||
104 | + <div class="show_index_con2Txt2"> | ||
105 | + {$vo.excerpt} | ||
106 | + </div> | ||
107 | + <!-- 进度条 --> | ||
108 | + <div class="show_index_progress"> | ||
109 | + <notempty name="vo.audio"> | ||
110 | + <audio src="{:cmf_get_file_download_url($vo.audio)}"></audio> | ||
111 | + <else/> | ||
112 | + <audio src="http://link.hhtjim.com/163/442869240.mp3"></audio> | ||
113 | + </notempty> | ||
114 | + </div> | ||
115 | + </div> | ||
116 | + <a href="/portal/star/getStoryDetail?id={$vo.id}" style="float: left"> | ||
117 | + <!-- 左侧图片 --> | ||
118 | + <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
119 | + </a> | ||
120 | + </div> | ||
121 | + </volist> | ||
122 | + | ||
123 | + <volist name="res['data']" id="vo" offset="4" length="1"> | ||
124 | + <div class="show_index_con2Txt clearfix"> | ||
125 | + <a href="/portal/star/getStoryDetail?id={$vo.id}"> | ||
126 | + <!-- 左侧图片 --> | ||
127 | + <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
128 | + </a> | ||
129 | + <!-- 文字 --> | ||
130 | + <div class="show_index_con2Txt2"> | ||
131 | + {$vo.excerpt} | ||
132 | + </div> | ||
133 | + <!-- 进度条 --> | ||
134 | + <div class="show_index_progress"> | ||
135 | + <notempty name="vo.audio"> | ||
136 | + <audio src="{:cmf_get_file_download_url($vo.audio)}"></audio> | ||
137 | + <else/> | ||
138 | + <audio src="http://link.hhtjim.com/163/442869240.mp3"></audio> | ||
139 | + </notempty> | ||
140 | + </div> | ||
141 | + </div> | ||
142 | + </volist> | ||
143 | + | ||
144 | + <volist name="res['data']" id="vo" offset="5" length="1"> | ||
145 | + <div class="show_index_con2Txt clearfix"> | ||
146 | + <div class="right_audio"> | ||
147 | + <!-- 文字 --> | ||
148 | + <div class="show_index_con2Txt2"> | ||
149 | + {$vo.excerpt} | ||
150 | + </div> | ||
151 | + <!-- 进度条 --> | ||
152 | + <div class="show_index_progress"> | ||
153 | + <notempty name="vo.audio"> | ||
154 | + <audio src="{:cmf_get_file_download_url($vo.audio)}"></audio> | ||
155 | + <else/> | ||
156 | + <audio src="http://link.hhtjim.com/163/442869240.mp3"></audio> | ||
157 | + </notempty> | ||
158 | + </div> | ||
159 | + </div> | ||
160 | + <a href="/portal/star/getStoryDetail?id={$vo.id}" style="float: left"> | ||
161 | + <!-- 左侧图片 --> | ||
162 | + <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
163 | + </a> | ||
164 | + </div> | ||
165 | + </volist> | ||
166 | + | ||
167 | + <volist name="res['data']" id="vo" offset="6" length="1"> | ||
168 | + <div class="show_index_con2Txt clearfix"> | ||
169 | + <a href="/portal/star/getStoryDetail?id={$vo.id}"> | ||
170 | + <!-- 左侧图片 --> | ||
171 | + <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
172 | + </a> | ||
173 | + <!-- 文字 --> | ||
174 | + <div class="show_index_con2Txt2"> | ||
175 | + {$vo.excerpt} | ||
176 | + </div> | ||
177 | + <!-- 进度条 --> | ||
178 | + <div class="show_index_progress"> | ||
179 | + <notempty name="vo.audio"> | ||
180 | + <audio src="{:cmf_get_file_download_url($vo.audio)}"></audio> | ||
181 | + <else/> | ||
182 | + <audio src="http://link.hhtjim.com/163/442869240.mp3"></audio> | ||
183 | + </notempty> | ||
184 | + </div> | ||
185 | + </div> | ||
186 | + </volist> | ||
187 | + | ||
188 | + <volist name="res['data']" id="vo" offset="7" length="1"> | ||
189 | + <div class="show_index_con2Txt clearfix"> | ||
190 | + <div class="right_audio"> | ||
191 | + <!-- 文字 --> | ||
192 | + <div class="show_index_con2Txt2"> | ||
193 | + {$vo.excerpt} | ||
194 | + </div> | ||
195 | + <!-- 进度条 --> | ||
196 | + <div class="show_index_progress"> | ||
197 | + <notempty name="vo.audio"> | ||
198 | + <audio src="{:cmf_get_file_download_url($vo.audio)}"></audio> | ||
199 | + <else/> | ||
200 | + <audio src="http://link.hhtjim.com/163/442869240.mp3"></audio> | ||
201 | + </notempty> | ||
202 | + </div> | ||
203 | + </div> | ||
204 | + <a href="/portal/star/getStoryDetail?id={$vo.id}" style="float: left"> | ||
205 | + <!-- 左侧图片 --> | ||
206 | + <img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
207 | + </a> | ||
208 | + </div> | ||
209 | + </volist> | ||
210 | + | ||
49 | </div> | 211 | </div> |
50 | <!--分页--> | 212 | <!--分页--> |
51 | <div class="pagination"> | 213 | <div class="pagination"> |
@@ -8,6 +8,17 @@ | @@ -8,6 +8,17 @@ | ||
8 | <title>星球影院更多</title> | 8 | <title>星球影院更多</title> |
9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> | 9 | <link rel="stylesheet" href="__TMPL__/public/assets/css/show.css"> |
10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/mask.css"> | 10 | <link rel="stylesheet" href="__TMPL__/public/assets/css/mask.css"> |
11 | + <style> | ||
12 | + video::-internal-media-controls-download-button { | ||
13 | + display: none; | ||
14 | + } | ||
15 | + video::-webkit-media-controls-enclosure { | ||
16 | + overflow: hidden; | ||
17 | + } | ||
18 | + video::-webkit-media-controls-panel { | ||
19 | + width: calc(100% + 30px); | ||
20 | + } | ||
21 | + </style> | ||
11 | </head> | 22 | </head> |
12 | 23 | ||
13 | <body> | 24 | <body> |
@@ -19,7 +30,7 @@ | @@ -19,7 +30,7 @@ | ||
19 | <!-- 视频 --> | 30 | <!-- 视频 --> |
20 | <div class="show_9_video"> | 31 | <div class="show_9_video"> |
21 | <img class="video_poster iop" src="" alt=""> | 32 | <img class="video_poster iop" src="" alt=""> |
22 | - <video id="video" width="100%" height="426" src=""></video> | 33 | + <video id="video" width="100%" height="426" src="" controlsList="nodownload"></video> |
23 | <img class="play_button" onclick="bofang()" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> | 34 | <img class="play_button" onclick="bofang()" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> |
24 | <div class="video_box"></div> | 35 | <div class="video_box"></div> |
25 | </div> | 36 | </div> |
@@ -93,6 +104,33 @@ | @@ -93,6 +104,33 @@ | ||
93 | <script> | 104 | <script> |
94 | // 星域秀场视频 | 105 | // 星域秀场视频 |
95 | $(function() { | 106 | $(function() { |
107 | + //禁止下载 | ||
108 | + $('video').bind('contextmenu', function() { | ||
109 | + return false; | ||
110 | + }); | ||
111 | + | ||
112 | + //监听播放时间 | ||
113 | + var video = document.getElementById('video'); | ||
114 | + | ||
115 | + //使用事件监听方式捕捉事件 | ||
116 | + video.addEventListener("timeupdate", function() { | ||
117 | + var timeDisplay; | ||
118 | +//用秒数来显示当前播放进度 | ||
119 | + timeDisplay = Math.floor(video.currentTime); | ||
120 | + console.log(Math.floor(video.currentTime)); | ||
121 | + video.addEventListener('play', function() { | ||
122 | + video.currentTime = 0; | ||
123 | + }); | ||
124 | +//当视频播放到 15s的时候做处理 | ||
125 | + | ||
126 | + if (timeDisplay >= 5) { | ||
127 | + video.addEventListener('play', function() { | ||
128 | + video.currentTime = 0; | ||
129 | + }), | ||
130 | + video_mask('1111'); | ||
131 | + video.pause(); | ||
132 | + } | ||
133 | + }, false); | ||
96 | //默认第一个视频 | 134 | //默认第一个视频 |
97 | switch_video(0); | 135 | switch_video(0); |
98 | var value = $('#cityName').val(); | 136 | var value = $('#cityName').val(); |
@@ -55,9 +55,9 @@ | @@ -55,9 +55,9 @@ | ||
55 | <!-- banner视频 --> | 55 | <!-- banner视频 --> |
56 | <div class="show_index_banner"> | 56 | <div class="show_index_banner"> |
57 | <notempty name="res_xqyy"> | 57 | <notempty name="res_xqyy"> |
58 | - <video id="video" autoplay="autoplay" controls width="100%" height="660" src="{:cmf_get_file_download_url($res_xqyy.video)}"></video> | 58 | + <video id="video" autoplay="autoplay" controls width="100%" height="660" src="{:cmf_get_file_download_url($res_xqyy.video)}" controlsList="nodownload"></video> |
59 | <else/> | 59 | <else/> |
60 | - <video id="video" autoplay="autoplay" controls width="100%" height="660" src="__TMPL__/public/assets/starImg/video.mp4"></video> | 60 | + <video id="video" autoplay="autoplay" controls width="100%" height="660" src="__TMPL__/public/assets/starImg/video.mp4" controlsList="nodownload"></video> |
61 | </notempty> | 61 | </notempty> |
62 | <!-- poster="__TMPL__/public/assets/starImg/aicon_01.png" --> | 62 | <!-- poster="__TMPL__/public/assets/starImg/aicon_01.png" --> |
63 | <!-- <img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> --> | 63 | <!-- <img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> --> |
@@ -169,7 +169,9 @@ | @@ -169,7 +169,9 @@ | ||
169 | <ul class="swiper-wrapper"> | 169 | <ul class="swiper-wrapper"> |
170 | <volist name="res_xyhl" id="vo"> | 170 | <volist name="res_xyhl" id="vo"> |
171 | <li class="swiper-slide"> | 171 | <li class="swiper-slide"> |
172 | - <img class="swiper-slide slide-image" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 172 | + <a href="/portal/region/getGalleryDetail?id={$vo.id}"> |
173 | + <img class="swiper-slide slide-image" src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | ||
174 | + </a> | ||
173 | </li> | 175 | </li> |
174 | </volist> | 176 | </volist> |
175 | </ul> | 177 | </ul> |
@@ -290,6 +292,10 @@ | @@ -290,6 +292,10 @@ | ||
290 | $('.swiper-button-prev2').addClass('swiper-button-disabled2'); | 292 | $('.swiper-button-prev2').addClass('swiper-button-disabled2'); |
291 | } | 293 | } |
292 | }); | 294 | }); |
295 | + //禁止下载 | ||
296 | + $('video').bind('contextmenu', function() { | ||
297 | + return false; | ||
298 | + }); | ||
293 | // 轮播图 | 299 | // 轮播图 |
294 | $('.hl_index span:first-child').addClass('first'); | 300 | $('.hl_index span:first-child').addClass('first'); |
295 | $('.swiper-button-next2').click(function() { | 301 | $('.swiper-button-next2').click(function() { |
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | <div class="container"> | 15 | <div class="container"> |
16 | <div class="wares clearfix"> | 16 | <div class="wares clearfix"> |
17 | <div class="wares_left fl"> | 17 | <div class="wares_left fl"> |
18 | - <img src="{:cmf_get_image_url($res.thumbnail)}" alt=""> | 18 | + <img src="{:cmf_get_image_url($res.image_url)}" alt=""> |
19 | </div> | 19 | </div> |
20 | <div class="wares_right fr"> | 20 | <div class="wares_right fr"> |
21 | <div class="wares_right_title">{$res.post_title}</div> | 21 | <div class="wares_right_title">{$res.post_title}</div> |
@@ -66,7 +66,7 @@ | @@ -66,7 +66,7 @@ | ||
66 | </li> | 66 | </li> |
67 | </ul> | 67 | </ul> |
68 | <!-- 文字介绍 --> | 68 | <!-- 文字介绍 --> |
69 | - <p class="happy_house_rightTxt">{$res.post_excerpt}</p> | 69 | + <div class="happy_house_rightTxt">{$res.post_content}</div> |
70 | </div> | 70 | </div> |
71 | </div> | 71 | </div> |
72 | <!-- 评论 --> | 72 | <!-- 评论 --> |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | <!-- 第一部分 --> | 33 | <!-- 第一部分 --> |
34 | <div class="happy_beauty_con_1"> | 34 | <div class="happy_beauty_con_1"> |
35 | <div class="happy_beauty_con_1_box"> | 35 | <div class="happy_beauty_con_1_box"> |
36 | - <volist name="res['data']" id="vo" offset="0" lengt="4"> | 36 | + <volist name="image" id="vo" offset="0" lengt="4"> |
37 | <div class="happy_beauty_con_1top"> | 37 | <div class="happy_beauty_con_1top"> |
38 | <div class="happy_beauty_con_1topimg1"> | 38 | <div class="happy_beauty_con_1topimg1"> |
39 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 39 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | </div> | 56 | </div> |
57 | <div class="happy_beauty_conTab"> | 57 | <div class="happy_beauty_conTab"> |
58 | <ul class="clearfix"> | 58 | <ul class="clearfix"> |
59 | - <volist name="res['data']" id="vo" offset="0" lengt="4"> | 59 | + <volist name="image" id="vo" offset="0" lengt="4"> |
60 | <li> | 60 | <li> |
61 | <div class="happy_beauty_conTabImg"> | 61 | <div class="happy_beauty_conTabImg"> |
62 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> | 62 | <img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""> |
@@ -57,6 +57,7 @@ main { | @@ -57,6 +57,7 @@ main { | ||
57 | .Spot_English_name p { | 57 | .Spot_English_name p { |
58 | position: absolute; | 58 | position: absolute; |
59 | bottom: 0; | 59 | bottom: 0; |
60 | + font-weight:bold; | ||
60 | } | 61 | } |
61 | 62 | ||
62 | .Product_item { | 63 | .Product_item { |
@@ -71,6 +72,7 @@ main { | @@ -71,6 +72,7 @@ main { | ||
71 | text-align:center; | 72 | text-align:center; |
72 | height: 33px; | 73 | height: 33px; |
73 | overflow: hidden; | 74 | overflow: hidden; |
75 | + margin-top: 28px; | ||
74 | text-overflow: ellipsis; | 76 | text-overflow: ellipsis; |
75 | display: -webkit-box; | 77 | display: -webkit-box; |
76 | -webkit-line-clamp: 2; | 78 | -webkit-line-clamp: 2; |
@@ -142,8 +144,6 @@ main { | @@ -142,8 +144,6 @@ main { | ||
142 | .Specialty_main .swiper-slide .Specialty_item .Specialty_item_img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img{ | 144 | .Specialty_main .swiper-slide .Specialty_item .Specialty_item_img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img{ |
143 | width: 230px; | 145 | width: 230px; |
144 | height: 230px; | 146 | height: 230px; |
145 | - padding-top: 45px; | ||
146 | - box-sizing: border-box; | ||
147 | } | 147 | } |
148 | .Specialty_main .swiper-slide.swiper-slide-active .Specialty_item,.Innovation_main .swiper-slide .Specialty_item{ | 148 | .Specialty_main .swiper-slide.swiper-slide-active .Specialty_item,.Innovation_main .swiper-slide .Specialty_item{ |
149 | width: 230px; | 149 | width: 230px; |
@@ -154,17 +154,17 @@ main { | @@ -154,17 +154,17 @@ main { | ||
154 | .Specialty_main .swiper-slide.swiper-slide-active .Specialty_item .Specialty_item_img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img{ | 154 | .Specialty_main .swiper-slide.swiper-slide-active .Specialty_item .Specialty_item_img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img{ |
155 | width: 230px; | 155 | width: 230px; |
156 | height: 230px; | 156 | height: 230px; |
157 | - padding-top: 45px; | ||
158 | - box-sizing: border-box; | ||
159 | } | 157 | } |
160 | .Specialty_main .swiper-slide .Specialty_item .Specialty_item_img img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img img{ | 158 | .Specialty_main .swiper-slide .Specialty_item .Specialty_item_img img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img img{ |
161 | display: block; | 159 | display: block; |
162 | - width: 160px; | 160 | + width: 100%; |
161 | + height: 100%; | ||
163 | margin: 0 auto; | 162 | margin: 0 auto; |
164 | } | 163 | } |
165 | .Specialty_main .swiper-slide.swiper-slide-active .Specialty_item .Specialty_item_img img{ | 164 | .Specialty_main .swiper-slide.swiper-slide-active .Specialty_item .Specialty_item_img img{ |
166 | display: block; | 165 | display: block; |
167 | - width: 160px; | 166 | + width:100%; |
167 | + height: 100%; | ||
168 | margin: 0 auto; | 168 | margin: 0 auto; |
169 | } | 169 | } |
170 | .Specialty_main .swiper-slide .Specialty_item .Specialty_item_name{ | 170 | .Specialty_main .swiper-slide .Specialty_item .Specialty_item_name{ |
@@ -183,7 +183,7 @@ main { | @@ -183,7 +183,7 @@ main { | ||
183 | } | 183 | } |
184 | .Specialty_item .Specialty_item_price{ | 184 | .Specialty_item .Specialty_item_price{ |
185 | text-align: center; | 185 | text-align: center; |
186 | - margin-top: 24px; | 186 | + margin-top: 6px; |
187 | font-size: 16px; | 187 | font-size: 16px; |
188 | color: #00D774; | 188 | color: #00D774; |
189 | } | 189 | } |
@@ -211,7 +211,7 @@ main { | @@ -211,7 +211,7 @@ main { | ||
211 | } | 211 | } |
212 | .Lifestyle_main .swiper-slide .Lifestyle_item .Lifestyle_item_img img{ | 212 | .Lifestyle_main .swiper-slide .Lifestyle_item .Lifestyle_item_img img{ |
213 | max-width: 230px; | 213 | max-width: 230px; |
214 | - max-height: 230px; | 214 | + height: 230px; |
215 | margin: 0 auto; | 215 | margin: 0 auto; |
216 | display: block; | 216 | display: block; |
217 | } | 217 | } |
@@ -219,11 +219,11 @@ main { | @@ -219,11 +219,11 @@ main { | ||
219 | text-align: center; | 219 | text-align: center; |
220 | font-size: 16px; | 220 | font-size: 16px; |
221 | color: #1A1A1A; | 221 | color: #1A1A1A; |
222 | - margin-top: 8px; | 222 | + margin-top: 18px; |
223 | } | 223 | } |
224 | .Lifestyle_main .swiper-slide .Lifestyle_item .Lifestyle_item_price{ | 224 | .Lifestyle_main .swiper-slide .Lifestyle_item .Lifestyle_item_price{ |
225 | text-align: center; | 225 | text-align: center; |
226 | font-size: 16px; | 226 | font-size: 16px; |
227 | color: #00D774; | 227 | color: #00D774; |
228 | - margin-top: 24px; | 228 | + margin-top: 16px; |
229 | } | 229 | } |
@@ -84,7 +84,7 @@ body { | @@ -84,7 +84,7 @@ body { | ||
84 | .sidebar { | 84 | .sidebar { |
85 | position: fixed; | 85 | position: fixed; |
86 | top: 200px; | 86 | top: 200px; |
87 | - right: 206px; | 87 | + right: 30px; |
88 | } | 88 | } |
89 | 89 | ||
90 | .collections, | 90 | .collections, |
@@ -333,6 +333,12 @@ body { | @@ -333,6 +333,12 @@ body { | ||
333 | display: -webkit-box; | 333 | display: -webkit-box; |
334 | -webkit-line-clamp: 10; | 334 | -webkit-line-clamp: 10; |
335 | -webkit-box-orient: vertical; | 335 | -webkit-box-orient: vertical; |
336 | + | ||
337 | + overflow-y: scroll; | ||
338 | +} | ||
339 | + | ||
340 | +.happy_house_rightTxt::-webkit-scrollbar { | ||
341 | + display: none; | ||
336 | } | 342 | } |
337 | 343 | ||
338 | 344 |
@@ -215,7 +215,8 @@ body { | @@ -215,7 +215,8 @@ body { | ||
215 | margin-top: 22px; | 215 | margin-top: 22px; |
216 | font-size: 20px; | 216 | font-size: 20px; |
217 | font-weight: bold; | 217 | font-weight: bold; |
218 | - color: rgba(255, 255, 255, .8); | 218 | + color: white; |
219 | + /*color: rgba(255, 255, 255, .8);*/ | ||
219 | } | 220 | } |
220 | 221 | ||
221 | .happy_IN2 { | 222 | .happy_IN2 { |
@@ -81,7 +81,7 @@ body { | @@ -81,7 +81,7 @@ body { | ||
81 | .sidebar { | 81 | .sidebar { |
82 | position: fixed; | 82 | position: fixed; |
83 | top: 200px; | 83 | top: 200px; |
84 | - right: 206px; | 84 | + right: 30px; |
85 | } | 85 | } |
86 | 86 | ||
87 | .collections, | 87 | .collections, |
@@ -199,7 +199,7 @@ body { | @@ -199,7 +199,7 @@ body { | ||
199 | margin-top: 22px; | 199 | margin-top: 22px; |
200 | font-size: 20px; | 200 | font-size: 20px; |
201 | font-weight: bold; | 201 | font-weight: bold; |
202 | - color: rgba(255, 255, 255, .8); | 202 | + color: white; |
203 | } | 203 | } |
204 | 204 | ||
205 | .show_IN2 { | 205 | .show_IN2 { |
@@ -175,6 +175,16 @@ function mask(msg) { | @@ -175,6 +175,16 @@ function mask(msg) { | ||
175 | },4000); | 175 | },4000); |
176 | } | 176 | } |
177 | 177 | ||
178 | +//弹框 | ||
179 | +function video_mask(msg) { | ||
180 | + $('.mask').text(msg); | ||
181 | + $('.mask').show(); | ||
182 | + setTimeout(function(){ | ||
183 | + $('.mask').hide(); | ||
184 | + $('.mask').text(''); | ||
185 | + },4000); | ||
186 | +} | ||
187 | + | ||
178 | //获取url的参数 | 188 | //获取url的参数 |
179 | function getUrlParam(paraName) { | 189 | function getUrlParam(paraName) { |
180 | var url = document.location.toString(); | 190 | var url = document.location.toString(); |
866 字节
@@ -74,4 +74,9 @@ | @@ -74,4 +74,9 @@ | ||
74 | <p id="about_us">Copyright © 2004-2019 独角星球 版权所有</p> | 74 | <p id="about_us">Copyright © 2004-2019 独角星球 版权所有</p> |
75 | </div> | 75 | </div> |
76 | </section> | 76 | </section> |
77 | -</div> | ||
77 | +</div> | ||
78 | +<notempty name="user"> | ||
79 | + <input type="hidden" value="1" id="users"> | ||
80 | + <else/> | ||
81 | + <input type="hidden" value="0" id="users"> | ||
82 | +</notempty> |
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | <notempty name="user.user_nickname"> | 53 | <notempty name="user.user_nickname"> |
54 | <span>{$user.user_nickname}</span> | 54 | <span>{$user.user_nickname}</span> |
55 | <else/> | 55 | <else/> |
56 | - <span>随风漂泊</span> | 56 | + <span></span> |
57 | </notempty> | 57 | </notempty> |
58 | </section> | 58 | </section> |
59 | <else/> | 59 | <else/> |
-
请 注册 或 登录 后发表评论