Browse Source

上传代码

master
前端-胡立永 8 months ago
parent
commit
ca9874c96a
12 changed files with 110 additions and 36 deletions
  1. +18
    -0
      common.scss
  2. +23
    -18
      components/content/contentControls.vue
  3. +6
    -1
      components/post/actorList.vue
  4. +2
    -3
      pages/index/center.vue
  5. +19
    -5
      pages/publish/actorDetail.vue
  6. +2
    -2
      pages/publish/actorList.vue
  7. +1
    -0
      pages_mine/mine/authPerson.vue
  8. +3
    -3
      pages_mine/mine/sonPage/promotion/promotionDetail.vue
  9. +18
    -4
      pages_mine/publish/competition.vue
  10. BIN
      pages_mine/static/competition/bg.png
  11. +18
    -0
      store/store.js
  12. BIN
      未标题-1.psd

+ 18
- 0
common.scss View File

@ -18,4 +18,22 @@
display:-webkit-box; //作为弹性伸缩盒子模型显示
-webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列
-webkit-line-clamp:3; //显示的行
}
.auth-tag{
--color : red;
font-size: 20rpx !important;
padding: 2rpx 6rpx !important;
border-radius: 10rpx;
border: 1px solid var(--color);
color: var(--color);
width: fit-content;
font-weight: 500;
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
.auth-tag.q{
--color : #00f;
}

+ 23
- 18
components/content/contentControls.vue View File

@ -36,23 +36,22 @@
</view>
<!-- <confirmationPopup
<confirmationPopup
ref="confirmationPopup"
title="举报"
@confirm="bell"
@confirm="bell(item)"
confirmText="确认举报">
<view class="confirmationPopup">
<view class="list">
<view
v-for="(item, index) in ju">
{{ item.title }}
</view>
</view>
<input type="text"
placeholder="请输入举报原因"
v-model="text"
class="confirmationInput"/>
</view>
</confirmationPopup> -->
</confirmationPopup>
<uv-popup ref="confirmationPopup"
<!-- <uv-popup ref="confirmationPopup"
:round="30"
:customStyle="{height: '50vh'}">
<view class="confirmationPopup">
@ -62,13 +61,13 @@
@click="bell(item)"
v-for="(item, index) in ju">
{{ item.content }}
<!-- <view class="content">
<view class="content">
{{ item.content }}
</view> -->
</view>
</view>
</view>
</view>
</uv-popup>
</uv-popup> -->
</view>
</template>
@ -107,6 +106,7 @@
},
],
act : 0,
text : '',
};
},
created() {
@ -125,7 +125,7 @@
this.$api('infoReport', {
type : this.type,
id : this.detail.id,
content : item.content
content : this.text
}, res => {
this.$refs.confirmationPopup.close()
if(res.code == 200){
@ -150,10 +150,6 @@
})
}
})
},
//
share(){
},
//
thumbDown(){
@ -196,6 +192,15 @@
height: 100%;
padding: 20rpx;
padding-bottom: env(safe-area-inset-bottom);
display: flex;
justify-content: center;
align-items: center;
.confirmationInput{
width: 80%;
padding: 20rpx;
border-radius: 50rpx;
background-color: #f3f3f3;
}
.list{
padding-bottom: env(safe-area-inset-bottom);
&>view{


+ 6
- 1
components/post/actorList.vue View File

@ -12,9 +12,14 @@
<view class="t">
{{ item.name }}
</view>
<view class="auth"
<!-- <view class="auth"
v-if="item.isState == 'Y'">
已认证
</view> -->
<view
v-if="item.idCardOpen != 0"
:class="{'auth-tag' : true, q : item.idCardOpen == 2}">
已认证
</view>
</view>
<view class="info">


+ 2
- 3
pages/index/center.vue View File

@ -113,10 +113,9 @@
tabber,
},
computed: {
...mapState(['userInfo']),
...mapState(['userInfo', 'idCardOpenStatus']),
isNameValid() {
console.log(this.userInfo,"this.userInfo");
return !!this.userInfo.idCardOpen
return this.userInfo.idCardOpen != 0 && this.idCardOpenStatus
}
},
data() {


+ 19
- 5
pages/publish/actorDetail.vue View File

@ -16,8 +16,18 @@
<view class="box">
<view class="topInfo">
<view class="title">
{{ item.details.name }}
<view class="title"
style="display: flex;">
<view class=""
style="margin-right: 20rpx;">
{{ item.details.name }}
</view>
<view
v-if="item.details.idCardOpen != 0"
:class="{'auth-tag' : true, q : item.details.idCardOpen == 2}">
已认证
</view>
</view>
<view class="price">
{{ item.details.money }}/
@ -28,7 +38,7 @@
</view>
<view class="phone" v-if="isVedio">
<view class=""
v-if="item.details.phonePay != 'Y' || item.isPayPhone">
v-if="item.details.phonePay != 'Y' || item.isPayPhone == 1">
联系方式{{ item.details.phone }}
</view>
<view class=""
@ -40,6 +50,9 @@
</view>
<view class="createBy">
<view class="">
{{ item.details.isUser ? '本人发布' : '经纪人发布' }}
</view>
<view class="">
发布人{{ item.details.userId }}
</view>
@ -87,7 +100,7 @@
style="width: 150rpx;height: 150rpx;"
mode=""></image>
<view class="info">
请支付{{ item.details.price }}10小时内可查看任意联系方式
请支付{{ item.details.price }}{{ paySeeTime }}小时内可查看当前联系方式
</view>
</view>
</confirmationPopup>
@ -98,7 +111,7 @@
<script>
import contentControls from '@/components/content/contentControls.vue'
import confirmationPopup from '@/components/toast/confirmationPopup.vue'
import { mapGetters } from 'vuex'
import { mapGetters, mapState } from 'vuex'
export default {
components : {
contentControls,
@ -124,6 +137,7 @@
this.id = options.id
},
computed : {
...mapState(['paySeeTime']),
...mapGetters(['isVedio']),
vedioList(){
return this.isVedio ?


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

@ -7,9 +7,9 @@
title="演员集"/>
<view class="title">
<!-- <view class="title">
创作者
</view>
</view> -->
<view class="box">
<view class="search">


+ 1
- 0
pages_mine/mine/authPerson.vue View File

@ -119,6 +119,7 @@
res => {
if (res.code == 200) {
//
if(this.certifiedIndividual.state == 2){
return self.$refs.confirmationPopupUpload.open()
}


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

@ -23,7 +23,7 @@
<view class="label">推广作品名称</view>
<view class="value">{{item.name}}</view>
</view>
<view class="item">
<!-- <view class="item">
<view class="label">价格</view>
<view class="value">{{item.price }}</view>
</view>
@ -37,7 +37,7 @@
<uv-input v-model="item.phone" placeholder="请输入联系方式" border="bottom" type='number'
clearable></uv-input>
</view>
</view>
</view> -->
<view class="item">
<view class="label">剩余推广时长</view>
<view class="value">{{item.remainingPromotionTime}}</view>
@ -185,7 +185,7 @@
} else {
// 24
console.log(`${hours}小时`);
this.item.remainingPromotionTime = `${hours}小时`
this.item.remainingPromotionTime = `${hours < 0 ? 0 : hours}小时`
}
}
})


+ 18
- 4
pages_mine/publish/competition.vue View File

@ -2,11 +2,20 @@
<view class="competition">
<navbar
leftClick
bgColor="#cfd4ff"
bgColor="transparent"
@leftClick="$utils.navigateBack"
title="比赛评选"/>
<image :src="competitionBanner" mode="aspectFill"
style="position: absolute;z-index: -1;
width: 100%;
height: 560rpx;
top: 0;
"
></image>
<view class="top">
<view class="left">
<!-- <view class="left">
<view class="title">
比赛评选排行
</view>
@ -16,7 +25,7 @@
</view>
<view class="right">
<image src="../static/competition/1.png" mode=""></image>
</view>
</view> -->
</view>
<view class="box">
@ -99,6 +108,7 @@
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
@ -110,6 +120,9 @@
},
}
},
computed : {
...mapState(['competitionBanner']),
},
onLoad() {
// this.$route.query
},
@ -175,8 +188,9 @@
<style scoped lang="scss">
.competition{
position: relative;
// background: linear-gradient(#cfd4ff, #f7f7f7);
.top{
background: linear-gradient(#cfd4ff, #f7f7f7);
width: 100%;
height: 400rpx;
display: flex;


BIN
pages_mine/static/competition/bg.png View File

Before After
Width: 1890  |  Height: 1417  |  Size: 1.4 MiB

+ 18
- 0
store/store.js View File

@ -17,6 +17,9 @@ const store = new Vuex.Store({
card: '',
name: '',
},
competitionBanner : '',//比赛页面背景图片
idCardOpenStatus : false,//实名认证状态
paySeeTime : '',//付费查看联系方式,可查看的时间
},
getters: {
// 通过报错的方式阻止缓存,这里的报错千万不要修复
@ -31,8 +34,20 @@ const store = new Vuex.Store({
if(res.code == 200){
// state.configList = res.result
res.result.forEach(n => {
// 比赛页面背景图片
if(n.keyValue == 'banner'){
state.competitionBanner = n.content
}
// 付费查看联系方式,可查看的时间
if(n.keyValue == 'time'){
state.paySeeTime = n.content
}
state.configList[n.keyValue] = n
})
}
})
let config = ['getPrivacyPolicy', 'getUserAgreement', 'getPublishPostNotice']
@ -117,6 +132,9 @@ const store = new Vuex.Store({
res => {
if(res.code == 200){
state.certifiedIndividual = res.result || {}
// 实名认证审核状态
state.idCardOpenStatus = state.certifiedIndividual && state.certifiedIndividual.state == 1
}
})
},


BIN
未标题-1.psd View File


Loading…
Cancel
Save