This commit is contained in:
周源 2022-05-05 17:14:29 +08:00
parent 536c2774b4
commit f0f95e9752
4 changed files with 211 additions and 186 deletions

View File

@ -113,7 +113,7 @@
<!-- 积分明细区 -->
<view class="pointBox">
<view class="pointBox" @click="goPointDetail">
<view class="P_title">
<text class="L_title">积分明细</text>
@ -143,7 +143,12 @@
methods:{
back(){
uni.navigateBack()
}
},
goPointDetail(){
uni.navigateTo({
url:'/pages/MyPoints/pointDetail'
})
}
},
onReady() {
const systemMsg = uni.getSystemInfoSync();

View File

@ -1,97 +1,99 @@
<template>
<view>
<view class="person_itm">
<view class="person_itm_sign" @click="goChangeInfo('姓名',userInfoObj.userName)">
<text class="person_itm_sign_tit">姓名</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.userName}}</text>
<u-icon name="arrow-right"></u-icon>
<view class="wanShan" v-if="userInfoObj.userType!=='fws'">
<view class="person_itm">
<view class="person_itm_sign" @click="goChangeInfo('姓名',userInfoObj.userName)">
<text class="person_itm_sign_tit">姓名</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.userName}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('性别',userInfoObj.sex)">
<text class="person_itm_sign_tit">性别 </text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.sex}}</text>
<u-icon name="arrow-right"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('性别',userInfoObj.sex)">
<text class="person_itm_sign_tit">性别 </text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.sex}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('出生日期',userInfoObj.birthDay )">
<text class="person_itm_sign_tit">出生日期</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.birthDay}}</text>
<u-icon name="calendar"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('出生日期',userInfoObj.birthDay )">
<text class="person_itm_sign_tit">出生日期</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.birthDay}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('身份证号码',JSON.parse(userInfoObj.idCard))">
<text class="person_itm_sign_tit">身份证号码</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.idCard}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm">
<view class="person_itm_sign" @click="goChangeInfo('民族',userInfoObj.nation)">
<text class="person_itm_sign_tit">民族</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.nation}}</text>
<u-icon name="arrow-right"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('身份证号码',JSON.parse(userInfoObj.idCard))">
<text class="person_itm_sign_tit">身份证号码</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.idCard}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm">
<view class="person_itm_sign" @click="goChangeInfo('民族',userInfoObj.nation)">
<text class="person_itm_sign_tit">民族</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.nation}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('籍贯',userInfoObj.base)">
<text class="person_itm_sign_tit">籍贯</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.base}}</text>
<u-icon name="arrow-right"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('籍贯',userInfoObj.base)">
<text class="person_itm_sign_tit">籍贯</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.base}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('政治面貌',userInfoObj.politics)">
<text class="person_itm_sign_tit">政治面貌</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.politics}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('政治面貌',userInfoObj.politics)">
<text class="person_itm_sign_tit">政治面貌</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.politics}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm">
<!-- <view class="person_itm_sign" @click="goChangeInfo('联系电话','13888888888')">
<view class="person_itm">
<!-- <view class="person_itm_sign" @click="goChangeInfo('联系电话','13888888888')">
<text class="person_itm_sign_tit">联系电话</text>
<view class="person_itm_sign_right">
<text>13888888888</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view> -->
<view class="person_itm_sign" @click="goChangeInfo('密码','')">
<text class="person_itm_sign_tit">密码</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.pasw}}</text>
<u-icon name="arrow-right"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('密码','')">
<text class="person_itm_sign_tit">密码</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.pasw}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('头像',userInfoObj.images)">
<text class="person_itm_sign_tit">头像</text>
<view class="person_itm_sign_right">
<image class="avator" style="" :src=" baseurl+JSON.parse(userInfoObj.images)[0] ">
</image>
<view class="person_itm_sign" @click="goChangeInfo('头像',userInfoObj.images)">
<text class="person_itm_sign_tit">头像</text>
<view class="person_itm_sign_right">
<image class="avator" style="" :src=" baseurl+JSON.parse(userInfoObj.images)[0] ">
</image>
<u-icon name="arrow-right"></u-icon>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
</view>
<view class="person_itm">
<!-- 协会会员个人中心 -->
<view class="person_itm" v-if="userInfoObj.userType=='xhhy'">
<view class="person_itm_sign" @click="goChangeInfo('所属协会',userInfoObj.association.name )">
<text class="person_itm_sign_tit">所属协会</text>
<view class="person_itm_sign_right">
@ -111,7 +113,7 @@
</view>
</view>
<!-- 文艺人才-个人中心 -->
<view class="person_itm">
<view class="person_itm" v-if="userInfoObj.userType=='wyrc'">
<view class="person_itm_sign" @click="goChangeInfo('人才类型',userInfoObj.rcType)">
<text class="person_itm_sign_tit">人才类型</text>
<view class="person_itm_sign_right">
@ -160,97 +162,100 @@
</view>
</view>
<!-- 服务商个人中心 -->
<view class="person_itm">
<view class="person_itm_sign" @click="goChangeInfo('服务名称',userInfoObj.serviceName)">
<text class="person_itm_sign_tit">服务名称</text>
<view class="person_itm_sign_right">
<text>{{userInfoObj.serviceName}}</text>
<u-icon name="arrow-right"></u-icon>
<view class="fwsBox" v-if="userInfoObj.userType=='fws'">
<view class="person_itm">
<view class="person_itm_sign" @click="goChangeInfo('服务名称',userInfoObj.serviceName)">
<text class="person_itm_sign_tit">服务名称</text>
<view class="person_itm_sign_right">
<text>{{userInfoObj.serviceName}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('地址',userInfoObj.serviceAddress)">
<text class="person_itm_sign_tit">地址</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.serviceAddress}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('实景照',userInfoObj.photo)">
<text class="person_itm_sign_tit">实景照</text>
<view class="person_itm_sign_right">
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('资质证',userInfoObj.cfPhoto)">
<text class="person_itm_sign_tit">资质证</text>
<view class="person_itm_sign_right">
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('地址',userInfoObj.serviceAddress)">
<text class="person_itm_sign_tit">地址</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.serviceAddress}}</text>
<u-icon name="arrow-right"></u-icon>
<view class="person_itm">
<view @click="goChangeInfo('服务内容介绍',userInfoObj.info)">
<view class="textAreaCss">
<text>服务内容介绍</text>
<u-icon name="arrow-right"></u-icon>
</view>
<u--textarea v-model="userInfoObj.info" placeholder="请输入介绍" style="background-color: #F8F8F8;">
</u--textarea>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('实景照',userInfoObj.photo)">
<text class="person_itm_sign_tit">实景照</text>
<view class="person_itm_sign_right">
<u-icon name="arrow-right"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('负责人姓名',userInfoObj.fzr)">
<text class="person_itm_sign_tit">负责人姓名</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.fzr}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('资质证',userInfoObj.cfPhoto)">
<text class="person_itm_sign_tit">资质证</text>
<view class="person_itm_sign_right">
<u-icon name="arrow-right"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('服务开始时间',userInfoObj.timeStart)">
<text class="person_itm_sign_tit">服务开始时间</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.timeStart}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
</view>
</view>
<view class="person_itm">
<view @click="goChangeInfo('服务内容介绍',userInfoObj.info)">
<view class="textAreaCss">
<text>服务内容介绍</text>
<u-icon name="arrow-right"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('服务结束时间',userInfoObj.timeEnd)">
<text class="person_itm_sign_tit">服务结束时间</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.timeEnd}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
<u--textarea v-model="userInfoObj.info" placeholder="请输入介绍" style="background-color: #F8F8F8;">
</u--textarea>
</view>
<view class="person_itm_sign" @click="goChangeInfo('负责人姓名',userInfoObj.fzr)">
<text class="person_itm_sign_tit">负责人姓名</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.fzr}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<!-- <view class="person_itm_sign" @click="goChangeInfo('电话','13888888888')">
<text class="person_itm_sign_tit">电话</text>
<view class="person_itm_sign_right">
<text>13888888888</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view> -->
<view class="person_itm_sign" @click="goChangeInfo('服务开始时间',userInfoObj.timeStart)">
<text class="person_itm_sign_tit">服务开始时间</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.timeStart}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
<view class="person_itm_sign" @click="goChangeInfo('服务结束时间',userInfoObj.timeEnd)">
<text class="person_itm_sign_tit">服务结束时间</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.timeEnd}}</text>
<u-icon name="calendar"></u-icon>
</view>
</view>
<!-- <view class="person_itm_sign" @click="goChangeInfo('电话','13888888888')">
<text class="person_itm_sign_tit">电话</text>
<view class="person_itm_sign_right">
<text>13888888888</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view> -->
<view class="person_itm_sign" @click="goChangeInfo('密码',userInfoObj.pasw)">
<text class="person_itm_sign_tit">密码</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.pasw}}</text>
<u-icon name="arrow-right"></u-icon>
<view class="person_itm_sign" @click="goChangeInfo('密码',userInfoObj.pasw)">
<text class="person_itm_sign_tit">密码</text>
<view class="person_itm_sign_right">
<text> {{userInfoObj.pasw}}</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
</view>
</view>
<!-- 服务商个人中心 ed-->
</view>
</template>
<script>
import http from '../../request/interface.js'
import http from '../../request/interface.js'
export default {
data() {
return {
@ -260,8 +265,9 @@
stanWorkList: ['蒙娜丽莎', '高月'],
userInfoObj: {},
baseurl: http.config.baseUrl.replace('/h5/api', ''), //'http://192.168.0.9:8080'
xieName: ''
xieName: '',
userType: ''
};
},
methods: {
@ -272,24 +278,24 @@
})
},
requestUserinfo(){
requestUserinfo() {
this.http.request('/user/userInfo', {}, "GET").then((res) => {
console.log("res", res.data);
this.userInfoObj = res.data
}).catch((error) => {
uni.showToast({
title: error
})
})
}
},
onReady() {
this.requestUserinfo()
this.requestUserinfo()
},
onShow() {
this.requestUserinfo()
this.requestUserinfo()
}
}
</script>

