Compare commits

..

No commits in common. "3ce0c6034af52aa9eef12239048c689649eede21" and "e8f94ff68e894989cd8988c436ef718eed05005c" have entirely different histories.

4 changed files with 4 additions and 39 deletions

View File

@ -16,14 +16,6 @@ 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({

View File

@ -1,6 +1,6 @@
// 应用全局配置
module.exports = {
baseUrl: 'http://192.168.1.4:8081',
baseUrl: 'http://192.168.1.31:8099',
// baseUrl: 'http://localhost:8080',
// 应用信息
appInfo: {
@ -42,4 +42,4 @@ module.exports = {
}
]
}
}
}

View File

@ -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="uploadUrl+item.avatar" mode="aspectFit"></image>
<image v-else class="touxiang" :src="item.avatar" mode="aspectFit"></image>
<image class="sex" src="@/static/mine/sex_girl.png" mode="aspectFit"></image>
</view>
<view class="name-box">
@ -37,16 +37,12 @@
<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",
@ -57,34 +53,13 @@
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
}
})
},
/**
* 上滑加载数据
*/
@ -96,7 +71,6 @@
}
//+1,
this.queryParams.pageNum++
this.initData()
},
/**
* 下拉刷新数据
@ -105,7 +79,6 @@
this.isTriggered = true
this.queryParams.pageNum = 1
this.total = 0
this.initData()
},
remove(id) {}
}

View File

@ -116,7 +116,7 @@
},
methods: {
goMyBlackList() {
this.$tab.navigateTo('/pages/mine/set/black-list?userId='+this.userId)
this.$tab.navigateTo('/pages/mine/set/black-list')
},
submit(ref) {
this.valiFormData.avatar = this.fileImageUrl.join(',');