Commit 1a327ab0 authored by xishifeng's avatar xishifeng

补充

parent 9cacb7ea
...@@ -79,9 +79,18 @@ ...@@ -79,9 +79,18 @@
<label class="checkbox-inline"> <label class="checkbox-inline">
<input type="checkbox" class="yetai" id="" value="百货零售">百货零售 <input type="checkbox" class="yetai" id="" value="百货零售">百货零售
</label> </label>
<label class="checkbox-inline">
<input type="checkbox" class="yetai" id="" value="服装">服装
</label>
<label class="checkbox-inline">
<input type="checkbox" class="yetai" id="" value="亲子教育">亲子教育
</label>
<label class="checkbox-inline"> <label class="checkbox-inline">
<input type="checkbox" class="yetai" id="" value="休闲娱乐">休闲娱乐 <input type="checkbox" class="yetai" id="" value="休闲娱乐">休闲娱乐
</label> </label>
<label class="checkbox-inline">
<input type="checkbox" class="yetai" id="" value="办公">办公
</label>
<label class="checkbox-inline"> <label class="checkbox-inline">
<input type="checkbox" class="yetai" id="" value="其他">其他 <input type="checkbox" class="yetai" id="" value="其他">其他
</label> </label>
......
<template> <template>
<div> <div>
<header-pulic :data="headerData"> <header-pulic :data="headerData" v-if="!isShare">
<a href="javascript:;" class="icon-link icon-link-share" @click="share"></a> <a href="javascript:;" class="icon-link icon-link-share" @click="share"></a>
</header-pulic> </header-pulic>
<div class="header_seat"></div> <div class="header_seat"></div>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="btn-comment-area flex-center" v-show="!isCommentingFlag"> <div class="btn-comment-area flex-center" v-show="!isShare && !isCommentingFlag">
<a href="javascript:;" class="flex-center" @click="isCommentingFlag = true"><img :src="commentIcon" />我来说两句</a> <a href="javascript:;" class="flex-center" @click="isCommentingFlag = true"><img :src="commentIcon" />我来说两句</a>
</div> </div>
</div> </div>
...@@ -75,9 +75,11 @@ ...@@ -75,9 +75,11 @@
'noborder': false, 'noborder': false,
'isBack': true 'isBack': true
}, },
isShare: _this.$route.query.share?true:false,
articleId: _this.$route.query.id, articleId: _this.$route.query.id,
token: localStorage.getItem('token'), token: localStorage.getItem('token'),
articleTitle: '', articleTitle: '',
articleLabelname: '',//标签名
articleTime: '', articleTime: '',
articleContent: '', articleContent: '',
commentIcon, commentIcon,
...@@ -125,6 +127,7 @@ ...@@ -125,6 +127,7 @@
if(response.data.code == 200) { if(response.data.code == 200) {
let _news = response.data.data.news; let _news = response.data.data.news;
_this.articleTitle = _news.title; _this.articleTitle = _news.title;
_this.articleLabelname = _news.label_name;
_this.articleTime = _news.create_time; _this.articleTime = _news.create_time;
_this.articleContent = _this.common.urlDeal(_news.content); _this.articleContent = _this.common.urlDeal(_news.content);
} else { } else {
...@@ -214,7 +217,7 @@ ...@@ -214,7 +217,7 @@
let _this = this; let _this = this;
let _url = location.href+'&share=1'; let _url = location.href+'&share=1';
let _title = _this.articleTitle; let _title = _this.articleTitle;
let _content = ''; let _content = _this.articleLabelname;
_this.common.Compatible({ _this.common.Compatible({
paraIos: { paraIos: {
'route': 'shareClick', 'route': 'shareClick',
......
...@@ -24,6 +24,22 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -24,6 +24,22 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
isFollowupSaving: false, isFollowupSaving: false,
init: function() { init: function() {
//初始化dot //初始化dot
$.ajax({ //推荐至首页
'type': 'get',
'url': 'https://pre2.tonglianjituan.com/api/filtrateCondition',
dataType: "json",
success: function(data) {
if(data.code == 200) {
if(data.data) {}
} else {
alert("推荐失败!")
}
}
});
$("body").append(template); $("body").append(template);
function  getPreMonth(date)  {             function  getPreMonth(date)  {            
var  arr  =  date.split('-');             var  arr  =  date.split('-');            
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment