diff --git a/App.vue b/App.vue
index 6321230..045a58a 100644
--- a/App.vue
+++ b/App.vue
@@ -3,7 +3,7 @@
onLaunch: function() {
},
onShow: function() {
- // this.$store.commit('initConfig')
+ this.$store.commit('initConfig')
},
onHide: function() {
}
diff --git a/api/api.js b/api/api.js
index 077b278..c31766a 100644
--- a/api/api.js
+++ b/api/api.js
@@ -211,10 +211,49 @@ const config = {
auth: true,
showLoading : true,
},
+ // 踩type-作品0-演员1-动态2
+ infoDislike: {
+ url: '/api/info/dislike',
+ method: 'GET',
+ auth: true,
+ showLoading : true,
+ },
+ // 点赞type-作品0-演员1-动态2
+ infoLike: {
+ url: '/api/info/like',
+ method: 'GET',
+ auth: true,
+ showLoading : true,
+ },
+ // 举报type-作品0-演员1-动态2
+ infoReport: {
+ url: '/api/info/report',
+ method: 'GET',
+ auth: true,
+ showLoading : true,
+ },
+ // 发布作品
+ releaseWorks: {
+ url: '/api/info/releaseWorks',
+ method: 'POST',
+ auth: true,
+ showLoading : true,
+ },
//小程序-登录相关接口
-
+
+ // 获取隐私政策
+ getPrivacyPolicy: {
+ url: '/api/login/getPrivacyPolicy',
+ method: 'GET',
+ },
+ // 获取用户协议
+ getUserAgreement: {
+ url: '/api/login/getUserAgreement',
+ method: 'GET',
+ },
+
//绑定手机接口
loginBindPhone: {
url: '/api/login/bindPhone',
@@ -253,6 +292,15 @@ const config = {
method: 'GET',
showLoading : true,
},
+
+
+ // 立即支付
+ payOrder: {
+ url: '/api/order/payOrder',
+ method: 'POST',
+ showLoading : true,
+ },
+
}
export function api(key, data, callback, loadingTitle) {
diff --git a/components/config/configPopup.vue b/components/config/configPopup.vue
index f0ed9f8..5b25223 100644
--- a/components/config/configPopup.vue
+++ b/components/config/configPopup.vue
@@ -9,7 +9,7 @@
diff --git a/components/content/contentControls.vue b/components/content/contentControls.vue
index 5c76eef..495c15b 100644
--- a/components/content/contentControls.vue
+++ b/components/content/contentControls.vue
@@ -1,22 +1,22 @@
-
-
+
+
举报
+ @click="thumbUp">
点赞
+ @click="share">
分享
+ @click="thumbDown">
踩
@@ -26,11 +26,65 @@
diff --git a/components/post/actorList.vue b/components/post/actorList.vue
index 6950d0d..50c2964 100644
--- a/components/post/actorList.vue
+++ b/components/post/actorList.vue
@@ -12,7 +12,8 @@
{{ item.name }}
-
+
已认证
@@ -24,13 +25,14 @@
发布人:{{ item.createBy }}
-->
- {{ item.createTime }}
+ {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
联系方式 去查看
-
+
价格 ¥{{ item.money }}
diff --git a/components/post/postList.vue b/components/post/postList.vue
index e747623..8306392 100644
--- a/components/post/postList.vue
+++ b/components/post/postList.vue
@@ -22,7 +22,7 @@
- {{ item.createTime }}
+ {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 60bb20e..dc8d709 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -127,15 +127,21 @@
},
//滚动到屏幕底部
onReachBottom() {
- console.log("======首页滑动到底部触发====")
- if(this.queryParams.pageSize < this.total){
+ console.log("======首页滑动到底部触发====")
+ let total = this.queryParams.pageNo * this.queryParams.pageSize
+ if(total < this.total){
this.queryParams.pageSize += 10
- this.indexGetTrendsPage()
+ this.indexGetTrendsPage(res => {
+ this.trends.push(...res.result.records)
+ })
}
},
onShow() {
this.getData()
- this.indexGetTrendsPage()
+ this.queryParams.pageNo = 1
+ this.indexGetTrendsPage(res => {
+ this.trends = res.result.records
+ })
},
methods: {
getData(){
@@ -150,10 +156,11 @@
}
})
},
- indexGetTrendsPage(){
+ indexGetTrendsPage(fn){
this.$api('indexGetTrendsPage',
this.queryParams, res => {
if(res.code == 200){
+ // fn && fn(res)
this.trends = res.result.records
this.total = res.result.total
}
diff --git a/pages/publish/actorDetail.vue b/pages/publish/actorDetail.vue
index e2dc506..79279cf 100644
--- a/pages/publish/actorDetail.vue
+++ b/pages/publish/actorDetail.vue
@@ -24,7 +24,14 @@
近30天收益
- 联系方式付费查看
+
+ {{ item.phone }}
+
+
+ 联系方式付费查看
+
@@ -34,13 +41,15 @@
发布人:{{ item.userId }}
- 发布时间:{{ item.createTime }}
+ 发布时间:{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
-
+
@@ -96,7 +105,7 @@
id
}, res => {
if(res.code == 200){
- this.item = res.result
+ this.item = res.result.details
}
})
},
diff --git a/pages/publish/actorList.vue b/pages/publish/actorList.vue
index 7b82b37..f18c653 100644
--- a/pages/publish/actorList.vue
+++ b/pages/publish/actorList.vue
@@ -4,11 +4,11 @@
+ title="演员集"/>
- 认证创作者
+ 创作者
diff --git a/pages/publish/actorRelease.vue b/pages/publish/actorRelease.vue
index 6813131..8078796 100644
--- a/pages/publish/actorRelease.vue
+++ b/pages/publish/actorRelease.vue
@@ -66,12 +66,12 @@
+ labelSize="28rpx" name="Y">
+ labelSize="28rpx" name="N">
@@ -82,9 +82,9 @@
-
+
-
+
@@ -186,8 +186,8 @@
money: '',
name : '',
phone : '',
- isUser : '1',//是否本人发布
- phonePay : '1',//联系方式是否付费查看
+ isUser : 'Y',//是否本人发布
+ phonePay : 'Y',//联系方式是否付费查看
photographerContent : '',//演员介绍
},
fileList: [//代表作
diff --git a/pages/publish/postDetail.vue b/pages/publish/postDetail.vue
index f7314cd..544b0c6 100644
--- a/pages/publish/postDetail.vue
+++ b/pages/publish/postDetail.vue
@@ -18,13 +18,15 @@
发布人:{{ item.userId }}
- 发布时间:{{ item.createTime }}
+ 发布时间:{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
-
+
@@ -49,10 +51,6 @@
item: {},
}
},
- mounted() {
- console.log("===")
- this.getData(options.id)
- },
onLoad(options) {
// this.$route.query的参数
console.log(options)
@@ -64,7 +62,7 @@
id
}, res => {
if (res.code == 200) {
- this.item = res.result
+ this.item = res.result.details
}
})
},
diff --git a/pages/publish/postList.vue b/pages/publish/postList.vue
index 1d94f1b..4cc7173 100644
--- a/pages/publish/postList.vue
+++ b/pages/publish/postList.vue
@@ -17,8 +17,11 @@
size="40rpx"
name="search">
-
-
+
+
搜索
@@ -41,24 +44,32 @@
queryParams : {
pageNo : 1,
pageSize : 10,
- }
+ title : '',
+ },
}
},
onShow() {
- this.getData()
+ this.queryParams.pageNo = 1
+ this.indexGetTrendsPage(res => {
+ this.postList = res.result.records
+ })
},
- onReachBottom(){
- let allTotal = this.queryParams.pageNo * this.queryParams.pageSize
- if(allTotal < this.total){
- //当前条数小于总条数 则增加请求数
+ //滚动到屏幕底部
+ onReachBottom() {
+ let total = this.queryParams.pageNo * this.queryParams.pageSize
+ if(total < this.total){
this.queryParams.pageSize += 10
- this.getData() //调用加载数据方法
+ this.indexGetTrendsPage(res => {
+ this.postList.push(...res.result.records)
+ })
}
},
methods: {
- getData(){
- this.$api('indexGetTrendsPage', this.queryParams, res => {
+ indexGetTrendsPage(fn){
+ this.$api('indexGetTrendsPage',
+ this.queryParams, res => {
if(res.code == 200){
+ // fn && fn(res)
this.postList = res.result.records
this.total = res.result.total
}
diff --git a/pages/publish/publishPost.vue b/pages/publish/publishPost.vue
index ca121de..6d1de40 100644
--- a/pages/publish/publishPost.vue
+++ b/pages/publish/publishPost.vue
@@ -70,7 +70,7 @@
-
+
{{ item.title }}
- 投票200
+ 票数 {{ item.num }}