作者 朱振飞

李七庄街

... ... @@ -6,6 +6,8 @@ App({
logs.unshift(Date.now())
this.changeToken();
// 获取用户信息
console.log(111)
},
changeToken() {
let url = '/api/user/codeToToken', t = this;
... ... @@ -26,11 +28,11 @@ App({
* +-------------------
* @return {Promise} promise 返回promise供后续操作
*/
if (showLoad == undefined || showLoad){
(showLoad == undefined || showLoad)?
wx.showLoading({
title: '加载中',
})
}
:''
wx.showNavigationBarLoading()
var promise = new Promise((resolve, reject) => {
//init
... ... @@ -101,6 +103,6 @@ App({
},
globalData: {
userInfo: null,
baseUrl:'https://lqz.w.brotop.cn'
baseUrl:'https://txgyy.jjjtech.cn/'
}
})
\ No newline at end of file
... ...
... ... @@ -22,7 +22,8 @@
"pages/register/register",
"pages/question/question",
"pages/attract/list/list",
"pages/attract/articleDetail/articleDetail"
"pages/attract/articleDetail/articleDetail",
"pages/detail/detail"
],
"tabBar": {
"list": [
... ... @@ -57,5 +58,6 @@
"navigationBarBackgroundColor": "#169BD5",
"navigationBarTitleText": "政企服务平台",
"navigationBarTextStyle": "white"
}
},
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
... ...
... ... @@ -122,4 +122,9 @@
width: 0;
height: 0;
color: transparent;
}
\ No newline at end of file
}
.wxParse-img{
max-width: 610rpx;
overflow: hidden;
}
... ...

75.9 KB | 宽: | 高:

98.4 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
... ... @@ -7,7 +7,9 @@ Page({
* 页面的初始数据
*/
data: {
comments:[],
noMore:!0,
page:1
},
/**
... ... @@ -17,7 +19,7 @@ Page({
let t = this;
t.setData({
id: options.id
}), t.d(options.id)
}), t.d(options.id),t.c();
},
d(id){
let url = '/api/Article/detail',params={
... ... @@ -31,6 +33,87 @@ Page({
})
},
comment() {
this.setData({
startComment: true
})
},
outFocus() {
this.setData({
startComment: false
})
},
c() {
let url = '/api/Article/getArticleCommentList', t = this, params = {
id: t.data.id,
page: t.data.page
};
A.post(url, params).then((r) => {
t.setData({
comments: t.data.comments.concat(r.data),
total: r.total,
noMore: r.last_page == r.current_page ? !0 : !1
})
})
},
s() {
let t = this, params = {
id: t.data.id,
content: t.data.content
}, url = '/api/article/setArticleComment';
t.data.parent_id ? params.parent_id = t.data.parent_id : '';
!t.data.subing ? (params.content ? (t.setData({ subing: true }),A.post(url, params, false).then((r) => {
t.setData({
content: '',
parent_id: '',
comments: [],
page: 1,
startComment: false,
subing: false
})
t.c();
}).catch(()=>{
t.setData({ subing: false })
})) : wx.showToast({
title: '请输入评论',
icon: 'none'
})):""
},
zan(e) {
let url = '/api/interact/setLike', params = {
object_id: e.currentTarget.id,
type: e.currentTarget.dataset.type
}, index = e.currentTarget.dataset.indx, t = this, type = e.currentTarget.dataset.type;
A.post(url, params).then((r) => {
r.is_like==1?wx.showToast({
title: '点赞成功',
icon:'none'
}) : wx.showToast({
title: '已取消点赞',
icon: 'none'
})
type == '2'?(
t.data.comments[index].is_like = r.is_like,
t.data.comments[index].likes = r.likes,
t.setData({
comments: t.data.comments
})): t.setData({
'detail.is_like': r.is_like
})
})
},
subComments(e) {
this.setData({
content: e.detail.value
})
},
parentSet(e) {
this.setData({
parent_id: e.currentTarget.id,
startComment: true
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ... @@ -70,13 +153,26 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
let t = this;
!t.data.noMore?(t.setData({
page: t.data.page+1
}),t.c()):""
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
let that = this;
return {
title: that.data.detail.title, // 转发后 所显示的title
path: '/pages/attract/articleDetail/articleDetail?id='+that.data.id, // 相对的路径
success: (res) => {
},
fail: function (res) {
// 分享失败
console.log(res)
}
}
}
})
\ No newline at end of file
... ...
... ... @@ -3,8 +3,68 @@
<view class='content margin_set'>
<view class='article'>
<view class='from' hidden='{{!detail.source}}'>来源:{{detail.source}}</view>
<view class='time'>{{detail.create_time_text}}</view>
<view class='time ar-time'>{{detail.create_time_text}}</view>
</view>
<import src="/wxParse/wxParse.wxml" />
<template is="wxParse" data="{{wxParseData:contentHtml.nodes}}" />
</view>
<view class='comment_box' >
<view class='comment_title' hidden='{{total==0}}'>评论</view>
<view class='null_box' hidden='{{total>0}}'>暂无相关评论</view>
<view class='comment_item' wx:for='{{comments}}' wx:key=''>
<view class='left_box'>
<image class='head_img' src='{{item.avatar}}'></image>
</view>
<view class='comment_content_box' bindtap='parentSet' id='{{item.id}}'>
<view class='comment_name'>{{item.nickname}}</view>
<view class='comment_content'>{{item.content}}</view>
<view class='list_state_box'>
<view class='time'>{{item.create_time_text}}</view>
<view class='list_icon'>
<view catchtap='zan' class='zan_box' data-indx="{{index}}" id='{{item.id}}' data-type='2'>
<text class='time'>{{item.likes}}</text>
<text class='iconfont icon-zan zan active' wx:if="{{item.is_like}}"></text>
<text class='iconfont icon-zan zan' wx:else></text>
</view>
</view>
</view>
</view>
<view class='sec_comments' wx:if="{{item.child.length>0}}">
<view class='sec_comment' wx:for='{{item.child}}' wx:for-item='sec' wx:key=''>
<view class='text_bottom'>
<text class='color_blue'>{{sec.nickname}}:</text>{{sec.content}}
</view>
</view>
<view class='underline'></view>
</view>
</view>
</view>
<view class='bottom_box' hidden='{{startComment}}'>
<view class="label_item" bindtap='comment'>
<text class='iconfont icon-bianji1 icon'></text>
<view>{{content||"写评论"}}</view>
</view>
<view class='label_icon_box'>
<view class='iconfont icon-pinglun icon pinglun'>
<text class='count' hidden='{{total==0}}'>{{total}}</text>
</view>
<view class='iconfont icon-fenxiang icon fenxiang'>
<button open-type='share'></button>
</view>
<text class='iconfont icon-zan icon active' style='font-size: 48rpx;' wx:if="{{detail.is_like}}" catchtap='zan' id='{{detail.id}}' data-type='3'></text>
<text class='iconfont icon-zan icon' wx:else style='font-size: 48rpx;' catchtap='zan' id='{{detail.id}}' data-type='3'></text>
</view>
</view>
<view class='bottom_box' hidden='{{!startComment}}'>
<view class='bottom_box_input'>
<input placeholder='发表评论...' value='{{content}}' focus='{{startComment}}' bindinput='subComments' bindblur='outFocus' cursor-spacing='10' class='comments' />
<!-- <view class='sub_box comments' bindtap='comment' hidden='{{startComment}}'>{{content||"发表评论..."}}</view> -->
</view>
<view class='bottom_box_text' bindtap='s'>
发表
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -23,4 +23,263 @@ padding: 52rpx 0 40rpx;
}
.from{
margin-right: 30rpx;
}
/* */
.comment_box {
padding: 30rpx 30rpx 180rpx;
background: #fff;
box-sizing: border-box;
margin-top: 16rpx;
border-top: 16rpx solid #f5f5f5;
}
.comment_title {
font-size: 34rpx;
font-weight: bold;
color: #333;
border-bottom: 1rpx solid #f5f5f5;
padding-bottom: 30rpx;
text-align: center;
}
.comment_item {
display: flex;
align-items: flex-start;
padding: 30rpx 0;
margin-bottom: 16rpx;
background: #fff;
border-bottom: 1rpx solid #f5f5f5;
flex-wrap: wrap;
}
.comment_item:last-child {
border-bottom: 0;
}
.head_img {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 20rpx;
}
.comment_content_box {
width: 85%;
}
.comment_content {
font-size: 28rpx;
color: #333;
margin-top: 10rpx;
}
.comment_name,.color_blue {
font-size: 24rpx;
color: #45609f;
}
.time {
font-size: 24rpx;
color: #999;
}
.ar-time{
display: flex;
align-items: center;
}
.wxParse-img{
max-width:100%;
overflow: hidden;
}
.zan {
font-size: 40rpx;
margin-left: 10rpx;
}
.list_info_box {
font-size: 24rpx;
color: #b3b3b3;
}
.list_state_box {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 26rpx;
color: #999;
margin-top: 15rpx;
}
.list_comment_box {
background: #ebecf0;
font-size: 24rpx;
color: #6b7e91;
margin-top: 28rpx;
}
.comment_list {
border-bottom: 1rpx solid #fff;
padding: 10rpx 17rpx;
}
/* */
.null_box {
width: 100%;
height: 110rpx;
}
.bottom_box {
width: 100%;
height: 96rpx;
position: fixed;
left: 0;
bottom: 0;
background: #fff;
display: flex;
align-items: center;
padding: 0 30rpx;
box-shadow:0rpx 0rpx 12rpx rgba(0,0,0,0.05);
}
.label_item {
width: 340rpx;
height: 64rpx;
background: rgba(247, 247, 247, 1);
border: 1rpx solid rgba(238, 238, 238, 1);
border-radius: 206rpx;
display: flex;
align-items: center;
font-size: 28rpx;
color: #666;
padding: 5rpx 20rpx;
margin-left: 30rpx;
}
.zan.active{
color: #45609f;
}
.icon-bianji1{
margin-right: 10rpx;
}
.label_icon_box{
width: 40%;
display: flex;
align-items: center;
justify-content: space-around;
padding: 0 30rpx;
}
.icon {
font-size: 40rpx;
color: #666666;
}
.icon.active{
color: #45609f;
}
.pinglun{
position: relative;
}
.pinglun .count{
background: #FF3131;
color: #FFF;
font-size: 16rpx;
position: absolute;
border-radius: 16rpx;
padding: 4rpx 10rpx;
right: 6rpx;
top: -10rpx;
transform: translateX(90%);
}
.fenxiang{
position: relative;
}
.fenxiang button{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}
.bottom_box{
width: 750rpx;
/* min-height: 120rpx; */
display: flex;
align-items: center;
justify-content: center;
background: #fff;
position: fixed;
bottom: 0;
border-top: 2rpx solid #F5F5F5;
padding: 20rpx 0;
z-index: 10;
}
.comments{
border:1rpx solid #F5F5F5;
font-size: 28rpx;
padding: 15rpx;
max-height: 130rpx;
}
.bottom_box_input{
width: 608rpx;
display: flex;
background:rgba(247,247,247,1);
border:2px solid rgba(238,238,238,1);
opacity:1;
border-radius:8rpx;
}
.bottom_box_input input{
width: 100%;
height: 64rpx;
padding: 0 32rpx;
font-size: 28rpx;
}
.bottom_box_input::placeholder{
color: #CCCCCC;
}
.bottom_box_text{
margin-left: 16rpx;
font-size:32rpx;
font-family:PingFang SC;
font-weight:600;
line-height:44rpx;
color:rgba(51,51,51,1);
opacity:1;
}
.item_box{
margin-top: 16rpx;
padding-bottom: 120rpx;
}
.sub_box{
color: #666;
}
.sec_comments{
width: 85%;
margin-left: auto;
-webkit-margin-start: auto;
}
.text_bottom{
margin-top: 22rpx;
background:rgba(245,245,245,1);
border-radius:8rpx;
padding: 16rpx;
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
line-height:34rpx;
color:rgba(51,51,51,1);
opacity:1;
}
.null_box{
height: 120rpx;
font-size: 28rpx;
color: #666;
display: flex;
align-items: center;
justify-content: center;
}
\ No newline at end of file
... ...
... ... @@ -35,7 +35,15 @@ Page({
tabWidth: res.windowWidth - 39
})
}
}),this.policyType();
}), this.policyType(), this.getBanner();
},
getBanner(){
let url = '/api/Article/getAttractInvestmentBanner';
app.post(url,{}).then(r=>{
this.setData({
banner: r.banner
})
})
},
policyType(){
let url = '/api/Article/category',a = this;
... ... @@ -46,7 +54,7 @@ Page({
})
a.getList(res[0].id,1)
})
},
},
chooseLocation(){
wx.chooseLocation({
success: function(res) {},
... ... @@ -68,9 +76,9 @@ Page({
category_id: id,
page: page,
header: true
};app.post(url,params).then((res)=>{
}, list = page == 1 ? [] : t.data.list;app.post(url,params).then((res)=>{
e.setData({
list: e.data.list.concat(res.data),
list: list.concat(res.data),
page: res.current_page,
lastPage: res.last_page,
ifData: !0,
... ... @@ -121,8 +129,7 @@ Page({
onPullDownRefresh: function () {
let t = this;
t.setData({
page:1,
list:[]
page:1
})
t.getList(t.data.category_id,1)
},
... ... @@ -133,7 +140,7 @@ Page({
onReachBottom: function () {
let t = this;
!t.data.noMore ? (t.setData({
page:t.dat.page+1
page:t.data.page+1
}),t.getList(t.data.category_id,t.data.page)) : wx.showToast({
title: '没有更多了',
})
... ...
<!--pages/attract/attract.wxml-->
<view class='top_view'>
<view class='top_banner'>
<image src='/images/zhaoshang.png' width='100%' mode='widthFix' bindtap='bannerDetail' id='1'></image>
<image src='{{banner}}' width='100%' mode='widthFix' bindtap='bannerDetail' id='1'></image>
</view>
<!-- 菜单按钮 -->
... ... @@ -27,11 +27,11 @@
<view class='new_info'>
<view class='new_title'><text class='recommond' wx:if='{{item.recommend}}'>推荐</text>{{item.title}}</view>
<view class='new_time_address'>
<view class='form' wx:if="{{item.from}}">{{item.source}}</view>
<view class='form' wx:if="{{item.keywords}}">{{item.keywords}}</view>
<view class='time'>{{item.create_time_text}}</view>
</view>
</view>
<view class='new_info_image' wx:if="{{item.photos.length>0}}">
<view class='new_info_image' wx:if="{{item.thumb_image}}">
<image src='{{item.thumb_image}}' mode='widthFix'></image>
</view>
</navigator>
... ...
/* pages/attract/attract.wxss */
page{
background: #F7F7F7;
background: #FFF;
}
.top_banner image{
width: 100%;
}
.top_view{
background: #F7F7F7;
position:fixed;
top:0;
left:0;
width:100%;
z-index:101;
}
.top_banner{
/* .top_banner{
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 101;
}
} */
.menu_content{
display: flex;
position: fixed;
top: 320rpx;
top: 310rpx;
left: 0;
width: 100%;
z-index: 101;
border-top: 8rpx solid #f5f5f5;
}
.menu_items{
display: flex;
... ... @@ -33,18 +39,21 @@ page{
overflow: hidden;
white-space: nowrap;
line-height: 74rpx;
}
.menu_item{
width: 20%;
padding:0 33rpx;
display: inline-block;
text-align: center;
}
/* .menu_item:first-child{
padding-left: rpx;
} */
.menu_item.active{
color: #169BD5;
}
.paixun{
position: relative;
height: 100%;
display: flex;
align-items: center;
height: 74rpx;
... ... @@ -135,4 +144,6 @@ page{
box-sizing: border-box;
border-radius: 8rpx;
margin-right: 10rpx;
position: relative;
top: -4rpx;
}
\ No newline at end of file
... ...
... ... @@ -30,6 +30,15 @@ Page({
WxParse.wxParse('contentHtml', 'html', r.content, d, 5);
})
},
viewCode(e){
wx.previewImage({
current: this.data.detail.wechat[e.currentTarget.id],
urls: this.data.detail.wechat,
success: function(res) {},
fail: function(res) {},
complete: function(res) {},
})
},
makePhone(e){
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.phone,
... ...
... ... @@ -32,20 +32,17 @@
<view class='zixun_content'>{{detail.email}}</view>
</view>
<view class='zixun_item' hidden="{{detail.wechat.length==0}}">
<view class='zixun_icon chat'>
<!-- <view class='zixun_icon chat'>
<image src='/images/wechat.png' mode='widthFix'></image>
</view>
<view class='zixun_content'>
</view> -->
<!-- <view class='zixun_content'>
<view class='erwei_code'>
<view class='img_box' wx:for='{{detail.wechat}}' wx:key=''>
<image src='{{item}}' mode='widthFix'></image>
</view>
<view class='img_box'>
<image src='{{item}}' mode='widthFix'></image>
<image src='{{item}}' bindtap='viewCode' id='{{index}}' mode='widthFix'></image>
</view>
</view>
<view>扫描二维码,关注公众号</view>
</view>
</view> -->
</view>
</view>
</view>
... ...
... ... @@ -91,6 +91,8 @@ page{
}
.email{
width: 46rpx;
position: relative;
top: 6rpx;
}
.phone{
width: 46rpx;
... ... @@ -118,8 +120,8 @@ page{
width: 100%;
}
.zhaoshang_desc{
margin: 0 40rpx;
padding: 30rpx 0;
margin: 0 46rpx;
/* padding: 30rpx 0; */
}
.note{
display: flex;
... ... @@ -136,6 +138,9 @@ page{
.note text{
position: relative;
}
.zan_box{
display: flex;
}
.note text:before{
position: absolute;
top: 50%;
... ... @@ -153,4 +158,9 @@ page{
content: '';
background-color:#999;
right: -60rpx;
}
.wxParse-img{
max-width: 100%;
overflow: hidden;
position: relative;
}
\ No newline at end of file
... ...
... ... @@ -20,17 +20,7 @@ Page({
}),t.d(options.id),t.c()
},
comment(){
console.log(1)
this.setData({
startComment: true
})
},
outFocus(){
this.setData({
startComment: false
})
},
d(id){
let url = '/api/interact/getPostsDetail',params = {
id:id
... ... @@ -42,6 +32,17 @@ Page({
})
})
},
comment() {
console.log(1)
this.setData({
startComment: true
})
},
outFocus() {
this.setData({
startComment: false
})
},
c(){
let url = '/api/interact/getPostsCommentList',t = this ,params={
id:t.data.id,
... ...
<view class='container'>
<view class='item'>
<view class='item_top'>{{detail.title}}</view>
... ... @@ -80,7 +79,7 @@
<view class='time_bottom_left'>
{{item.create_time_text}}
</view>
<view class='time_bottom_left' bindtap='zan' id='{{item.id}}' data-indx = '{{index}}' data-type='{{item.is_like}}'>
<view class='time_bottom_left' bindtap='zan' id='{{item.id}}' data-indx='{{index}}' data-type='{{item.is_like}}'>
<view class='time_bottom_left_pic'>
<image src='/images/zan@3x.png' wx:if="{{item.is_like==0}}" mode='widthFix'></image>
<image src='/images/thumb-up-button@3x.png' wx:else mode='widthFix'></image>
... ... @@ -92,7 +91,7 @@
<!-- 底部评论 -->
<view class='sec_comments' wx:if="{{item.child.length>0}}">
<view class='sec_comment' wx:for='{{item.child}}' wx:for-item='sec' wx:key=''>
<view class='text_bottom' >
<view class='text_bottom'>
<text class='color_blue'>{{sec.nickname}}:</text>{{sec.content}}
</view>
</view>
... ... @@ -103,16 +102,15 @@
</view>
</view>
<!-- 底部发表按钮 -->
<view class='bottom_box'>
<view class='bottom_box_input'>
<input placeholder='发表评论...' value='{{content}}' focus='{{startComment}}' bindinput='subComments' bindblur='outFocus' cursor-spacing='10' class='comments'/>
<input placeholder='发表评论...' value='{{content}}' focus='{{startComment}}' bindinput='subComments' bindblur='outFocus' cursor-spacing='10' class='comments' />
<!-- <view class='sub_box comments' bindtap='comment' hidden='{{startComment}}'>{{content||"发表评论..."}}</view> -->
</view>
<view class='bottom_box_text' bindtap='s'>
发表
</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -246,8 +246,6 @@ page{
line-height:34rpx;
color:rgba(51,51,51,1);
opacity:1;
}
.underline{
margin-top: 16rpx;
... ...
// pages/detail/detail.js
const a = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
id: options.id
}), this.detail();
},
detail(){
let url = '/api/User/getNoticeInfo',params = {
id: this.data.id
};
a.post(url,params).then(r=>{
this.setData({
detail: r
})
let action = wx.getStorageSync('action');
action.read = 1
wx.setStorageSync('action', action)
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
{
"usingComponents": {},
"navigationBarTitleText": "发文详情"
}
\ No newline at end of file
... ...
<!--pages/detail/detail.wxml-->
<view class='main'>
<view class='title'>{{detail.title}}</view>
<view class='date'>{{detail.create_time_text}}</view>
<view class='cotent'>{{detail.content}}</view>
</view>
... ...
/* pages/detail/detail.wxss */
.main{
padding: 30rpx 40rpx;
font-size: 28rpx;
}
.title,.date,.content{
margin-bottom: 22rpx;
}
.title{
color: #333
}
.date{
color: #999;
}
.content{
color: #666
}
\ No newline at end of file
... ...
... ... @@ -24,13 +24,14 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let c = this; wx.getSystemInfo({
success: function (res) {
c.setData({
winHeight: res.windowHeight
})
},
}), this.postList();
});
},
subArticle() {
wx.navigateTo({
... ... @@ -70,7 +71,6 @@ Page({
t.setData({
postList: t.data.postList
})
})
}
}
... ... @@ -93,7 +93,7 @@ Page({
b.create_time = A.timeFormate(b.create_time, 'YYMMDDHHMM')
b.reply_time = A.timeFormate(b.reply_time,'YYMMDDHHMM')
}
let list = d.data.zixunList.concat(r.data);
let list = d.data.page>1?d.data.zixunList.concat(r.data):r.data;
d.setData({
zixunList: list
})
... ... @@ -122,7 +122,7 @@ Page({
for(let b of r.data){
b.images = b.images.split(',')
}
let list = d.data.postList.concat(r.data);
let list = d.data.page > 1 ?d.data.postList.concat(r.data):r.data;
d.setData({
postList: list,
comment: r.new_comment
... ... @@ -150,7 +150,8 @@ Page({
b.setData({
auth: r
});
r == 2 ? b.getzixun() : '';
// r == 2 ? b.getzixun() : '';
wx.stopPullDownRefresh()
})
},
renzheng(e) {
... ... @@ -199,13 +200,14 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.checkstatus()
this.checkstatus();
this.setData({
zixunList: [],
postList:[],
page: 1,
show:!0
})
this.data.currentTab=='0'?this.getzixun():this.postList()
},
... ... @@ -229,8 +231,6 @@ Page({
onPullDownRefresh: function () {
this.checkstatus()
this.setData({
zixunList: [],
postList: [],
page: 1
})
this.data.currentTab == '0' ? this.getzixun() : this.postList()
... ...
{
"usingComponents": {},
"navigationBarTitleText": "政企服务平台",
"navigationBarTitleText": "政企互动",
"navigationBarBackgroundColor": "#169BD5",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": true
... ...
<view class="nav mainindex_nav top">
<!-- <view class="nav mainindex_nav top">
<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>
</view>
</view> -->
<view wx:if='{{auth=="2"}}' class='main_container' style='height:{{winHeight}}px' >
... ... @@ -16,11 +16,11 @@
<view class='mid_item_right'>
<view class='mid_item_right_top'>
{{item.question}}?
<view class='mid_label' hidden='{{!item.is_show_state}}'>
<!-- <view class='mid_label' hidden='{{!item.is_show_state}}'>
<image src='../../images/huifujishi@3x.png' wx:if="{{item.state=='1'}}"></image>
<image src='../../images/huifuyiban@3x.png' wx:elif='{{item.state=="2"}}'></image>
<image src='../../images/huifuzhihuan @3x.png' wx:elif='{{item.state=="3"}}'></image>
</view>
</view> -->
</view>
<view class='mid_item_right_bottom'>
发布时间: {{item.create_time}}
... ... @@ -113,6 +113,7 @@
</view>
</view>
</view>
</view>
... ...
... ... @@ -161,15 +161,16 @@ page{
justify-content: center;
}
.bottom_question{
width:304rpx;
height:96rpx;
line-height: 96rpx;
width:420rpx;
height:70rpx;
line-height: 70rpx;
text-align: center;
color: #fff;
background:linear-gradient(328deg,rgba(0,128,255,1) 0%,rgba(0,194,255,1) 100%);
box-shadow:0px 6px 12px rgba(0,128,255,0.16);
opacity:1;
border-radius:8rpx;
font-size: 28rpx;
}
/* 企话吧 */
... ... @@ -399,6 +400,6 @@ page{
width: 100%;
background-color: #FFF;
}
.main_container{
/* .main_container{
margin-top: 50px;
}
\ No newline at end of file
} */
\ No newline at end of file
... ...
... ... @@ -56,4 +56,15 @@
<text class='iconfont icon-fenxiang icon'></text>
<text class='iconfont icon-zan icon' style='font-size:40rpx;'></text>
</view>
</view>
\ No newline at end of file
</view>
<!-- 底部发表按钮 -->
<view class='bottom_box'>
<view class='bottom_box_input'>
<input placeholder='发表评论...' value='{{content}}' focus='{{startComment}}' bindinput='subComments' bindblur='outFocus' cursor-spacing='10' class='comments'/>
<!-- <view class='sub_box comments' bindtap='comment' hidden='{{startComment}}'>{{content||"发表评论..."}}</view> -->
</view>
<view class='bottom_box_text' bindtap='s'>
发表
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -204,7 +204,6 @@ page {
}
/* */
.comment_box {
padding: 30rpx;
background: #fff;
... ...
... ... @@ -7,7 +7,10 @@ Page({
* 页面的初始数据
*/
data: {
open:!1
open:!1,
page:1,
noMore:!0,
tuijianList:[]
},
/**
... ... @@ -36,7 +39,7 @@ Page({
header: true
}; app.post(url,params,false).then((r)=>{
wx.showToast({
title: r.is_like == 1 ? "关注成功" : "已取消",
title: r.is_like == '1' ? "关注成功" : "已取消",
icon:'none'
})
this.setData({
... ... @@ -54,12 +57,23 @@ Page({
})
})
},
makePhone(){
wx.makePhoneCall({
phoneNumber: this.data.detailInfo.phone,
success: function(res) {},
fail: function(res) {},
complete: function(res) {},
})
},
// 推荐企业
tuijian(){
let url ='/api/Company/recommend';
app.post(url,{header:true}).then((r)=>{
let url ='/api/Company/recommend',t = this,params={
page: t.data.page
};
app.post(url, params).then((r)=>{
this.setData({
tuijianList: r.data
tuijianList: t.data.tuijianList.concat(r.data),
noMore: r.current_page == r.last_page?!0:!1
})
})
},
... ... @@ -73,7 +87,11 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
!this.data.noMore?(
this.setData({
page: this.data.page+1
}), this.tuijian()
):""
},
/**
... ...
... ... @@ -7,12 +7,12 @@
<view class='compony_info'>
<view class='compony_title'>
<view class='compony_left'>{{detailInfo.name}}</view>
<view class='focus_button cancle_focus' wx:if='{{detailInfo.is_like==0}}' data-like="{{detailInfo.is_like}}" bindtap='onfocus'>已关注</view>
<view class='focus_button cancle_focus' wx:if='{{detailInfo.is_like==1}}' data-like="{{detailInfo.is_like}}" bindtap='onfocus'>已关注</view>
<view class='focus_button' bindtap='onfocus' data-like="{{detailInfo.is_like}}" wx:else><text class='add'>+</text>关注</view>
</view>
<view class='detailInfo_items'>
<view class='detailInfo_item'>
<view class='detailInfo_item' bindtap='makePhone' >
<view class='detail_icon'>
<image src='/images/zuoji.png' mode='aspectFit'></image>
</view>
... ... @@ -36,19 +36,21 @@
<view class='fanwei'>
{{detailInfo.excerpt}}
</view>
<view class='company_desc {{open?"openContent":""}}'>
<view class='company_desc openContent'>
公司简介:<import src="/wxParse/wxParse.wxml"/><template is="wxParse" data="{{wxParseData:contentHtml.nodes}}"/>
</view>
<view class='open {{!open?"close":""}}' bindtap='openText'>
<!-- <view class='open {{!open?"close":""}}' bindtap='openText'>
{{open?"收起":'展开'}}
</view>
</view> -->
</view>
<!-- 企业推荐 -->
</view>
</view>
<!-- 企业推荐 -->
<view class='tuijian_content'>
<navigator open-type='redirect' url='/pages/matrix/company/company?id={{item.id}}' class='tuijian_item' wx:for='{{tuijianList}}' wx:key=''>
企业推荐:{{item.name}}
</navigator>
</view>
</view>
</view>
\ No newline at end of file
</view>
\ No newline at end of file
... ...
/* pages/matrix/company/company.wxss */
page{
background-color: #f7f7f7;
padding-bottom: 30rpx;
}
.main_container{
width: 688rpx;
... ... @@ -82,6 +83,14 @@ page{
-webkit-line-clamp:3;
margin-top: 16rpx;
transition: 1s;
padding-bottom: 30rpx;
}
.wxParse-img{
max-width: 610rpx;
overflow: hidden;
}
.wxParse-img image{
width: 100%;
}
.company_desc.openContent{
overflow: auto;
... ... @@ -133,4 +142,9 @@ page{
.cancle_focus{
color: #999;
border: 2rpx solid #999;
}
.tuijian_content{
margin: 30rpx;
background: #FFF;
padding: 30rpx;
}
\ No newline at end of file
... ...
... ... @@ -151,9 +151,8 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
console.log(1)
let t = this;t.setData({
page: 1
page: 1,
}), t.getCompanyList(t.data.category_id, t.data.park);
},
... ...
... ... @@ -20,8 +20,8 @@
<navigator class='item_list' wx:for='{{companyList}}' wx:key='' url="/pages/matrix/company/company?id={{item.id}}"
open-type="navigate"
hover-class="other-navigator-hover">
<image class='label_img' src='/images/zuire@2x.png'></image>
<text class='label_info' hidden='{{!item.recommend_switch}}'>热门</text>
<image class='label_img' hidden='{{!item.recommend_switch}}' src='/images/zuire@2x.png'></image>
<text class='label_info' hidden='{{!item.recommend_switch}}'>推荐</text>
<image class='list_img' src='{{item.logo_image}}'></image>
<view class='list_left'>
<view>
... ... @@ -37,10 +37,12 @@
<navigator class='list_item' wx:for='{{companyList}}' wx:key='' url="/pages/matrix/company/company?id={{item.id}}"
open-type="navigate"
hover-class="other-navigator-hover">
<image src='{{item.banner_image}}'></image>
<image class='label_img' hidden='{{!item.recommend_switch}}' src='/images/zuire@2x.png'></image>
<text class='label_info' hidden='{{!item.recommend_switch}}'>推荐</text>
<image src='{{item.logo_image}}' mode='aspectFill' class='top_logo'></image>
<view class='list_content_box'>
<view class='list_title_box'>
<image src='{{item.logo_image}}'></image>
<!-- <image src='{{item.logo_image}}'></image> -->
<text>{{item.name}}</text>
</view>
<view class='list_content'>{{item.excerpt}}</view>
... ...
... ... @@ -27,7 +27,7 @@ page {
color: #999;
display: inline-block;
position: relative;
padding: 0 20rpx;
padding: 0 30rpx;
height: 100%;
text-align: center;
}
... ... @@ -142,13 +142,14 @@ page {
background: #fff;
margin-bottom: 20rpx;
box-shadow: 0 10rpx 0 0 #62bae0;
position: relative;
}
.list_content_box {
padding: 20rpx 16rpx;
}
.list_item image {
.list_item .top_logo {
width: 100%;
height: 336rpx;
}
... ... @@ -162,8 +163,8 @@ page {
}
.list_title_box image {
width: 32rpx;
height: 32rpx;
width: 50rpx;
height: 50rpx;
border-radius: 50%;
margin-right: 15rpx;
}
... ...
... ... @@ -37,10 +37,12 @@ Page({
})
},
delAll(){
this.data.keyword = '';
this.setData({
keyword: '',
companyList:[]
})
},
// 取消搜索
cancle(){
... ... @@ -70,7 +72,8 @@ Page({
this.setData({
keyword: e.detail.value.replace(/\s+/g, ''),
})
this.seachFun();
console.log(1)
this.data.keyword != '' ? this.seachFun():''
},
// 选择公司名称同步到页面
... ...
... ... @@ -18,7 +18,7 @@
<input type="number" placeholder='请输入联系电话' placeholder-class='pl_style' value="{{proData.mobile}}" class="input_item" bindinput='getPhone'></input>
</view>
</view>
<view class="item_list" style=' align-items: flex-start;'>
<!-- <view class="item_list" style=' align-items: flex-start;'>
<view class="list_title">营业执照</view>
<view class="list_content img_wrap">
<view class='add_btn img_box' wx:for="{{proData.images}}" wx:key='index'>
... ... @@ -29,7 +29,7 @@
<text>+</text>
</view>
</view>
</view>
</view> -->
</view>
<view class='bottom_btn' bindtap='subFun'>认证</view>
... ... @@ -38,8 +38,8 @@
<view class='search_view' wx:if="{{seach}}">
<view class='search-top'>
<view class='search_box'>
<input placeholder='请输入公司名称' bindinput='keywordFun' value='{{keyword}}' type='search' class='input_item'></input>
<image src='../../../images/del.png' bindtap='delAll'></image>
<input placeholder='请输入公司名称' bindinput='keywordFun' value='{{keyword}}' class='input_item'></input>
<image src='../../../images/del.png' catchtap='delAll'></image>
<view class='cancle_action' bindtap='cancle'>取消</view>
</view>
</view>
... ...
... ... @@ -19,7 +19,7 @@
}
.pl_style {
font-size: 32rpx;
font-size: 28rpx;
color: #ccc;
}
... ... @@ -143,6 +143,7 @@
border-radius: 10rpx;
padding-left: 20rpx;
font-size: 28rpx;
margin-right: 56rpx;
}
.cancle_action{
width: 100rpx;
... ... @@ -156,6 +157,9 @@
height: 42rpx;
display: block;
}
.placeh{
font-size: 28rpx;
}
/* 公司名称搜索结果 */
.adress_list_container {
... ...
... ... @@ -8,29 +8,27 @@ Page({
data: {
status:false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
renzheng(e) {
let type = e.currentTarget.dataset.type;
console.log(type)
type == 1 ? wx.showToast({
title: '认证审批中请耐心等待',
icon: 'none',
duration: 1200
}) : wx.navigateTo({
}):type == 0?wx.navigateTo({
url: '/pages/my/approve/approve',
})
}):""
},
checkstatus() {
let b = this, url = '/api/user/getAuthStatus', params = {
header: true
};
t.post(url, params, false).then((r) => {
t.post(url, params).then((r) => {
b.setData({
auth: r
});
... ... @@ -40,11 +38,10 @@ Page({
getUserInfo(){
let d = this, url ='/api/user/index',params={
header: true
}; t.post(url,params,false).then((r)=>{
}; t.post(url,params).then((r)=>{
d.setData({ userInfo: r.userInfo, noticeNum: r.noticeNum})
})
},
btn_post() {
wx.navigateTo({
... ... @@ -74,6 +71,7 @@ Page({
wx.navigateTo({
url: '/pages/myInform/myInform',
})
wx.removeStorageSync('action')
},
/**
* 生命周期函数--监听页面初次渲染完成
... ... @@ -81,7 +79,6 @@ Page({
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
... ... @@ -89,35 +86,30 @@ Page({
this.checkstatus();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
... ...
<!--pages/my/my.wxml-->
<view class='banner_box' >
<view class='banner_box'>
<view class='banner_info_box'>
<image class='head_img' src='{{userInfo.avatar||"/images/weirenzheng@2x.png"}}'></image>
<view class='banner_right' wx:if="{{userInfo}}">
<view class='banner_info'>
<text>{{auth=='0'?'企业认证:未认证':auth=='1'?'企业认证中':"认证企业"}}</text> <text hidden='{{auth==0}}'>:{{userInfo.company_name}}</text>
<view class='banner_info' bindtap='renzheng' data-type='{{auth}}'>
<text>{{auth=='0'?'企业认证:未认证':auth=='1'?'企业认证中':"认证企业"}}</text>
<text hidden='{{auth==0}}'>:{{userInfo.company_name}}</text>
<image hidden='{{auth!=2}}' src='/images/guangfang@2x.png'></image>
</view>
<view class='banner_label'>
... ... @@ -16,15 +17,15 @@
</view>
<!-- -->
<view class='content_box'>
<view class='item_list' bindtap='TB' bindtap="btn_post" hidden='{{auth!=2}}'>
<!-- <view class='item_list' bindtap='TB' bindtap="btn_post" hidden='{{auth!=2}}'>
<view class='list_icon'>
<text class='iconfont icon-wodetiezi'></text>
</view>
<view class='list_item_box'>
<view >我的帖子</view>
<view>我的帖子</view>
<view class='iconfont icon-go'></view>
</view>
</view>
</view> -->
<view class='item_list' bindtap="btn_attention">
<view class='list_icon'>
<text class='iconfont icon-xing'></text>
... ... @@ -34,7 +35,7 @@
<text class='iconfont icon-go'></text>
</view>
</view>
<view class='item_list' bindtap='reportList' bindtap='btn_like' hidden='{{auth!=2}}'>
<!-- <view class='item_list' bindtap='reportList' bindtap='btn_like' hidden='{{auth!=2}}'>
<view class='list_icon'>
<text class='iconfont icon-zan21'></text>
</view>
... ... @@ -42,8 +43,8 @@
<view>我的点赞</view>
<view class='iconfont icon-go'></view>
</view>
</view>
<view class='item_list' bindtap='reportList' bindtap='btn_comment' hidden='{{auth!=2}}'>
</view> -->
<!-- <view class='item_list' bindtap='reportList' bindtap='btn_comment' hidden='{{auth!=2}}'>
<view class='list_icon'>
<text class='iconfont icon-pinglun1'></text>
</view>
... ... @@ -51,14 +52,14 @@
<view>我的评论</view>
<view class='iconfont icon-go'></view>
</view>
</view>
<view class='item_list' bindtap='articlList' bindtap='btn_inform'>
</view> -->
<view class='item_list' bindtap='articlList' bindtap='btn_inform'>
<view class='list_icon'>
<text class='iconfont icon-tongzhi'></text>
</view>
<view class='list_item_box'>
<view>发文通知</view>
<view class='list_icon2' >
<view class='list_icon2'>
<view class='list_point' hidden="{{!noticeNum}}">{{noticeNum}}</view>
<view class='iconfont icon-go'></view>
</view>
... ...
... ... @@ -2,20 +2,23 @@
page {
background: #f5f5fa;
overflow-x:hidden;
width: 750rpx;
height: 100%;
overflow: hidden;
}
.banner_box {
width: 100%;
height: 113rpx;
background: #169bd5;
display: flex;
align-items: center;
padding: 30rpx;
width: 750rpx;
box-sizing: border;
}
.banner_info_box {
width: 92%;
width: 690rpx;
height: 240rpx;
background: rgba(255, 255, 255, 1);
box-shadow: 0rpx 3rpx 20rpx rgba(0, 34, 255, 0.08);
... ... @@ -27,6 +30,7 @@ page {
display: flex;
align-items: center;
padding: 30rpx;
margin: 30rpx;
box-sizing: border-box;
}
... ...
... ... @@ -26,7 +26,7 @@ Page({
};
a.post(url, params).then((res) => {
b.setData({
followList: res.data,
followList: b.data.page > 1 ? b.data.followList.concat(res.data):res.data,
ifData: res.data.length>0?true:false,
noMore: res.last_page==res.current_page?!0:!1
})
... ... @@ -93,8 +93,7 @@ Page({
*/
onPullDownRefresh: function () {
this.setData({
page: 1,
followList:[]
page: 1
}),
this.getFollowList()
},
... ...
<!--pages/my/myAttention/myAttention.wxml-->
<scroll-view class='box' >
<view class='item_list' wx:for='{{followList}}' wx:key="index">
<navigator class='item_list' wx:for='{{followList}}' wx:key="index" url="/pages/matrix/company/company?id={{item.company_id}}"
open-type="navigate">
<image src='{{item.logo_image}}'></image>
<view class='list_right'>
<view>
... ... @@ -11,9 +12,9 @@
<text>21:00</text> -->
</view>
</view>
<view class='list_btn'bindtap='cancleFocus' id='{{item.id}}' data-indx="{{index}}">取消关注</view>
<view class='list_btn' catchtap='cancleFocus' id='{{item.company_id}}' data-indx="{{index}}">取消关注</view>
</view>
</view>
</navigator>
</scroll-view>
<view class="none-box" hidden="{{ifData}}">
... ...
... ... @@ -28,7 +28,7 @@ Page({
};
a.post(url, params).then((res) => {
b.setData({
noticeList: b.data.noticeList.concat(res.data)
noticeList: b.data.page>1?b.data.noticeList.concat(res.data):res.data
})
b.data.noticeList.length > 0 ? b.setData({
ifData: !0
... ... @@ -38,18 +38,20 @@ Page({
noMore: !0,
}) : ''
wx.stopPullDownRefresh();
setTimeout(()=>{
let noticeList = b.data.noticeList;
for(let obj of noticeList){
obj.read_switch = 1
}
b.setData({
noticeList: noticeList
})
},2000)
})
},
getDetail(e){
let detail = JSON.stringify(this.data.noticeList[e.currentTarget.id])
wx.navigateTo({
url: '/pages/detail/detail?id=' + this.data.noticeList[e.currentTarget.id].id,
})
let action = {
read: 0,
indx: e.currentTarget.id
}
wx.setStorageSync('action',action)
},
/**
* 生命周期函数--监听页面初次渲染完成
... ... @@ -62,7 +64,13 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
let action = wx.getStorageSync('action') ;
if(action){
this.data.noticeList[action.indx]['read_switch'] = 1;
this.setData({
noticeList: this.data.noticeList
})
}
},
/**
... ... @@ -84,8 +92,7 @@ Page({
*/
onPullDownRefresh: function() {
this.setData({
page: 1,
noticeList:[]
page: 1
})
this.getInformList();
},
... ...
<view scroll-y='true' style='height:{{winHeight}}px' hidden='{{!ifData}}' bindscrolltolower='getMore'>
<view class='mid'>
<view class='mid_item' wx:for="{{noticeList}}" wx:key="index">
<view class='mid_item' bindtap='getDetail' id='{{index}}' wx:for="{{noticeList}}" wx:key="index">
<view class='mid_item_top'>
<view class='mid_item_top_left'>
<!-- 图片 -->
... ... @@ -21,7 +21,7 @@
</view>
</view>
<view class='mid_item_top_right '>
15分钟前
{{item.create_time_text}}
</view>
</view>
<!-- 大标题 -->
... ...
... ... @@ -199,14 +199,15 @@ page{
opacity:1;
}
.mid_item_text{
overflow: hidden;
text-overflow: ellipsis;
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
/* line-height:36rpx; */
color:rgba(51,51,51,1);
opacity:1;
margin-top: 16rpx;
white-space:nowrap;
}
.mid_item_like{
margin-top: 34rpx;
... ...
... ... @@ -32,7 +32,7 @@ Page({
for(let b of r.data){
b.images = b.images.split(',');
}
let dataList = b.data.articleList.concat(r.data);
let dataList = b.data.page>1?b.data.articleList.concat(r.data):r.data;
b.setData({
articleList: dataList,
ifData:!0,
... ...
... ... @@ -133,8 +133,8 @@ page {
}
.bottom_btn {
width: 100%;
height: 96rpx;
width: 80%;
height: 70rpx;
background: #000;
background: linear-gradient(336deg, rgba(0, 128, 255, 1) 0%, rgba(0, 194, 255, 1) 100%);
border-radius: 8rpx;
... ...
... ... @@ -4,7 +4,7 @@
"ignore": []
},
"setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
... ... @@ -19,6 +19,8 @@
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
... ... @@ -37,7 +39,7 @@
"list": []
},
"miniprogram": {
"current": 44,
"current": 50,
"list": [
{
"id": 0,
... ... @@ -351,6 +353,49 @@
"id": -1,
"name": "点赞",
"pathName": "pages/myLike/myLike",
"query": "",
"scene": null
},
{
"id": -1,
"name": "tongzhi",
"pathName": "pages/myInform/myInform",
"query": "",
"scene": null
},
{
"id": -1,
"name": "tongzhi",
"pathName": "pages/detail/detail",
"query": "detail={\"id\":36,\"user_id\":12,\"notice_id\":14,\"create_time\":1554104027,\"read_switch\":1,\"read_time\":1554110197,\"title\":\"推送全部\",\"content\":\"推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部推送全部\",\"switch\":\"1\",\"create_time_text\":\"2019-04-01 15:33:47\"}",
"scene": null
},
{
"id": 47,
"name": "写评论",
"pathName": "pages/matrix/article/article",
"query": "",
"scene": null
},
{
"id": 48,
"name": "写评论",
"pathName": "pages/attract/articleDetail/articleDetail",
"query": "id=2",
"scene": null
},
{
"id": -1,
"name": "写评论",
"pathName": "pages/my/approve/approve",
"query": "id=2",
"scene": null
},
{
"id": -1,
"name": "写评论",
"pathName": "pages/attract/detail/detail",
"query": "id=2",
"scene": null
}
]
... ...
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
\ No newline at end of file
... ...