View File

@ -38,13 +38,13 @@
<!-- 政治面貌 民族 籍贯 选择 input ed-->
<!-- 身份证号码 -->
<view class=" m16" v-if="Edkey=='身份证号码'">
<u--input class="p32 gray" placeholder="请填写" clearable v-model="Edvalue" border="none" @blur="CheckId">
<u--input class="p32 gray" placeholder="请填写" clearable v-model="Edvalue" border="none" @input="CheckId">
</u--input>
</view>
<!-- 身份证号码 ed -->
<!--phone number -->
<view class="phoneNumber" v-if="Edkey=='联系电话'||Edkey=='电话'">
<u--input class="p32" placeholder="请填写" clearable v-model="Edvalue" border="none" @blur="CheckNumber">
<u--input class="p32" placeholder="请填写" clearable v-model="Edvalue" border="none" @input="CheckNumber">
</u--input>
</view>
<!--phone number ed-->
@ -78,7 +78,7 @@
<view class="opus_inputBox">
<input type="text" v-model="StandradList[index]" placeholder="请输入作品名称" class="opus_inputBox_inpt" />
<view class="opus_inputBox_img">
<view style="width: 80rpx; height: 80rpx;" class="addImg" @click="AddItem(2)"
<view style="width: 80rpx; height: 80rpx;" class="addImg" @click="AddItem"
v-if="StandradList.length==index+1">
<image style="width: 80rpx; height: 80rpx;" src="../../static/improveData/redAdd.png"
mode=""></image>
@ -131,9 +131,10 @@
:columns="Edkey=='政治面貌'? Zhengcolumns : Edkey =='民族' ? Zucolumns : Edkey=='籍贯' ? Jicolumns : Edkey=='人才类型'? peopleSkillColums:Edkey=='所属协会'? xiecolumns:[]">
</u-picker>
<u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :maxDate="1786778555000" :show="showBirthday"
v-if="Edkey=='出生日期'||Edkey=='入会时间'||Edkey=='服务开始时间'||Edkey=='服务结束时间'" :value="Edvalue" :mode="timeMode"
closeOnClickOverlay @confirm="birthdayConfirm" @cancel="birthdayClose" @close="birthdayClose">
<u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :maxDate="1786778555000"
:show="showBirthday" v-if="Edkey=='出生日期'||Edkey=='入会时间'||Edkey=='服务开始时间'||Edkey=='服务结束时间'" :value="Edvalue"
:mode="timeMode" closeOnClickOverlay @confirm="birthdayConfirm" @cancel="birthdayClose"
@close="birthdayClose">
</u-datetime-picker>
@ -222,6 +223,7 @@
peopleSkillColums: [
["书法家", "画家", "雕塑家"]
],
xiehuiObj: {}//name id key value
};
},
onLoad(opt) {
@ -242,6 +244,11 @@
//
if (this.Edkey == '所属协会') {
this.http.request('/association/list', {}, "GET").then((res) => {
res.data.records.map((v, i) => {
return this.xiehuiObj[v.name] = v.id
})
let xieList = res.data.records.map((v, i) => {
return v.name
})
@ -337,7 +344,7 @@
//
this.StandradList.splice(num, 1)
//
this.fileList2.splice(num, 1, [''])
this.fileList2.splice(num, 1 )
//
this.postFileList2.splice(num, 1)
} else {
@ -414,7 +421,7 @@
var str = JSON.stringify(this.fileList4.map((v, i) => {
return v.url.replace(baseStr, '')
}))
console.log('str===', str);
// console.log('str===', str);
this.PostChangerRequest({
'images': str
})
@ -430,6 +437,12 @@
this.PostChangerRequest({
'isAssociation': str
})
} else if (this.Edkey == '所属协会') {
var xiehuiId = this.xiehuiObj[this.Edvalue]
// console.log('xiehuiId',xiehuiId);
this.PostChangerRequest({
'associationId': xiehuiId
})
} else if (this.Edkey == '资质证' || this.Edkey == '实景照') {
if (this.fileList1[0]) {
@ -520,7 +533,7 @@
if (!this.Edvalue) {
uni.showToast({
title: "值不能为空或者空格",
icon:'error'
icon: 'error'
})
this.isSubmit = false
} else if (event) {
@ -625,17 +638,16 @@
},
watch: {
'Edvalue': function(n, o) {
console.log("n", n);
// console.log("n", n);
// console.log("event.target.value", event.target.value);
if (this.Edkey == '是否已入协会') {
this.isSubmit = true
} else {
if (!n && n == "") {
uni.$u.toast('值不能为空')
this.isSubmit = false
}
}
}

View File

@ -371,9 +371,9 @@
isJioned: false,
renCaiShow: false,
zhengzhiShow: false,
zhengzhiValue: '',
renCaiValue: '',
zuValue: "",
zhengzhiValue: '群众',
renCaiValue: '天才',
zuValue: "汉族",
xieValue: '',
zuShow: false,
xieShow: false,
@ -401,7 +401,7 @@
[]
], //
fileList3: [], //
jiguan: '',
jiguan: '浙江',
jigaunShow: false,
showBirthday: false,
showServeTime: false,
@ -418,7 +418,7 @@
userInfo: {
name: '',
sex: '',
birthday: "1998-02-03",
birthday: "2000-01-01",
idCOde: '',
phoneNum: '',
@ -429,7 +429,7 @@
serverInstrutor: '', //
serveTime: '09:00',
serveTimeend: '17:00',
jionTime: '1998-02-03',
jionTime: '2000-01-01',
DutyPeopleName: '', //
// ServephoneNum: '', //
pasw: ''
@ -440,7 +440,7 @@
type: 'string',
required: true,
message: '密码不能为空',
trigger: ['blur']
trigger: ['blur','change']
}],
'userInfo.serverInstrutor': [{
type: 'string',
@ -731,12 +731,7 @@
})
},
submit() {
this.$refs.form1.validate().then(res => {
uni.$u.toast('Thanks your helping')
}).catch(errors => {
uni.$u.toast('您的资料还未补充完整')
return
})
if (this.fileList3) {
var fl3 = JSON.stringify(this.fileList3.map((v, i) => {
return v.url
@ -813,22 +808,29 @@
"fzr":that.DutyPeopleName
}
console.log("dataddddddddd", data);
this.http.request('/auth/init', data, "POST").then(res => {
if (res.code == 200) {
uni.navigateTo({
url: '/pages/pageHome/pageHome'
})
this.$refs.form1.validate().then(res => {
uni.$u.toast('Thanks your helping')
this.http.request('/auth/init', data, "POST").then(res => {
if (res.code == 200) {
uni.navigateTo({
url: '/pages/pageHome/pageHome'
})
uni.showToast({
title: "成功了",
icon: "none",
});
}
}).catch(e => {
uni.showToast({
title: "成功了",
title: e.data.message,
icon: "none",
});
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}).catch(errors => {
uni.$u.toast('您的资料还未补充完整')
return
})
}
}