Skip to content

Commit

Permalink
fix:修复加载bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangsrGit119 committed Mar 20, 2022
1 parent be5eab9 commit 827cd68
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 24 deletions.
22 changes: 18 additions & 4 deletions docs/conf/plusconf.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

> plus 版本暂未开放源码,想要源码的请在下面公众号加我联系方式,除了plus版本功能配置,其他的配置同普通版本的配置,按照后续普通配置即可
## plus版本功能
## plus版本功能(1)

- 优先解决功能提议
- 接入返利平台别人在你的小程序上`领取优惠券`然后到`淘宝或者京东 拼多多`下单后会获取一定的`返利到自己账户`,充值 电话费`100减6-7`不等
Expand All @@ -28,16 +28,30 @@
third_baseUrl_coupons:'https://www.xxxx.com',//第三方优惠券接口
third_apikey_coupons:'xxxxxxxxxxxxxx',
privateId_coupons:xxxxxxx,
customSlug_one:'新闻',
customSlug_two:'面试题',
customSlug_one_title:'科技动态',//分类一
customSlug_one:'新闻',
customSlug_two_title:'面试题集', //分类二
customSlug_two:'面试题',
```

## 参数配置说明

- `third_baseUrl_coupons` 第三方api地址,这个地址一定要在微信后台配置 `开发管理` ->`开发设置`-> `服务器域名`
- `third_apikey_coupons` 第三方分配的私有key
- `privateId_coupons` 第三方分配的id
- `customSlug_one_title` 分类一的标题
- `customSlug_one` 小程序轮播图下面的第一个自定义滚动小卡片 **这个目录一定要在后台添加,且有绑定的文章,不然不会展示**
- `customSlug_two_title` 分类二标题
- `customSlug_two` 小程序轮播图下面的第二个自定义滚动小卡片 **这个目录一定要在后台添加,且有绑定的文章,不然不会展示**

>**上述对应的第一个卡片和第二个卡片标题可以自定义,我的叫`科技动态`,你的可以换成别的和内容搭配的文案**
>**上述对应的第一个卡片和第二个卡片标题可以自定义,我的叫`科技动态`,你的可以换成别的和内容搭配的文案**
## plus版本功能(2)--留言板

> 留言板ID----需要数据库去查询或者F12查看网页端留言页面的id或者去后台管理找到页面F12 然后查看network 还不会的话请联系博主帮助
```javascript
//留言板ID----需要数据库去查询或者F12查看网页端留言页面的id或者去后台管理找到页面F12 然后查看network 还不会的话请联系博主帮助
sheetId:34,

```
4 changes: 2 additions & 2 deletions miniprogram/pages/album/album.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {

this.loadImagesInfo()
},

/**
Expand All @@ -31,7 +31,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.loadImagesInfo()


},

Expand Down
31 changes: 17 additions & 14 deletions miniprogram/pages/history/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
authorInfo:app.globalData.authorInfo
})
// 当前页面显示导航条加载动画
wx.showNavigationBarLoading()
// 加载最新文章
this.loadArticleByPage();
// 初始化参数
this.initParams();
// 获取所有分类
this.loadCategories()
},

/**
Expand All @@ -39,17 +50,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.setData({
authorInfo:app.globalData.authorInfo
})
// 当前页面显示导航条加载动画
wx.showNavigationBarLoading()
// 加载最新文章
this.loadArticleByPage();
// 初始化参数
this.initParams();
// 获取所有分类
this.loadCategories()


},

Expand All @@ -71,9 +72,11 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
console.log("下拉刷新")
// this.initParams()
// this.loadArticleByPage();
// 初始化查询参数
this.initParams()
// 获取文章列表(最新)
this.loadArticleByPage();
wx.stopPullDownRefresh()
},

/**
Expand Down
3 changes: 2 additions & 1 deletion miniprogram/pages/history/history.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"l-tag":"../../lin-ui/dist/tag/index",
"l-icon":"../../lin-ui/dist/icon/index",
"l-loadmore":"../../lin-ui/dist/loadmore/index"
}
},
"enablePullDownRefresh": true
}
3 changes: 1 addition & 2 deletions miniprogram/pages/journal/journal.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ Page({
//点赞喜欢
onLikeAction(e){
const that = this;
console.log(e)
const id = e.currentTarget.dataset.id;
wx.request({
url: app.globalData.baseUrl + '/content/journals/'+id+'/likes?api_access_key='+app.globalData.api_access_key,
Expand All @@ -158,7 +157,7 @@ Page({
title: '谢谢厚爱',
icon:'none'
})
that.listPageJournal();
// that.listPageJournal();
}
},
fail:function(err){
Expand Down
3 changes: 2 additions & 1 deletion project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"minifyWXSS": true,
"disableUseStrict": false,
"showES6CompileOption": false,
"useCompilerPlugins": false
"useCompilerPlugins": false,
"minifyWXML": true
},
"appid": "wx98e9bd4331328790",
"projectname": "suke-blog-halo",
Expand Down

0 comments on commit 827cd68

Please sign in to comment.