Browse Source

上传代码

master
前端-胡立永 10 months ago
parent
commit
a192968a6f
12 changed files with 127 additions and 56 deletions
  1. +2
    -2
      api/api.js
  2. +1
    -1
      config.js
  3. +16
    -5
      pages/index/center.vue
  4. +19
    -2
      pages/index/index.vue
  5. +1
    -2
      pages/publish/actorDetail.vue
  6. +7
    -7
      pages/publish/actorRelease.vue
  7. +31
    -12
      pages_mine/mine/authFirm.vue
  8. +9
    -4
      pages_mine/mine/authPerson.vue
  9. +10
    -13
      pages_mine/mine/promotionRecord.vue
  10. +8
    -7
      pages_mine/mine/sonPage/release/releaseList.vue
  11. +5
    -1
      pages_mine/publish/competition.vue
  12. +18
    -0
      store/store.js

+ 2
- 2
api/api.js View File

@ -187,14 +187,14 @@ const config = {
// 个人认证提交
infoSubmitCertification: {
url: '/api/info/submitCertification',
method: 'GET',
method: 'POST',
auth: true,
showLoading : true,
},
// 企业认证提交
infoSubmitCompanyCertification: {
url: '/api/info/submitCompanyCertification',
method: 'GET',
method: 'POST',
auth: true,
showLoading : true,
},


+ 1
- 1
config.js View File

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


+ 16
- 5
pages/index/center.vue View File

@ -31,7 +31,7 @@
<view style="position: absolute;z-index:2;width:55%;height:20%;top: 65%;left: 7%;">
<view>
<span style="font-size: 35rpx;margin-right: 5rpx">{{ userInfo.nickName || '微信用户' }}</span>
<span style="font-size: 18rpx">{{ userInfo.phone||'暂无联系方式' }}</span>
<!-- <span style="font-size: 18rpx">{{ userInfo.phone||'暂无联系方式' }}</span> -->
</view>
</view>
<!-- 点赞量 -->
@ -116,7 +116,7 @@
...mapState(['userInfo']),
isNameValid() {
console.log(this.userInfo,"this.userInfo");
return this.userInfo.idCardOpen == 'Y'
return !!this.userInfo.idCardOpen
}
},
data() {
@ -152,7 +152,7 @@
name: 'realNameInfo',
imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/8bc56d2e-380a-4656-8a33-592d374d246a.svg',
title: '实名信息',
gotoPageUrl: '/mine/certifiedIndividual'
gotoPageUrl: '/mine/authOption'
},
{
name: 'helpFeedback',
@ -192,8 +192,19 @@
this.$refs.confirmationPopup.open()
return
}
if (item.name == 'realNameInfo') {
this.$refs.realNameInfoPopup.open()
//
if (item.name == 'realNameInfo'
&& this.userInfo.idCardOpen) {
// this.$refs.realNameInfoPopup.open()
// this.userInfo.idCardOpen 1 2
uni.navigateTo({
url: '/pages_mine/mine/certifiedIndividual?type=' +
['firm', 'person'][this.userInfo.idCardOpen - 1]
})
return
}
uni.navigateTo({


+ 19
- 2
pages/index/index.vue View File

@ -191,9 +191,26 @@
})
},
bannerClick(index){
if(this.banner[index].toUrl){
let item = this.banner[index]
if(item.toUrl){
return uni.navigateTo({
url: item.toUrl
})
}
if(item.type == 0){//
uni.navigateTo({
url: '/pages/publish/postDetail?id=' +
item.trendsId
})
}else if(item.type == 1){//
uni.navigateTo({
url: '/pages/publish/actorDetail?id=' +
item.collectionId
})
}else if(item.type == 2){//
uni.navigateTo({
url: this.banner[index].toUrl
url: '/pages_mine/publish/worksDetail?id=' +
item.masterpieceId
})
}
}


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

@ -9,8 +9,7 @@
indicator
height="420rpx"></uv-swiper> -->
<video :src="item.details.isImage &&
item.details.isImage.split(',')[0]"
<video :src="item.details.isImage[0]"
style="width: 750rpx;height: 420rpx;"
/>
</view>


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

@ -153,7 +153,7 @@
<view class="">
</view>
<uv-upload :fileList="fileList" :maxCount="1" multiple accept="video" width="150rpx" height="150rpx"
<uv-upload :fileList="fileList" :maxCount="4" multiple accept="video" width="150rpx" height="150rpx"
@delete="deleteImage" @afterRead="afterRead" :previewFullImage="true"></uv-upload>
@ -399,12 +399,12 @@
}
if(!this.$utils.verificationPhone(this.form.phone)){
return uni.showToast({
title: `请输入正确的手机号`,
icon : 'none'
})
}
// if(!this.$utils.verificationPhone(this.form.phone)){
// return uni.showToast({
// title: ``,
// icon : 'none'
// })
// }
if (this.$utils.verificationAll(this.form, {
name: '请输入演员名称',


+ 31
- 12
pages_mine/mine/authFirm.vue View File

@ -8,7 +8,7 @@
<view class="form-item">
<view class="label">法人真实姓名</view>
<view class="input">
<input type="text" v-model="form.name" />
<input type="text" v-model="certifiedIndividual.name" />
</view>
</view>
@ -17,7 +17,7 @@
<view class="form-item">
<view class="label">法人身份证号</view>
<view class="input">
<input type="text" v-model="form.card" />
<input type="text" v-model="certifiedIndividual.card" />
</view>
</view>
@ -26,7 +26,7 @@
<view class="form-item">
<view class="label">营业执照</view>
<view class="avatarFace" @click="uploadImage('tradeImage')">
<image v-if="form.tradeImage" :src="form.tradeImage" style="width: 100%;height: 100%"></image>
<image v-if="certifiedIndividual.tradeImage" :src="certifiedIndividual.tradeImage" style="width: 100%;height: 100%"></image>
<image v-else src="../static/auth/3.png" style="width: 50%;height: 50%"></image>
</view>
</view>
@ -63,7 +63,8 @@
<!--下一步按钮-->
<button @click="onNextClick" class="bottomBtn">
<button @click="onNextClick" class="bottomBtn"
v-if="certifiedIndividual.state != 1">
立即认证
</button>
@ -122,6 +123,19 @@
mounted() {
this.openConfigMenu("getPrivacyPolicy")
},
onShow() {
let self = this
console.log(this.certifiedIndividual);
this.certifiedIndividual.otherImage && this.certifiedIndividual.otherImage.split(',')
.forEach(url => {
self.fileList.push({
url
})
})
},
methods: {
//
openConfigMenu(key) {
@ -148,7 +162,7 @@
success: url => {
this.$nextTick(() => {
// this.form.tradeImage = url
this.$set(this.form, key, url);
this.$set(this.certifiedIndividual, key, url);
// this.$set(this.form, key, url);
})
}
@ -160,11 +174,11 @@
this.form.imageStraight = this.certifiedIndividual.imageStraight
this.form.imageReverseSide = this.certifiedIndividual.imageReverseSide
// this.form.tradeImage = this.certifiedIndividual.tradeImage
if (this.$utils.verificationAll(this.form, {
if (this.$utils.verificationAll(this.certifiedIndividual, {
imageReverseSide: '请上传身份证背面',
imageStraight: '请上传身份证正面',
card: '请输入身份证号',
name: '请输入姓名',
tradeImage: '请上传身份证正面',
})) {
return
}
@ -179,13 +193,18 @@
this.$refs.confirmationPopup.open()
}, 500)
} else {
this.form.image = this.fileList.map((item) => item.url).join(",")
this.form.imageStraight = this.certifiedIndividual.imageStraight
this.form.imageReverseSide = this.certifiedIndividual.imageReverseSide
this.form.tradeImage = this.certifiedIndividual.tradeImage
this.$api('infoSubmitCompanyCertification', this.form,
this.certifiedIndividual.otherImage = this.fileList.map((item) => item.url).join(",")
// this.form.imageStraight = this.certifiedIndividual.imageStraight
// this.form.imageReverseSide = this.certifiedIndividual.imageReverseSide
// this.form.tradeImage = this.certifiedIndividual.tradeImage
this.$api('infoSubmitCompanyCertification', this.certifiedIndividual,
res => {
if (res.code == 200) {
if(this.certifiedIndividual.state == 2){
return self.$refs.confirmationPopupUpload.open()
}
const self = this
uni.requestPayment({
provider: 'wxpay', //


+ 9
- 4
pages_mine/mine/authPerson.vue View File

@ -25,7 +25,8 @@
</view>
<!--下一步按钮-->
<button @click="onNextClick" class="bottomBtn">
<button @click="onNextClick" class="bottomBtn"
v-if="certifiedIndividual.state != 1">
立即认证
</button>
@ -79,8 +80,7 @@
}
},
computed: {
...mapState(['certifiedIndividual']),
...mapState(['configList'])
...mapState(['certifiedIndividual', 'configList']),
},
mounted() {
this.openConfigMenu("getPrivacyPolicy")
@ -114,9 +114,14 @@
this.$refs.confirmationPopup.open()
}, 500)
} else {
this.$api('infoSubmitCertification', this.certifiedIndividual,
this.$api('infoSubmitCertification',
this.certifiedIndividual,
res => {
if (res.code == 200) {
if(this.certifiedIndividual.state == 2){
return self.$refs.confirmationPopupUpload.open()
}
const self = this
uni.requestPayment({


+ 10
- 13
pages_mine/mine/promotionRecord.vue View File

@ -14,12 +14,15 @@
<view class="search">
<uv-search
bgColor="#fff"
@search="keyWordChange"
@custom="keyWordChange"
placeholder="请输入搜索关键字..."
v-model="queryParams.title"></uv-search>
<view class=""
style="width: 700rpx;">
<uv-search
bgColor="#fff"
@search="keyWordChange"
@custom="keyWordChange"
placeholder="请输入搜索关键字..."
v-model="queryParams.title"></uv-search>
</view>
<!--搜索框-->
<!-- <view style="width:30%;height:100%">
@ -100,13 +103,7 @@
methods: {
getData() {
this.$api('infoGetPromotionPage', {
pageNo: this.queryParams.pageNo,
pageSize: this.queryParams.pageSize,
startDate: this.queryParams.startDate,
endDate: this.queryParams.endDate,
keyWord: this.queryParams.keyWord
}, res => {
this.$api('infoGetPromotionPage', this.queryParams, res => {
if (res.code == 200) {
this.promotionRecordList = res.result.records
this.total = res.result.total


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

@ -7,18 +7,17 @@
{{ item.title || item.name }}
</view>
<view class="createBy">
<view class="">
是否置顶{{ item.isTop=='Y'?"是":"否" }}
<view class=""
:style="{color: colors[item.state]}">
状态{{ state[item.state] }}
</view>
</view>
<view class="isPay">
<view class="">
是否付费{{ item.isPay=='Y'?"是":"否" }}
</view>
</view>
<view class="isPay">
<view class="">
状态{{ state[item.state] }}
是否置顶{{ item.isTop=='Y'?"是":"否" }}
</view>
</view>
<view class="createTime">
@ -41,7 +40,8 @@
pageSize: 5,
},
checkedIndex: 0,
state : ['待审核', '审核通过', '审核不通过,请编辑后重新提交'],
colors : ['#000', '#05b905', '#f00'],
state : ['审核中', '审核通过', '审核不通过,请编辑后重新提交'],
};
},
onShow() {
@ -75,7 +75,7 @@
//
if(item.state == 0){
return uni.showToast({
title: '审核中',
title: '审核中,请耐心等待',
icon:'none'
})
}
@ -176,6 +176,7 @@
display: flex;
align-items: center;
justify-content: center;
margin-right: 20rpx;
}
}
}


+ 5
- 1
pages_mine/publish/competition.vue View File

@ -143,10 +143,14 @@
id : item.id,
}, res => {
if(res.code == 200){
this.queryParams.pageNo = 1
this.getList(res => {
this.list = res.result.records
})
uni.showToast({
title: res.message
})
item.thumbsUp = !item.thumbsUp
}
})
},


+ 18
- 0
store/store.js View File

@ -17,6 +17,7 @@ const store = new Vuex.Store({
card: '',
name: '',
},
// cartInfo : {},
},
getters: {},
mutations: {
@ -73,7 +74,24 @@ const store = new Vuex.Store({
getUserInfo(state){
api('infoGetInfo', res => {
if(res.code == 200){
res.result.idCardOpen = parseInt(res.result.idCardOpen)
state.userInfo = res.result
if(res.result.idCardOpen){
this.commit('getCartInfo')
}
}
})
},
getCartInfo(state){
// this.userInfo.idCardOpen 1企业认证 2个人认证
api(['infoGetCompanyCertification',
'infoGetCertification'][state.userInfo.idCardOpen - 1],
res => {
if(res.code == 200){
state.certifiedIndividual = res.result || {}
}
})
},


Loading…
Cancel
Save