Commit 1a327ab0 authored by xishifeng's avatar xishifeng

补充

parent 9cacb7ea
......@@ -79,9 +79,18 @@
<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">
<input type="checkbox" class="yetai" id="" value="亲子教育">亲子教育
</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">
<input type="checkbox" class="yetai" id="" value="其他">其他
</label>
......
<template>
<div>
<header-pulic :data="headerData">
<header-pulic :data="headerData" v-if="!isShare">
<a href="javascript:;" class="icon-link icon-link-share" @click="share"></a>
</header-pulic>
<div class="header_seat"></div>
......@@ -38,7 +38,7 @@
</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>
</div>
</div>
......@@ -75,9 +75,11 @@
'noborder': false,
'isBack': true
},
isShare: _this.$route.query.share?true:false,
articleId: _this.$route.query.id,
token: localStorage.getItem('token'),
articleTitle: '',
articleLabelname: '',//标签名
articleTime: '',
articleContent: '',
commentIcon,
......@@ -125,6 +127,7 @@
if(response.data.code == 200) {
let _news = response.data.data.news;
_this.articleTitle = _news.title;
_this.articleLabelname = _news.label_name;
_this.articleTime = _news.create_time;
_this.articleContent = _this.common.urlDeal(_news.content);
} else {
......@@ -214,7 +217,7 @@
let _this = this;
let _url = location.href+'&share=1';
let _title = _this.articleTitle;
let _content = '';
let _content = _this.articleLabelname;
_this.common.Compatible({
paraIos: {
'route': 'shareClick',
......
......@@ -24,6 +24,22 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
isFollowupSaving: false,
init: function() {
//初始化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);
function  getPreMonth(date)  {            
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