This commit is contained in:
parent
e0f2b6be60
commit
88d6c7746e
|
@ -354,19 +354,9 @@ const mine = {
|
|||
},
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* 解锁他人评论
|
||||
* @param {Object} param
|
||||
*/
|
||||
unlockComment(param) {
|
||||
return util.request({
|
||||
url: `/video/comment/unlockOthersComment`,
|
||||
data: param,
|
||||
method: 'POST',
|
||||
=======
|
||||
* 查看已绑定的银行卡列表
|
||||
* @param {Object} param
|
||||
*/
|
||||
* 查看已绑定的银行卡列表
|
||||
* @param {Object} param
|
||||
*/
|
||||
getBankCards(param) {
|
||||
return util.request({
|
||||
url: '/user/bank-cards/getBankCards',
|
||||
|
@ -374,22 +364,10 @@ const mine = {
|
|||
query: param.query,
|
||||
method: 'GET',
|
||||
load: true,
|
||||
>>>>>>> 0a930aa1702a2566cc55bb62dad90293c20f3b0d
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* 拉黑
|
||||
* @param {Object} param
|
||||
*/
|
||||
blockUser(param) {
|
||||
return util.request({
|
||||
url: `/video/statistics/block`,
|
||||
data: param,
|
||||
method: 'POST',
|
||||
=======
|
||||
* 添加银行卡
|
||||
* 添加银行卡
|
||||
* @param {Object} param
|
||||
*/
|
||||
addBankCard(param) {
|
||||
|
@ -412,7 +390,30 @@ const mine = {
|
|||
path: param.path,
|
||||
method: 'DELETE',
|
||||
load: true,
|
||||
>>>>>>> 0a930aa1702a2566cc55bb62dad90293c20f3b0d
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 拉黑
|
||||
* @param {Object} param
|
||||
*/
|
||||
blockUser(param) {
|
||||
return util.request({
|
||||
url: `/video/statistics/block`,
|
||||
data: param,
|
||||
method: 'POST',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 解锁他人评论
|
||||
* @param {Object} param
|
||||
*/
|
||||
unlockComment(param) {
|
||||
return util.request({
|
||||
url: `/video/comment/unlockOthersComment`,
|
||||
data: param,
|
||||
method: 'POST',
|
||||
})
|
||||
},
|
||||
}
|
||||
|
|
|
@ -6,13 +6,9 @@ const config = {
|
|||
// host: 'h5api',
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
<<<<<<< HEAD
|
||||
// host: 'http://91f.xyz:8080',
|
||||
// host: 'https://1a880cd5.r24.cpolar.top/',
|
||||
host: 'http://aere2w.natappfree.cc',
|
||||
=======
|
||||
host: 'http://91f.xyz:8080',
|
||||
>>>>>>> 0a930aa1702a2566cc55bb62dad90293c20f3b0d
|
||||
// #endif
|
||||
// 支付方式配置
|
||||
payType: {
|
||||
|
|
|
@ -420,8 +420,8 @@ function toCommentsList() {
|
|||
</view>
|
||||
|
||||
<!-- 列表 -->
|
||||
<view class="list mtb20 plr20 c111 f24 bfff br10">
|
||||
<view class="item rows ptb25" v-if="0">
|
||||
<view class="list mtb20 plr20 c111 f24 bfff br10" v-if="0">
|
||||
<view class="item rows ptb25">
|
||||
<view class="key">设置备注</view>
|
||||
<view class="inputBox tac">
|
||||
<input class="c111 f24" type="text" placeholder="请输入备注" />
|
||||
|
|
|
@ -35,7 +35,6 @@ const userinfo = computed(() => {
|
|||
return store.state.userinfo
|
||||
})
|
||||
|
||||
<<<<<<< HEAD
|
||||
onLoad((option) => {
|
||||
if (option.userId) {
|
||||
uni.setNavigationBarTitle({
|
||||
|
@ -44,55 +43,7 @@ onLoad((option) => {
|
|||
getList(option.userId)
|
||||
} else {
|
||||
getList()
|
||||
=======
|
||||
onLoad(() => {
|
||||
getLst()
|
||||
})
|
||||
|
||||
// 重载视频列表
|
||||
function refreshVideoList() {
|
||||
list.pageNum = 1
|
||||
list.total = 0
|
||||
getLst()
|
||||
}
|
||||
|
||||
// 获取更多视频列表
|
||||
function getMoreVideoList() {
|
||||
if (list.data.length >= list.total) return
|
||||
list.pageNum++
|
||||
getLst()
|
||||
}
|
||||
|
||||
// 获取我的评论
|
||||
function getLst() {
|
||||
api.mine.myComment({
|
||||
query: {
|
||||
userId: userinfo.value.id,
|
||||
pageNum: list.pageNum,
|
||||
pageSize: list.pageSize,
|
||||
}
|
||||
}).then(rs => {
|
||||
if (rs.code == 200) {
|
||||
if (list.pageNum) list.data.length = 0
|
||||
// 追加视频列表
|
||||
list.data.push(...rs.rows.map(item => {
|
||||
return item
|
||||
}))
|
||||
// 视频列表
|
||||
list.total = rs.total
|
||||
console.log('list', list.data)
|
||||
return
|
||||
}
|
||||
util.alert({
|
||||
content: rs.msg,
|
||||
showCancel: false,
|
||||
})
|
||||
}).finally(() => {
|
||||
uni.stopPullDownRefresh()
|
||||
})
|
||||
>>>>>>> 0a930aa1702a2566cc55bb62dad90293c20f3b0d
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
onReachBottom(() => {
|
||||
|
@ -105,6 +56,51 @@ onPullDownRefresh(() => {
|
|||
refreshVideoList()
|
||||
})
|
||||
|
||||
// 重载视频列表
|
||||
function refreshVideoList() {
|
||||
list.pageNum = 1
|
||||
list.total = 0
|
||||
getLst()
|
||||
}
|
||||
|
||||
// 获取更多视频列表
|
||||
function getMoreVideoList() {
|
||||
if (list.data.length >= list.total) return
|
||||
list.pageNum++
|
||||
getLst()
|
||||
}
|
||||
|
||||
// 获取我的评论
|
||||
function getLst() {
|
||||
api.mine.myComment({
|
||||
query: {
|
||||
userId: userinfo.value.id,
|
||||
pageNum: list.pageNum,
|
||||
pageSize: list.pageSize,
|
||||
}
|
||||
}).then(rs => {
|
||||
if (rs.code == 200) {
|
||||
if (list.pageNum) list.data.length = 0
|
||||
// 追加视频列表
|
||||
list.data.push(...rs.rows.map(item => {
|
||||
return item
|
||||
}))
|
||||
// 视频列表
|
||||
list.total = rs.total
|
||||
console.log('list', list.data)
|
||||
return
|
||||
}
|
||||
util.alert({
|
||||
content: rs.msg,
|
||||
showCancel: false,
|
||||
})
|
||||
}).finally(() => {
|
||||
uni.stopPullDownRefresh()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 重载视频列表
|
||||
function refreshVideoList() {
|
||||
list.pageNum = 1
|
||||
|
|
|
@ -3,13 +3,9 @@ import {
|
|||
} from 'vite';
|
||||
import uni from '@dcloudio/vite-plugin-uni';
|
||||
|
||||
<<<<<<< HEAD
|
||||
// let target = 'http://91f.xyz:8080'
|
||||
// let target = 'https://1a880cd5.r24.cpolar.top/'
|
||||
let target = 'http://aere2w.natappfree.cc'
|
||||
=======
|
||||
let target = 'http://91f.xyz:8080'
|
||||
>>>>>>> 0a930aa1702a2566cc55bb62dad90293c20f3b0d
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [uni()],
|
||||
|
|
Loading…
Reference in New Issue