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
f7f7eb5e
Commit
f7f7eb5e
authored
Sep 02, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
779882a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
25 deletions
+100
-25
firstShop.vue
pages/kotra/firstShop/firstShop.vue
+100
-25
No files found.
pages/kotra/firstShop/firstShop.vue
View file @
f7f7eb5e
...
...
@@ -8,7 +8,28 @@
padding: 30rpx;
"
>
<view
class=
"label-text"
style=
"margin-top: 0; margin-bottom: 30rpx"
>
<view
class=
"bottom-border"
>
<view
class=
"label-text"
style=
"margin-top: 0"
>
<text>
我的品牌
</text>
</view>
<u-field
v-model=
"brandName"
@
click=
"isdisabled == false ? (showTypeStatus5 = true) : ''"
:disabled=
"true"
right-icon=
"arrow"
padding=
"10px 0px 5px 0"
label-width=
"0"
placeholder=
"请选择品牌"
placeholder-style=
"color:#CECECE;"
></u-field>
<u-action-sheet
@
click=
"clickItem5"
name=
"BrandName"
:list=
"brandList"
v-model=
"showTypeStatus5"
></u-action-sheet>
</view>
<view
class=
"label-text"
style=
"margin-top: 20px; margin-bottom: 30rpx"
>
<text>
店铺照片
</text>
<text
style=
"color: #999; font-weight: 400"
>
(上传3-5张照片,第一张为封面图)
</text
...
...
@@ -118,7 +139,7 @@
</view>
<view
v-if=
"model.VideoUrl == '' && isdisabled == true"
>
无
</view>
</view>
<view
class=
"bottom-border"
>
<
!--
<
view
class=
"bottom-border"
>
<view
class=
"label-text"
>
首店名称
</view>
<u-field
v-model=
"model.Name"
...
...
@@ -128,7 +149,7 @@
placeholder=
"请填写首店名称"
placeholder-style=
"color:#CECECE;"
></u-field>
</view>
</view>
-->
<view
class=
"bottom-border"
>
<view
class=
"label-text"
>
首店类型
</view>
<u-field
...
...
@@ -232,27 +253,7 @@
v-model=
"showTypeStatus3"
></u-action-sheet>
</view>
<view
class=
"bottom-border"
>
<view
class=
"label-text"
>
<text>
品牌
</text>
</view>
<u-field
v-model=
"brandName"
@
click=
"isdisabled == false ? (showTypeStatus5 = true) : ''"
:disabled=
"true"
right-icon=
"arrow"
padding=
"10px 0px 5px 0"
label-width=
"0"
placeholder=
"请选择品牌"
placeholder-style=
"color:#CECECE;"
></u-field>
<u-action-sheet
@
click=
"clickItem5"
name=
"BrandName"
:list=
"brandList"
v-model=
"showTypeStatus5"
></u-action-sheet>
</view>
<view
class=
"bottom-border"
>
<view
class=
"label-text"
>
<text>
首店业种类型
</text>
...
...
@@ -451,6 +452,8 @@ export default {
isdisabled
:
false
,
//是否是详情过来的
index
:
0
,
//列表带过来的索引
brandList
:
[],
//品牌列表
CommpanyStatus
:
0
,
//公司认证状态
FirstShopType
:
0
,
//1:品牌,2:载体
};
},
onLoad
(
options
)
{
...
...
@@ -492,6 +495,7 @@ export default {
},
mounted
()
{
this
.
getMyBrandList
();
this
.
getCommpanyStatus
();
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
let
MallBaseId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
...
...
@@ -709,8 +713,9 @@ export default {
clickItem5
(
index
)
{
//品牌
this
.
brandName
=
this
.
brandList
[
index
].
BrandName
;
this
.
model
.
Name
=
this
.
brandList
[
index
].
BrandName
;
this
.
model
.
ExistBrandId
=
this
.
brandList
[
index
].
ID
;
console
.
log
(
this
.
model
.
ExistBrandId
);
console
.
log
(
this
.
model
.
ExistBrandId
,
this
.
model
.
Name
);
},
uploadSuccessHandler
(
data
,
index
,
lists
)
{
let
r
=
JSON
.
parse
(
data
);
...
...
@@ -818,6 +823,76 @@ export default {
}
);
},
//获取认证状态
getCommpanyStatus
()
{
this
.
request2
(
{
url
:
"/api/AppletTrade/GetCommpanyStatus"
,
data
:
{},
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
CommpanyStatus
=
res
.
data
.
CompanyStatus
;
this
.
FirstShopType
=
res
.
data
.
FirstShopType
;
this
.
auth
();
}
}
);
},
auth
(
url
)
{
console
.
log
(
308
,
this
.
CommpanyStatus
,
this
.
FirstShopType
);
if
(
this
.
CommpanyStatus
===
1
||
this
.
CommpanyStatus
===
4
)
{
uni
.
showModal
({
title
:
"提示"
,
content
:
"请您先完成实名认证"
,
// showCancel: false,
confirmText
:
"立即认证"
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
navigateTo
({
url
:
"/pages/kotra/identification"
,
});
}
else
if
(
res
.
cancel
)
{
uni
.
navigateBack
({
delta
:
1
,
});
}
},
});
}
else
if
(
this
.
CommpanyStatus
===
3
)
{
uni
.
showModal
({
title
:
"提示"
,
content
:
"感谢您的厚爱,请等待认证通过以后再来尝试吧"
,
showCancel
:
false
,
confirmText
:
"我知道了"
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
navigateBack
({
delta
:
1
,
});
}
},
});
}
else
if
(
this
.
CommpanyStatus
===
2
)
{
uni
.
showModal
({
title
:
"提示"
,
content
:
"认证待完善"
,
// showCancel: false,
confirmText
:
"立即完善"
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
navigateTo
({
url
:
"/pages/kotra/identification"
,
});
}
else
if
(
res
.
cancel
)
{
uni
.
navigateBack
({
delta
:
1
,
});
}
},
});
}
},
},
};
</
script
>
...
...
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