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