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 class="createBy">
<view class="">
发布人{{ item.userId }}
发布人{{ item.userId_dictText }}
</view>
<view class="">
<uv-icon
size="26rpx"
name="thumb-up"></uv-icon>
{{ item.dropNum }}
{{ item.dropNum?item.dropNum:0 }}
</view>
</view>
<view class="createTime">


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

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


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

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


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

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


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

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


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

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


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

@ -66,7 +66,7 @@
},
gotoDetail(item) {
//
if (item.isCard == 'N') {
if (item.isCard == 'Y') {
// ()
console.log("跳转到动态(贴子)详情页面")
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="value">
<uv-input v-model="form.nickName" placeholder="昵称" border="bottom" clearable
@change="keyWordChange"></uv-input>
></uv-input>
</view>
</view>
<view class="item" @click="sexChange">
@ -29,7 +29,7 @@
<view class="label">联系方式</view>
<view class="value">
<uv-input v-model="form.phone" placeholder="联系方式" border="bottom" clearable
@change="keyWordChange"></uv-input>
></uv-input>
</view>
</view>
</view>
@ -57,10 +57,12 @@
data() {
return {
form: {
sex: '男',
nickName: '库里yyds',
phone: '15346993500',
sex: userInfo.sex || '',
nickName: '1',
phone: userInfo.phone || '',
image: userInfo.headImage,
},
itemUserImage: userInfo.headImage,
fileList: [],
sexList: [{
name: '男',
@ -71,20 +73,20 @@
value: 0
},
],
itemUserImage:userInfo.headImage
}
},
mounted() {
console.log(this.userInfo.headImage, "this.userInfo.headImage");
this.fileList.push({
url: this.userInfo.headImage
})
// this.fileList.push({
// url: this.userInfo.headImage
// })
},
methods: {
//
confirmEditUserInfo() {
this.$api('infoUpdateInfo', {}, res => {
this.$api('infoUpdateInfo', this.form, res => {
if (res.code == 200) {
// VueX
uni.showToast({
@ -102,14 +104,14 @@
//
updateUserImage(e) {
console.log(e,"e");
console.log(e, "e");
let self = this
// 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);
this.form.sex = e.name
this.$refs.actionSheet.close() //
},
// ActionSheet


Loading…
Cancel
Save