parent
51785b6761
commit
9fe99b581e
@ -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> |
@ -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> |
Loading…
Reference in new issue