我的页面+公司认证40%

main
lijingyu007 6 months ago
parent 51785b6761
commit 9fe99b581e
  1. 21
      pages.json
  2. 474
      pages/personal/personal - 副本.vue
  3. 587
      pages/personal/personal.vue
  4. 89
      pages/personal/setup/applyType.vue
  5. 65
      pages/personal/setup/companyApply.vue
  6. 77
      pages/personal/setup/companyMsg.vue
  7. 4
      pages/personal/setup/index.vue

@ -348,6 +348,27 @@
"navigationBarTitleText": "PC端使用指南",
"navigationBarBackgroundColor": "#284CD1"
}
},
{
"path": "pages/personal/setup/companyApply",
"style": {
"navigationBarTitleText": "企业认证",
"navigationBarBackgroundColor": "#284CD1"
}
},
{
"path": "pages/personal/setup/applyType",
"style": {
"navigationBarTitleText": "实名认证",
"navigationBarBackgroundColor": "#284CD1"
}
},
{
"path": "pages/personal/setup/companyMsg",
"style": {
"navigationBarTitleText": "公司简介",
"navigationBarBackgroundColor": "#284CD1"
}
}

@ -1,474 +0,0 @@
<template>
<view>
<view class="topbg">
<view style="display: flex;justify-content: space-between;">
<view v-if='phoneuserinfo' style="display: flex;align-items: center;">
<div>
<img style='width:55px;height:55px;border-radius: 50%' v-if='avatar' :src="avatar.indexOf('http')==0?avatar:'https://keyitest.cn'+avatar" alt="">
<img v-else style='width:55px;height:55px;border-radius: 50%' src="https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132" alt="">
</div>
<view style='margin-left:10px;'>
<p v-if='phoneuserinfo.companyName' style='margin-bottom:3px;font-size:17px;font-weight:600;'>{{phoneuserinfo.companyName}}</p>
<p v-else style='margin-bottom:3px;font-size:17px;font-weight:600;'>{{nickName}}</p>
<div style="display: flex;align-items: center;">
<p v-if='phoneuserinfo.userName' style='color:rgb(0 0 0/0.7);margin-right:10px;font-size:15px;'>UID: {{phoneuserinfo.userName}}</p>
<u-tag :text="testerStatustext" plan type="info" shape='circle' color='#36322C' bg-color='#FCF3E2' style="border-color: transparent!important"/>
</div>
</view>
</view>
<view v-else style="display: flex;">
<img style='width:55px;height:55px;' src="http://image.keyitest.cn/static/my/1.png" alt="">
<view style='margin-left:10px;'>
<p style='margin-bottom:10px;font-size:16px;margin-top: 15px;font-weight: 700;' @click="logingj">点击登录</p>
<!-- <u-tag text="已认证" plan shape='circle' color='#2856E7' bg-color='#FFFFFF' /> -->
</view>
</view>
<!-- <div style="display: flex;flex-direction: column;">
<div class='peoinfo' >
<p style="margin-right:5px">服务团队</p>
<img style='width:14px;height:14px;' src="http://image.keyitest.cn/static/my/2.png" alt="">
</div>
<view class='personinfo' >
<p style="margin-right:10px">个人主页</p>
<u-icon name="arrow-right" color="#FFFFFF"></u-icon>
</view>
</div> -->
</view>
<!-- <view class="memeber">
<img style="width: 16px;height:12px;margin-left: 5px;" src="http://image.keyitest.cn/static/my/5.png" alt="">
<p>用户开通企业会员享受全部权益</p>
<img style="width:82px;height:27px;" src="http://image.keyitest.cn/static/my/4.png" alt="">
</view> -->
</view>
<view style='width:94vw;margin:0px 3vw;'>
<view class="handle" >
<view style="display: flex;justify-content: space-between;align-items: center;margin:0px 0px 0 20px">
<p style='font-weight:bold;font-size: 16px;'>我的订单</p>
<view class='personinfo' style="margin-top:0px;" @click="orders()">
<p style="margin-right:5px;color: #808080;">全部订单</p>
<u-icon name="arrow-right" color="#666666" style='margin-top: 2px;'></u-icon>
</view>
</view>
<view style="display: flex;justify-content: space-between;padding:10px;">
<view class="associationddd" @click="changeOrderUrl('./ordernumber/ordernumber?current=1')">
<img src="http://image.keyitest.cn/static/my/6.png" alt="">
<p>待支付</p>
</view>
<view class="associationddd" @click="changeOrderUrl('./ordernumber/ordernumber?current=2')">
<img src="http://image.keyitest.cn/static/my/7.png" alt="">
<p>已完成</p>
</view>
<view class="associationddd" @click="changeOrderUrl('./ordernumber/ordernumber?current=3')">
<img src="http://image.keyitest.cn/static/my/8.png" alt="">
<p>已取消</p>
</view>
<view class="associationddd" @click="changeOrderUrl('./ordernumber/ordernumber?current=4')">
<img src="http://image.keyitest.cn/static/my/9.png" alt="">
<p>待评价</p>
</view>
</view>
</view>
<view class="handle" style='margin:10px 0;padding:15px 0px 5px 0px; '>
<text style='font-weight:bold;font-size: 16px;margin-left:20px'>我的服务</text>
<view style="display: flex;justify-content: space-between;padding:15px 5px 5px 15px;">
<view class="associationddd" @click="servier('mysignup/notice')">
<img src="/static/index/mysignup.png" alt="">
<p>我的报名</p>
</view>
<!-- <view class="associationddd" @click="servier('leavemessage/index')">
<img src="http://image.keyitest.cn/static/my/11.png" alt="">
<p>我的留言</p>
</view> -->
<view class="associationddd" style="width: 75px;" @click="servier('mytestkit/mytestkit')">
<img src="/static/index/testkit.png" alt="">
<p>我的测试宝</p>
</view>
<view class="associationddd" style="width:72px;" @click="servier('mycrowdtest/mycrowdtest')">
<img src="/static/index/zc.png" alt="">
<p>我的众包</p>
</view>
<view class="associationddd" @click="servier('setup/index')">
<img src="http://image.keyitest.cn/static/my/13.png" alt="">
<p>设置</p>
</view>
</view>
</view>
<img class="recomimg" src="http://image.keyitest.cn/static/my/15.png" alt="" />
<view class="recommend" >
<view class="currekei" v-for="(item,key) of toollist" :key="key">
<view class="imgone" @click="details('tool',item.toolId)">
<img v-if="item.name=='代码静态分析工具'" :src="item.imgs" alt="">
<img v-if="item.name=='源代码安全检测工具'" :src="item.imgs" style="width:158rpx" alt="">
<img v-if="item.name=='C/C++单元测试工具'" :src="item.imgs" style="width:150rpx" alt="">
<img v-if="item.name=='接口测试工具'" :src="item.imgs" style="width:140rpx" alt="">
<img v-if="item.name=='JAVA单元测试工具'" :src="item.imgs" style="width:152rpx" alt="">
<img v-if="item.name=='功能测试工具AutoFun'" :src="item.imgs" style="width:145rpx" alt="">
<img v-if="item.name=='代码组成分析平台'" :src="item.imgs" style="width:145rpx" alt="">
<img v-if="item.name=='性能测试工具'" :src="item.imgs" alt="">
<img v-if="item.name=='自鉴-交互式应用安全测试系统IAST'" :src="item.imgs" style="width:145rpx" alt="">
<img v-if="item.name=='Web应用安全测试工具'" :src="item.imgs" style="width:155rpx" alt="">
<img v-if="item.name=='资产识别及漏洞管理工具'" :src="item.imgs" style="width:200rpx" alt="">
<img v-if="item.name=='性能测试工具AutoLoad'" :src="item.imgs" alt="">
</view>
<!-- item.toolTypeName.indexOf('单元')>-1 -->
<p class="leop">{{item.name | tiilnamechange}}</p>
<view style='display:flex;margin:30rpx 0'>
<view v-if='item.toolTypeName' class="tabone">{{item.typel}}测试</view>
<view class="tabone" style="color: #FF8A00;border: 1px solid #FF8A00;margin-left: 10px;">{{item.deliverType}}</view>
</view>
<view style='display:flex;justify-content:space-between;margin:15rpx 0;width:100%'>
<p>¥ {{item.price}}</p>
<img class="imgtwo" src="http://image.keyitest.cn/static/index/add.png" alt="" @click="addcart(item.toolId)">
</view>
</view>
</view>
</view>
<u-toast ref="uToast" />
<u-modal title='温馨提示' v-model="tokenshow" content="您还没有登录" confirm-text='现在就去' cancel-text='稍等一下' show-cancel-button='true'
cancel-color='#1578ED' confirm-color='#1578ED' @confirm="lkconfirm" @cancel='tokenshow=false'></u-modal>
</view>
</template>
<script>
import comstemutil from '../../utils/comstemutil'
export default {
data() {
return {
wxUserInfo:null,
grantType:'phone',
canIUseGetUserProfile: false,
toollist:[],
phoneuserinfo:null,
tokenshow:false,
testerStatustext:'',
avatar:'',
nickName:'',
}
},
onShow() {
let Token = uni.getStorageSync('accessToken');
// console.log('wxUserInfo',uni.getStorageSync('wxUserInfo'))
if(Token){
this.phoneuserinfo=uni.getStorageSync('wxUserInfo');
this.avatar=uni.getStorageSync('avatar');
this.nickName=uni.getStorageSync('nickName');
this.http.quickGet(`/tester/cert/apply/${this.phoneuserinfo.userId}`,true).then(res=>{
console.log('实名认证信息---',res)
if(res.data.code==200){
let testerdata=res.data.data;
if(testerdata){
if(testerdata.status==1){
this.testerStatustext='已认证'
}else{
this.testerStatustext='未认证'
}
}else{
this.testerStatustext='未认证'
}
}else{
this.phoneuserinfo=null
}
})
}else{
this.phoneuserinfo=null
}
},
onLoad() {
let accessToken = uni.getStorageSync('accessToken');
if(accessToken){
this.phoneuserinfo=uni.getStorageSync('wxUserInfo');
// let testerStatus=this.phoneuserinfo.testerStatus
this.http.quickGet(`/tester/cert/apply/${this.phoneuserinfo.userId}`,true).then(res=>{
// console.log('---',res)
if(res.data.code==200){
let testerdata=res.data.data;
if(testerdata){
if(testerdata.status==1){
this.testerStatustext='已认证'
}else{
this.testerStatustext='未认证'
}
}else{
this.testerStatustext='未认证'
}
}else{
this.phoneuserinfo=null
}
})
}
this.http.quickGet('/business/tool/listAnon?status=1').then(res=>{
// console.log('---',res.data.rows)
let tooldata=res.data.rows;
tooldata.forEach(item=>{
if(item.name=='代码静态分析工具'){
item.imgs='http://image.keyitest.cn/static/index/11.png'
}else if(item.name=='源代码安全检测工具'){
item.imgs='http://image.keyitest.cn/static/index/5.png'
}else if(item.name=='C/C++单元测试工具'){
item.imgs='http://image.keyitest.cn/static/index/2.png'
}else if(item.name=='接口测试工具'){
item.imgs='http://image.keyitest.cn/static/index/12.png'
}else if(item.name=='JAVA单元测试工具'){
item.imgs='http://image.keyitest.cn/static/index/tool/1.png'
}else if(item.name=='功能测试工具AutoFun'){
item.imgs='http://image.keyitest.cn/static/index/3.png'
}else if(item.name=='代码组成分析平台'){
item.imgs='http://image.keyitest.cn/static/index/tool/4.png'
}else if(item.name=='性能测试工具'){
item.imgs='http://image.keyitest.cn/static/index/6.png'
}else if(item.name=='自鉴-交互式应用安全测试系统IAST'){
item.imgs='http://image.keyitest.cn/static/index/tool/3.png'
}else if(item.name=='Web应用安全测试工具'){
item.imgs='http://image.keyitest.cn/static/index/tool/2.png'
}else if(item.name=='资产识别及漏洞管理工具'){
item.imgs='http://image.keyitest.cn/static/index/zc.png'
}else if(item.name=='性能测试工具AutoLoad'){
item.imgs='http://image.keyitest.cn/static/index/xn.png'
}
item.typel=item.toolTypeName.slice(0,2)
})
this.toollist=res.data.rows.splice(0,6)
// console.log('---',this.toollist)
})
},
filters:{
tiilnamechange(value){
if (!value) return ''
if(value.length>9){
return value.slice(0, 7) + '...'
}
return value
}
},
methods: {
lkconfirm(){
uni.navigateTo({
url: '/pages/personal/login'
})
},
logingj(){
uni.navigateTo({
url:'/pages/personal/login'
})
},
details(type,id){
// console.log('id---',id)
if(type=='tool'){
uni.navigateTo({
url: `../index/tooldetails?id=${id}`
})
}else{
uni.navigateTo({
url: './crowdsourcingdetails'
})
}
},
//
addcart(id){
let accessToken = uni.getStorageSync('accessToken');
if(!accessToken){
this.tokenshow=true
}else{
//
this.http.quickGet(`/my/addShoppingCart/${id}/1`,true).then(response => {
// console.log('response',response)
if(response.data.code==200){
console.log('111')
this.$refs.uToast.show({
title: '添加购物车成功',
type: 'success',
duration: 1000,
isTab:true,
url:'/pages/shoppingtrolley/shoppingtrolley'
})
}
})
}
},
orders(){
let accessToken = uni.getStorageSync('accessToken');
if(!accessToken){
this.tokenshow=true
}else{
uni.navigateTo({
url:'./ordernumber/ordernumber?current=0'
})
}
},
changeOrderUrl(url){
let accessToken = uni.getStorageSync('accessToken');
if(!accessToken){
this.tokenshow=true
}else{
uni.navigateTo({
url:url
})
}
},
//
servier(url){
if(this.phoneuserinfo){
uni.navigateTo({
url:url
})
}else{
this.tokenshow=true
}
}
}
}
</script>
<style>
.topbg{
width:100vw;
height:45vw;
background-size:100% 45vw;
background-image:url('http://image.keyitest.cn/banner-4.png');
background-repeat:no-repeat;
padding:30px 0vw 20px 5vw;
}
.peoinfo{
height:38px;
width:110px;
line-height: 38px;
background: rgba(255, 241, 228, 0.25);
border-radius: 30px 0px 0px 30px;
font-size: 16px;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.personinfo{
height: 38px;
width: 110px;
line-height: 38px;
font-size: 15px;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
margin-top:10px;
}
.memeber{
width:90vw;
height:16vw;
margin-top: 20px;
background-size:100% 16vw;
background-image:url('http://image.keyitest.cn/member.png');
background-repeat:no-repeat;
display: flex;
align-items: center;
justify-content:space-around;
color: #FEDD92;
}
.handle{
margin-top:-70px;
background: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 29px 0px rgba(187, 86, 25, 0.17);
border-radius: 14px;
padding:5px 0 0 0;
}
.handle img{
width: 20px;
height: 20px;
}
.associationddd{
width:65px;
text-align:center;
margin:5px 0;
}
.recomimg{
width: 50vw;
height:4vw;
display: flex;
margin: 20px auto;
}
.recommend{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.currekei{
width:48%;
/* height: 360rpx; */
background: #FFFFFF;
border-radius: 10px;
padding:10px;
margin-bottom:20rpx
}
.leop{
font-size:30rpx;
/* height:40px ; */
font-weight: bold;
color: #1A1A1A;
/* margin: 13rpx 0; */
display: flex;
align-items: center;
justify-content: center;
}
.tabone{
/* width: 98rpx; */
/* height: 33rpx; */
border: 1px solid #2B80FC;
border-radius: 4rpx;
font-size: 20rpx;
font-weight: 500;
color: #2387EE;
text-align: center;
/* line-height: 33rpx; */
padding:3px 5px;
}
.currekei :nth-child(4){
color: #FD461A;
font-weight: 800;
font-size: 34rpx;
}
.imgone{
width: 119rpx;
margin:10px auto;
}
.imgone img{
width: 119rpx;
height: 123rpx;
}
.imgtwo{
width: 32rpx;
height:32rpx;
}
.perfect{
width: 80%;
height: 50px;
margin:25px auto;
line-height: 50px;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
/* box-shadow: -4px 7px 18px 0px rgba(248, 164, 54, 0.33); */
border-radius: 44px;
font-size: 18px;
color: #FFFFFF;
}
/* .u-drawer__scroll-view{
height:0;
} */
.perfectsty{
text-align: center;
border-radius: 22px;
}
.popupu{
overflow-y: scroll;
}
.topbg .u-tag{
border-color:none
}
</style>

@ -1,60 +1,114 @@
<template>
<view>
<image src="../../static/index/dd.png" class="seticon" @click="goSetUp"></image>
<view class="topbg">
<view style="display: flex;justify-content: space-between;">
<view v-if='phoneuserinfo' style="display: flex;align-items: center">
<view @click="goUserInfo">
<img style='width:55px;height:55px;border-radius: 50%' v-if='avatar' :src="avatar.indexOf('http')==0?avatar:base+avatar" alt="">
<!-- <img v-else style='width:55px;height:55px;border-radius: 50%' src="http://image.keyitest.cn/static/my/mphoto.png" alt=""> -->
<img v-else style='width:55px;height:55px;border-radius: 50%' src="../../static/crowd/defaultAva.jpg" alt="">
<view @click="goUserInfo">
<img style='width:55px;height:55px;border-radius: 50%' v-if='avatar'
:src="avatar.indexOf('http')==0?avatar:base+avatar" alt="">
<img v-else style='width:55px;height:55px;border-radius: 50%'
src="../../static/crowd/defaultAva.jpg" alt="">
</view>
<view style='margin-left:10px;'>
<p v-if='phoneuserinfo.companyName' style='margin-bottom:5px;font-size:17px;font-weight:600;'>{{phoneuserinfo.companyName}}</p>
<p v-if='phoneuserinfo.companyName' style='margin-bottom:5px;font-size:17px;font-weight:600;'>
{{phoneuserinfo.companyName}}
</p>
<p v-else style='margin-bottom:5px;font-size:17px;font-weight:600;'>{{nickName}}</p>
<view style="display: flex;align-items: center;">
<p v-if='phoneuserinfo.userName' style='color:rgb(0 0 0/0.7);margin-right:10px;font-size:15px;'>UID: {{phoneuserinfo.userName}}</p>
<u-tag :text="testerStatustext" plan type="info" shape='circle' color='#FEFEFE' bg-color='#1A81F9' border-color='transparent' @click="nextcert"/>
<p v-if='phoneuserinfo.userName'
style='color:rgb(0 0 0/0.7);margin-right:10px;font-size:15px;'>UID:
{{phoneuserinfo.userName}}
</p>
<u-tag :text="testerStatustext" plan type="info" shape='circle' color='#FEFEFE'
bg-color='#1A81F9' border-color='transparent' @click="nextcert" />
</view>
</view>
</view>
<view v-else style="display: flex;">
<img style='width:55px;height:55px;' src="http://image.keyitest.cn/static/my/mphoto.png" alt="">
<view style='margin-left:10px;'>
<p style='margin-bottom:10px;font-size:16px;margin-top: 15px;font-weight: 700;' @click="logingj">点击登录</p>
<p style='margin-bottom:10px;font-size:16px;margin-top: 15px;font-weight: 700;'
@click="logingj">点击登录</p>
</view>
</view>
</view>
</view>
<view style='width:94vw;margin:10px 3vw 0 3vw;'>
<!-- <view class="handle" >
<view style="display: flex;justify-content: space-between;align-items: center;margin:0px 0px 0 20px">
<p style='font-weight:bold;font-size:15px;'>我的订单</p>
<view class='personinfo' style="margin-top:0px;" @click="orders()">
<p style="margin-right:5px;color: #808080;font-size: 14px;">全部订单</p>
<u-icon name="arrow-right" color="#666666" style='margin-top: 2px;'></u-icon>
<view class="changyong">
<view class="cyboxtop">
<view class="cytitle">
常用功能
</view>
<view class="cycontent">
<view class="cycontentit" @click="servier('myper')">
<image src="../../static/index/zc.png" class="cycontentitimg" mode=""></image>
<view class="cycontentittext">
钱包
</view>
</view>
<view class="cycontentit" @click="servier('bcrowd')">
<image src="../../static/index/zc.png" class="cycontentitimg" mode=""></image>
<view class="cycontentittext">
我的众包
</view>
</view>
<view class="cycontentit" @click="servier('myreview')">
<image src="../../static/index/zc.png" class="cycontentitimg" mode=""></image>
<view class="cycontentittext">
我的评价
</view>
</view>
<view class="cycontentit" @click="servier('message')">
<image src="../../static/index/zc.png" class="cycontentitimg" mode=""></image>
<view class="cycontentittext">
消息中心
</view>
</view>
</view>
<view style="display: flex;justify-content: space-between;padding:10px;">
<view class="associationddd" @click="changeOrderUrl('./ordernumber/ordernumber?current=1')">
<img src="http://image.keyitest.cn/static/my/mtopaid.png" alt="">
<p>待支付</p>
</view>
</view>
<view class="changyong changyong1">
<view class="cyboxtop">
<view class="cytitle">
基本功能
</view>
<view class="cycontent">
<view class="cycontentit" @click="orders">
<image src="../../static/index/zc.png" class="cycontentitimg" mode=""></image>
<view class="cycontentittext">
我的订单
</view>
</view>
<view class="associationddd" @click="changeOrderUrl('./ordernumber/ordernumber?current=2')">
<img src="http://image.keyitest.cn/static/my/mcompont.png" alt="">
<p>已完成</p>
<view class="cycontentit" @click="servier('peixunban')">
<image src="../../static/index/zc.png" class="cycontentitimg" mode=""></image>
<view class="cycontentittext">
报名管理
</view>
</view>
<view class="associationddd" @click="changeOrderUrl('./ordernumber/ordernumber?current=3')">
<img src="http://image.keyitest.cn/static/my/mcancel.png" alt="">
<p>已取消</p>
<view class="cycontentit" @click="servier('notes')">
<image src="../../static/index/zc.png" class="cycontentitimg" mode=""></image>
<view class="cycontentittext">
个人简历
</view>
</view>
<view class="associationddd" @click="changeOrderUrl('./ordernumber/ordernumber?current=4')">
<img src="http://image.keyitest.cn/static/my/mevaluate.png" alt="">
<p>待评价</p>
<view class="cycontentit" @click="servier('usepeople')">
<image src="../../static/index/zc.png" class="cycontentitimg" mode=""></image>
<view class="cycontentittext">
用人记录
</view>
</view>
</view>
</view> -->
<view class="handle" style='margin:-70px 0;padding:15px 12px 5px 15px; '>
</view>
</view>
<!-- <view style='width:94vw;margin:10px 3vw 0 3vw;'>
<view class="handle" style='padding:15px 12px 5px 15px; '>
<text style='font-weight:bold;font-size:15px;'>推荐功能</text>
<view class="advance" @click="servier('message')">
<img src="http://image.keyitest.cn/static/my/mmessage.png" alt="" />
@ -63,14 +117,7 @@
<u-icon name="arrow-right" color="#CCCCCC" style="margin-top: 2px;"></u-icon>
</view>
</view>
<!-- <view class="advance" @click="servier('signup')">
<img src="http://image.keyitest.cn/static/my/msignup.png" alt="" />
<view class="medaget">
<p>我的报名</p>
<u-icon name="arrow-right" color="#CCCCCC" style="margin-top: 2px;"></u-icon>
</view>
</view> -->
<view class="advance" @click="servier('bcrowd')">
<view class="advance" @click="servier('bcrowd')">
<img src="http://image.keyitest.cn/static/my/mbcrowd.png" alt="" />
<view class="medaget">
<p>我的众包</p>
@ -84,7 +131,7 @@
<u-icon name="arrow-right" color="#CCCCCC" style="margin-top: 2px;"></u-icon>
</view>
</view>
<view class="advance" @click="servier('peixunban')">
<img src="http://image.keyitest.cn/static/index/renliwb/peixunbanlogo.png" alt="" />
<view class="medaget">
@ -92,7 +139,7 @@
<u-icon name="arrow-right" color="#CCCCCC" style="margin-top: 2px;"></u-icon>
</view>
</view>
<view class="advance" @click="orders">
<img src="http://image.keyitest.cn/static/index/renliwb/orderlogo.png" alt="" />
<view class="medaget">
@ -114,7 +161,7 @@
<u-icon name="arrow-right" color="#CCCCCC" style="margin-top: 2px;"></u-icon>
</view>
</view>
<view class="advance" @click="servier('notes')">
<img src="http://image.keyitest.cn/static/my/mnotes.png" alt="" />
<view class="medaget">
@ -144,13 +191,14 @@
</view>
</view>
</view>
</view>
</view> -->
<view style="height:15px"> </view>
<u-toast ref="uToast" />
<u-modal title='温馨提示' v-model="tokenshow" content="您还没有登录" confirm-text='现在就去' cancel-text='稍等一下' show-cancel-button='true'
cancel-color='#1578ED' confirm-color='#1578ED' @confirm="lkconfirm" @cancel='tokenshow=false'></u-modal>
<u-modal title='温馨提示' v-model="tokenshow" content="您还没有登录" confirm-text='现在就去' cancel-text='稍等一下'
show-cancel-button='true' cancel-color='#1578ED' confirm-color='#1578ED' @confirm="lkconfirm"
@cancel='tokenshow=false'></u-modal>
</view>
</template>
@ -159,239 +207,260 @@
export default {
data() {
return {
wxUserInfo:null,
grantType:'phone',
wxUserInfo: null,
grantType: 'phone',
canIUseGetUserProfile: false,
phoneuserinfo:null,
tokenshow:false,
testerStatustext:'',
avatar:'',
nickName:'',
phoneuserinfo: null,
tokenshow: false,
testerStatustext: '',
avatar: '',
nickName: '',
base: this.http.baseUrl
}
},
onShow() {
let Token = uni.getStorageSync('accessToken');
// console.log('wxUserInfo',uni.getStorageSync('wxUserInfo'))
if(Token){
this.phoneuserinfo=uni.getStorageSync('wxUserInfo');
// console.log('',this.phoneuserinfo)
this.avatar=uni.getStorageSync('avatar');
this.nickName=uni.getStorageSync('nickName');
this.http.quickGet(`/tester/cert/apply/${this.phoneuserinfo.userId}`,true).then(res=>{
console.log('实名认证信息---',res)
if(res.data.code==200){
let testerdata=res.data.data;
if(testerdata){
if(testerdata.status==1){
this.testerStatustext='已认证'
}else{
this.testerStatustext='未认证'
}
}else{
this.testerStatustext='未认证'
}
}else{
this.testerStatustext='未认证'
}
})
}else{
this.phoneuserinfo=null
}
},
onLoad() {
// let accessToken = uni.getStorageSync('accessToken');
// if(accessToken){
// this.phoneuserinfo=uni.getStorageSync('wxUserInfo');
// console.log('1',this.phoneuserinfo)
// // let testerStatus=this.phoneuserinfo.testerStatus
// this.http.quickGet(`/tester/cert/apply/${this.phoneuserinfo.userId}`,true).then(res=>{
// // console.log('---',res)
// if(res.data.code==200){
// let testerdata=res.data.data;
// if(testerdata){
// if(testerdata.status==1){
// this.testerStatustext=''
// }else{
// this.testerStatustext=''
// }
// }else{
// this.testerStatustext=''
// }
// }else{
// this.testerStatustext=''
// }
// })
// }else{
// this.phoneuserinfo=null
// }
},
filters:{
tiilnamechange(value){
if (!value) return ''
if(value.length>9){
return value.slice(0, 7) + '...'
}
return value
let Token = uni.getStorageSync('accessToken');
if (Token) {
this.phoneuserinfo = uni.getStorageSync('wxUserInfo');
this.avatar = uni.getStorageSync('avatar');
this.nickName = uni.getStorageSync('nickName');
this.http.quickGet(`/tester/cert/apply/${this.phoneuserinfo.userId}`, true).then(res => {
console.log('实名认证信息---', res)
if (res.data.code == 200) {
let testerdata = res.data.data;
if (testerdata) {
if (testerdata.status == 1) {
this.testerStatustext = '已认证'
} else {
this.testerStatustext = '未认证'
}
} else {
this.testerStatustext = '未认证'
}
} else {
this.testerStatustext = '未认证'
}
})
} else {
this.phoneuserinfo = null
}
},
onLoad() {},
methods: {
goSetUp() {
uni.navigateTo({
url: '/pages/personal/setup/index'
})
},
goUserInfo() {
uni.navigateTo({
url: '/pages/personal/setup/Information'
})
},
nextcert(){
if(this.testerStatustext=='未认证'){
nextcert() {
if (this.testerStatustext == '未认证') {
uni.navigateTo({
url: '/pages/personal/setup/certification'
})
}
},
lkconfirm(){
lkconfirm() {
uni.navigateTo({
url: '/pages/personal/login'
})
},
logingj(){
logingj() {
uni.navigateTo({
url:'/pages/personal/login'
url: '/pages/personal/login'
})
},
details(type,id){
// console.log('id---',id)
if(type=='tool'){
},
details(type, id) {
if (type == 'tool') {
uni.navigateTo({
url: `../index/tooldetails?id=${id}`
})
}else{
} else {
uni.navigateTo({
url: './crowdsourcingdetails'
})
}
},
//
addcart(id){
addcart(id) {
let accessToken = uni.getStorageSync('accessToken');
if(!accessToken){
this.tokenshow=true
}else{
if (!accessToken) {
this.tokenshow = true
} else {
//
this.http.quickGet(`/my/addShoppingCart/${id}/1`,true).then(response => {
// console.log('response',response)
if(response.data.code==200){
this.http.quickGet(`/my/addShoppingCart/${id}/1`, true).then(response => {
if (response.data.code == 200) {
console.log('111')
this.$refs.uToast.show({
title: '添加购物车成功',
type: 'success',
duration: 1000,
isTab:true,
url:'/pages/shoppingtrolley/shoppingtrolley'
})
}
})
this.$refs.uToast.show({
title: '添加购物车成功',
type: 'success',
duration: 1000,
isTab: true,
url: '/pages/shoppingtrolley/shoppingtrolley'
})
}
})
}
},
orders(){
orders() {
let accessToken = uni.getStorageSync('accessToken');
if(!accessToken){
this.tokenshow=true
}else{
if (!accessToken) {
this.tokenshow = true
} else {
uni.navigateTo({
url:'./ordernumber/ordernumber?current=0'
url: './ordernumber/ordernumber?current=0'
})
}
},
changeOrderUrl(url){
changeOrderUrl(url) {
let accessToken = uni.getStorageSync('accessToken');
if(!accessToken){
this.tokenshow=true
}else{
if (!accessToken) {
this.tokenshow = true
} else {
uni.navigateTo({
url:url
url: url
})
}
},
//
servier(type){
if(this.phoneuserinfo){
if(type=='message'){
servier(type) {
if (this.phoneuserinfo) {
if (type == 'message') {
uni.navigateTo({
url:'/pages/message/message'
url: '/pages/message/message'
})
}else if(type=='signup'){
} else if (type == 'signup') {
uni.navigateTo({
url:'/pages/personal/mysignup/notice'
url: '/pages/personal/mysignup/notice'
})
}else if(type=='bcrowd'){
} else if (type == 'bcrowd') {
uni.navigateTo({
url:'/pages/personal/mycrowdtest/mycrowdtest'
url: '/pages/personal/mycrowdtest/mycrowdtest'
})
}else if(type=='authentication'){
} else if (type == 'authentication') {
uni.navigateTo({
url:'/pages/personal/setup/certification'
url: '/pages/personal/setup/certification'
})
}else if(type=='notes'){
} else if (type == 'notes') {
uni.navigateTo({
url:'/pages/personal/personalresume/personalresume'
url: '/pages/personal/personalresume/personalresume'
})
}else if(type=='myper'){
} else if (type == 'myper') {
uni.navigateTo({
url:'/pages/personal/mytestkit/mytestkit'
url: '/pages/personal/mytestkit/mytestkit'
})
}else if(type=='setmy'){
} else if (type == 'setmy') {
uni.navigateTo({
url:'/pages/personal/setup/index'
url: '/pages/personal/setup/index'
})
}else if(type=='pcweb'){
} else if (type == 'pcweb') {
uni.navigateTo({
url:'/pages/personal/setup/pcweb'
url: '/pages/personal/setup/pcweb'
})
}
else if(type=='peixunban'){
} else if (type == 'peixunban') {
uni.navigateTo({
url:'/pages/personal/setup/peixunban'
url: '/pages/personal/setup/peixunban'
})
}
else if(type=='usepeople'){
} else if (type == 'usepeople') {
uni.navigateTo({
url:'/pages/personal/setup/usepeople'
url: '/pages/personal/setup/usepeople'
})
}
else if(type=='myreview'){
} else if (type == 'myreview') {
uni.navigateTo({
url:'/pages/personal/setup/myreview'
url: '/pages/personal/setup/myreview'
})
}
}else{
this.tokenshow=true
} else {
this.tokenshow = true
}
}
}
}
</script>
<style>
.topbg{
width:100vw;
height:45vw;
background-size:100% 45vw;
background-image:url('http://image.keyitest.cn/static/my/mpersonbanner.png');
background-repeat:no-repeat;
padding:30px 0vw 20px 5vw;
<style lang="scss">
.seticon {
position: fixed;
top: 93rpx;
right: 40rpx;
width: 35rpx;
height: 35rpx;
}
.peoinfo{
height:38px;
width:110px;
.changyong {
width: 700rpx;
height: 230rpx;
background: #FFFFFF;
box-shadow: 0rpx 2rpx 18rpx 0rpx rgba(30, 66, 111, 0.1);
border-radius: 10rpx;
padding: 0 25rpx;
box-sizing: border-box;
margin: -120rpx auto 0 auto;
.cyboxtop {
display: flex;
flex-direction: column;
}
.cytitle {
font-weight: bold;
font-size: 30rpx;
color: #000000;
padding: 30rpx 0 10rpx 0;
}
.cycontent {
display: flex;
align-items: center;
justify-content: space-between;
padding: 25rpx;
box-sizing: border-box;
flex: 1;
.cycontentit {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.cycontentitimg {
width: 40rpx;
height: 40rpx;
margin-bottom: 10rpx;
}
.cycontentittext {
font-weight: 500;
font-size: 28rpx;
color: #4D4D4D;
}
}
}
}
.changyong1 {
margin: 40rpx auto 0 auto;
}
.topbg {
width: 100vw;
height: 45vw;
background-size: 100% 45vw;
background-image: url('http://image.keyitest.cn/static/my/mpersonbanner.png');
background-repeat: no-repeat;
padding: 30px 0vw 20px 5vw;
}
.peoinfo {
height: 38px;
width: 110px;
line-height: 38px;
background: rgba(255, 241, 228, 0.25);
border-radius: 30px 0px 0px 30px;
@ -401,7 +470,8 @@
align-items: center;
justify-content: center;
}
.personinfo{
.personinfo {
height: 38px;
width: 110px;
line-height: 38px;
@ -410,58 +480,65 @@
display: flex;
align-items: center;
justify-content: center;
margin-top:10px;
margin-top: 10px;
}
.memeber{
width:90vw;
height:16vw;
.memeber {
width: 90vw;
height: 16vw;
margin-top: 20px;
background-size:100% 16vw;
background-image:url('http://image.keyitest.cn/member.png');
background-repeat:no-repeat;
background-size: 100% 16vw;
background-image: url('http://image.keyitest.cn/member.png');
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content:space-around;
justify-content: space-around;
color: #FEDD92;
}
.handle{
margin-top:-70px;
.handle {
background: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 29px 0px rgba(187, 86, 25, 0.17);
border-radius:5px;
padding:5px 0 0 0;
border-radius: 5px;
padding: 5px 0 0 0;
}
.handle img{
.handle img {
width: 20px;
height: 20px;
}
.associationddd{
width:65px;
text-align:center;
margin:5px 0;
.associationddd {
width: 65px;
text-align: center;
margin: 5px 0;
color: #595959;
}
.recomimg{
.recomimg {
width: 50vw;
height:4vw;
height: 4vw;
display: flex;
margin: 20px auto;
}
.recommend{
.recommend {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.currekei{
width:48%;
.currekei {
width: 48%;
/* height: 360rpx; */
background: #FFFFFF;
border-radius: 10px;
padding:10px;
margin-bottom:20rpx
padding: 10px;
margin-bottom: 20rpx
}
.leop{
font-size:30rpx;
.leop {
font-size: 30rpx;
/* height:40px ; */
font-weight: bold;
color: #1A1A1A;
@ -470,7 +547,8 @@
align-items: center;
justify-content: center;
}
.tabone{
.tabone {
/* width: 98rpx; */
/* height: 33rpx; */
border: 1px solid #2B80FC;
@ -480,29 +558,34 @@
color: #2387EE;
text-align: center;
/* line-height: 33rpx; */
padding:3px 5px;
padding: 3px 5px;
}
.currekei :nth-child(4){
.currekei :nth-child(4) {
color: #FD461A;
font-weight: 800;
font-size: 34rpx;
}
.imgone{
.imgone {
width: 119rpx;
margin:10px auto;
margin: 10px auto;
}
.imgone img{
.imgone img {
width: 119rpx;
height: 123rpx;
}
.imgtwo{
.imgtwo {
width: 32rpx;
height:32rpx;
height: 32rpx;
}
.perfect{
.perfect {
width: 80%;
height: 50px;
margin:25px auto;
margin: 25px auto;
line-height: 50px;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
/* box-shadow: -4px 7px 18px 0px rgba(248, 164, 54, 0.33); */
@ -510,36 +593,42 @@
font-size: 18px;
color: #FFFFFF;
}
/* .u-drawer__scroll-view{
height:0;
} */
.perfectsty{
.perfectsty {
text-align: center;
border-radius: 22px;
}
.popupu{
overflow-y: scroll;
.popupu {
overflow-y: scroll;
}
.topbg .u-tag{
border-color:none;
.topbg .u-tag {
border-color: none;
}
.advance{
.advance {
display: flex;
justify-content: space-between;
margin-top: 15px;
}
.medaget{
.medaget {
border-bottom: 1px solid #99999926;
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 14px;
width:93%;
width: 93%;
}
.advance img{
.advance img {
width: 15px;
height: 15px;
margin-top: 3px;
}
</style>
</style>

@ -0,0 +1,89 @@
<template>
<view class="applyType">
<view class="titleapply">
请选择您的实名
</view>
<view class="itembox itembox1" @click="goApply('/pages/personal/setup/certification')">
<image src="../../../static/index/dd.png" mode="" class="itemboximg"></image>
<view class="itemboxtext">
个人实名
</view>
</view>
<view class="itembox itembox2" @click="goApply('/pages/personal/setup/companyApply')">
<image src="../../../static/index/dd.png" mode="" class="itemboximg"></image>
<view class="itemboxtext">
企业实名
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
onLoad() {
},
onReady() {
},
methods: {
goApply(url) {
uni.navigateTo({
url: url
})
}
}
}
</script>
<style lang="scss" scoped>
.applyType {
padding: 25rpx;
box-sizing: border-box;
}
.titleapply {
padding: 15rpx 0 40rpx 0;
font-weight: 500;
font-size: 32rpx;
color: #000000;
text-align: center;
}
.itembox {
width: 700rpx;
height: 300rpx;
border-radius: 10rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.itemboximg {
width: 100rpx;
height: 100rpx;
margin-bottom: 20rpx;
}
.itemboxtext {
font-weight: 500;
font-size: 30rpx;
color: #1A1A1A;
}
}
.itembox1 {
background: linear-gradient(0deg, #FFFFFF, #D1E9FE);
margin-bottom: 30rpx;
}
.itembox2 {
background: linear-gradient(0deg, #FFFFFF, #FAE8DD);
}
</style>

@ -0,0 +1,65 @@
<template>
<view class="companyApply">
<u-form :model="form" ref="form" label-position='top' label-width='150' border-bottom='false'>
<u-form-item label="企业证件照全称(必填)" prop="name" border-bottom='false' required='true'>
<u-input border style="width:100%;" :disabled='istest' v-model="form.name" placeholder='输入企业证件照' />
</u-form-item>
<u-form-item label="法人姓名" prop="idNumber" border-bottom='false' required='true'>
<u-input border style="width:100%;" :disabled='istest' v-model="form.idNumber" placeholder='输入法人姓名' />
</u-form-item>
<u-form-item label="上传营业执照正本" prop="idNumber" border-bottom='false' required='true'>
<u-upload width='100px' height='100px' :action="action" :disabled='istest' :header="headers"
:auto-upload="true" :show-progress="false" max-count="1" :deletable="true"
:file-list="form.certificateUrl"
@on-success="(data,index,lists) => {fielUploadSuc(data,index,lists) }"
@on-remove="(index, lists, name)=>{deleteUpfile(index)}"
@on-error="(data,index, lists)=>{errorUpfile(data,index, lists)}">
<!-- <view slot="addBtn" class="slot-btn">
<img v-if="form.certificateUrl" :src="form.certificateUrl" mode="aspectFill"
style="width: 100px;height: 100px;">
<div v-else class="upliacla">
<p style="font-size: 18px;">+</p>
<p>选择图片</p>
</div>
</view> -->
</u-upload>
</u-form-item>
</u-form>
</view>
</template>
<script>
export default {
data() {
return {
headers: {
Authorization: 'Bearer ' + uni.getStorageSync('accessToken'),
},
form: {},
action: this.http.baseUrl + '/upload'
}
},
onLoad() {},
onReady() {
},
methods: {
fielUploadSuc(data, index) {
if (data.code === 200) {
this.form.certificateUrl = data.filePath
}
},
deleteUpfile(index, lists) {
this.form.certificateUrl = ''
},
errorUpfile(data, index) {},
}
}
</script>
<style lang="scss" scoped>
.companyApply {
padding: 25rpx;
box-sizing: border-box;
}
</style>

@ -0,0 +1,77 @@
<template>
<view class="companyMsg">
<view class="companyInfoBox">
<u-form :model="form" :rules="rules" ref="form" label-position='top' label-width='150'
border-bottom='false'>
<u-form-item label="公司简介:" prop="companyDesc" border>
<u-input type="textarea" height="500" border style="width:100%;" :disabled='istest'
v-model="form.companyDesc" placeholder='输入公司简介' />
</u-form-item>
</u-form>
<view class="descBtn" @click="saveCompanyDesc">
保存
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
form: {},
rules: {
companyDesc: [{
required: true,
message: '请输入公司简介',
trigger: ['blur'],
}]
}
}
},
onReady() {
this.$refs.form.setRules(this.rules)
},
methods: {
//
saveCompanyDesc() {
this.$refs.form.validate().then(res => {
const data = {}
this.http.quickPost('/companyInfo/update', this.data).then(re => {
console.log(re);
})
}).catch(errors => {
})
}
}
}
</script>
<style lang="scss" scoped>
.companyMsg {
height: 100%;
padding: 25rpx;
box-sizing: border-box;
.companyInfoBox {
height: 100%;
padding: 30rpx 20rpx;
background: #FFFFFF;
}
}
.descBtn {
width: 100%;
height: 70rpx;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
border-radius: 35rpx;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
line-height: 70rpx;
text-align: center;
margin-top: 50rpx;
}
</style>

@ -1,10 +1,10 @@
<template>
<view>
<view style="background-color:#ffffff;height:96vh;width: 96vw;margin:2vh auto;padding:10px 13px;border-radius: 10rpx;">
<view class="separate" @click="setup('inform')">
<!-- <view class="separate" @click="setup('inform')">
<p>个人信息</p>
<img style='width:15rpx;height:25rpx;margin-top:5px;' src="http://image.keyitest.cn/static/index/xia.png" alt="">
</view>
</view> -->
<!-- <view class="separate" @click="setup('setpass')">
<p>设置密码</p>
<img style='width:15rpx;height:25rpx;margin-top:5px;' src="http://image.keyitest.cn/static/index/xia.png" alt="">

Loading…
Cancel
Save