作者 朱振飞

新增

@@ -11,7 +11,6 @@ App({ @@ -11,7 +11,6 @@ App({
11 let url = '/api/user/codeToToken', t = this; 11 let url = '/api/user/codeToToken', t = this;
12 wx.login({ 12 wx.login({
13 success: function (res) { 13 success: function (res) {
14 - console.log(res)  
15 t.post(url, { code: res.code }).then((r) => { 14 t.post(url, { code: res.code }).then((r) => {
16 wx.setStorageSync('token', r.userInfo.token) 15 wx.setStorageSync('token', r.userInfo.token)
17 }) 16 })
@@ -36,7 +35,8 @@ App({ @@ -36,7 +35,8 @@ App({
36 var promise = new Promise((resolve, reject) => { 35 var promise = new Promise((resolve, reject) => {
37 //init 36 //init
38 let that = this,token=wx.getStorageSync('token'),header={ 37 let that = this,token=wx.getStorageSync('token'),header={
39 - 'content-type': 'application/x-www-form-urlencoded' 38 + 'content-type': 'application/x-www-form-urlencoded',
  39 + 'token': token||''
40 },postData; 40 },postData;
41 data.header ? (token ? (header['token'] = token, delete data.header):setTimeout(()=>{ 41 data.header ? (token ? (header['token'] = token, delete data.header):setTimeout(()=>{
42 wx.navigateTo({ 42 wx.navigateTo({
@@ -44,7 +44,6 @@ App({ @@ -44,7 +44,6 @@ App({
44 }) 44 })
45 },1100)):"" 45 },1100)):""
46 //网络请求 46 //网络请求
47 - console.log(header)  
48 wx.request({ 47 wx.request({
49 url: this.globalData.baseUrl + url, 48 url: this.globalData.baseUrl + url,
50 data: data, 49 data: data,
@@ -85,6 +84,6 @@ App({ @@ -85,6 +84,6 @@ App({
85 }, 84 },
86 globalData: { 85 globalData: {
87 userInfo: null, 86 userInfo: null,
88 - baseUrl:'http://lqz.w.brotop.cn' 87 + baseUrl:'https://lqz.w.brotop.cn'
89 } 88 }
90 }) 89 })
@@ -20,7 +20,9 @@ @@ -20,7 +20,9 @@
20 "pages/attract/attract", 20 "pages/attract/attract",
21 "pages/attract/detail/detail", 21 "pages/attract/detail/detail",
22 "pages/register/register", 22 "pages/register/register",
23 - "pages/question/question" 23 + "pages/question/question",
  24 + "pages/attract/list/list",
  25 + "pages/attract/articleDetail/articleDetail"
24 ], 26 ],
25 "tabBar": { 27 "tabBar": {
26 "list": [ 28 "list": [

1.1 KB | 宽: | 高:

1.0 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
  1 +// pages/attract/articleDetail/articleDetail.js
  2 +const A = getApp();
  3 +const wxParse = require('../../../wxParse/wxParse.js')
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 +
  11 + },
  12 +
  13 + /**
  14 + * 生命周期函数--监听页面加载
  15 + */
  16 + onLoad: function (options) {
  17 + let t = this;
  18 + t.setData({
  19 + id: options.id
  20 + }), t.d(options.id)
  21 + },
  22 + d(id){
  23 + let url = '/api/Article/detail',params={
  24 + id: id
  25 + },t = this;
  26 + A.post(url,params).then((r)=>{
  27 + t.setData({
  28 + detail: r
  29 + })
  30 + wxParse.wxParse('contentHtml', 'html', r.content, t, 5);
  31 + })
  32 + },
  33 +
  34 + /**
  35 + * 生命周期函数--监听页面初次渲染完成
  36 + */
  37 + onReady: function () {
  38 +
  39 + },
  40 +
  41 + /**
  42 + * 生命周期函数--监听页面显示
  43 + */
  44 + onShow: function () {
  45 +
  46 + },
  47 +
  48 + /**
  49 + * 生命周期函数--监听页面隐藏
  50 + */
  51 + onHide: function () {
  52 +
  53 + },
  54 +
  55 + /**
  56 + * 生命周期函数--监听页面卸载
  57 + */
  58 + onUnload: function () {
  59 +
  60 + },
  61 +
  62 + /**
  63 + * 页面相关事件处理函数--监听用户下拉动作
  64 + */
  65 + onPullDownRefresh: function () {
  66 +
  67 + },
  68 +
  69 + /**
  70 + * 页面上拉触底事件的处理函数
  71 + */
  72 + onReachBottom: function () {
  73 +
  74 + },
  75 +
  76 + /**
  77 + * 用户点击右上角分享
  78 + */
  79 + onShareAppMessage: function () {
  80 +
  81 + }
  82 +})
  1 +{
  2 + "usingComponents": {},
  3 + "navigationBarTitleText": "政策宣传"
  4 +}
  1 +<!--pages/attract/articleDetail/articleDetail.wxml-->
  2 +<view class='title margin_set'>{{detail.title}}</view>
  3 +<view class='content margin_set'>
  4 + <import src="/wxParse/wxParse.wxml" />
  5 + <template is="wxParse" data="{{wxParseData:contentHtml.nodes}}" />
  6 +</view>
  1 +/* pages/attract/articleDetail/articleDetail.wxss */
  2 +.title{
  3 + font-size: 34rpx;
  4 + color: #333;
  5 + font-weight: bold;
  6 +padding: 52rpx 0 40rpx;
  7 +}
  8 +.margin_set{
  9 + margin: 0 46rpx;
  10 +}
  11 +.content image{
  12 + width: 100%!important;
  13 +}
  14 +.content{
  15 + padding-bottom: 40rpx;
  16 +}
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 <scroll-view bindscroll="scroll" bindscrolltolower="getMore" class="news_detail_container" hidden='{{!ifData}}' scrollTop="{{scrollTop}}" scrollY="true" style="height:{{windowHeight-200}}px;"> 20 <scroll-view bindscroll="scroll" bindscrolltolower="getMore" class="news_detail_container" hidden='{{!ifData}}' scrollTop="{{scrollTop}}" scrollY="true" style="height:{{windowHeight-200}}px;">
21 <view class='news_detail_items'> 21 <view class='news_detail_items'>
22 <block wx:for='{{list}}' wx:key=''> 22 <block wx:for='{{list}}' wx:key=''>
23 - <navigator class='news_detail_item' url='/pages/attract/detail/detail?id={{item.id}}' id="{{item.id}}" bindtap='btn_matrix'> 23 + <navigator class='news_detail_item' url='/pages/attract/articleDetail/articleDetail?id={{item.id}}' id="{{item.id}}" bindtap='btn_matrix'>
24 <view class='new_info'> 24 <view class='new_info'>
25 <view class='new_title'>{{item.title}}</view> 25 <view class='new_title'>{{item.title}}</view>
26 <view class='new_time_address'> 26 <view class='new_time_address'>
  1 +const A = getApp();
1 Page({ 2 Page({
2 3
3 /** 4 /**
4 * 页面的初始数据 5 * 页面的初始数据
5 */ 6 */
6 data: { 7 data: {
7 - 8 + startComment: false
8 }, 9 },
9 10
10 /** 11 /**
11 * 生命周期函数--监听页面加载 12 * 生命周期函数--监听页面加载
12 */ 13 */
13 onLoad: function (options) { 14 onLoad: function (options) {
14 - 15 + let t = this;
  16 + t.setData({
  17 + id:options.id
  18 + }),t.d(options.id),t.c()
  19 + },
  20 + d(id){
  21 + let url = '/api/interact/getPostsDetail',params = {
  22 + id:id
  23 + },t = this;
  24 + A.post(url,params).then((r)=>{
  25 + console.log(r)
  26 + t.setData({
  27 + detail:r
  28 + })
  29 + })
  30 + },
  31 + c(){
  32 + let url = '/api/interact/getPostsCommentList',t = this ,params={
  33 + id:t.data.id
  34 + };
  35 + A.post(url,params).then((r)=>{
  36 + t.setData({
  37 + comments:r.data
  38 + })
  39 + })
  40 + },
  41 + s(){
  42 + let t = this,params = {
  43 + id:t.data.id,
  44 + content: t.data.content
  45 + }, t. url ='/api/interact/setPostsComment';
  46 + A.post(url,params).then((r)=>{
  47 + console.log(r)
  48 + })
  49 + },
  50 + subComments(e){
  51 + this.setData({
  52 + content: e.detail.value
  53 + })
  54 + },
  55 + parentSet(e){
  56 + this.setData({
  57 + parent_id: e.currentTarget.id,
  58 + startComment: true
  59 + })
15 }, 60 },
16 -  
17 /** 61 /**
18 * 生命周期函数--监听页面初次渲染完成 62 * 生命周期函数--监听页面初次渲染完成
19 */ 63 */
1 1
2 <view class='container'> 2 <view class='container'>
3 <view class='item'> 3 <view class='item'>
4 - <view class='item_top'>  
5 - 员工个税减免干货都在这里了!各家HR惠存鸭~  
6 - </view> 4 + <view class='item_top'>{{detail.title}}</view>
7 <view class='item_mid'> 5 <view class='item_mid'>
8 <view class='item_mid_text'> 6 <view class='item_mid_text'>
9 - 新个人所得税法近日备受关注。关于个人所得税,想必大家都十分关心,让我们通过以下问题! 7 + {{detail.content}}
10 <span class='color_blue'>全部</span> 8 <span class='color_blue'>全部</span>
11 </view> 9 </view>
12 <!-- 图片盒子 --> 10 <!-- 图片盒子 -->
13 - <view class='item_mid_box'>  
14 -  
15 - <view class='item_mid_box_pic'>  
16 - <image src='../../images/weirenzheng@2x.png'></image>  
17 - </view>  
18 -  
19 - <view class='item_mid_box_pic'>  
20 - <image src='../../images/weirenzheng@2x.png'></image>  
21 - </view>  
22 -  
23 - <view class='item_mid_box_pic'>  
24 - <image src='../../images/weirenzheng@2x.png'></image> 11 + <view class='item_mid_box' wx:if="{{detail.images}}">
  12 + <view class='item_mid_box_pic' wx:for='{{detail.images}}' wx:key=''>
  13 + <image src='{{item}}'></image>
25 </view> 14 </view>
26 </view> 15 </view>
27 </view> 16 </view>
@@ -30,17 +19,17 @@ @@ -30,17 +19,17 @@
30 <view class='item_left'> 19 <view class='item_left'>
31 <!-- 头像 --> 20 <!-- 头像 -->
32 <view class='item_left_pic'> 21 <view class='item_left_pic'>
33 - <image src='../../images/weirenzheng@3x.png'></image> 22 + <image src='{{detail.avatar}}'></image>
34 </view> 23 </view>
35 <view class='item_name'> 24 <view class='item_name'>
36 - 张小亮 25 + {{detail.nickname}}
37 </view> 26 </view>
38 <!-- 时间 --> 27 <!-- 时间 -->
39 <view class='item_time'> 28 <view class='item_time'>
40 - 2019/01/21 29 + {{detail.create_time_text}}
41 </view> 30 </view>
42 <!-- 删除 --> 31 <!-- 删除 -->
43 - <view class='item_delete'> 32 + <view class='item_delete' hidden='{{detail.is_mine==0}}' bindtap='del'>
44 删除 33 删除
45 </view> 34 </view>
46 </view> 35 </view>
@@ -52,16 +41,15 @@ @@ -52,16 +41,15 @@
52 </view> 41 </view>
53 <!-- 数量 --> 42 <!-- 数量 -->
54 <view class='item_right_number'> 43 <view class='item_right_number'>
55 - 26 44 + {{detail.browse_count}}
56 </view> 45 </view>
57 -  
58 <!-- 图片 --> 46 <!-- 图片 -->
59 <view class='item_right_pic2'> 47 <view class='item_right_pic2'>
60 <image src='../../images/pinglun@3x.png'></image> 48 <image src='../../images/pinglun@3x.png'></image>
61 </view> 49 </view>
62 <!-- 数量 --> 50 <!-- 数量 -->
63 <view class='item_right_number'> 51 <view class='item_right_number'>
64 - 26 52 + {{detail.comment_count}}
65 </view> 53 </view>
66 54
67 </view> 55 </view>
@@ -71,94 +59,57 @@ @@ -71,94 +59,57 @@
71 59
72 <view class='item_box'> 60 <view class='item_box'>
73 <!-- 回复内容1 --> 61 <!-- 回复内容1 -->
74 - <view class='item item_bottom'> 62 + <view class='item item_bottom' wx:for='{{comments}}' wx:key=''>
75 <view class='item_list'> 63 <view class='item_list'>
76 <view class='item_list_left'> 64 <view class='item_list_left'>
77 <view class='item_list_left_pic'> 65 <view class='item_list_left_pic'>
78 - <image src='../../images/img.jpg'></image> 66 + <image src='{{item.avatar}}'></image>
79 </view> 67 </view>
80 </view> 68 </view>
81 <!-- 右边 --> 69 <!-- 右边 -->
82 <view class='item_list_right'> 70 <view class='item_list_right'>
83 <!-- 名字 --> 71 <!-- 名字 -->
84 <view class='item_list_right_name'> 72 <view class='item_list_right_name'>
85 - Bigman 73 + {{item.nickname}}
86 </view> 74 </view>
87 <!-- 评论 --> 75 <!-- 评论 -->
88 - <view class='item_list_right_title'>  
89 - 祝愿祖国越来越强大!!! 76 + <view class='item_list_right_title' bindtap='parentSet' id='{{item.id}}'>
  77 + {{item.content}}
90 </view> 78 </view>
91 <!-- 时间&点赞 --> 79 <!-- 时间&点赞 -->
92 <view class='time_bottom'> 80 <view class='time_bottom'>
93 <view class='time_bottom_left'> 81 <view class='time_bottom_left'>
94 - 24分钟前 82 + {{item.create_time_text}}
95 </view> 83 </view>
96 <view class='time_bottom_left'> 84 <view class='time_bottom_left'>
97 - <view>21</view>  
98 - <view class='time_bottom_left_pic'>  
99 - <image src='../../images/zan@3x.png'></image> 85 + <view>{{item.likes}}</view>
  86 + <view class='time_bottom_left_pic' bindtap='zan' id='{{item.id}}'>
  87 + <image src='../../images/zan@3x.png' wx:if="{{item.is_like==0}}"></image>
  88 + <image src='../../images/thumb-up-button@3x' wx:else></image>
100 </view> 89 </view>
101 </view> 90 </view>
102 </view> 91 </view>
103 <!-- 底部评论 --> 92 <!-- 底部评论 -->
104 - <view class='text_bottom'>  
105 - <span class='color_blue'>你好啊:</span>哪个人是你  
106 - </view>  
107 - <!-- 下划线 -->  
108 - <view class='underline'></view>  
109 - </view>  
110 - </view>  
111 - </view>  
112 -  
113 - <!-- 回复内容2 -->  
114 - <view class='item item_bottom'>  
115 - <view class='item_list'>  
116 - <view class='item_list_left'>  
117 - <view class='item_list_left_pic'>  
118 - <image src='../../images/img.jpg'></image>  
119 - </view>  
120 - </view>  
121 - <!-- 右边 -->  
122 - <view class='item_list_right'>  
123 - <!-- 名字 -->  
124 - <view class='item_list_right_name'>  
125 - Bigman  
126 - </view>  
127 - <!-- 评论 -->  
128 - <view class='item_list_right_title'>  
129 - 祝愿祖国越来越强大!!!  
130 - </view>  
131 - <!-- 时间&点赞 -->  
132 - <view class='time_bottom'>  
133 - <view class='time_bottom_left'>  
134 - 24分钟前  
135 - </view>  
136 - <view class='time_bottom_left'>  
137 - <view>21</view>  
138 - <view class='time_bottom_left_pic'>  
139 - <image src='../../images/zan@3x.png'></image> 93 + <view class='sec_comments' wx:if="{{item.child.length>0}}">
  94 + <view class='sec_comment' wx:for='{{item.child}}' wx:for-item='sec' wx:key=''>
  95 + <view class='text_bottom' >
  96 + <text class='color_blue'>{{sec.nickname}}:</text>{{sec.content}}
140 </view> 97 </view>
141 </view> 98 </view>
  99 + <view class='underline'></view>
142 </view> 100 </view>
143 - <!-- 底部评论 -->  
144 - <!-- <view class='text_bottom'>  
145 - <span class='color_blue'>你好啊:</span>哪个人是你  
146 - </view> -->  
147 - <!-- 下划线 -->  
148 - <!-- <view class='underline'></view> -->  
149 </view> 101 </view>
150 </view> 102 </view>
151 </view> 103 </view>
152 </view> 104 </view>
153 105
154 -  
155 106
156 <!-- 底部发表按钮 --> 107 <!-- 底部发表按钮 -->
157 <view class='bottom_box'> 108 <view class='bottom_box'>
158 <view class='bottom_box_input'> 109 <view class='bottom_box_input'>
159 - <input placeholder='发表评论...'></input> 110 + <input placeholder='发表评论...' focus='{{startComment}}' bindtap='parentSet' bindinput='subComments' id=''></input>
160 </view> 111 </view>
161 - <view class='bottom_box_text'> 112 + <view class='bottom_box_text' bindtap='s'>
162 发表 113 发表
163 </view> 114 </view>
164 </view> 115 </view>
@@ -15,10 +15,9 @@ page{ @@ -15,10 +15,9 @@ page{
15 padding: 48rpx 46rpx 0 32rpx; 15 padding: 48rpx 46rpx 0 32rpx;
16 } 16 }
17 .item_top{ 17 .item_top{
18 -  
19 font-size:30rpx; 18 font-size:30rpx;
20 font-family:PingFang SC; 19 font-family:PingFang SC;
21 - font-weight:600; 20 + font-weight:bold;
22 line-height:42rpx; 21 line-height:42rpx;
23 color:rgba(51,51,51,1); 22 color:rgba(51,51,51,1);
24 opacity:1; 23 opacity:1;
@@ -288,5 +287,4 @@ page{ @@ -288,5 +287,4 @@ page{
288 } 287 }
289 .item_box{ 288 .item_box{
290 margin-top: 16rpx; 289 margin-top: 16rpx;
291 - margin-bottom: 200rpx;  
292 } 290 }
1 -let t = getApp(); 1 +let A = getApp();
2 Page({ 2 Page({
3 3
4 /** 4 /**
@@ -32,12 +32,30 @@ Page({ @@ -32,12 +32,30 @@ Page({
32 }, 32 },
33 }), this.postList(); 33 }), this.postList();
34 }, 34 },
  35 + zan(e){
  36 + let url = '/api/interact/setLike',params = {
  37 + object_id: e.currentTarget.id,
  38 + type:'1'
  39 + }, index = e.currentTarget.dataset.idx,t=this,type=e.currentTarget.dataset.type;
  40 + A.post(url,params).then((r)=>{
  41 + t.data.postList[index].is_like = type==1?0:1
  42 + t.data.postList[index].likes = r
  43 + t.setData({
  44 + postList: t.data.postList
  45 + })
  46 + })
  47 + },
  48 + navdetail(e) {
  49 + wx.navigateTo({
  50 + url: '/pages/colleagues_2/colleagues_2?id='+e.currentTarget.id,
  51 + })
  52 + },
35 getzixun() { 53 getzixun() {
36 let url = '/api/interact/getQuestionList', d = this, params = { 54 let url = '/api/interact/getQuestionList', d = this, params = {
37 header: true, 55 header: true,
38 page: d.data.page 56 page: d.data.page
39 }; 57 };
40 - t.post(url, params, false).then((r) => { 58 + A.post(url, params, false).then((r) => {
41 let list = d.data.zixunList.concat(r.data); 59 let list = d.data.zixunList.concat(r.data);
42 d.setData({ 60 d.setData({
43 zixunList: list 61 zixunList: list
@@ -58,7 +76,7 @@ Page({ @@ -58,7 +76,7 @@ Page({
58 let url = '/api/interact/getPostsList', d = this, params = { 76 let url = '/api/interact/getPostsList', d = this, params = {
59 page: d.data.page 77 page: d.data.page
60 }; 78 };
61 - t.post(url, params, false).then((r) => { 79 + A.post(url, params, false).then((r) => {
62 let list = d.data.postList.concat(r.data); 80 let list = d.data.postList.concat(r.data);
63 d.setData({ 81 d.setData({
64 postList: list 82 postList: list
@@ -81,7 +99,7 @@ Page({ @@ -81,7 +99,7 @@ Page({
81 let b = this, url = '/api/user/getAuthStatus', params = { 99 let b = this, url = '/api/user/getAuthStatus', params = {
82 header: true 100 header: true
83 }; 101 };
84 - t.post(url, params).then((r) => { 102 + A.post(url, params).then((r) => {
85 b.setData({ 103 b.setData({
86 auth: r 104 auth: r
87 }); 105 });
@@ -102,6 +120,8 @@ Page({ @@ -102,6 +120,8 @@ Page({
102 let t = this, idx = e.currentTarget.dataset.idx; 120 let t = this, idx = e.currentTarget.dataset.idx;
103 this.setData({ 121 this.setData({
104 currentTab: idx, 122 currentTab: idx,
  123 + zixunList:[],
  124 + postList:[]
105 }), idx ? t.postList() : t.getzixun(); 125 }), idx ? t.postList() : t.getzixun();
106 }, 126 },
107 jump() { 127 jump() {
1 -<view class="nav mainindex_nav top"> 1 +<!-- <view class="nav mainindex_nav top">
2 <view wx:for="{{navbar}}" data-idx="{{index}}" class="nav_item {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}</view> 2 <view wx:for="{{navbar}}" data-idx="{{index}}" class="nav_item {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}</view>
3 -</view> 3 +</view> -->
4 <scroll-view wx:if='{{auth=="2"}}' style='height:{{winHeight}}px' scroll-y="true"> 4 <scroll-view wx:if='{{auth=="2"}}' style='height:{{winHeight}}px' scroll-y="true">
5 -  
6 <view class="none-box" hidden="{{!ifData}}"> 5 <view class="none-box" hidden="{{!ifData}}">
7 <view>暂无相关咨询</view> 6 <view>暂无相关咨询</view>
8 </view> 7 </view>
@@ -58,7 +57,7 @@ @@ -58,7 +57,7 @@
58 </view> 57 </view>
59 <!-- 条目 --> 58 <!-- 条目 -->
60 <view class='mid_item' wx:for='{{postList}}' wx:key=''> 59 <view class='mid_item' wx:for='{{postList}}' wx:key=''>
61 - <view class='mid_item_top'> 60 + <view class='mid_item_top' bindtap='navdetail' id='{{item.id}}'>
62 <view class='mid_item_top_left'> 61 <view class='mid_item_top_left'>
63 <!-- 图片 --> 62 <!-- 图片 -->
64 <view class='mid_item_top_left_pic'> 63 <view class='mid_item_top_left_pic'>
@@ -74,37 +73,30 @@ @@ -74,37 +73,30 @@
74 </view> 73 </view>
75 </view> 74 </view>
76 <!-- 文字内容 --> 75 <!-- 文字内容 -->
77 - <view class='mid_item_text'> 76 + <view class='mid_item_text' bindtap='navdetail' id='{{item.id}}'>
78 {{item.content}} 77 {{item.content}}
79 </view> 78 </view>
80 <!-- 图片 --> 79 <!-- 图片 -->
81 - <view class='mid_pic_box'>  
82 - <view class='mid_pic_box_item'>  
83 - <image src='../../images/weirenzheng@3x.png'></image>  
84 - </view>  
85 - <view class='mid_pic_box_item'>  
86 - <image src='../../images/weirenzheng@3x.png'></image> 80 + <view class='mid_pic_box' wx:if='{{item.images}}'>
  81 + <view class='mid_pic_box_item' wx:for="{{item.images}}" wx:key='' wx:for-item='sec'>
  82 + <image src='{{sec}}'></image>
87 </view> 83 </view>
88 - <view class='mid_pic_box_item'>  
89 - <image src='../../images/weirenzheng@3x.png'></image>  
90 - </view>  
91 -  
92 </view> 84 </view>
93 <!-- 底部 --> 85 <!-- 底部 -->
94 <view class='mid_item_like'> 86 <view class='mid_item_like'>
95 - <view class='mid_item_like_left' hidden='{{item.is_can_del=="0"}}' id='{{item.id}}' bindtap='delete'>  
96 - 删除 87 + <view class='mid_item_like_left' >
  88 + <text hidden='{{item.is_can_del=="0"}}' id='{{item.id}}' bindtap='delete'>删除</text>
97 </view> 89 </view>
98 <view class='mid_item_like_right'> 90 <view class='mid_item_like_right'>
99 <!-- 点赞 --> 91 <!-- 点赞 -->
100 - <view class='mid_like color_blue'>  
101 - <image src='../../images/thumb-up-button@3x.png'></image> 92 + <view class='mid_like color_blue' bindtap='zan' id='{{item.id}}' data-idx='{{index}}' data-type='{{item.is_like}}'>
  93 + <image src='../../images/thumb-up-button@3x.png' wx:if='{{item.is_like==1}}'></image>
  94 + <image src='../../images/dainzan@3x.png' wx:else></image>
102 </view> 95 </view>
103 <!-- 数量 --> 96 <!-- 数量 -->
104 <view class='mid_number color_blue'> 97 <view class='mid_number color_blue'>
105 {{item.likes}} 98 {{item.likes}}
106 </view> 99 </view>
107 -  
108 <!-- 点赞 --> 100 <!-- 点赞 -->
109 <view class='mid_like'> 101 <view class='mid_like'>
110 <image src='../../images/pinglun@3x.png'></image> 102 <image src='../../images/pinglun@3x.png'></image>
@@ -114,9 +106,7 @@ @@ -114,9 +106,7 @@
114 {{item.comment_count}} 106 {{item.comment_count}}
115 </view> 107 </view>
116 </view> 108 </view>
117 -  
118 </view> 109 </view>
119 -  
120 </view> 110 </view>
121 </view> 111 </view>
122 </view> 112 </view>
@@ -18,7 +18,7 @@ Page({ @@ -18,7 +18,7 @@ Page({
18 * 生命周期函数--监听页面加载 18 * 生命周期函数--监听页面加载
19 */ 19 */
20 onLoad: function (options) { 20 onLoad: function (options) {
21 - 21 +
22 }, 22 },
23 setText(e){ 23 setText(e){
24 let t = this,s = e.currentTarget.dataset.type; 24 let t = this,s = e.currentTarget.dataset.type;
@@ -15,11 +15,11 @@ @@ -15,11 +15,11 @@
15 <image src='/images/img.jpg'></image> 15 <image src='/images/img.jpg'></image>
16 <!-- <import src="../../../wxParse/wxParse.wxml" /> 16 <!-- <import src="../../../wxParse/wxParse.wxml" />
17 <view class='content'> 17 <view class='content'>
  18 + <import src="../../../wxParse/wxParse.wxml" />
18 <template is="wxParse" data="{{wxParseData:article.nodes}}" /> 19 <template is="wxParse" data="{{wxParseData:article.nodes}}" />
19 </view> --> 20 </view> -->
20 </view> 21 </view>
21 </view> 22 </view>
22 -  
23 </view> 23 </view>
24 24
25 <view class='comment_box'> 25 <view class='comment_box'>
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 "ignore": [] 4 "ignore": []
5 }, 5 },
6 "setting": { 6 "setting": {
7 - "urlCheck": false, 7 + "urlCheck": true,
8 "es6": true, 8 "es6": true,
9 "postcss": true, 9 "postcss": true,
10 "minified": true, 10 "minified": true,
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 "autoAudits": false 12 "autoAudits": false
13 }, 13 },
14 "compileType": "miniprogram", 14 "compileType": "miniprogram",
15 - "libVersion": "2.6.1", 15 + "libVersion": "2.6.2",
16 "appid": "wx75855734b0730d64", 16 "appid": "wx75855734b0730d64",
17 "projectname": "%E6%9D%8E%E4%B8%83%E5%BA%84", 17 "projectname": "%E6%9D%8E%E4%B8%83%E5%BA%84",
18 "debugOptions": { 18 "debugOptions": {
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 "list": [] 37 "list": []
38 }, 38 },
39 "miniprogram": { 39 "miniprogram": {
40 - "current": 31, 40 + "current": 36,
41 "list": [ 41 "list": [
42 { 42 {
43 "id": 0, 43 "id": 0,
@@ -262,6 +262,41 @@ @@ -262,6 +262,41 @@
262 "pathName": "pages/myComments/myComments", 262 "pathName": "pages/myComments/myComments",
263 "query": "", 263 "query": "",
264 "scene": null 264 "scene": null
  265 + },
  266 + {
  267 + "id": -1,
  268 + "name": "政企互动",
  269 + "pathName": "pages/enterprise/enterprise",
  270 + "query": "",
  271 + "scene": null
  272 + },
  273 + {
  274 + "id": -1,
  275 + "name": "慧招商列表",
  276 + "pathName": "pages/attract/list/list",
  277 + "query": "",
  278 + "scene": null
  279 + },
  280 + {
  281 + "id": -1,
  282 + "name": "慧招商详情",
  283 + "pathName": "pages/attract/detail/detail",
  284 + "query": "id=1",
  285 + "scene": null
  286 + },
  287 + {
  288 + "id": -1,
  289 + "name": "认证成功",
  290 + "pathName": "pages/my/approveInfo/approveInfo",
  291 + "query": "",
  292 + "scene": null
  293 + },
  294 + {
  295 + "id": -1,
  296 + "name": "帖子详情",
  297 + "pathName": "pages/colleagues_2/colleagues_2",
  298 + "query": "id=1",
  299 + "scene": null
265 } 300 }
266 ] 301 ]
267 } 302 }