作者 景龙
1 个管道 的构建 通过 耗费 3 秒

修改bug,增加不同图片尺寸

正在显示 46 个修改的文件 包含 969 行增加104 行删除
... ... @@ -84,7 +84,7 @@ class IndexController extends HomeBaseController
//星探推荐
$position = CityCategoryModel::xttj;
$field = 'id,post_title,price,thumbnail,place';
$field = 'id,post_title,price,index_thumbnail,place';
$res_xttj = $this->getParentArticle($position,$field,16);
$this->assign('res_xttj',$res_xttj);
... ... @@ -194,7 +194,7 @@ class IndexController extends HomeBaseController
->whereIn('id',$post_id)
->where('month', $month)
->where('delete_time', 0)
->field('id,month,post_title,thumbnail,post_excerpt')
->field('id,month,post_title,index_thumbnail,thumbnail,post_excerpt')
->limit(1)
->order('weigh desc')
->find();
... ...
... ... @@ -160,6 +160,9 @@ class LoginController extends HomeBaseController
if($login){
$userModel = new UserModel();
$id = cmf_get_current_user_id();
if(empty($nickname)){
$this->apiResponse(0,'昵称不能为空!');
}
$res = $userModel->allowField(true)->update(['id'=>$id,'user_nickname'=>$nickname]);
if($res){
$userInfo = $userModel->where('id',$id)->find();
... ...
... ... @@ -94,7 +94,7 @@ class ScoutController extends HomeBaseController
$res = $starModel->getDetail($id,$field);
if($res){
$more = json_decode($res['more'],true);
$res['image_url'] = isset($more['photos']) && !empty($more['photos'])?$more['photos']:'';
$res['image_url'] = isset($more['photos']) && !empty($more['photos'])?$more['photos'][0]['url']:'';
}
$this->assign('res',$res);
return $this->fetch(':scenery_detail');
... ...
... ... @@ -168,11 +168,44 @@ class StarController extends HomeBaseController
$position['city_id'] = $city_id;
$field = 'id,thumbnail,post_title,post_hits,post_favorites';
$res = $this->getChildArticlePage($position,$field);
$position['is_show'] = 1;
$is_show_img = $this->getShowImg($position,$field,5);
$this->assign('image',$is_show_img);
$this->assign('res',$res['data']);
$this->assign('page',$res['page']);
return $this->fetch();
}
//获取网红美景展示图片
public function getShowImg($position,$field,$limit = ''){
$pre = CityCategoryModel::pre;
$limit = empty($limit)?$this->more_limit:$limit;
$post_id = Db::table($pre.'portal_category_post')
->whereIn('category_id',$position['category_id'])
->field('post_id')
->select()
->toArray();
$post_id = array_column($post_id,'post_id');
//查询文章
if($position['city_id'] == 0){
//所有
$where = ['delete_time'=>0,'is_show'=>$position['is_show']];
}else{
$where = ['city_id'=>$position['city_id'],'delete_time'=>0,'is_show'=>$position['is_show']];
}
$res = Db::table($pre.'portal_post')
->whereIn('id',$post_id)
->where($where)
->field($field)
->order('weigh desc')
->limit($limit)
->select()
->toArray();
return $res;
}
//网红美景详情
public function getSceneryDetail(){
$id = $this->request->param('id',0,'intval');
... ...
... ... @@ -106,7 +106,27 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b></th>
<th><b>首页缩略图</b></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value="">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*200</span>
</div>
</td>
</tr>
<tr>
<th><b>列表页缩略图</b></th>
</tr>
<tr>
<td>
... ... @@ -119,6 +139,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:380*380</span>
</div>
</td>
</tr>
<tr>
... ... @@ -153,7 +176,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -124,7 +124,33 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th>缩略图</th>
<th>首页缩略图</th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail"
value="{$post.index_thumbnail|default=''}">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<if condition="empty($post.index_thumbnail)">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
<else/>
<img src="{:cmf_get_image_preview_url($post.index_thumbnail)}"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</if>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*200</span>
</div>
</td>
</tr>
<tr>
<th>列表页缩略图</th>
</tr>
<tr>
<td>
... ... @@ -144,6 +170,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:380*380</span>
</div>
</td>
</tr>
<tr>
... ... @@ -184,7 +213,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -106,7 +106,27 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b></th>
<th><b>首页缩略图</b></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value="">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*200</span>
</div>
</td>
</tr>
<tr>
<th><b>列表页缩略图</b></th>
</tr>
<tr>
<td>
... ... @@ -119,6 +139,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:648*648</span>
</div>
</td>
</tr>
<tr>
... ... @@ -154,11 +177,16 @@
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
});
});
function doSelectCategory() {
... ...
... ... @@ -124,7 +124,33 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th>缩略图</th>
<th>首页缩略图</th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail"
value="{$post.index_thumbnail|default=''}">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<if condition="empty($post.index_thumbnail)">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
<else/>
<img src="{:cmf_get_image_preview_url($post.index_thumbnail)}"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</if>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*200</span>
</div>
</td>
</tr>
<tr>
<th>列表页缩略图</th>
</tr>
<tr>
<td>
... ... @@ -144,6 +170,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:648*648</span>
</div>
</td>
</tr>
<tr>
... ... @@ -185,6 +214,12 @@
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -106,7 +106,26 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b></th>
<th><b>首页缩略图</b></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value="">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*200</span>
</div>
</td>
</tr>
<tr>
<th><b>列表页缩略图</b></th>
</tr>
<tr>
<td>
... ... @@ -119,6 +138,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:480*480</span>
</div>
</td>
</tr>
<tr>
... ... @@ -153,7 +175,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -124,7 +124,34 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th>缩略图</th>
<th>首页缩略图</th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail"
value="{$post.index_thumbnail|default=''}">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<if condition="empty($post.index_thumbnail)">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
<else/>
<img src="{:cmf_get_image_preview_url($post.index_thumbnail)}"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</if>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*200</span>
</div>
</td>
</tr>
<tr>
<th>列表页缩略图</th>
</tr>
<tr>
<td>
... ... @@ -144,6 +171,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:480*480</span>
</div>
</td>
</tr>
<tr>
... ... @@ -184,7 +214,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -106,7 +106,26 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b></th>
<th><b>首页缩略图</b></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value="">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*200</span>
</div>
</td>
</tr>
<tr>
<th><b>列表页缩略图</b></th>
</tr>
<tr>
<td>
... ... @@ -119,6 +138,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:648*648</span>
</div>
</td>
</tr>
<tr>
... ... @@ -153,7 +175,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -124,7 +124,33 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th>缩略图</th>
<th>首页缩略图</th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail"
value="{$post.index_thumbnail|default=''}">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<if condition="empty($post.index_thumbnail)">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
<else/>
<img src="{:cmf_get_image_preview_url($post.index_thumbnail)}"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</if>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*200</span>
</div>
</td>
</tr>
<tr>
<th>列表页缩略图</th>
</tr>
<tr>
<td>
... ... @@ -144,6 +170,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:648*648</span>
</div>
</td>
</tr>
<tr>
... ... @@ -184,7 +213,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -90,7 +90,27 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b><span class="form-required">*</span></th>
<th><b>首页缩略图</b><span class="form-required">*</span></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value="">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*230</span>
</div>
</td>
</tr>
<tr>
<th><b>列表页缩略图</b><span class="form-required">*</span></th>
</tr>
<tr>
<td>
... ... @@ -103,6 +123,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:230*230</span>
</div>
</td>
</tr>
<tr>
... ... @@ -137,7 +160,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -108,7 +108,34 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th>缩略图<span class="form-required">*</span></th>
<th>首页缩略图<span class="form-required">*</span></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail"
value="{$post.index_thumbnail|default=''}">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<if condition="empty($post.index_thumbnail)">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
<else/>
<img src="{:cmf_get_image_preview_url($post.index_thumbnail)}"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</if>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*230</span>
</div>
</td>
</tr>
<tr>
<th>列表页缩略图<span class="form-required">*</span></th>
</tr>
<tr>
<td>
... ... @@ -128,6 +155,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:230*230</span>
</div>
</td>
</tr>
<tr>
... ... @@ -168,7 +198,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -90,7 +90,27 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b><span class="form-required">*</span></th>
<th><b>首页缩略图</b><span class="form-required">*</span></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value="">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*230</span>
</div>
</td>
</tr>
<tr>
<th><b>列表页缩略图</b><span class="form-required">*</span></th>
</tr>
<tr>
<td>
... ... @@ -103,6 +123,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:230*230</span>
</div>
</td>
</tr>
<tr>
... ... @@ -137,7 +160,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -108,7 +108,34 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th>缩略图<span class="form-required">*</span></th>
<th>首页缩略图<span class="form-required">*</span></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail"
value="{$post.index_thumbnail|default=''}">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<if condition="empty($post.index_thumbnail)">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
<else/>
<img src="{:cmf_get_image_preview_url($post.index_thumbnail)}"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</if>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*230</span>
</div>
</td>
</tr>
<tr>
<th>列表页缩略图<span class="form-required">*</span></th>
</tr>
<tr>
<td>
... ... @@ -128,6 +155,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:230*230</span>
</div>
</td>
</tr>
<tr>
... ... @@ -168,7 +198,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -90,7 +90,27 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b><span class="form-required">*</span></th>
<th><b>首页缩略图</b><span class="form-required">*</span></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value="">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*230</span>
</div>
</td>
</tr>
<tr>
<th><b>列表页缩略图</b><span class="form-required">*</span></th>
</tr>
<tr>
<td>
... ... @@ -103,6 +123,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:230*230</span>
</div>
</td>
</tr>
<tr>
... ... @@ -137,7 +160,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -108,7 +108,34 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th>缩略图<span class="form-required">*</span></th>
<th>首页缩略图<span class="form-required">*</span></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail"
value="{$post.index_thumbnail|default=''}">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<if condition="empty($post.index_thumbnail)">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
<else/>
<img src="{:cmf_get_image_preview_url($post.index_thumbnail)}"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</if>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*230</span>
</div>
</td>
</tr>
<tr>
<th>列表页缩略图<span class="form-required">*</span></th>
</tr>
<tr>
<td>
... ... @@ -128,6 +155,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:230*230</span>
</div>
</td>
</tr>
<tr>
... ... @@ -168,7 +198,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -108,7 +108,27 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b><span class="form-required">*</span></th>
<th><b>首页缩略图</b><span class="form-required">*</span></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail" value="">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*230</span>
</div>
</td>
</tr>
<tr>
<th><b>列表页缩略图</b><span class="form-required">*</span></th>
</tr>
<tr>
<td>
... ... @@ -121,6 +141,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:386*303</span>
</div>
</td>
</tr>
<tr>
... ... @@ -155,7 +178,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -126,7 +126,34 @@
<div class="col-md-3">
<table class="table table-bordered">
<tr>
<th>缩略图<span class="form-required">*</span></th>
<th>首页缩略图<span class="form-required">*</span></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[index_thumbnail]" id="index_thumbnail"
value="{$post.index_thumbnail|default=''}">
<a href="javascript:uploadOneImage('图片上传','#index_thumbnail');">
<if condition="empty($post.index_thumbnail)">
<img src="__TMPL__/public/assets/images/default-thumbnail.png"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
<else/>
<img src="{:cmf_get_image_preview_url($post.index_thumbnail)}"
id="index_thumbnail-preview"
width="135" style="cursor: pointer"/>
</if>
</a>
<input type="button" class="btn btn-sm btn-cancel-index_thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:290*230</span>
</div>
</td>
</tr>
<tr>
<th>列表页缩略图<span class="form-required">*</span></th>
</tr>
<tr>
<td>
... ... @@ -146,6 +173,9 @@
</a>
<input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
</div>
<div style="margin-top:30px;">
<span class="form-required">图片参考尺寸:386*303</span>
</div>
</td>
</tr>
<tr>
... ... @@ -186,7 +216,12 @@
editorcontent.sync();
} catch (err) {
}
//首页缩略图
$('.btn-cancel-index_thumbnail').click(function () {
$('#index_thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#index_thumbnail').val('');
});
//列表页缩略图
$('.btn-cancel-thumbnail').click(function () {
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
$('#thumbnail').val('');
... ...
... ... @@ -57,6 +57,14 @@
</td>
</tr>
<tr>
<th>是否显示<span class="form-required">*</span></th>
<td>
否:<input class="" type="radio" name="post[is_show]" checked value="0"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
是:<input class="" type="radio" name="post[is_show]" value="1"/>
</td>
</tr>
<tr>
<th>简介<span class="form-required">*</span></th>
<td>
<textarea class="form-control" required name="post[post_excerpt]" style="height: 50px;"
... ...
... ... @@ -61,6 +61,14 @@
</td>
</tr>
<tr>
<th>是否显示<span class="form-required">*</span></th>
<td>
否:<input class="" type="radio" name="post[is_show]" value="0" <eq name="0" value="$post.is_show">checked</eq>/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
是:<input class="" type="radio" name="post[is_show]" value="1" <eq name="1" value="$post.is_show">checked</eq>/>
</td>
</tr>
<tr>
<th>简介<span class="form-required">*</span></th>
<td>
<textarea class="form-control" required name="post[post_excerpt]" style="height: 50px;"
... ...
... ... @@ -18,9 +18,12 @@
max-width: 1200px;
}
.Spot_main .swiper-slide-next .Spot_top img {
width: 625px;
width: 648px;
height: 648px;
}
.Spot_item, .swiper-slide-prev, .swiper-slide-prev .Spot_item img {
max-width: 648px;
}
</style>
</head>
... ... @@ -242,23 +245,6 @@
</div>
</div>
</volist>
<volist name="res_hwtt" id="vo">
<div class="swiper-slide">
<div class="Spot_item">
<a href="/portal/enjoy/getEnjoyDetail?id={$vo.id}">
<div class="Spot_top main_top"><img src="{:cmf_get_image_url($vo.thumbnail)}" alt=""></div>
<div class="Spot_bottom">
<div class="Spot_bottom_title">
{$vo.post_title}
</div>
<div class="Spot_bottom_main main_left">
{$vo.post_excerpt}
</div>
</div>
</a>
</div>
</div>
</volist>
</div>
</div>
</div>
... ...
... ... @@ -22,10 +22,46 @@
.swiper-container6 .swiper-wrapper{
transition-duration:1.5s !important;
}
.mask {
width: 100%;
height: 100%;
position: fixed;
top: 0;
z-index: 9999;
background-color: rgba(0, 0, 0, 0.5);
display: none;
}
.mask_video {
position: relative;
top: 50%;
left: 50%;
width: 800px;
height: 500px;
background-color: black;
transform: translate(-50%, -50%);
}
.mask_video video {
margin: auto;
display: block;
height: 100%;
}
.mask_video img {
cursor: pointer;
position: absolute;
right: -100px;
top: -30px;
}
</style>
</head>
<body>
<!-- 弹框视频 -->
<div class="mask" id="mask">
<div class="mask_video" >
<img id="nos" src="__TMPL__/public/assets/starImg/nos.png" alt="">
<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>
</div>
</div>
<!-- 侧边 -->
<div class="index_sidebar">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1309572580&site=qq&menu=yes">
... ... @@ -49,9 +85,9 @@
<!--<div class="swiper-pagination">-->
<!--</div>-->
</div>
<!-- 首页主体内容 -->
<div id="star_main">
<!-- 星球奇境 -->
... ... @@ -164,13 +200,15 @@
<!-- 图片 -->
<notempty name="res_month.January">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.January.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.January.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.January.id}">
<div class="img_bottom">
<p>{$res_month.January.post_title}</p>
<p>{$res_month.January.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -199,13 +237,15 @@
<!-- 图片 -->
<notempty name="res_month.February">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.February.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.February.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.February.id}">
<div class="img_bottom">
<p>{$res_month.February.post_title}</p>
<p>{$res_month.February.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -235,13 +275,15 @@
<!-- 图片 -->
<notempty name="res_month.March">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.March.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.March.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.March.id}">
<div class="img_bottom">
<p>{$res_month.March.post_title}</p>
<p>{$res_month.March.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -272,13 +314,15 @@
<!-- 图片 -->
<notempty name="res_month.April">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.April.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.April.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.April.id}">
<div class="img_bottom">
<p>{$res_month.April.post_title}</p>
<p>{$res_month.April.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -308,13 +352,15 @@
<!-- 图片 -->
<notempty name="res_month.May">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.May.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.May.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.May.id}">
<div class="img_bottom">
<p>{$res_month.May.post_title}</p>
<p>{$res_month.May.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -343,13 +389,15 @@
<!-- 图片 -->
<notempty name="res_month.June">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.June.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.June.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.June.id}">
<div class="img_bottom">
<p>{$res_month.June.post_title}</p>
<p>{$res_month.June.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -380,13 +428,15 @@
<!-- 图片 -->
<notempty name="res_month.July">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.July.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.July.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.July.id}">
<div class="img_bottom">
<p>{$res_month.July.post_title}</p>
<p>{$res_month.July.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -417,13 +467,15 @@
<!-- 图片 -->
<notempty name="res_month.August">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.August.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.August.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.August.id}">
<div class="img_bottom">
<p>{$res_month.August.post_title}</p>
<p>{$res_month.August.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -454,13 +506,15 @@
<!-- 图片 -->
<notempty name="res_month.September">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.September.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.September.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.September.id}">
<div class="img_bottom">
<p>{$res_month.September.post_title}</p>
<p>{$res_month.September.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -489,13 +543,15 @@
<!-- 图片 -->
<notempty name="res_month.October">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.October.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.October.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.October.id}">
<div class="img_bottom">
<p>{$res_month.October.post_title}</p>
<p>{$res_month.October.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -526,13 +582,15 @@
<!-- 图片 -->
<notempty name="res_month.November">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.November.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.November.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.November.id}">
<div class="img_bottom">
<p>{$res_month.November.post_title}</p>
<p>{$res_month.November.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -563,13 +621,15 @@
<!-- 图片 -->
<notempty name="res_month.December">
<div class="reverse_Imgs">
<img src="{:cmf_get_image_url($res_month.December.thumbnail)}"/>
<img src="{:cmf_get_image_url($res_month.December.index_thumbnail)}"/>
</div>
<!-- 图片下方文字 -->
<a href="/portal/enjoy/getEnjoyDetail?id={$res_month.December.id}">
<div class="img_bottom">
<p>{$res_month.December.post_title}</p>
<p>{$res_month.December.category_name}</p>
</div>
</a>
<else/>
<div class="reverse_Imgs">
<img src="__TMPL__/public/assets/starImg/aicon_28.png"/>
... ... @@ -600,10 +660,10 @@
<!-- 视频 -->
<div class="star_video">
<notempty name="res_xqyy">
<video id="video" width="100%" height="675" src="{:cmf_get_file_download_url($res_xqyy.video)}"></video>
<video id="video" width="100%" height="675" src="{:cmf_get_file_download_url($res_xqyy.video)}" controlsList="nodownload"></video>
<img class="show_in_poster" src="{:cmf_get_image_url($res_xqyy.thumbnail)}" alt="">
<else/>
<video id="video" width="100%" height="675" src="__TMPL__//public/assets/starImg/video.mp4"></video>
<video id="video" width="100%" height="675" src="__TMPL__//public/assets/starImg/video.mp4" controlsList="nodownload"></video>
<img class="show_in_poster" src="__TMPL__/public/assets/starImg/bicon_34.png" alt="">
</notempty>
<img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt="">
... ... @@ -611,7 +671,6 @@
<!-- 人物简介 -->
<notempty name="res_mxft">
<!-- 标题 -->
<div class="star_personal clearfix star_ming">
<div class="star_title clearfix">
<span>
... ... @@ -643,6 +702,10 @@
</div>
</div>
</div>
<!-- 更多按钮 -->
<div class="star_gall_more">
<a href="/portal/region/getMoreStar">MORE+</a>
</div>
</notempty>
</div>
</div>
... ... @@ -662,7 +725,9 @@
<ul class="swiper-wrapper">
<volist name="res_xyhl" id="vo">
<li class="swiper-slide">
<a href="/portal/region/getGalleryDetail?id={$vo.id}">
<img class="swiper-slide slide-image" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
</li>
</volist>
</ul>
... ... @@ -697,7 +762,7 @@
<volist name="res_xttj" id="vo">
<li class="swiper-slide scout_box">
<div class="scout_image">
<img src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
<img src="{:cmf_get_image_url($vo.index_thumbnail)}" alt="">
</div>
<empty name="vo.place">
<a href="/portal/scout/getSceneryDetail?id={$vo.id}">
... ... @@ -720,6 +785,10 @@
</div>
</div>
<!-- 更多按钮 -->
<div class="star_gall_more">
<a href="/portal/scout/index">MORE+</a>
</div>
</div>
</div>
<!-- 星际活动 -->
... ... @@ -752,6 +821,30 @@
<script src="__TMPL__/public/assets/js/swiper4/swiper.min.js"></script>
<script src="__TMPL__/public/assets/js/public.js"></script>
<script>
// 弹框视频
var users = $('#users').val();
if(users == 1){
$('.mask').css('display','block');
var video2 = document.getElementById("video2"); //获取ID 
console.log(video2);
$(function() {
if (video2.paused) { //判读是否播放    
// video2.paused = false;            
video2.play(); //没有就播放      
}
});
var nos = document.getElementById("nos");
var mask = document.getElementById("mask");
nos.onclick = function nos() {
mask.style.display = "none";
video2.pause();
};
}
// 禁止下载
$('video').bind('contextmenu', function() {
return false;
});
// 点击返回头部
$(window).scroll(function() {
if ($(window).scrollTop() > 2000) {
... ... @@ -833,10 +926,11 @@
function bofang() {
video.play();
$('#video').attr('controls', 'controls')
$('#video').attr('controls', 'controls');
$('.show_in_banner2').hide();
$('.show_in_poster').hide();
}
</script>
</body>
... ...
... ... @@ -25,7 +25,7 @@
<notempty name="user.avatar">
<img src="{:cmf_get_image_url($user.avatar)}" alt="">
<else/>
<img src="__TMPL__/public/assets/starImg/aicon_83.png" alt="">
<img src="__TMPL__/public/assets/starImg/aicon_82.png" alt="">
</notempty>
</div>
<div class="updateInfo">
... ... @@ -33,7 +33,7 @@
<notempty name="user.user_nickname">
<input type="text" value="{$user.user_nickname}" id="nickname"/>
<else/>
<input type="text" value="随风漂泊" id="nickname"/>
<input type="text" value="" id="nickname"/>
</notempty>
</div>
<!--編輯頭像-->
... ... @@ -53,7 +53,7 @@
<script>
$(function(){
$('.save_info').click(function(){
var nickname = $('#nickname').val();
var nickname = $.trim($('#nickname').val());
$.ajax({
type: 'POST',
url: "/portal/login/updateNickname",
... ...
... ... @@ -25,7 +25,7 @@
<notempty name="user.avatar">
<img src="{:cmf_get_image_url($user.avatar)}" alt="">
<else/>
<img src="__TMPL__/public/assets/starImg/aicon_83.png" alt="">
<img src="__TMPL__/public/assets/starImg/aicon_82.png" alt="">
</notempty>
</div>
<!--編輯頭像-->
... ...
... ... @@ -51,15 +51,18 @@
spaceBetween: 10,
slidesPerView: 4,
freeMode: true,
loop:true,
watchSlidesVisibility: true,
watchSlidesProgress: true,
});
var galleryTop = new Swiper('.gallery-top', {
spaceBetween: 10,
loop:true,
navigation: {
nextEl: '.swiper-button-next8',
prevEl: '.swiper-button-prev8',
},
thumbs: {
swiper: galleryThumbs
}
... ...
... ... @@ -15,11 +15,11 @@
<include file="public@header"/>
<div class="happy_gallery">
<!-- banner -->
<div class="happy_gallery_banner">
<volist name="coverImg" id="vo">
<img src="{:cmf_get_image_url($vo.image)}" alt="">
</volist>
</div>
<!--<div class="happy_gallery_banner">-->
<!--<volist name="coverImg" id="vo">-->
<!--<img src="{:cmf_get_image_url($vo.image)}" alt="">-->
<!--</volist>-->
<!--</div>-->
<!-- 内容 -->
<div class="happy_gallery_con">
<!-- 顶部标题 -->
... ...
... ... @@ -9,6 +9,13 @@
<link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap4.0.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/show.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/audio.css">
<style>
.right_audio{
width:800px;
height: 400px;
float: left;
}
</style>
</head>
<body>
... ... @@ -25,7 +32,7 @@
<div>
<!-- 内容 -->
<div class="show_INMain_con2_2 ">
<volist name="res['data']" id="vo">
<volist name="res['data']" id="vo" offset="0" length="1">
<div class="show_index_con2Txt clearfix">
<a href="/portal/star/getStoryDetail?id={$vo.id}">
<!-- 左侧图片 -->
... ... @@ -46,6 +53,161 @@
</div>
</volist>
<volist name="res['data']" id="vo" offset="1" length="1">
<div class="show_index_con2Txt clearfix">
<div class="right_audio">
<!-- 文字 -->
<div class="show_index_con2Txt2">
{$vo.excerpt}
</div>
<!-- 进度条 -->
<div class="show_index_progress">
<notempty name="vo.audio">
<audio src="{:cmf_get_file_download_url($vo.audio)}"></audio>
<else/>
<audio src="http://link.hhtjim.com/163/442869240.mp3"></audio>
</notempty>
</div>
</div>
<a href="/portal/star/getStoryDetail?id={$vo.id}" style="float: left">
<!-- 左侧图片 -->
<img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
</div>
</volist>
<volist name="res['data']" id="vo" offset="2" length="1">
<div class="show_index_con2Txt clearfix">
<a href="/portal/star/getStoryDetail?id={$vo.id}">
<!-- 左侧图片 -->
<img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
<!-- 文字 -->
<div class="show_index_con2Txt2">
{$vo.excerpt}
</div>
<!-- 进度条 -->
<div class="show_index_progress">
<notempty name="vo.audio">
<audio src="{:cmf_get_file_download_url($vo.audio)}"></audio>
<else/>
<audio src="http://link.hhtjim.com/163/442869240.mp3"></audio>
</notempty>
</div>
</div>
</volist>
<volist name="res['data']" id="vo" offset="3" length="1">
<div class="show_index_con2Txt clearfix">
<div class="right_audio">
<!-- 文字 -->
<div class="show_index_con2Txt2">
{$vo.excerpt}
</div>
<!-- 进度条 -->
<div class="show_index_progress">
<notempty name="vo.audio">
<audio src="{:cmf_get_file_download_url($vo.audio)}"></audio>
<else/>
<audio src="http://link.hhtjim.com/163/442869240.mp3"></audio>
</notempty>
</div>
</div>
<a href="/portal/star/getStoryDetail?id={$vo.id}" style="float: left">
<!-- 左侧图片 -->
<img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
</div>
</volist>
<volist name="res['data']" id="vo" offset="4" length="1">
<div class="show_index_con2Txt clearfix">
<a href="/portal/star/getStoryDetail?id={$vo.id}">
<!-- 左侧图片 -->
<img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
<!-- 文字 -->
<div class="show_index_con2Txt2">
{$vo.excerpt}
</div>
<!-- 进度条 -->
<div class="show_index_progress">
<notempty name="vo.audio">
<audio src="{:cmf_get_file_download_url($vo.audio)}"></audio>
<else/>
<audio src="http://link.hhtjim.com/163/442869240.mp3"></audio>
</notempty>
</div>
</div>
</volist>
<volist name="res['data']" id="vo" offset="5" length="1">
<div class="show_index_con2Txt clearfix">
<div class="right_audio">
<!-- 文字 -->
<div class="show_index_con2Txt2">
{$vo.excerpt}
</div>
<!-- 进度条 -->
<div class="show_index_progress">
<notempty name="vo.audio">
<audio src="{:cmf_get_file_download_url($vo.audio)}"></audio>
<else/>
<audio src="http://link.hhtjim.com/163/442869240.mp3"></audio>
</notempty>
</div>
</div>
<a href="/portal/star/getStoryDetail?id={$vo.id}" style="float: left">
<!-- 左侧图片 -->
<img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
</div>
</volist>
<volist name="res['data']" id="vo" offset="6" length="1">
<div class="show_index_con2Txt clearfix">
<a href="/portal/star/getStoryDetail?id={$vo.id}">
<!-- 左侧图片 -->
<img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
<!-- 文字 -->
<div class="show_index_con2Txt2">
{$vo.excerpt}
</div>
<!-- 进度条 -->
<div class="show_index_progress">
<notempty name="vo.audio">
<audio src="{:cmf_get_file_download_url($vo.audio)}"></audio>
<else/>
<audio src="http://link.hhtjim.com/163/442869240.mp3"></audio>
</notempty>
</div>
</div>
</volist>
<volist name="res['data']" id="vo" offset="7" length="1">
<div class="show_index_con2Txt clearfix">
<div class="right_audio">
<!-- 文字 -->
<div class="show_index_con2Txt2">
{$vo.excerpt}
</div>
<!-- 进度条 -->
<div class="show_index_progress">
<notempty name="vo.audio">
<audio src="{:cmf_get_file_download_url($vo.audio)}"></audio>
<else/>
<audio src="http://link.hhtjim.com/163/442869240.mp3"></audio>
</notempty>
</div>
</div>
<a href="/portal/star/getStoryDetail?id={$vo.id}" style="float: left">
<!-- 左侧图片 -->
<img class="show_indexImg1" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
</div>
</volist>
</div>
<!--分页-->
<div class="pagination">
... ...
... ... @@ -8,6 +8,17 @@
<title>星球影院更多</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/show.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/mask.css">
<style>
video::-internal-media-controls-download-button {
display: none;
}
video::-webkit-media-controls-enclosure {
overflow: hidden;
}
video::-webkit-media-controls-panel {
width: calc(100% + 30px);
}
</style>
</head>
<body>
... ... @@ -19,7 +30,7 @@
<!-- 视频 -->
<div class="show_9_video">
<img class="video_poster iop" src="" alt="">
<video id="video" width="100%" height="426" src=""></video>
<video id="video" width="100%" height="426" src="" controlsList="nodownload"></video>
<img class="play_button" onclick="bofang()" src="__TMPL__/public/assets/starImg/aicon_30.png" alt="">
<div class="video_box"></div>
</div>
... ... @@ -93,6 +104,33 @@
<script>
// 星域秀场视频
$(function() {
//禁止下载
$('video').bind('contextmenu', function() {
return false;
});
//监听播放时间
var video = document.getElementById('video');
//使用事件监听方式捕捉事件
video.addEventListener("timeupdate", function() {
var timeDisplay;
//用秒数来显示当前播放进度
timeDisplay = Math.floor(video.currentTime);
console.log(Math.floor(video.currentTime));
video.addEventListener('play', function() {
video.currentTime = 0;
});
//当视频播放到 15s的时候做处理
if (timeDisplay >= 5) {
video.addEventListener('play', function() {
video.currentTime = 0;
}),
video_mask('1111');
video.pause();
}
}, false);
//默认第一个视频
switch_video(0);
var value = $('#cityName').val();
... ...
... ... @@ -55,9 +55,9 @@
<!-- banner视频 -->
<div class="show_index_banner">
<notempty name="res_xqyy">
<video id="video" autoplay="autoplay" controls width="100%" height="660" src="{:cmf_get_file_download_url($res_xqyy.video)}"></video>
<video id="video" autoplay="autoplay" controls width="100%" height="660" src="{:cmf_get_file_download_url($res_xqyy.video)}" controlsList="nodownload"></video>
<else/>
<video id="video" autoplay="autoplay" controls width="100%" height="660" src="__TMPL__/public/assets/starImg/video.mp4"></video>
<video id="video" autoplay="autoplay" controls width="100%" height="660" src="__TMPL__/public/assets/starImg/video.mp4" controlsList="nodownload"></video>
</notempty>
<!-- poster="__TMPL__/public/assets/starImg/aicon_01.png" -->
<!-- <img onclick="bofang()" class="show_in_banner2" src="__TMPL__/public/assets/starImg/aicon_30.png" alt=""> -->
... ... @@ -169,7 +169,9 @@
<ul class="swiper-wrapper">
<volist name="res_xyhl" id="vo">
<li class="swiper-slide">
<a href="/portal/region/getGalleryDetail?id={$vo.id}">
<img class="swiper-slide slide-image" src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
</a>
</li>
</volist>
</ul>
... ... @@ -290,6 +292,10 @@
$('.swiper-button-prev2').addClass('swiper-button-disabled2');
}
});
//禁止下载
$('video').bind('contextmenu', function() {
return false;
});
// 轮播图
$('.hl_index span:first-child').addClass('first');
$('.swiper-button-next2').click(function() {
... ...
... ... @@ -15,7 +15,7 @@
<div class="container">
<div class="wares clearfix">
<div class="wares_left fl">
<img src="{:cmf_get_image_url($res.thumbnail)}" alt="">
<img src="{:cmf_get_image_url($res.image_url)}" alt="">
</div>
<div class="wares_right fr">
<div class="wares_right_title">{$res.post_title}</div>
... ...
... ... @@ -66,7 +66,7 @@
</li>
</ul>
<!-- 文字介绍 -->
<p class="happy_house_rightTxt">{$res.post_excerpt}</p>
<div class="happy_house_rightTxt">{$res.post_content}</div>
</div>
</div>
<!-- 评论 -->
... ...
... ... @@ -33,7 +33,7 @@
<!-- 第一部分 -->
<div class="happy_beauty_con_1">
<div class="happy_beauty_con_1_box">
<volist name="res['data']" id="vo" offset="0" lengt="4">
<volist name="image" id="vo" offset="0" lengt="4">
<div class="happy_beauty_con_1top">
<div class="happy_beauty_con_1topimg1">
<img src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
... ... @@ -56,7 +56,7 @@
</div>
<div class="happy_beauty_conTab">
<ul class="clearfix">
<volist name="res['data']" id="vo" offset="0" lengt="4">
<volist name="image" id="vo" offset="0" lengt="4">
<li>
<div class="happy_beauty_conTabImg">
<img src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
... ...
... ... @@ -57,6 +57,7 @@ main {
.Spot_English_name p {
position: absolute;
bottom: 0;
font-weight:bold;
}
.Product_item {
... ... @@ -71,6 +72,7 @@ main {
text-align:center;
height: 33px;
overflow: hidden;
margin-top: 28px;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
... ... @@ -142,8 +144,6 @@ main {
.Specialty_main .swiper-slide .Specialty_item .Specialty_item_img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img{
width: 230px;
height: 230px;
padding-top: 45px;
box-sizing: border-box;
}
.Specialty_main .swiper-slide.swiper-slide-active .Specialty_item,.Innovation_main .swiper-slide .Specialty_item{
width: 230px;
... ... @@ -154,17 +154,17 @@ main {
.Specialty_main .swiper-slide.swiper-slide-active .Specialty_item .Specialty_item_img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img{
width: 230px;
height: 230px;
padding-top: 45px;
box-sizing: border-box;
}
.Specialty_main .swiper-slide .Specialty_item .Specialty_item_img img,.Innovation_main .swiper-slide .Specialty_item .Specialty_item_img img{
display: block;
width: 160px;
width: 100%;
height: 100%;
margin: 0 auto;
}
.Specialty_main .swiper-slide.swiper-slide-active .Specialty_item .Specialty_item_img img{
display: block;
width: 160px;
width:100%;
height: 100%;
margin: 0 auto;
}
.Specialty_main .swiper-slide .Specialty_item .Specialty_item_name{
... ... @@ -183,7 +183,7 @@ main {
}
.Specialty_item .Specialty_item_price{
text-align: center;
margin-top: 24px;
margin-top: 6px;
font-size: 16px;
color: #00D774;
}
... ... @@ -211,7 +211,7 @@ main {
}
.Lifestyle_main .swiper-slide .Lifestyle_item .Lifestyle_item_img img{
max-width: 230px;
max-height: 230px;
height: 230px;
margin: 0 auto;
display: block;
}
... ... @@ -219,11 +219,11 @@ main {
text-align: center;
font-size: 16px;
color: #1A1A1A;
margin-top: 8px;
margin-top: 18px;
}
.Lifestyle_main .swiper-slide .Lifestyle_item .Lifestyle_item_price{
text-align: center;
font-size: 16px;
color: #00D774;
margin-top: 24px;
margin-top: 16px;
}
\ No newline at end of file
... ...
... ... @@ -202,7 +202,8 @@ body {
.sidebar {
position: fixed;
top: 200px;
right: 206px;
right: 30px;
z-index:999999;
}
.collections,
... ...
... ... @@ -69,6 +69,7 @@ main {
.Spot_English_name p {
position: absolute;
bottom: 0;
font-weight:bold;
}
.Spot_main {
... ...
... ... @@ -84,7 +84,7 @@ body {
.sidebar {
position: fixed;
top: 200px;
right: 206px;
right: 30px;
}
.collections,
... ... @@ -333,6 +333,12 @@ body {
display: -webkit-box;
-webkit-line-clamp: 10;
-webkit-box-orient: vertical;
overflow-y: scroll;
}
.happy_house_rightTxt::-webkit-scrollbar {
display: none;
}
... ...
... ... @@ -215,7 +215,8 @@ body {
margin-top: 22px;
font-size: 20px;
font-weight: bold;
color: rgba(255, 255, 255, .8);
color: white;
/*color: rgba(255, 255, 255, .8);*/
}
.happy_IN2 {
... ...
... ... @@ -98,7 +98,7 @@ p {
width: 80px;
z-index: 10;
position: fixed;
right: 48px;
right: 30px;
top: 600px;
}
... ...
... ... @@ -81,7 +81,7 @@ body {
.sidebar {
position: fixed;
top: 200px;
right: 206px;
right: 30px;
}
.collections,
... ... @@ -199,7 +199,7 @@ body {
margin-top: 22px;
font-size: 20px;
font-weight: bold;
color: rgba(255, 255, 255, .8);
color: white;
}
.show_IN2 {
... ...
... ... @@ -175,6 +175,16 @@ function mask(msg) {
},4000);
}
//弹框
function video_mask(msg) {
$('.mask').text(msg);
$('.mask').show();
setTimeout(function(){
$('.mask').hide();
$('.mask').text('');
},4000);
}
//获取url的参数
function getUrlParam(paraName) {
var url = document.location.toString();
... ...

5.6 KB | 宽: | 高:

1.4 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
... ... @@ -75,3 +75,8 @@
</div>
</section>
</div>
<notempty name="user">
<input type="hidden" value="1" id="users">
<else/>
<input type="hidden" value="0" id="users">
</notempty>
\ No newline at end of file
... ...
... ... @@ -53,7 +53,7 @@
<notempty name="user.user_nickname">
<span>{$user.user_nickname}</span>
<else/>
<span>随风漂泊</span>
<span></span>
</notempty>
</section>
<else/>
... ...