Browse Source

上传代码

master
前端-胡立永 10 months ago
parent
commit
1b8f847c63
9 changed files with 48 additions and 8 deletions
  1. +16
    -8
      pages.json
  2. +3
    -0
      pages/index/center.vue
  3. +5
    -0
      pages/index/index.vue
  4. +4
    -0
      pages/publish/actorDetail.vue
  5. +4
    -0
      pages/publish/actorList.vue
  6. +4
    -0
      pages/publish/postDetail.vue
  7. +4
    -0
      pages/publish/postList.vue
  8. +4
    -0
      pages_mine/publish/competition.vue
  9. +4
    -0
      pages_mine/publish/worksDetail.vue

+ 16
- 8
pages.json View File

@ -2,7 +2,8 @@
"pages": [{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh" : true
}
},
{
@ -14,7 +15,8 @@
{
"path": "pages/publish/actorDetail",
"style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh" : true
}
},
{
@ -44,25 +46,29 @@
{
"path": "pages/index/center",
"style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh" : true
}
},
{
"path": "pages/publish/postList",
"style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh" : true
}
},
{
"path": "pages/publish/postDetail",
"style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh" : true
}
},
{
"path": "pages/publish/actorList",
"style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh" : true
}
}
],
@ -174,13 +180,15 @@
{
"path": "publish/worksDetail",
"style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh" : true
}
},
{
"path": "publish/competition",
"style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh" : true
}
},
{


+ 3
- 0
pages/index/center.vue View File

@ -177,6 +177,9 @@
//
this.$store.commit('getUserInfo')
},
onPullDownRefresh(){
this.$store.commit('getUserInfo')
},
methods: {
toAuthPage() {
uni.navigateTo({


+ 5
- 0
pages/index/index.vue View File

@ -147,6 +147,10 @@
})
}
},
onPullDownRefresh(){
this.indexGetTrendsPage()
this.getData()
},
onShow() {
this.getData()
this.queryParams.pageNo = 1
@ -173,6 +177,7 @@
indexGetTrendsPage(fn){
this.$api('indexGetTrendsPage',
this.queryParams, res => {
uni.stopPullDownRefresh()
if(res.code == 200){
// fn && fn(res)
this.trends = res.result.records


+ 4
- 0
pages/publish/actorDetail.vue View File

@ -106,6 +106,9 @@
//
onReachBottom() {
},
onPullDownRefresh(){
this.getData()
},
methods: {
leftClick(){
@ -115,6 +118,7 @@
this.$api('indexGetActorDetail', {
id : this.id
}, res => {
uni.stopPullDownRefresh()
if(res.code == 200){
this.item = res.result
}


+ 4
- 0
pages/publish/actorList.vue View File

@ -58,6 +58,9 @@
onShow() {
this.getData()
},
onPullDownRefresh(){
this.getData()
},
onReachBottom(){
if(this.queryParams.pageSize < this.total){
//
@ -68,6 +71,7 @@
methods: {
getData(){
this.$api('indexGetActorSetPage', this.queryParams, res => {
uni.stopPullDownRefresh()
if(res.code == 200){
this.actorList = res.result.records
this.total = res.result.total


+ 4
- 0
pages/publish/postDetail.vue View File

@ -62,6 +62,9 @@
console.log(options)
this.id = options.id
},
onPullDownRefresh(){
this.getData()
},
onShow() {
this.getData()
},
@ -70,6 +73,7 @@
this.$api('indexGetTrendsDetail', {
id : this.id
}, res => {
uni.stopPullDownRefresh()
if (res.code == 200) {
this.item = res.result.details
this.isThumbs_up = res.result.isThumbs_up//


+ 4
- 0
pages/publish/postList.vue View File

@ -61,6 +61,9 @@
this.postList = res.result.records
})
},
onPullDownRefresh(){
this.indexGetTrendsPage()
},
//
onReachBottom() {
let total = this.queryParams.pageNo * this.queryParams.pageSize
@ -75,6 +78,7 @@
indexGetTrendsPage(fn){
this.$api('indexGetTrendsPage',
this.queryParams, res => {
uni.stopPullDownRefresh()
if(res.code == 200){
// fn && fn(res)
this.postList = res.result.records


+ 4
- 0
pages_mine/publish/competition.vue View File

@ -126,6 +126,9 @@
})
}
},
onPullDownRefresh(){
this.getList()
},
methods: {
//
thumbUp(item){
@ -145,6 +148,7 @@
this.$api('indexGetGetWorkPage', {
...this.queryParams
}, res => {
uni.stopPullDownRefresh()
if(res.code == 200){
fn && fn(res)
this.total = res.result.total


+ 4
- 0
pages_mine/publish/worksDetail.vue View File

@ -91,6 +91,9 @@
console.log(options)
this.id = options.id
},
onPullDownRefresh(){
this.getData()
},
onShow() {
this.getData()
},
@ -102,6 +105,7 @@
this.$api('indexGetGetWorkDetail', {
id
}, res => {
uni.stopPullDownRefresh()
if(res.code == 200){
this.item = res.result.details
this.isThumbs_up = res.result.isThumbs_up//


Loading…
Cancel
Save