Commit 8f9fac69 authored by liwei's avatar liwei

增加了黑名单页面

parent 51ad9908
......@@ -392,7 +392,7 @@ import {articleList, getOssUrl} from "../../api/article";
whether(i) {
if (i == 0) {
uni.navigateTo({
url: "/pagesme/me/recharge"
url: "/pagesme/goldCoin/recharge"
})
} else if (i == 1) {
this.updateInformation();
......
<template>
<view>
<u-swipe-action>
<u-swipe-action-item
:options="options"
v-for="(item, index) in options4"
:key="index"
>
<view
class="swipe-action u-border-top"
:class="[index === options4.length - 1 && 'u-border-bottom']"
>
<view class="swipe-action__content">
<view class="avatar">
<u--image :src="item.avatar" width="40px" height="40px" mode="aspectFill" shape="circle"></u--image>
</view>
<view class="content">
<view class="title">
<text class="name">{{ item.name }}</text>
<!-- <text class="time">{{ item.time }}</text>-->
</view>
<!-- <view class="txt">{{ item.msg }}</view>-->
</view>
</view>
</view>
</u-swipe-action-item>
</u-swipe-action>
</view>
</template>
<script>
export default {
data() {
return {
options:[
{
text: '移除',
style: {
backgroundColor: '#3c9cff',
}
},
],
options4: [
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '杨涛',
read: 1,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '雨中漫步',
read: 1,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '糖果梦境',
read: 1,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '海上日落',
read: 1,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '男朋友',
read: 1,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '女朋友',
read: 1,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '静谧之夜',
read: 1,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '风吹麦浪',
read: 0,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '路过岁月',
read: 0,
time: '23:59',
msg: '没有消息就是最好的消息'
},
{
avatar: 'http://192.168.69.154/upload/opmArticle/20250205/D55F11DEB8C2410CB899978572F82981.jpg',
name: '繁星点点',
read: 0,
time: '23:59',
msg: '没有消息就是最好的消息'
}
],
};
},
};
</script>
<style lang="scss" scoped>
.u-page {
padding: 0;
}
.u-demo-block__title {
padding: 10px 0 2px 15px;
}
.swipe-action {
.swipe-action__content {
display: flex;
padding: 30rpx 20rpx;
border-bottom: 1px solid #ccced3;
.avatar {
width: 90rpx;
height: 90rpx;
border-radius: 10rpx;
margin-right: 20rpx;
position: relative;
}
.content {
flex: 1;
.title {
display: flex;
justify-content: space-between;
.name {
font-weight: bold;
}
.time {
color: #999;
font-size: 24rpx;
}
}
.txt {
margin-top: 10rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
text-align: left;
color: #999;
font-size: 26rpx;
}
}
}
}
</style>
......@@ -25,29 +25,36 @@
return {
//图片路径
baseUrl: this.$IMG_URL,
list: [{
name: "推荐设置",
url: "/pagespreference/preference/preference"
}, {
name: "用户协议",
url: "/pagesme/agreement/agreement"
}, {
name: "隐私政策",
url: "/pagesme/agreement/privacy"
}, {
name: "关于我们",
url: "/pagesme/set/aboutme"
},
//<!--start 商业使用 未经作者授权不得删除此项 联系微信:MMRWXM(请注明来意) start -->
{
name: "合作联系",
url: "/pagesme/set/contact"
}
//<!--end 商业使用 未经作者授权不得删除此项 联系微信:MMRWXM(请注明来意) end -->
, {
name: "注销账户",
url: ""
}],
list: [
{
name: "黑名单管理",
url: "/pagesme/set/blackList"
},
{
name: "推荐设置",
url: "/pagespreference/preference/preference"
},
{
name: "用户协议",
url: "/pagesme/set/agreement"
},
{
name: "隐私政策",
url: "/pagesme/set/privacy"
},
{
name: "关于我们",
url: "/pagesme/set/aboutme"
},
{
name: "合作联系",
url: "/pagesme/set/contact"
},
{
name: "注销账户",
url: ""
}
],
isShow: false,
tipMsg: '',
isConfirm: false
......@@ -65,7 +72,6 @@
},
confirm() {
this.$myRequest({
url: '/nostalgia/fruser/delete/fruser',
withToken: true,
......@@ -85,9 +91,6 @@
uni.switchTab({
url: '/pageslogin/index'
});
/* uni.reLaunch({
url: '/pageslogin/index'
}); */
} else {
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
......@@ -101,7 +104,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
.list-box {
display: flex;
flex-direction: column;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment