Browse Source

完善我的发布我的推广

master
chenkun 10 months ago
parent
commit
6b3d828e9a
8 changed files with 45 additions and 38 deletions
  1. +2
    -2
      components/post/postList.vue
  2. +2
    -2
      pages/publish/postDetail.vue
  3. +1
    -1
      pages_mine/mine/promotionRecord.vue
  4. +4
    -4
      pages_mine/mine/releaseRecord.vue
  5. +15
    -9
      pages_mine/mine/sonPage/promotion/promotionDetail.vue
  6. +2
    -2
      pages_mine/mine/sonPage/promotion/promotionRecordList.vue
  7. +1
    -1
      pages_mine/mine/sonPage/release/releaseList.vue
  8. +18
    -17
      pages_mine/mine/updateUserInfo.vue

+ 2
- 2
components/post/postList.vue View File

@ -12,13 +12,13 @@
</view> </view>
<view class="createBy"> <view class="createBy">
<view class=""> <view class="">
发布人{{ item.userId }}
发布人{{ item.userId_dictText }}
</view> </view>
<view class=""> <view class="">
<uv-icon <uv-icon
size="26rpx" size="26rpx"
name="thumb-up"></uv-icon> name="thumb-up"></uv-icon>
{{ item.dropNum }}
{{ item.dropNum?item.dropNum:0 }}
</view> </view>
</view> </view>
<view class="createTime"> <view class="createTime">


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

@ -67,11 +67,11 @@
}, },
methods: { methods: {
getData() { getData() {
this.$api('indexGetTrendsDetail', {
this.$api('infoGetMyReleaseDetail', {
id : this.id id : this.id
}, res => { }, res => {
if (res.code == 200) { if (res.code == 200) {
this.item = res.result.details
this.item = res.result
this.isThumbs_up = res.result.isThumbs_up// this.isThumbs_up = res.result.isThumbs_up//
this.isThumbs_down = res.result.isThumbs_down// this.isThumbs_down = res.result.isThumbs_down//
} }


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

@ -41,7 +41,7 @@
</view> </view>
</view> </view>
</view> </view>
<!--发布列表-->
<!--推广列表-->
<view style="" class="publishListClass"> <view style="" class="publishListClass">
<PromotionRecordList :list="promotionRecordList" /> <PromotionRecordList :list="promotionRecordList" />
</view> </view>


+ 4
- 4
pages_mine/mine/releaseRecord.vue View File

@ -14,11 +14,11 @@
<view class="" @click="tabChange(0)"> <view class="" @click="tabChange(0)">
<span :class="checkedIndex==0 ? 'tabbarItemActive' : 'tabbarItemNoActive'">全部</span> <span :class="checkedIndex==0 ? 'tabbarItemActive' : 'tabbarItemNoActive'">全部</span>
</view> </view>
<view class="" @click="tabChange(1)">
<span :class="checkedIndex==1 ? 'tabbarItemActive' : 'tabbarItemNoActive'">贴子</span>
</view>
<view class="" @click="tabChange(2)"> <view class="" @click="tabChange(2)">
<span :class="checkedIndex==2 ? 'tabbarItemActive' : 'tabbarItemNoActive'">名片</span>
<span :class="checkedIndex==2 ? 'tabbarItemActive' : 'tabbarItemNoActive'">贴子</span>
</view>
<view class="" @click="tabChange(1)">
<span :class="checkedIndex==1 ? 'tabbarItemActive' : 'tabbarItemNoActive'">名片</span>
</view> </view>
</view> </view>
<!--发布列表--> <!--发布列表-->


+ 15
- 9
pages_mine/mine/sonPage/promotion/promotionDetail.vue View File

@ -19,13 +19,17 @@
clearable></uv-input> clearable></uv-input>
</view> </view>
</view> --> </view> -->
<view class="item">
<view class="label">推广作品</view>
<view class="value">{{item.name}}</view>
</view>
<view class="item"> <view class="item">
<view class="label">价格</view> <view class="label">价格</view>
<view class="value">{{item.goTiime}}</view>
<view class="value">{{item.price }}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="label">时长</view> <view class="label">时长</view>
<view class="value">{{item.price}}</view>
<view class="value">{{item.tuTime}}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="label">联系方式</view> <view class="label">联系方式</view>
@ -38,10 +42,12 @@
<view class="label">剩余推广时长</view> <view class="label">剩余推广时长</view>
<view class="value">{{item.remainingPromotionTime}}</view> <view class="value">{{item.remainingPromotionTime}}</view>
</view> </view>
<view>推广作品</view>
<!-- <view>推广作品</view>
<view style="width: 30%;height: 300rpx;border-radius: 20rpx;overflow: hidden;"> <view style="width: 30%;height: 300rpx;border-radius: 20rpx;overflow: hidden;">
<image :src="item.image" style="width: 100%;height: 100%;"></image> <image :src="item.image" style="width: 100%;height: 100%;"></image>
</view>
</view> -->
</view> </view>
@ -116,7 +122,7 @@
// if (options.item) { // if (options.item) {
// let item = JSON.parse(decodeURIComponent(options.item)); // let item = JSON.parse(decodeURIComponent(options.item));
// } // }
this.item.id = options.item.id
this.item.id = options.id
}, },
components: { components: {
confirmationPopup confirmationPopup
@ -137,18 +143,18 @@
}; };
}, },
mounted() { mounted() {
// this.getData()
this.getData()
this.indexTopPayList() this.indexTopPayList()
}, },
methods: { methods: {
// 广 // 广
getData() { getData() {
this.$api('infoGetPromotionDetail', item.id, res => {
this.$api('infoGetPromotionDetail',{id: this.item.id}, res => {
if (res.code == 200) { if (res.code == 200) {
this.item = res.result.records
this.item = res.result
// 广 // 广
const futureTime = dayjs(this.item.createTime).add(this.item.goTiime, "day")
const futureTime = dayjs(this.item.createTime).add(this.item.tuTime, "day")
// //
const now = dayjs(); const now = dayjs();


+ 2
- 2
pages_mine/mine/sonPage/promotion/promotionRecordList.vue View File

@ -7,11 +7,11 @@
<view class="text"> <view class="text">
<view> <view>
<view class="title"> <view class="title">
{{ item.title }}
{{ item.name }}
</view> </view>
<view class="createBy"> <view class="createBy">
<view class=""> <view class="">
推广时效{{ item.goTiime }}
推广时效{{ item.tuTime }}
</view> </view>
</view> </view>
</view> </view>


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

@ -66,7 +66,7 @@
}, },
gotoDetail(item) { gotoDetail(item) {
// //
if (item.isCard == 'N') {
if (item.isCard == 'Y') {
// () // ()
console.log("跳转到动态(贴子)详情页面") console.log("跳转到动态(贴子)详情页面")
this.$utils.navigateTo('/publish/postDetail?id=' + item.id) this.$utils.navigateTo('/publish/postDetail?id=' + item.id)


+ 18
- 17
pages_mine/mine/updateUserInfo.vue View File

@ -18,7 +18,7 @@
<view class="label">昵称</view> <view class="label">昵称</view>
<view class="value"> <view class="value">
<uv-input v-model="form.nickName" placeholder="昵称" border="bottom" clearable <uv-input v-model="form.nickName" placeholder="昵称" border="bottom" clearable
@change="keyWordChange"></uv-input>
></uv-input>
</view> </view>
</view> </view>
<view class="item" @click="sexChange"> <view class="item" @click="sexChange">
@ -29,7 +29,7 @@
<view class="label">联系方式</view> <view class="label">联系方式</view>
<view class="value"> <view class="value">
<uv-input v-model="form.phone" placeholder="联系方式" border="bottom" clearable <uv-input v-model="form.phone" placeholder="联系方式" border="bottom" clearable
@change="keyWordChange"></uv-input>
></uv-input>
</view> </view>
</view> </view>
</view> </view>
@ -57,10 +57,12 @@
data() { data() {
return { return {
form: { form: {
sex: '男',
nickName: '库里yyds',
phone: '15346993500',
sex: userInfo.sex || '',
nickName: '1',
phone: userInfo.phone || '',
image: userInfo.headImage,
}, },
itemUserImage: userInfo.headImage,
fileList: [], fileList: [],
sexList: [{ sexList: [{
name: '男', name: '男',
@ -71,20 +73,20 @@
value: 0 value: 0
}, },
], ],
itemUserImage:userInfo.headImage
} }
}, },
mounted() { mounted() {
console.log(this.userInfo.headImage, "this.userInfo.headImage"); console.log(this.userInfo.headImage, "this.userInfo.headImage");
this.fileList.push({
url: this.userInfo.headImage
})
// this.fileList.push({
// url: this.userInfo.headImage
// })
}, },
methods: { methods: {
// //
confirmEditUserInfo() { confirmEditUserInfo() {
this.$api('infoUpdateInfo', {}, res => {
this.$api('infoUpdateInfo', this.form, res => {
if (res.code == 200) { if (res.code == 200) {
// VueX // VueX
uni.showToast({ uni.showToast({
@ -102,14 +104,14 @@
// //
updateUserImage(e) { updateUserImage(e) {
console.log(e,"e");
console.log(e, "e");
let self = this let self = this
// e.file.forEach(file => { // e.file.forEach(file => {
self.$Oss.ossUpload(file.url).then(url => {
self.itemUserImage = {
url
}
})
self.$Oss.ossUpload(file.url).then(url => {
self.itemUserImage = {
url
}
})
// }) // })
}, },
@ -137,7 +139,6 @@
console.log('选中该项:', e); console.log('选中该项:', e);
this.form.sex = e.name this.form.sex = e.name
this.$refs.actionSheet.close() // this.$refs.actionSheet.close() //
}, },
// ActionSheet // ActionSheet


Loading…
Cancel
Save