Commit bba97c6f authored by 罗超's avatar 罗超

优化参数

parent 42313cc4
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
nextIcon: nextIcon:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/next.png", "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:照片
...@@ -338,8 +338,8 @@ export default { ...@@ -338,8 +338,8 @@ export default {
editType: 0, //是否是从修改进入的 1是 0否 editType: 0, //是否是从修改进入的 1是 0否
mainColor:'', mainColor:'',
companyTypes:[ companyTypes:[
{name:'商业',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228042986140.png',id:2},
{name:'品牌',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228042995981.png',id:1}, {name:'品牌',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228042995981.png',id:1},
{name:'商业',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228042986140.png',id:2},
{name:'企业',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228219050268.png',id:3}, {name:'企业',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228219050268.png',id:3},
{name:'楼宇',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228045398333.png',id:4}, {name:'楼宇',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228045398333.png',id:4},
] ]
...@@ -531,34 +531,39 @@ export default { ...@@ -531,34 +531,39 @@ export default {
} }
if (this.step <= 4) { if (this.step <= 4) {
if (this.step == 1) { if (this.step == 1) {
if(!this.dataOne.BusinessLicense){ if(this.dataOne.BusinessLicense==''){
return wx.showToast({ return wx.showToast({
title: "请上传营业执照", icon: 'none',
duration: 1000, title: "请上传营业执照",
duration: 1000,
}); });
} }
if(!this.dataOne.CompanyName){ if(this.dataOne.CompanyName==''){
return wx.showToast({ return wx.showToast({
title: "请填写企业名称", icon: 'none',
duration: 1000, title: "请填写企业名称",
duration: 1000,
}); });
} }
if(!this.dataOne.UnifiedCode){ if(this.dataOne.UnifiedCode==''){
return wx.showToast({ return wx.showToast({
title: "请填写统一社会信用代码", icon: 'none',
duration: 1000, title: "请填写统一社会信用代码",
duration: 1000,
}); });
} }
if(!this.dataOne.LegalPerson){ if(this.dataOne.LegalPerson==''){
return wx.showToast({ return wx.showToast({
title: "请填写法人代表", icon: 'none',
duration: 1000, title: "请填写法人代表",
duration: 1000,
}); });
} }
if(!this.dataOne.Mobile){ if(this.dataOne.Mobile==''){
return wx.showToast({ return wx.showToast({
title: "请填写联系电话", icon: 'none',
duration: 1000, title: "请填写联系电话",
duration: 1000,
}); });
} }
//审核中或审核通过就不提交请求 //审核中或审核通过就不提交请求
...@@ -567,9 +572,17 @@ export default { ...@@ -567,9 +572,17 @@ export default {
this.nowStatus != 2 && this.nowStatus != 2 &&
this.nowStatus != 5 this.nowStatus != 5
) { ) {
this.step++;
if(this.ChooseidentityId!=-1){
this.step = 3;
this.percent = 100;
this.stepName = this.companyTypes[this.ChooseidentityId-1].name+'认证信息';
this.nextSepName = "完成";
return
}
this.ChooseidentityId=1
this.stepName = "第2步 选择身份"; this.stepName = "第2步 选择身份";
this.nextSepName = "第3步"; this.nextSepName = "第3步";
this.step++;
this.percent += this.percent; this.percent += this.percent;
} else { } else {
//审核中的去查看 //审核中的去查看
...@@ -579,13 +592,8 @@ export default { ...@@ -579,13 +592,8 @@ export default {
} else { } else {
this.step = 3; this.step = 3;
this.percent = 100; this.percent = 100;
if (this.dataOne.FirstShopType == 1) { this.stepName = this.companyTypes[this.ChooseidentityId-1].name;
this.stepName = "第3步 品牌信息"; this.nextSepName = "完成";
this.nextSepName = "完成";
} else {
this.stepName = "第3步 载体信息";
this.nextSepName = "完成";
}
} }
} }
} else if (this.step == 2) { } else if (this.step == 2) {
...@@ -690,6 +698,11 @@ export default { ...@@ -690,6 +698,11 @@ export default {
//是否是从修改进去的 //是否是从修改进去的
this.editType = options.editType; this.editType = options.editType;
} }
if(options && options.t){
this.ChooseidentityId=options.t
}else{
this.ChooseidentityId=-1
}
this.getUserCompany(); this.getUserCompany();
}, },
created() {}, created() {},
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</view> </view>
<view class="progressBox" v-if="nowStatus != 4"> <view class="progressBox" v-if="nowStatus != 4">
<view class="progressName"> <view class="progressName">
<text class="cur" :style="{color:mainColor}">{{ stepName }}</text> <text class="cur">{{ stepName }}</text>
<text class="nex">{{ nextSepName }}</text> <text class="nex">{{ nextSepName }}</text>
</view> </view>
<u-line-progress <u-line-progress
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
:show-percent="false" :show-percent="false"
:height="10" :height="10"
inactive-color="#DADCE6" inactive-color="#DADCE6"
:active-color="mainColor" active-color="#F70027"
></u-line-progress> ></u-line-progress>
</view> </view>
<view> </view> <view> </view>
...@@ -104,7 +104,6 @@ ...@@ -104,7 +104,6 @@
></image> ></image>
<view <view
class="reupload" class="reupload"
:style="{background:mainColor}"
v-if=" v-if="
businessLicenseUploadIsSuccess && businessLicenseUploadIsSuccess &&
nowStatus != 3 && nowStatus != 3 &&
...@@ -128,12 +127,55 @@ ...@@ -128,12 +127,55 @@
" "
>请选择您的身份</view >请选择您的身份</view
> >
<view class="company-auth" style="margin-top: 180rpx;"> <view
<view class="item" v-for="(x,i) in companyTypes" @click="()=>ChooseidentityId=x.id" :key="i" :class="{'active':ChooseidentityId==x.id}" :style="{borderColor:ChooseidentityId==x.id?mainColor:'#E1E2E3'}"> style="
<view class="type-name">{{ x.name}}</view> width: 100%;
<image :src="x.image" mode="widthFix"></image> display: flex;
</view> justify-content: space-around;
</view> 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>
</view>
<view class="chooseidbox_b">
<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>
</view>
<view class="chooseidbox_b">
<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 class="stepItem" v-if="step == 3" style="padding-bottom: 0"> <view class="stepItem" v-if="step == 3" style="padding-bottom: 0">
<view v-if="ChooseidentityId == 1"> <view v-if="ChooseidentityId == 1">
...@@ -148,8 +190,8 @@ ...@@ -148,8 +190,8 @@
</view> </view>
<view v-if="step != 3"> <view v-if="step != 3">
<view class="butBox" @click="nextStep" :style="{background:mainColor,boxShadow:`0rpx 4rpx 40rpx 0rpx ${mainColor}94`}"> <view class="butBox" @click="nextStep">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696208109196782.png" style="width:40%" class="next" mode="widthFix"></image> <image :src="nextIcon" class="next" mode="widthFix"></image>
</view> </view>
</view> </view>
</view> </view>
...@@ -326,13 +368,6 @@ export default { ...@@ -326,13 +368,6 @@ export default {
nowStatus: 1, //此时的状态 nowStatus: 1, //此时的状态
loading: false, loading: false,
editType: 0, //是否是从修改进入的 1是 0否 editType: 0, //是否是从修改进入的 1是 0否
mainColor:'',
companyTypes:[
{name:'商业',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228042986140.png',id:2},
{name:'品牌',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228042995981.png',id:1},
{name:'企业',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228219050268.png',id:3},
{name:'楼宇',image:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696228045398333.png',id:4},
]
}; };
}, },
methods: { methods: {
...@@ -476,13 +511,13 @@ export default { ...@@ -476,13 +511,13 @@ export default {
getAccess_token() { getAccess_token() {
let that = this; let that = this;
uni.request({ uni.request({
url: "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=uHc6N5qsYBfZs3jrM0DOLXCc&client_secret=8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J", // 百度获取token接口地址 url: "https://aip.baidubce.com/oauth/2.0/token", // 百度获取token接口地址
data: { data: {
grant_type: "client_credentials", // 固定写死 grant_type: "client_credentials", // 固定写死
client_id: "uHc6N5qsYBfZs3jrM0DOLXCc", client_id: "wWtW3xQju14uH0ToPpxlk4aq",
client_secret: "8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J", client_secret: "lEYPHN0CgFbX5e849ViK9Q7WdnUhkwEx",
}, },
method: "POST", method: "GET",
success(res) { success(res) {
that.access_token = res.data.access_token; that.access_token = res.data.access_token;
}, },
...@@ -668,7 +703,6 @@ export default { ...@@ -668,7 +703,6 @@ export default {
mounted() { mounted() {
// this.getCustomerTypeEnumList() // this.getCustomerTypeEnumList()
// this.GetProjectTypeEnumList() // this.GetProjectTypeEnumList()
this.mainColor = this.$uiConfig.mainColor
this.getAccess_token(); this.getAccess_token();
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.pageTitle, title: this.pageTitle,
...@@ -987,46 +1021,4 @@ export default { ...@@ -987,46 +1021,4 @@ export default {
color: #f70027; color: #f70027;
} }
} }
/* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
font-family: "ali-item-title";
src: url("//at.alicdn.com/wf/webfont/MQHUV6e56ce5/XADjkS2Snr1Y.woff2") format("woff2"),
url("//at.alicdn.com/wf/webfont/MQHUV6e56ce5/yACEEadsH9Us.woff") format("woff");
font-display: swap;
}
.company-auth{
font-family: 'ali-item-title';
width: 90%;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
}
.company-auth .item{
width: calc(50% - 20px);
margin-right: 20px;
padding: 20px;
border: 3px solid #e1e2e3;
border-radius: 10px;
color:#e1e2e3;
text-align: center;
margin-bottom: 20px;
font-weight: bold;
}
.company-auth .item .type-name{
text-align: center;
font-size: 36rpx;
margin-bottom: 20rpx;
}
.company-auth .item image{
opacity: 30%;
width:70rpx;
max-height: 70rpx;
}
.company-auth .item.active{
color:#000;
}
.company-auth .item.active image{
opacity: unset;
}
</style> </style>
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