Commit 2a6d4def authored by 罗超's avatar 罗超

1

parent bb2b7287
......@@ -23,10 +23,11 @@
<view class="stepBox" v-if='nowStatus != 4'>
<view class="stepItem" v-if="step==1">
<view style="width: 100%;display: flex;" v-if="dataOne.CompanyStatus && dataOne.CompanyStatus==2">
<u-icon name="warning-o" color="#F70027" size="50" ></u-icon>
<u-icon name="warning-o" color="#F70027" size="50"></u-icon>
<span style='margin-left: 10px;color: #F70027;'>审核未通过</span>
</view>
<view style="width: 100%;display: flex;margin-bottom: 20px;margin-top: 10px;" v-if="dataOne.CompanyStatus && dataOne.CompanyStatus==2">
<view style="width: 100%;display: flex;margin-bottom: 20px;margin-top: 10px;"
v-if="dataOne.CompanyStatus && dataOne.CompanyStatus==2">
<span>原因:{{dataOne.RejectRemark}}</span>
</view>
......@@ -36,8 +37,9 @@
{{item.name}} <text class="tip" v-if="item.tip">{{item.tip}}</text>
</view>
<view class="con1" v-if="item.type==1">
<input class="input" type="text" v-model="dataOne[item.field]" :placeholder="item.text" :disabled="nowStatus==3|| nowStatus==5?true:false"
placeholder-style="color: #CECECEFF" @focus="inputFcous(item)" />
<input class="input" type="text" v-model="dataOne[item.field]" :placeholder="item.text"
:disabled="nowStatus==3|| nowStatus==5?true:false" placeholder-style="color: #CECECEFF"
@focus="inputFcous(item)" />
<view v-if='nowStatus!=3 && nowStatus!=5 ' style="width: 50rpx;height: 50rpx;display: flex;align-items: center;justify-content: center;position: absolute;
top: -2rpx;
right: 10rpx;
......@@ -54,7 +56,9 @@
<!-- 上传成功 -->
<image :src="dataOne.BusinessLicense" v-if="businessLicenseUploadIsSuccess" class="conImage"
mode="heightFix"></image>
<view class="reupload" v-if="businessLicenseUploadIsSuccess && (nowStatus!=3 && nowStatus!=5)" @click="chooseImg" >
<view class="reupload"
v-if="businessLicenseUploadIsSuccess && (nowStatus!=3 && nowStatus!=5)"
@click="chooseImg">
重新上传
</view>
</view>
......@@ -66,20 +70,30 @@
<view style="width: 100%;display: flex;justify-content: space-around;margin-top: 180rpx;">
<view class="chooseidbox" @click="ChooseidentityId=1">
<view class="chooseidbox_t">
<image v-if="ChooseidentityId==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp.png"></image>
<image v-if="ChooseidentityId==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp_n.png"></image>
<image v-if="ChooseidentityId==1"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp.png">
</image>
<image v-if="ChooseidentityId==2"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp_n.png">
</image>
</view>
<view class="chooseidbox_b">
<image v-if="ChooseidentityId==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_g.png" ></image>
<image v-if="ChooseidentityId==1"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_g.png"></image>
</view>
</view>
<view class="chooseidbox" @click="ChooseidentityId=2">
<view class="chooseidbox_t">
<image v-if="ChooseidentityId==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt.png"></image>
<image v-if="ChooseidentityId==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt_n.png"></image>
<image v-if="ChooseidentityId==2"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt.png">
</image>
<image v-if="ChooseidentityId==1"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt_n.png">
</image>
</view>
<view class="chooseidbox_b">
<image v-if="ChooseidentityId==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_g.png" ></image>
<image v-if="ChooseidentityId==2"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_g.png"></image>
</view>
</view>
</view>
......@@ -97,7 +111,7 @@
<view v-if="step!=3">
<view class="butBox" @click="nextStep">
<image :src="nextIcon" class="next" mode="widthFix" ></image>
<image :src="nextIcon" class="next" mode="widthFix"></image>
</view>
</view>
</view>
......@@ -125,7 +139,7 @@
step: 1,
nextIcon: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/next.png",
percent: 33.33,
ChooseidentityId:1,
ChooseidentityId: 1,
stepName: "第1步 企业基础资料",
nextSepName: "第2步",
// type=1:输入框,2:照片
......@@ -221,7 +235,7 @@
LegalPerson: "",
Mobile: "",
CompanyStatus: 0,
FirstShopType:1
FirstShopType: 1
},
dataTwo: {
CompanyId: 0,
......@@ -254,10 +268,10 @@
AreaRequireMin: 0,
AreaRequireMax: 100,
finishBtn: "完成",
newCompanyId:0,
nowStatus:1,//此时的状态
loading:false,
editType:0,//是否是从修改进入的 1是 0否
newCompanyId: 0,
nowStatus: 1, //此时的状态
loading: false,
editType: 0, //是否是从修改进入的 1是 0否
}
},
methods: {
......@@ -319,7 +333,6 @@
icon: 'none',
duration: 1000
})
} else {
let data = _res.data.words_result
that.upFile(res.tempFilePaths[0], (uploadRes) => {
......@@ -360,7 +373,11 @@
resCall(res)
},
fail(res) {
wx.showToast({
title: '图片类型错误!',
icon: 'none',
duration: 1000
})
}
})
},
......@@ -401,8 +418,8 @@
url: 'https://aip.baidubce.com/oauth/2.0/token', // 百度获取token接口地址
data: {
'grant_type': 'client_credentials', // 固定写死
'client_id': 'QWTnMLORmrozodmfIyOjHGoB',
'client_secret': 'DcsUjSai1OnIHd61B2xIX4zlYqv8E1bP'
'client_id': 'wWtW3xQju14uH0ToPpxlk4aq',
'client_secret': 'lEYPHN0CgFbX5e849ViK9Q7WdnUhkwEx'
},
method: 'GET',
success(res) {
......@@ -421,7 +438,7 @@
this.request2(parms, (res) => {
if (res.resultCode == 1) {
this.dataOne.CompanyId = res.data.CompanyId
this.dataOne.CompanyStatus=-1
this.dataOne.CompanyStatus = -1
this.showTemplate(res.data.template_message_list)
}
})
......@@ -444,21 +461,21 @@
if (this.step <= 4) {
if (this.step == 1) {
//审核中或审核通过就不提交请求
if(this.nowStatus!=3 && this.nowStatus!=2 && this.nowStatus!=5){
if (this.nowStatus != 3 && this.nowStatus != 2 && this.nowStatus != 5) {
this.stepName = "第2步 选择身份"
this.nextSepName = "第3步"
this.step++
this.percent += this.percent
}else{//审核中的去查看
if(this.nowStatus==2){//不通过的时候不能去选择身份了
} else { //审核中的去查看
if (this.nowStatus == 2) { //不通过的时候不能去选择身份了
this.stepOne()
}else{
this.step=3
} else {
this.step = 3
this.percent = 100;
if(this.dataOne.FirstShopType == 1){
if (this.dataOne.FirstShopType == 1) {
this.stepName = "第3步 品牌信息"
this.nextSepName = "完成"
}else{
} else {
this.stepName = "第3步 载体信息"
this.nextSepName = "完成"
}
......@@ -474,7 +491,7 @@
}
},
// 审核通过
backBtn(){
backBtn() {
if (this.percent > 100) {
this.percent = 100
}
......@@ -483,13 +500,13 @@
this.nextSepName = "第3步"
this.step++
this.percent += this.percent
}else if (this.step == 2) {
} else if (this.step == 2) {
this.step++
this.percent += this.percent
if(this.ChooseidentityId == 1){
if (this.ChooseidentityId == 1) {
this.stepName = "第3步 品牌信息"
this.nextSepName = "完成"
}else{
} else {
this.stepName = "第3步 载体信息"
this.nextSepName = "完成"
}
......@@ -509,22 +526,22 @@
this.dataOne = res.data
this.businessLicenseUploadIsSuccess = true
this.dataOne.CompanyId = res.data.CompanyId
if(this.dataOne.CompanyStatus==0 && this.dataOne.IsComplete==1){//审核中
if (this.dataOne.CompanyStatus == 0 && this.dataOne.IsComplete == 1) { //审核中
this.nowStatus = 3
}
if(this.dataOne.CompanyStatus==1){//审核通过
if (this.dataOne.CompanyStatus == 1) { //审核通过
this.nowStatus = 4
if(this.editType == 0){//从企业菜单今天 可以看企业菜单但是不能修改
if (this.editType == 0) { //从企业菜单今天 可以看企业菜单但是不能修改
this.nowStatus = 5
}
}
if(this.dataOne.CompanyStatus==2){//审核不通过
if (this.dataOne.CompanyStatus == 2) { //审核不通过
this.nowStatus = 2
}
this.ChooseidentityId = this.dataOne.FirstShopType;
if(this.dataOne.FirstShopType && this.dataOne.FirstShopType==1){
if (this.dataOne.FirstShopType && this.dataOne.FirstShopType == 1) {
this.pageTitle = '品牌信息'
}else if(this.dataOne.FirstShopType && this.dataOne.FirstShopType==2){
} else if (this.dataOne.FirstShopType && this.dataOne.FirstShopType == 2) {
this.pageTitle = '载体信息'
}
......@@ -542,17 +559,17 @@
uni.requestSubscribeMessage({
tmplIds: template,
complete(res) {
if(that.nowStatus == 2){
that.step=3
if (that.nowStatus == 2) {
that.step = 3
that.percent = 100;
}else{
} else {
that.step++
that.percent += that.percent
}
if(that.ChooseidentityId == 1){
if (that.ChooseidentityId == 1) {
that.stepName = "第3步 品牌信息"
that.nextSepName = "完成"
}else{
} else {
that.stepName = "第3步 载体信息"
that.nextSepName = "完成"
}
......@@ -561,13 +578,13 @@
})
},
Children(ID,type){
Children(ID, type) {
if(type==1){
if (type == 1) {
if (Object.keys(this.$refs).length > 0 && this.$refs.brandinfo) { //判断
this.$refs.brandinfo.brandchildren(ID)
}
}else{
} else {
if (Object.keys(this.$refs).length > 0 && this.$refs.carrierinfo) { //判断
this.$refs.carrierinfo.carrierchildren(ID)
}
......@@ -579,7 +596,7 @@
},
onLoad(options) {
if(options&& options.editType){ //是否是从修改进去的
if (options && options.editType) { //是否是从修改进去的
this.editType = options.editType
}
this.getUserCompany()
......@@ -699,6 +716,7 @@
width: 100%;
position: relative;
overflow: hidden;
.conImage {
width: 590rpx;
height: 367rpx;
......@@ -802,22 +820,25 @@
}
}
.chooseidbox{
.chooseidbox {
width: 208rpx;
display: flex;
flex-direction: column;
align-items: center;
.chooseidbox_t{
.chooseidbox_t {
width: 100%;
height: 260rpx;
}
.chooseidbox_b{
.chooseidbox_b {
width: 15px;
height: 15px;
margin-top: 12px;
}
image{
image {
width: 100%;
height: 100%;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment