Browse Source

上传代码

master
前端-胡立永 9 months ago
parent
commit
86becf8df5
8 changed files with 125 additions and 28 deletions
  1. +16
    -1
      components/base/navbar.vue
  2. +9
    -9
      components/base/tabbar.vue
  3. +81
    -4
      components/content/contentControls.vue
  4. +1
    -1
      config.js
  5. +1
    -1
      pages/publish/actorDetail.vue
  6. +11
    -9
      pages_mine/mine/certifiedIndividual.vue
  7. +5
    -2
      pages_mine/mine/sonPage/promotion/promotionRecordList.vue
  8. +1
    -1
      pages_mine/mine/sonPage/release/releaseList.vue

+ 16
- 1
components/base/navbar.vue View File

@ -4,8 +4,14 @@
<view class="title" <view class="title"
:style="{backgroundColor : bgColor}"> :style="{backgroundColor : bgColor}">
<view class="left"> <view class="left">
<uv-icon name="arrow-left" <uv-icon name="arrow-left"
v-if="leftClick"
v-if="length == 1"
@click="toHome"
color="#333" size="46rpx"></uv-icon>
<uv-icon name="arrow-left"
v-else-if="leftClick"
@click="$emit('leftClick')" @click="$emit('leftClick')"
color="#333" size="46rpx"></uv-icon> color="#333" size="46rpx"></uv-icon>
</view> </view>
@ -72,9 +78,18 @@
}, },
data() { data() {
return { return {
length : getCurrentPages().length
}; };
}, },
methods : { methods : {
toHome(){
if(this.length != 1){
return
}
uni.reLaunch({
url: '/pages/index/index'
})
}
} }
} }
</script> </script>


+ 9
- 9
components/base/tabbar.vue View File

