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

1

parent bb2b7287
...@@ -17,17 +17,18 @@ ...@@ -17,17 +17,18 @@
inactive-color="#DADCE6" active-color="#F70027"></u-line-progress> inactive-color="#DADCE6" active-color="#F70027"></u-line-progress>
</view> </view>
<view> <view>
</view> </view>
<view class="stepBox" v-if='nowStatus != 4'> <view class="stepBox" v-if='nowStatus != 4'>
<view class="stepItem" v-if="step==1"> <view class="stepItem" v-if="step==1">
<view style="width: 100%;display: flex;" v-if="dataOne.CompanyStatus && dataOne.CompanyStatus==2"> <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> <span style='margin-left: 10px;color: #F70027;'>审核未通过</span>
</view> </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> <span>原因:{{dataOne.RejectRemark}}</span>
</view> </view>
<view v-for="(item,index) in stepOneList" :key="index"> <view v-for="(item,index) in stepOneList" :key="index">
...@@ -36,8 +37,9 @@ ...@@ -36,8 +37,9 @@
{{item.name}} <text class="tip" v-if="item.tip">{{item.tip}}</text> {{item.name}} <text class="tip" v-if="item.tip">{{item.tip}}</text>
</view> </view>
<view class="con1" v-if="item.type==1"> <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" <input class="input" type="text" v-model="dataOne[item.field]" :placeholder="item.text"
placeholder-style="color: #CECECEFF" @focus="inputFcous(item)" /> :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; <view v-if='nowStatus!=3 && nowStatus!=5 ' style="width: 50rpx;height: 50rpx;display: flex;align-items: center;justify-content: center;position: absolute;
top: -2rpx; top: -2rpx;
right: 10rpx; right: 10rpx;
...@@ -54,7 +56,9 @@ ...@@ -54,7 +56,9 @@
<!-- 上传成功 --> <!-- 上传成功 -->
<image :src="dataOne.BusinessLicense" v-if="businessLicenseUploadIsSuccess" class="conImage" <image :src="dataOne.BusinessLicense" v-if="businessLicenseUploadIsSuccess" class="conImage"
mode="heightFix"></image> 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>
</view> </view>
...@@ -66,20 +70,30 @@ ...@@ -66,20 +70,30 @@
<view style="width: 100%;display: flex;justify-content: space-around;margin-top: 180rpx;"> <view style="width: 100%;display: flex;justify-content: space-around;margin-top: 180rpx;">
<view class="chooseidbox" @click="ChooseidentityId=1"> <view class="chooseidbox" @click="ChooseidentityId=1">
<view class="chooseidbox_t"> <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==1"
<image v-if="ChooseidentityId==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_pp_n.png"></image> 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>
<view class="chooseidbox_b"> <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> </view>
<view class="chooseidbox" @click="ChooseidentityId=2"> <view class="chooseidbox" @click="ChooseidentityId=2">
<view class="chooseidbox_t"> <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==2"
<image v-if="ChooseidentityId==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/choice_zt_n.png"></image> 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>
<view class="chooseidbox_b"> <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> </view>
</view> </view>
...@@ -90,14 +104,14 @@ ...@@ -90,14 +104,14 @@
</view> </view>
<view v-if='ChooseidentityId==2'> <view v-if='ChooseidentityId==2'>
<carrierInformation ref='carrierinfo' :datas='dataOne'></carrierInformation> <carrierInformation ref='carrierinfo' :datas='dataOne'></carrierInformation>
</view> </view>
</view> </view>
<view v-if="step!=3"> <view v-if="step!=3">
<view class="butBox" @click="nextStep"> <view class="butBox" @click="nextStep">
<image :src="nextIcon" class="next" mode="widthFix" ></image> <image :src="nextIcon" class="next" mode="widthFix"></image>
</view> </view>
</view> </view>
</view> </view>
...@@ -125,7 +139,7 @@ ...@@ -125,7 +139,7 @@
step: 1, step: 1,
nextIcon: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/next.png", nextIcon: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/next.png",
percent: 33.33, percent: 33.33,
ChooseidentityId:1, ChooseidentityId: 1,
stepName: "第1步 企业基础资料", stepName: "第1步 企业基础资料",
nextSepName: "第2步", nextSepName: "第2步",
// type=1:输入框,2:照片 // type=1:输入框,2:照片
...@@ -221,7 +235,7 @@ ...@@ -221,7 +235,7 @@
LegalPerson: "", LegalPerson: "",
Mobile: "", Mobile: "",
CompanyStatus: 0, CompanyStatus: 0,
FirstShopType:1 FirstShopType: 1
}, },
dataTwo: { dataTwo: {
CompanyId: 0, CompanyId: 0,
...@@ -254,10 +268,10 @@ ...@@ -254,10 +268,10 @@
AreaRequireMin: 0, AreaRequireMin: 0,
AreaRequireMax: 100, AreaRequireMax: 100,
finishBtn: "完成", finishBtn: "完成",
newCompanyId:0, newCompanyId: 0,
nowStatus:1,//此时的状态 nowStatus: 1, //此时的状态
loading:false, loading: false,
editType:0,//是否是从修改进入的 1是 0否 editType: 0, //是否是从修改进入的 1是 0否
} }
}, },
methods: { methods: {
...@@ -319,7 +333,6 @@ ...@@ -319,7 +333,6 @@
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })
} else { } else {
let data = _res.data.words_result let data = _res.data.words_result
that.upFile(res.tempFilePaths[0], (uploadRes) => { that.upFile(res.tempFilePaths[0], (uploadRes) => {
...@@ -360,7 +373,11 @@ ...@@ -360,7 +373,11 @@
resCall(res) resCall(res)
}, },
fail(res) { fail(res) {
wx.showToast({
title: '图片类型错误!',
icon: 'none',
duration: 1000
})
} }
}) })
}, },
...@@ -401,8 +418,8 @@ ...@@ -401,8 +418,8 @@
url: 'https://aip.baidubce.com/oauth/2.0/token', // 百度获取token接口地址 url: 'https://aip.baidubce.com/oauth/2.0/token', // 百度获取token接口地址
data: { data: {
'grant_type': 'client_credentials', // 固定写死 'grant_type': 'client_credentials', // 固定写死
'client_id': 'QWTnMLORmrozodmfIyOjHGoB', 'client_id': 'wWtW3xQju14uH0ToPpxlk4aq',
'client_secret': 'DcsUjSai1OnIHd61B2xIX4zlYqv8E1bP' 'client_secret': 'lEYPHN0CgFbX5e849ViK9Q7WdnUhkwEx'
}, },
method: 'GET', method: 'GET',
success(res) { success(res) {
...@@ -421,14 +438,14 @@ ...@@ -421,14 +438,14 @@
this.request2(parms, (res) => { this.request2(parms, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.dataOne.CompanyId = res.data.CompanyId this.dataOne.CompanyId = res.data.CompanyId
this.dataOne.CompanyStatus=-1 this.dataOne.CompanyStatus = -1
this.showTemplate(res.data.template_message_list) this.showTemplate(res.data.template_message_list)
} }
}) })
}, },
//步骤三 //步骤三
//返回个人中心 //返回个人中心
finish() { finish() {
uni.navigateTo({ uni.navigateTo({
...@@ -437,44 +454,44 @@ ...@@ -437,44 +454,44 @@
}, },
//下一步 //下一步
nextStep() { nextStep() {
if (this.percent > 100) { if (this.percent > 100) {
this.percent = 100 this.percent = 100
} }
if (this.step <= 4) { if (this.step <= 4) {
if (this.step == 1) { 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.stepName = "第2步 选择身份"
this.nextSepName = "第3步" this.nextSepName = "第3步"
this.step++ this.step++
this.percent += this.percent this.percent += this.percent
}else{//审核中的去查看 } else { //审核中的去查看
if(this.nowStatus==2){//不通过的时候不能去选择身份了 if (this.nowStatus == 2) { //不通过的时候不能去选择身份了
this.stepOne() this.stepOne()
}else{ } else {
this.step=3 this.step = 3
this.percent = 100; this.percent = 100;
if(this.dataOne.FirstShopType == 1){ if (this.dataOne.FirstShopType == 1) {
this.stepName = "第3步 品牌信息" this.stepName = "第3步 品牌信息"
this.nextSepName = "完成" this.nextSepName = "完成"
}else{ } else {
this.stepName = "第3步 载体信息" this.stepName = "第3步 载体信息"
this.nextSepName = "完成" this.nextSepName = "完成"
}
} }
} }
}
} else if (this.step == 2) { } else if (this.step == 2) {
this.stepOne() this.stepOne()
} }
} }
}, },
// 审核通过 // 审核通过
backBtn(){ backBtn() {
if (this.percent > 100) { if (this.percent > 100) {
this.percent = 100 this.percent = 100
} }
...@@ -483,19 +500,19 @@ ...@@ -483,19 +500,19 @@
this.nextSepName = "第3步" this.nextSepName = "第3步"
this.step++ this.step++
this.percent += this.percent this.percent += this.percent
}else if (this.step == 2) { } else if (this.step == 2) {
this.step++ this.step++
this.percent += this.percent this.percent += this.percent
if(this.ChooseidentityId == 1){ if (this.ChooseidentityId == 1) {
this.stepName = "第3步 品牌信息" this.stepName = "第3步 品牌信息"
this.nextSepName = "完成" this.nextSepName = "完成"
}else{ } else {
this.stepName = "第3步 载体信息" this.stepName = "第3步 载体信息"
this.nextSepName = "完成" this.nextSepName = "完成"
} }
} }
}, },
// 获取公司认证信息 // 获取公司认证信息
getUserCompany() { getUserCompany() {
let that = this let that = this
...@@ -504,31 +521,31 @@ ...@@ -504,31 +521,31 @@
url: "/api/AppletTrade/GetUserCompany", url: "/api/AppletTrade/GetUserCompany",
} }
this.request2(parms, (res) => { this.request2(parms, (res) => {
if (res.resultCode == 1 && res.data != null) { if (res.resultCode == 1 && res.data != null) {
this.dataOne = res.data this.dataOne = res.data
this.businessLicenseUploadIsSuccess = true this.businessLicenseUploadIsSuccess = true
this.dataOne.CompanyId = res.data.CompanyId 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 this.nowStatus = 3
} }
if(this.dataOne.CompanyStatus==1){//审核通过 if (this.dataOne.CompanyStatus == 1) { //审核通过
this.nowStatus = 4 this.nowStatus = 4
if(this.editType == 0){//从企业菜单今天 可以看企业菜单但是不能修改 if (this.editType == 0) { //从企业菜单今天 可以看企业菜单但是不能修改
this.nowStatus = 5 this.nowStatus = 5
} }
} }
if(this.dataOne.CompanyStatus==2){//审核不通过 if (this.dataOne.CompanyStatus == 2) { //审核不通过
this.nowStatus = 2 this.nowStatus = 2
} }
this.ChooseidentityId = this.dataOne.FirstShopType; this.ChooseidentityId = this.dataOne.FirstShopType;
if(this.dataOne.FirstShopType && this.dataOne.FirstShopType==1){ if (this.dataOne.FirstShopType && this.dataOne.FirstShopType == 1) {
this.pageTitle = '品牌信息' this.pageTitle = '品牌信息'
}else if(this.dataOne.FirstShopType && this.dataOne.FirstShopType==2){ } else if (this.dataOne.FirstShopType && this.dataOne.FirstShopType == 2) {
this.pageTitle = '载体信息' this.pageTitle = '载体信息'
} }
} }
that.loading = true that.loading = true
}) })
}, },
...@@ -542,52 +559,52 @@ ...@@ -542,52 +559,52 @@
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
tmplIds: template, tmplIds: template,
complete(res) { complete(res) {
if(that.nowStatus == 2){ if (that.nowStatus == 2) {
that.step=3 that.step = 3
that.percent = 100; that.percent = 100;
}else{ } else {
that.step++ that.step++
that.percent += that.percent that.percent += that.percent
} }
if(that.ChooseidentityId == 1){ if (that.ChooseidentityId == 1) {
that.stepName = "第3步 品牌信息" that.stepName = "第3步 品牌信息"
that.nextSepName = "完成" that.nextSepName = "完成"
}else{ } else {
that.stepName = "第3步 载体信息" that.stepName = "第3步 载体信息"
that.nextSepName = "完成" that.nextSepName = "完成"
} }
} }
}) })
}, },
Children(ID,type){ Children(ID, type) {
if(type==1){ if (type == 1) {
if (Object.keys(this.$refs).length > 0 && this.$refs.brandinfo) { //判断 if (Object.keys(this.$refs).length > 0 && this.$refs.brandinfo) { //判断
this.$refs.brandinfo.brandchildren(ID) this.$refs.brandinfo.brandchildren(ID)
} }
}else{ } else {
if (Object.keys(this.$refs).length > 0 && this.$refs.carrierinfo) { //判断 if (Object.keys(this.$refs).length > 0 && this.$refs.carrierinfo) { //判断
this.$refs.carrierinfo.carrierchildren(ID) this.$refs.carrierinfo.carrierchildren(ID)
} }
} }
} }
}, },
onLoad(options) { onLoad(options) {
if(options&& options.editType){ //是否是从修改进去的 if (options && options.editType) { //是否是从修改进去的
this.editType = options.editType this.editType = options.editType
} }
this.getUserCompany() this.getUserCompany()
}, },
created() { created() {
}, },
mounted() { mounted() {
// this.getCustomerTypeEnumList() // this.getCustomerTypeEnumList()
...@@ -596,7 +613,7 @@ ...@@ -596,7 +613,7 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.pageTitle, title: this.pageTitle,
}); });
} }
} }
</script> </script>
...@@ -699,6 +716,7 @@ ...@@ -699,6 +716,7 @@
width: 100%; width: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
.conImage { .conImage {
width: 590rpx; width: 590rpx;
height: 367rpx; height: 367rpx;
...@@ -802,26 +820,29 @@ ...@@ -802,26 +820,29 @@
} }
} }
.chooseidbox{ .chooseidbox {
width: 208rpx; width: 208rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.chooseidbox_t{
.chooseidbox_t {
width: 100%; width: 100%;
height: 260rpx; height: 260rpx;
} }
.chooseidbox_b{
.chooseidbox_b {
width: 15px; width: 15px;
height: 15px; height: 15px;
margin-top: 12px; margin-top: 12px;
} }
image{
image {
width: 100%; width: 100%;
height: 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