Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
bba97c6f
Commit
bba97c6f
authored
Dec 13, 2024
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化参数
parent
42313cc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
95 additions
and
90 deletions
+95
-90
enterIndex.vue
pages/kotra/BrandEnterSetIn/enterIndex.vue
+38
-25
identification.vue
pages/kotra/identification.vue
+57
-65
No files found.
pages/kotra/BrandEnterSetIn/enterIndex.vue
View file @
bba97c6f
...
...
@@ -184,7 +184,7 @@ export default {
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:照片
...
...
@@ -338,8 +338,8 @@ export default {
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/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/638696228045398333.png'
,
id
:
4
},
]
...
...
@@ -531,34 +531,39 @@ export default {
}
if
(
this
.
step
<=
4
)
{
if
(
this
.
step
==
1
)
{
if
(
!
this
.
dataOne
.
BusinessLicense
){
if
(
this
.
dataOne
.
BusinessLicense
==
''
){
return
wx
.
showToast
({
title
:
"请上传营业执照"
,
duration
:
1000
,
icon
:
'none'
,
title
:
"请上传营业执照"
,
duration
:
1000
,
});
}
if
(
!
this
.
dataOne
.
CompanyName
){
if
(
this
.
dataOne
.
CompanyName
==
''
){
return
wx
.
showToast
({
title
:
"请填写企业名称"
,
duration
:
1000
,
icon
:
'none'
,
title
:
"请填写企业名称"
,
duration
:
1000
,
});
}
if
(
!
this
.
dataOne
.
UnifiedCode
){
if
(
this
.
dataOne
.
UnifiedCode
==
''
){
return
wx
.
showToast
({
title
:
"请填写统一社会信用代码"
,
duration
:
1000
,
icon
:
'none'
,
title
:
"请填写统一社会信用代码"
,
duration
:
1000
,
});
}
if
(
!
this
.
dataOne
.
LegalPerson
){
if
(
this
.
dataOne
.
LegalPerson
==
''
){
return
wx
.
showToast
({
title
:
"请填写法人代表"
,
duration
:
1000
,
icon
:
'none'
,
title
:
"请填写法人代表"
,
duration
:
1000
,
});
}
if
(
!
this
.
dataOne
.
Mobile
){
if
(
this
.
dataOne
.
Mobile
==
''
){
return
wx
.
showToast
({
title
:
"请填写联系电话"
,
duration
:
1000
,
icon
:
'none'
,
title
:
"请填写联系电话"
,
duration
:
1000
,
});
}
//审核中或审核通过就不提交请求
...
...
@@ -567,9 +572,17 @@ export default {
this
.
nowStatus
!=
2
&&
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
.
nextSepName
=
"第3步"
;
this
.
step
++
;
this
.
percent
+=
this
.
percent
;
}
else
{
//审核中的去查看
...
...
@@ -579,13 +592,8 @@ export default {
}
else
{
this
.
step
=
3
;
this
.
percent
=
100
;
if
(
this
.
dataOne
.
FirstShopType
==
1
)
{
this
.
stepName
=
"第3步 品牌信息"
;
this
.
nextSepName
=
"完成"
;
}
else
{
this
.
stepName
=
"第3步 载体信息"
;
this
.
nextSepName
=
"完成"
;
}
this
.
stepName
=
this
.
companyTypes
[
this
.
ChooseidentityId
-
1
].
name
;
this
.
nextSepName
=
"完成"
;
}
}
}
else
if
(
this
.
step
==
2
)
{
...
...
@@ -690,6 +698,11 @@ export default {
//是否是从修改进去的
this
.
editType
=
options
.
editType
;
}
if
(
options
&&
options
.
t
){
this
.
ChooseidentityId
=
options
.
t
}
else
{
this
.
ChooseidentityId
=-
1
}
this
.
getUserCompany
();
},
created
()
{},
...
...
pages/kotra/identification.vue
View file @
bba97c6f
...
...
@@ -13,7 +13,7 @@
</view>
<view
class=
"progressBox"
v-if=
"nowStatus != 4"
>
<view
class=
"progressName"
>
<text
class=
"cur"
:style=
"
{color:mainColor}"
>
{{
stepName
}}
</text>
<text
class=
"cur"
>
{{
stepName
}}
</text>
<text
class=
"nex"
>
{{
nextSepName
}}
</text>
</view>
<u-line-progress
...
...
@@ -22,7 +22,7 @@
:show-percent=
"false"
:height=
"10"
inactive-color=
"#DADCE6"
:active-color=
"mainColor
"
active-color=
"#F70027
"
></u-line-progress>
</view>
<view>
</view>
...
...
@@ -104,7 +104,6 @@
></image>
<view
class=
"reupload"
:style=
"
{background:mainColor}"
v-if=
"
businessLicenseUploadIsSuccess &&
nowStatus != 3 &&
...
...
@@ -128,12 +127,55 @@
"
>
请选择您的身份
</view
>
<view
class=
"company-auth"
style=
"margin-top: 180rpx;"
>
<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'}">
<view
class=
"type-name"
>
{{
x
.
name
}}
</view>
<image
:src=
"x.image"
mode=
"widthFix"
></image>
</view>
</view>
<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>
</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
class=
"stepItem"
v-if=
"step == 3"
style=
"padding-bottom: 0"
>
<view
v-if=
"ChooseidentityId == 1"
>
...
...
@@ -148,8 +190,8 @@
</view>
<view
v-if=
"step != 3"
>
<view
class=
"butBox"
@
click=
"nextStep"
:style=
"
{background:mainColor,boxShadow:`0rpx 4rpx 40rpx 0rpx ${mainColor}94`}"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638696208109196782.png"
style=
"width:40%
"
class=
"next"
mode=
"widthFix"
></image>
<view
class=
"butBox"
@
click=
"nextStep"
>
<image
:src=
"nextIcon
"
class=
"next"
mode=
"widthFix"
></image>
</view>
</view>
</view>
...
...
@@ -326,13 +368,6 @@ export default {
nowStatus
:
1
,
//此时的状态
loading
:
false
,
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
:
{
...
...
@@ -476,13 +511,13 @@ export default {
getAccess_token
()
{
let
that
=
this
;
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
:
{
grant_type
:
"client_credentials"
,
// 固定写死
client_id
:
"
uHc6N5qsYBfZs3jrM0DOLXCc
"
,
client_secret
:
"
8LrTrMzUmBQGPTEu1Nm0UxaVGucXdg6J
"
,
client_id
:
"
wWtW3xQju14uH0ToPpxlk4aq
"
,
client_secret
:
"
lEYPHN0CgFbX5e849ViK9Q7WdnUhkwEx
"
,
},
method
:
"
POS
T"
,
method
:
"
GE
T"
,
success
(
res
)
{
that
.
access_token
=
res
.
data
.
access_token
;
},
...
...
@@ -668,7 +703,6 @@ export default {
mounted
()
{
// this.getCustomerTypeEnumList()
// this.GetProjectTypeEnumList()
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
this
.
getAccess_token
();
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
...
...
@@ -987,46 +1021,4 @@ export default {
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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment