1
This commit is contained in:
parent
67a047c313
commit
30dcf3679c
@ -16,6 +16,14 @@ export function queryDetail(params) {
|
|||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//查询黑名单
|
||||||
|
export function blackList(params) {
|
||||||
|
return request({
|
||||||
|
url: '/member/blacklist/list',
|
||||||
|
method: 'get',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
}
|
||||||
//保存博主
|
//保存博主
|
||||||
export function uniSaveMember(data) {
|
export function uniSaveMember(data) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// 应用全局配置
|
// 应用全局配置
|
||||||
module.exports = {
|
module.exports = {
|
||||||
baseUrl: 'http://192.168.1.4:8080',
|
baseUrl: 'http://192.168.1.4:8081',
|
||||||
// baseUrl: 'http://localhost:8080',
|
// baseUrl: 'http://localhost:8080',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<view class="dl-image-box">
|
<view class="dl-image-box">
|
||||||
<image v-if="!item.avatar" class="touxiang" src="@/static/images/profile.jpg" mode="aspectFit">
|
<image v-if="!item.avatar" class="touxiang" src="@/static/images/profile.jpg" mode="aspectFit">
|
||||||
</image>
|
</image>
|
||||||
<image v-else class="touxiang" :src="item.avatar" mode="aspectFit"></image>
|
<image v-else class="touxiang" :src="uploadUrl+item.avatar" mode="aspectFit"></image>
|
||||||
<image class="sex" src="@/static/mine/sex_girl.png" mode="aspectFit"></image>
|
<image class="sex" src="@/static/mine/sex_girl.png" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="name-box">
|
<view class="name-box">
|
||||||
@ -37,12 +37,16 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||||
|
import {toast} from '@/utils/common.js'
|
||||||
|
import config from '@/config';
|
||||||
|
import {blackList} from '@/api/business/member.js';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
navigationBarVue
|
navigationBarVue
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
uploadUrl: config.baseUrl,
|
||||||
dataList: [{
|
dataList: [{
|
||||||
nickName: "李林",
|
nickName: "李林",
|
||||||
createTime: "2024-02-10 12:22:44",
|
createTime: "2024-02-10 12:22:44",
|
||||||
@ -53,13 +57,34 @@
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
userId:null
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
//下来刷新状态
|
//下来刷新状态
|
||||||
isTriggered: false
|
isTriggered: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad(option){
|
||||||
|
this.queryParams.userId = option.userId
|
||||||
|
this.initData()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
/**出事后数据*/
|
||||||
|
initData(){
|
||||||
|
blackList(this.queryParams).then(res=>{
|
||||||
|
this.isTriggered = false
|
||||||
|
if (res.code == 200) {
|
||||||
|
if (this.queryParams.pageNum == 1) {
|
||||||
|
this.dataList = res.data.records
|
||||||
|
} else {
|
||||||
|
this.dataList = this.dataList.concat(res.data.records)
|
||||||
|
}
|
||||||
|
this.total = res.data.data.total
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 上滑加载数据
|
* 上滑加载数据
|
||||||
*/
|
*/
|
||||||
@ -71,6 +96,7 @@
|
|||||||
}
|
}
|
||||||
//页码+1,调用获取数据的方法获取第二页数据
|
//页码+1,调用获取数据的方法获取第二页数据
|
||||||
this.queryParams.pageNum++
|
this.queryParams.pageNum++
|
||||||
|
this.initData()
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 下拉刷新数据
|
* 下拉刷新数据
|
||||||
@ -79,6 +105,7 @@
|
|||||||
this.isTriggered = true
|
this.isTriggered = true
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
this.total = 0
|
this.total = 0
|
||||||
|
this.initData()
|
||||||
},
|
},
|
||||||
remove(id) {}
|
remove(id) {}
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goMyBlackList() {
|
goMyBlackList() {
|
||||||
this.$tab.navigateTo('/pages/mine/set/black-list')
|
this.$tab.navigateTo('/pages/mine/set/black-list?userId='+this.userId)
|
||||||
},
|
},
|
||||||
submit(ref) {
|
submit(ref) {
|
||||||
this.valiFormData.avatar = this.fileImageUrl.join(',');
|
this.valiFormData.avatar = this.fileImageUrl.join(',');
|
||||||
|
Loading…
Reference in New Issue
Block a user