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 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({

View File

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

View File

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

View File

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