chenkun 10 months ago
parent
commit
9c92bb4b20
6 changed files with 228 additions and 151 deletions
  1. +42
    -11
      pages/index/center.vue
  2. +1
    -1
      pages/publish/actorRelease.vue
  3. +2
    -2
      pages/publish/publishPost.vue
  4. +1
    -1
      pages_mine/mine/promotionRecord.vue
  5. +128
    -130
      pages_mine/mine/sonPage/release/releaseList.vue
  6. +54
    -6
      pages_mine/mine/updateUserInfo.vue

+ 42
- 11
pages/index/center.vue View File

@ -20,11 +20,11 @@
<image src="/static/image/center/flzx.png" style="width: 100%;height: 100%;"></image> <image src="/static/image/center/flzx.png" style="width: 100%;height: 100%;"></image>
</view> --> </view> -->
<!-- 未认证--> <!-- 未认证-->
<view style="position: absolute;z-index:2;width:20%;height:25%;top: 38%;left: 31%;">
<view v-if='!isNameValid' style="position: absolute;z-index:2;width:20%;height:25%;top: 38%;left: 31%;">
<image src="/static/image/center/wrz.svg" style="width: 100%;height: 100%;"></image> <image src="/static/image/center/wrz.svg" style="width: 100%;height: 100%;"></image>
</view> </view>
<!-- 去认证 --> <!-- 去认证 -->
<view style="position: absolute;z-index:2;height:20%;top: 39%;left: 52%;">
<view v-if='!isNameValid' style="position: absolute;z-index:2;height:20%;top: 39%;left: 52%;">
<span style="font-size: 26rpx;font-weight: 700;" class="textColor" @click="toAuthPage">去认证</span> <span style="font-size: 26rpx;font-weight: 700;" class="textColor" @click="toAuthPage">去认证</span>
</view> </view>
<!-- 用户信息 --> <!-- 用户信息 -->
@ -87,6 +87,16 @@
</view> </view>
</view> </view>
</confirmationPopup> </confirmationPopup>
<!-- 实名信息弹框 -->
<confirmationPopup ref="realNameInfoPopup" title="提示" :cancel="true" @confirm="realNameInfoHandleConfirm"
@cancel="realNameInfoHandleCancel" confirmText="确认">
<view class="confirmationPopup">
<view style="text-align:center">
{{isNameValid?'已实名,是否重新认证?':'确定认证实名信息吗?' }}
</view>
</view>
</confirmationPopup>
</view> </view>
</template> </template>
@ -104,30 +114,34 @@
}, },
computed: { computed: {
...mapState(['userInfo']), ...mapState(['userInfo']),
isNameValid() {
console.log(this.userInfo,"this.userInfo");
return this.userInfo.idCardOpen == 'Y'
}
}, },
data() { data() {
return { return {
// //
baseList: [{ baseList: [{
name: 'photo',
name: 'myPost',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/f9d757ca-a95a-42d7-86aa-38c288f2c54f.svg', imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/f9d757ca-a95a-42d7-86aa-38c288f2c54f.svg',
title: '我的发布', title: '我的发布',
gotoPageUrl: '/mine/releaseRecord' gotoPageUrl: '/mine/releaseRecord'
}, },
{ {
name: 'lock',
name: 'myPromotion',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/f6fbb99f-c381-498a-8367-e91fc5e05cd6.svg', imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/f6fbb99f-c381-498a-8367-e91fc5e05cd6.svg',
title: '我的推广', title: '我的推广',
gotoPageUrl: '/mine/promotionRecord' gotoPageUrl: '/mine/promotionRecord'
}, },
{ {
name: 'star',
name: 'myBankCard',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/85fe8ad3-5094-473f-b184-ef4cf5c1db6e.svg', imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/85fe8ad3-5094-473f-b184-ef4cf5c1db6e.svg',
title: '我的银行卡', title: '我的银行卡',
gotoPageUrl: '/mine/addBankCard' gotoPageUrl: '/mine/addBankCard'
}, },
{ {
name: 'star',
name: 'myWallet',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/45ec00a0-3c12-4246-bfe3-a658ccf1f912.svg', imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/45ec00a0-3c12-4246-bfe3-a658ccf1f912.svg',
title: '我的钱包', title: '我的钱包',
gotoPageUrl: '/mine/purse' gotoPageUrl: '/mine/purse'
@ -135,18 +149,18 @@
], ],
// //
otherList: [{ otherList: [{
name: 'photo',
name: 'realNameInfo',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/8bc56d2e-380a-4656-8a33-592d374d246a.svg', imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/8bc56d2e-380a-4656-8a33-592d374d246a.svg',
title: '实名信息', title: '实名信息',
gotoPageUrl: '/mine/certifiedIndividual' gotoPageUrl: '/mine/certifiedIndividual'
}, },
{ {
name: 'lock',
name: 'helpFeedback',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/cd007424-1336-402c-8390-26c4f21deb80.svg', imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/cd007424-1336-402c-8390-26c4f21deb80.svg',
title: '帮助反馈' title: '帮助反馈'
}, },
{ {
name: 'lock',
name: 'updateUserInfo',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/ef58bc0b-ead6-4053-83b4-339aa02805d2.svg', imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/ef58bc0b-ead6-4053-83b4-339aa02805d2.svg',
title: '修改个人信息', title: '修改个人信息',
gotoPageUrl: '/mine/updateUserInfo' gotoPageUrl: '/mine/updateUserInfo'
@ -172,10 +186,13 @@
// //
goToPage(item) { goToPage(item) {
if (item.name == 'outLogin') { if (item.name == 'outLogin') {
//
this.$refs.confirmationPopup.open() this.$refs.confirmationPopup.open()
return return
} }
if (item.name == 'realNameInfo') {
this.$refs.realNameInfoPopup.open()
return
}
uni.navigateTo({ uni.navigateTo({
url: '/pages_mine' + item.gotoPageUrl url: '/pages_mine' + item.gotoPageUrl
}) })
@ -199,7 +216,21 @@
// 退 // 退
console.log("取消退出登录") console.log("取消退出登录")
this.$refs.confirmationPopup.close() this.$refs.confirmationPopup.close()
}
},
//
realNameInfoHandleConfirm() {
console.log("确认实名")
this.$refs.realNameInfoPopup.close()
uni.navigateTo({
url: '/pages_mine/mine/certifiedIndividual'
})
},
//
realNameInfoHandleCancel() {
console.log("取消实名")
this.$refs.realNameInfoPopup.close()
},
} }
} }


+ 1
- 1
pages/publish/actorRelease.vue View File

@ -256,7 +256,7 @@
let data = { let data = {
...this.form, ...this.form,
isCard: 1,
isCard: 'N',
isImage : this.fileList.map((item) => item.url).join(","), isImage : this.fileList.map((item) => item.url).join(","),
image : this.fileListImage.map((item) => item.url).join(","), image : this.fileListImage.map((item) => item.url).join(","),
isTop : this.form.topId ? 'Y' : 'N', isTop : this.form.topId ? 'Y' : 'N',


+ 2
- 2
pages/publish/publishPost.vue View File

@ -182,7 +182,7 @@
let data = { let data = {
...this.form, ...this.form,
isCard : 1,
isCard : 'Y',
image : this.fileList.map((item) => item.url).join(","), image : this.fileList.map((item) => item.url).join(","),
isTop : this.form.topId ? 'Y' : 'N', isTop : this.form.topId ? 'Y' : 'N',
} }
@ -201,7 +201,7 @@
let data = { let data = {
...this.form, ...this.form,
isCard : 1,
isCard : 'Y',
image : this.fileList.map((item) => item.url).join(","), image : this.fileList.map((item) => item.url).join(","),
isTop : this.form.topId ? 'Y' : 'N', isTop : this.form.topId ? 'Y' : 'N',
} }


+ 1
- 1
pages_mine/mine/promotionRecord.vue View File

@ -63,7 +63,7 @@
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
startDate: dayjs(new Date()).format('YYYY-MM-DD'),
startDate: dayjs(new Date()).subtract(30,'day').format('YYYY-MM-DD'),
endDate: dayjs(new Date()).format('YYYY-MM-DD'), endDate: dayjs(new Date()).format('YYYY-MM-DD'),
keyWord: '', keyWord: '',
}, },


+ 128
- 130
pages_mine/mine/sonPage/release/releaseList.vue View File

@ -1,146 +1,144 @@
<template> <template>
<view class="publishList">
<view class="item" v-for="(item, index) in list"
@click="gotoDetail(item)"
:key="index">
<image :src="item.image" style="width: 40%"></image>
<view class="text">
<view class="title">
{{ item.title }}
</view>
<view class="createBy">
<view class="">
是否置顶{{ item.isTop }}
</view>
</view>
<view class="isPay">
<view class="">
是否付费{{ item.isPay?"是":"否" }}
</view>
</view>
<view class="createTime">
发布时间{{ item.createTime }}
</view>
</view>
</view>
</view>
<view class="publishList">
<view class="item" v-for="(item, index) in list" @click="gotoDetail(item)" :key="index">
<image :src="item.image" style="width: 40%"></image>
<view class="text">
<view class="title">
{{ item.title }}
</view>
<view class="createBy">
<view class="">
是否置顶{{ item.isTop=='Y'?"是":"否" }}
</view>
</view>
<view class="isPay">
<view class="">
是否付费{{ item.isPay=='Y'?"是":"否" }}
</view>
</view>
<view class="createTime">
发布时间{{ item.createTime }}
</view>
</view>
</view>
</view>
</template> </template>
<script> <script>
export default {
name: "releaseList",
props: ['list'],
data() {
return {
total: 0,
queryParams: {
pageNo: 1,
pageSize: 5,
},
checkedIndex:0,
};
},
onShow() {
// this.getData()
},
// onReachBottom() {
// let allTotal = this.queryParams.pageNo * this.queryParams.pageSize
// if (allTotal < this.total) {
// //
// console.log(this.queryParams.pageSize,'==son=')
// this.queryParams.pageSize += 10
// this.getData() //
// }
// },
methods: {
getData() {
this.$api('infoGetMyReleasePage', {
pageNo: this.queryParams.pageNo,
pageSize: this.queryParams.pageSize,
state: this.checkedIndex
}, res => {
if (res.code == 200) {
this.list = res.result.records
this.total = res.result.total
}
})
},
gotoDetail(item) {
//
if (item.isCard=='N'){
// ()
console.log("跳转到动态(贴子)详情页面")
this.$utils.navigateTo('/publish/postDetail?id=' + item.id)
}else{
// ()
console.log("跳转到演员(名片)详情页面")
this.$utils.navigateTo('/publish/actorDetail?id=' + item.id)
}
}
}
}
export default {
name: "releaseList",
props: ['list'],
data() {
return {
total: 0,
queryParams: {
pageNo: 1,
pageSize: 5,
},
checkedIndex: 0,
};
},
onShow() {
// this.getData()
},
// onReachBottom() {
// let allTotal = this.queryParams.pageNo * this.queryParams.pageSize
// if (allTotal < this.total) {
// //
// console.log(this.queryParams.pageSize,'==son=')
// this.queryParams.pageSize += 10
// this.getData() //
// }
// },
methods: {
getData() {
this.$api('infoGetMyReleasePage', {
pageNo: this.queryParams.pageNo,
pageSize: this.queryParams.pageSize,
state: this.checkedIndex
}, res => {
if (res.code == 200) {
this.list = res.result.records
this.total = res.result.total
}
})
},
gotoDetail(item) {
//
if (item.isCard == 'N') {
// ()
console.log("跳转到动态(贴子)详情页面")
this.$utils.navigateTo('/publish/postDetail?id=' + item.id)
} else {
// ()
console.log("跳转到演员(名片)详情页面")
this.$utils.navigateTo('/publish/actorDetail?id=' + item.id)
}
}
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.publishList {
width: 90%;
.publishList {
width: 90%;
.item {
height: 200rpx;
width: 100%;
background-color: #fff;
overflow: hidden;
border-radius: 10rpx;
color: #777;
display: flex;
font-size: 24rpx;
margin: 30rpx 0;
.item {
height: 200rpx;
width: 100%;
background-color: #fff;
overflow: hidden;
border-radius: 10rpx;
color: #777;
display: flex;
font-size: 24rpx;
margin: 30rpx 0;
image {
width: 50%;
height: 100%;
}
image {
width: 50%;
height: 100%;
}
.text {
display: flex;
flex-direction: column;
padding: 16rpx;
width: 60%;
.text {
display: flex;
flex-direction: column;
padding: 16rpx;
width: 60%;
.title {
font-size: 30rpx;
font-weight: 600;
color: #000;
}
.title {
font-size: 30rpx;
font-weight: 600;
color: #000;
}
.createBy {
display: flex;
margin-top: auto;
margin-bottom: 10rpx;
justify-content: space-between;
.createBy {
display: flex;
margin-top: auto;
margin-bottom: 10rpx;
justify-content: space-between;
& > view {
display: flex;
align-items: center;
justify-content: center;
}
}
&>view {
display: flex;
align-items: center;
justify-content: center;
}
}
.isPay {
display: flex;
margin-top: auto;
margin-bottom: 10rpx;
color: #7395f4;
justify-content: space-between;
.isPay {
display: flex;
margin-top: auto;
margin-bottom: 10rpx;
color: #7395f4;
justify-content: space-between;
& > view {
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
}
&>view {
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
}
</style> </style>

+ 54
- 6
pages_mine/mine/updateUserInfo.vue View File

@ -6,8 +6,13 @@
<!--主页面--> <!--主页面-->
<view class="frame"> <view class="frame">
<view class="item"> <view class="item">
<view>头像</view>
<view>11</view>
<view style="width: 70%;height: 150rpx;">头像</view>
<view style="border-radius: 50%;border: 1px solid red;overflow: hidden;width: 30%;"
@click="updateUserImage">
<image :src='itemUserImage' style="width: 100%;height: 100%"></image>
<!-- <uv-upload :fileList="fileList" :maxCount="1" multiple width="150rpx" height="150rpx"
:deletable="false" :previewFullImage="false" @afterRead="afterRead" ></uv-upload> -->
</view>
</view> </view>
<view class="item"> <view class="item">
<view class="label">昵称</view> <view class="label">昵称</view>
@ -18,7 +23,7 @@
</view> </view>
<view class="item" @click="sexChange"> <view class="item" @click="sexChange">
<view class="label">性别</view> <view class="label">性别</view>
<view>{{form.sex}}<span style="color: #8b8f97;">&nbsp;&nbsp;&nbsp;></span></view>
<view>{{form.sex}}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="label">联系方式</view> <view class="label">联系方式</view>
@ -42,7 +47,13 @@
<script> <script>
import '../../common.css'; // CSS import '../../common.css'; // CSS
import {
mapState
} from 'vuex'
export default { export default {
computed: {
...mapState(['userInfo']),
},
data() { data() {
return { return {
form: { form: {
@ -50,6 +61,7 @@
nickName: '库里yyds', nickName: '库里yyds',
phone: '15346993500', phone: '15346993500',
}, },
fileList: [],
sexList: [{ sexList: [{
name: '男', name: '男',
value: 1 value: 1
@ -58,11 +70,19 @@
name: '女', name: '女',
value: 0 value: 0
}, },
]
],
itemUserImage:userInfo.headImage
} }
}, },
mounted() {
console.log(this.userInfo.headImage, "this.userInfo.headImage");
this.fileList.push({
url: this.userInfo.headImage
})
},
methods: { methods: {
//
confirmEditUserInfo() { confirmEditUserInfo() {
this.$api('infoUpdateInfo', {}, res => { this.$api('infoUpdateInfo', {}, res => {
if (res.code == 200) { if (res.code == 200) {
@ -80,6 +100,34 @@
}) })
}, },
//
updateUserImage(e) {
console.log(e,"e");
let self = this
// e.file.forEach(file => {
self.$Oss.ossUpload(file.url).then(url => {
self.itemUserImage = {
url
}
})
// })
},
deleteImage(e) {
this.fileList.splice(e.index, 1)
},
afterRead(e) {
let self = this
e.file.forEach(file => {
self.$Oss.ossUpload(file.url).then(url => {
self.fileList.push({
url
})
})
})
},
sexChange() { sexChange() {
this.$refs.actionSheet.open() //ActionSheet this.$refs.actionSheet.open() //ActionSheet
}, },
@ -121,11 +169,11 @@
padding: 20rpx; padding: 20rpx;
.label { .label {
width: 60%;
width: 50%;
} }
.value { .value {
width: 40%;
width: 50%;
text-align: right; text-align: right;
} }
} }


Loading…
Cancel
Save