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