@ -51,15 +51,15 @@
}; };
}, },
mounted() { mounted() {
this.inter = setInterval(() => {
console.log('$forceUpdate', this.isVedio);
this.$forceUpdate()
}, 500)
// this.inter = setInterval(() => {
// console.log('$forceUpdate', this.isVedio);
// this.$forceUpdate()
// }, 500)
setTimeout(() => {
clearInterval(this.inter)
this.inter = null
}, 20000)
// setTimeout(() => {
// clearInterval(this.inter)
// this.inter = null
// }, 20000)
}, },
beforeDestroy() { beforeDestroy() {
if(this.inter){ if(this.inter){
@ -71,7 +71,7 @@
if(index == this.select){ if(index == this.select){
return return
} }
uni.redirectTo({
uni.reLaunch({
url: item.pagePath url: item.pagePath
}) })
}, },


+ 81
- 4
components/content/contentControls.vue View File

@ -1,7 +1,7 @@
<template> <template>
<view class="controls"> <view class="controls">
<view class="bell" <view class="bell"
@click="bell">
@click="$refs.confirmationPopup.open('bottom')">
<uv-icon size="35rpx" name="bell"></uv-icon> <uv-icon size="35rpx" name="bell"></uv-icon>
举报 举报
</view> </view>
@ -34,12 +34,51 @@
size="35rpx" name="thumb-down"></uv-icon> size="35rpx" name="thumb-down"></uv-icon>
</view> </view>
<!-- <confirmationPopup
ref="confirmationPopup"
title="举报"
@confirm="bell"
confirmText="确认举报">
<view class="confirmationPopup">
<view class="list">
<view
v-for="(item, index) in ju">
{{ item.title }}
</view>
</view>
</view>
</confirmationPopup> -->
<uv-popup ref="confirmationPopup"
:round="30"
:customStyle="{height: '50vh'}">
<view class="confirmationPopup">
<view class="list">
<view
:key="index"
@click="bell(item)"
v-for="(item, index) in ju">
{{ item.content }}
<!-- <view class="content">
{{ item.content }}
</view> -->
</view>
</view>
</view>
</uv-popup>
</view> </view>
</template> </template>
<script> <script>
import confirmationPopup from '@/components/toast/confirmationPopup.vue'
export default { export default {
name:"contentControls", name:"contentControls",
components : {
confirmationPopup,
},
props : { props : {
type : { type : {
default : 0 default : 0
@ -59,20 +98,41 @@
}, },
data() { data() {
return { return {
ju : [
{
title : '虚假信息',
},
{
title : '其他原因',
},
],
act : 0,
}; };
}, },
created() {
this.indexGetComplaintReason()
},
methods : { methods : {
indexGetComplaintReason(){
this.$api('indexGetComplaintReason', res => {
if(res.code == 200){
this.ju = res.result
}
})
},
// //
bell(){
bell(item){
this.$api('infoReport', { this.$api('infoReport', {
type : this.type, type : this.type,
id : this.detail.id, id : this.detail.id,
content : item.content
}, res => { }, res => {
this.$refs.confirmationPopup.close()
if(res.code == 200){ if(res.code == 200){
this.$emit('loadData') this.$emit('loadData')
uni.showToast({ uni.showToast({
title: res.message
title: '举报成功',
// title: res.message,
}) })
} }
}) })
@ -131,5 +191,22 @@
.share::after{ .share::after{
border: none; border: none;
} }
.confirmationPopup{
overflow: auto;
height: 100%;
padding: 20rpx;
padding-bottom: env(safe-area-inset-bottom);
.list{
padding-bottom: env(safe-area-inset-bottom);
&>view{
margin: 20rpx;
display: flex;
justify-content: center;
padding: 20rpx;
border-radius: 10rpx;
border: 1px solid #000;
}
}
}
} }
</style> </style>

+ 1
- 1
config.js View File

@ -5,7 +5,7 @@ import utils from './utils/utils.js'
// 当前环境 // 当前环境
const type = 'prod'
const type = 'dev'
// 环境配置 // 环境配置


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

@ -135,7 +135,7 @@
return { return {
title: this.item.details.title, title: this.item.details.title,
desc: this.item.details.content && this.item.details.content.slice(0, 30), desc: this.item.details.content && this.item.details.content.slice(0, 30),
path: '/pages/publish/postDetail?id=' + this.id
path: '/pages/publish/actorDetail?id=' + this.id
} }
}, },
onShow() { onShow() {


+ 11
- 9
pages_mine/mine/certifiedIndividual.vue View File

@ -162,25 +162,27 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 150rpx;
margin-top: 15%;
gap: 80rpx;
margin-top: 20rpx;
.avatarFace { .avatarFace {
width: 80vw;
height: 20vh;
width: 600rpx;
height: 300rpx;
} }
.reverseSide { .reverseSide {
width: 80vw;
height: 20vh;
width: 600rpx;
height: 300rpx;
} }
} }
} }
.bottomBtn { .bottomBtn {
position: fixed;
bottom: 15%;
left: 25%;
// position: fixed;
// bottom: 15%;
// left: 25%;
margin: 0 auto;
margin-top: 50rpx;
width: 50%; width: 50%;
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;


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

@ -3,7 +3,7 @@
<view class="item" v-for="(item, index) in list" <view class="item" v-for="(item, index) in list"
@click="gotoItem(item)" @click="gotoItem(item)"
:key="index"> :key="index">
<image :src="item.image" style="width: 40%"></image>
<image :src="item.image" style="width: 40%" mode="aspectFill"></image>
<view class="text"> <view class="text">
<view> <view>
<view class="title"> <view class="title">
@ -22,9 +22,12 @@
价格{{ item.price }} 价格{{ item.price }}
</view> </view>
</view> </view>
<view class="createTime">
<view class="createTime" v-if="item.isState == 1">
推广时间{{ item.createTime }} 推广时间{{ item.createTime }}
</view> </view>
<view class="createTime" v-else>
未开始
</view>
</view> </view>
</view> </view>
</view> </view>


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

@ -1,7 +1,7 @@
<template> <template>
<view class="publishList"> <view class="publishList">
<view class="item" v-for="(item, index) in list" @click="gotoDetail(item)" :key="index"> <view class="item" v-for="(item, index) in list" @click="gotoDetail(item)" :key="index">
<image :src="item.image" style="width: 40%"></image>
<image :src="item.image" style="width: 40%" mode="aspectFill"></image>
<view class="text"> <view class="text">
<view class="title"> <view class="title">
{{ item.title || item.name }} {{ item.title || item.name }}


Loading…
Cancel
Save