Commit 04a3c78b authored by 罗超's avatar 罗超

调整内容

parent ce9bcde8
<template> <template>
<view class="carrHeader"> <view class="carrHeader" :style="[titleStyle]">
<view class="carrHeaderBox"> <view class="carrHeaderBox">
<view class="carrHeader-left"> <view class="carrHeader-left">
<!-- <view class="carrHeader-left-icon" @click="goBack"> <!-- <view class="carrHeader-left-icon" @click="goBack">
...@@ -17,11 +17,18 @@ export default { ...@@ -17,11 +17,18 @@ export default {
props:['title'], props:['title'],
data() { data() {
return { return {
titleStyle:{}
} }
}, },
mounted() { mounted() {
const that = this
uni.getSystemInfo({
success(res) {
that.titleStyle = {
paddingTop: `${res.statusBarHeight}px`
};
},
});
}, },
methods:{ methods:{
goBack(){ goBack(){
......
...@@ -463,26 +463,17 @@ export default { ...@@ -463,26 +463,17 @@ export default {
getImgInfo(data, token, resCall) { getImgInfo(data, token, resCall) {
let that = this; let that = this;
uni.request({ uni.request({
url: url: "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=uHc6N5qsYBfZs3jrM0DOLXCc&client_secret=8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J", // 百度获取token接口地址
"https://aip.baidubce.com/rest/2.0/ocr/v1/business_license?access_token=" +
token,
method: "POST",
header: {
"Content-Type": "application/x-www-form-urlencoded",
},
data: { data: {
image: data, grant_type: "client_credentials", // 固定写死
client_id: "uHc6N5qsYBfZs3jrM0DOLXCc",
client_secret: "8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J",
}, },
method: "POST",
success(res) { success(res) {
resCall(res); that.access_token = res.data.access_token;
},
fail(res) {
wx.showToast({
title: "图片类型错误!",
icon: "none",
duration: 1000,
});
}, },
fail(e) {},
}); });
}, },
//图片上传 //图片上传
......
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
<scroll-view scroll-y="true" style="height:100%;background: #f1f2f3;" @scroll="scroll"> <scroll-view scroll-y="true" style="height:100%;background: #f1f2f3;" @scroll="scroll">
<view :style="{background:mainColor}"> <view :style="{background:mainColor}">
<view class="detail-box"> <view class="detail-box">
<view class="header flex item-center"> <view class="header">
<view class="title"> <view class="title">
{{ details.BrandName }} {{ details.BrandName }}
</view> </view>
<view class="tag-box" style="display: flex; overflow: hidden;"> <view class="tag-box" style="display: flex; overflow: hidden;margin-top: 10rpx;">
<text class="tag1">品牌类型</text <text class="tag1">品牌类型</text
><text class="tag2">{{ details.CategoryName }}</text> ><text class="tag2">{{ details.CategoryName }}</text>
</view> </view>
......
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
<scroll-view scroll-y="true" style="height:100%;background: #f1f2f3;" @scroll="scroll"> <scroll-view scroll-y="true" style="height:100%;background: #f1f2f3;" @scroll="scroll">
<view :style="{background:mainColor}"> <view :style="{background:mainColor}">
<view class="detail-box"> <view class="detail-box">
<view class="header flex item-center"> <view class="header">
<view class="title"> <view class="title">
{{ details.Name }} {{ details.Name }}
</view> </view>
<view class="tag-box" style="display: flex; overflow: hidden;"> <view class="tag-box" style="display: flex; overflow: hidden;margin-top: 10rpx;">
<text class="tag1">企业类型</text <text class="tag1">企业类型</text
><text class="tag2">{{ details.CategoryName }}</text> ><text class="tag2">{{ details.CategoryName }}</text>
</view> </view>
......
...@@ -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">{{ stepName }}</text> <text class="cur" :style="{color:mainColor}">{{ 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="#F70027" :active-color="mainColor"
></u-line-progress> ></u-line-progress>
</view> </view>
<view> </view> <view> </view>
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,7 @@
></image> ></image>
<view <view
class="reupload" class="reupload"
:style="{background:mainColor}"
v-if=" v-if="
businessLicenseUploadIsSuccess && businessLicenseUploadIsSuccess &&
nowStatus != 3 && nowStatus != 3 &&
...@@ -127,55 +128,12 @@ ...@@ -127,55 +128,12 @@
" "
>请选择您的身份</view >请选择您的身份</view
> >
<view <view class="company-auth" style="margin-top: 180rpx;">
style=" <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'}">
width: 100%; <view class="type-name">{{ x.name}}</view>
display: flex; <image :src="x.image" mode="widthFix"></image>
justify-content: space-around; </view>
margin-top: 180rpx; </view>
"
>
<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">
...@@ -190,8 +148,8 @@ ...@@ -190,8 +148,8 @@
</view> </view>
<view v-if="step != 3"> <view v-if="step != 3">
<view class="butBox" @click="nextStep"> <view class="butBox" @click="nextStep" :style="{background:mainColor,boxShadow:`0rpx 4rpx 40rpx 0rpx ${mainColor}94`}">
<image :src="nextIcon" class="next" mode="widthFix"></image> <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696208109196782.png" style="width:40%" class="next" mode="widthFix"></image>
</view> </view>
</view> </view>
</view> </view>
...@@ -368,6 +326,13 @@ export default { ...@@ -368,6 +326,13 @@ 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: {
...@@ -703,6 +668,7 @@ export default { ...@@ -703,6 +668,7 @@ 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,
...@@ -1021,4 +987,46 @@ export default { ...@@ -1021,4 +987,46 @@ 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>
...@@ -629,11 +629,11 @@ ...@@ -629,11 +629,11 @@
} }
break; break;
case "/pages/kotra/wish/list": case "/pages/kotra/wish/list":
if (this.FirstShopType == 1 && this.companyStatus == 5) { // if (this.FirstShopType == 1 && this.companyStatus == 5) {
flag = true; flag = true;
} else { // } else {
flag = false; // flag = false;
} // }
break; break;
case "/pages/kotra/enterpriseCertificationList": case "/pages/kotra/enterpriseCertificationList":
if (IsAdmin == 1) { if (IsAdmin == 1) {
......
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