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
e8372d36
Commit
e8372d36
authored
Sep 02, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
985a3b31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
103 additions
and
161 deletions
+103
-161
activeList.vue
pages/kotra/activeList.vue
+100
-86
firstShop.vue
pages/kotra/firstShop/firstShop.vue
+3
-75
No files found.
pages/kotra/activeList.vue
View file @
e8372d36
<
style
>
.active_List
{
height
:
100vh
;
padding
:
30
rpx
;
position
:
relative
;
}
.active_List
{
height
:
100vh
;
padding
:
30
rpx
;
position
:
relative
;
}
.active_BtnList
{
position
:
absolute
;
bottom
:
30
rpx
;
width
:
100%
;
display
:
flex
;
}
.active_BtnList
{
position
:
absolute
;
bottom
:
30
rpx
;
width
:
100%
;
display
:
flex
;
}
</
style
>
<
template
>
<view
class=
"active_List"
>
<checkbox-group
@
change=
"checkboxChange"
>
<label
class=
"uni-list-cell uni-list-cell-pd"
v-for=
"(item,index) in activeList"
:key=
"index"
>
<view
style=
"margin-bottom:30rpx;"
>
<checkbox
:value=
"index"
:checked=
"item.checked"
/>
<text>
{{
item
.
ActivityTypeName
}}
</text>
</view>
</label>
</checkbox-group>
<view
class=
"active_BtnList"
>
<u-button
size=
"80"
:ripple=
"true"
shape=
"circle"
:custom-style=
"
{
backgroundColor: mc,
height: '80rpx',
color: '#FFF',
fontSize: '14px',
margin: '0 3vw',
width: '40vw',
}" @click="goSignUp()">立即报名
</u-button>
<u-button
size=
"80"
:ripple=
"true"
shape=
"circle"
:custom-style=
"
{
backgroundColor: mc,
height: '80rpx',
color: '#FFF',
fontSize: '14px',
margin: '0 3vw',
width: '40vw',
}">查看报名
</u-button>
</view>
</view>
</view>
<view
class=
"active_List"
>
<checkbox-group
@
change=
"checkboxChange"
>
<label
class=
"uni-list-cell uni-list-cell-pd"
v-for=
"(item, index) in activeList"
:key=
"index"
>
<view
style=
"margin-bottom: 30rpx"
>
<checkbox
:value=
"index"
:checked=
"item.checked"
/>
<text>
{{
item
.
ActivityTypeName
}}
</text>
</view>
</label>
</checkbox-group>
<view
class=
"active_BtnList"
>
<u-button
size=
"80"
:ripple=
"true"
shape=
"circle"
:custom-style=
"
{
backgroundColor: mc,
height: '80rpx',
color: '#FFF',
fontSize: '14px',
margin: '0 3vw',
width: '40vw',
}"
@click="goSignUp()"
>立即报名
</u-button
>
<u-button
size=
"80"
:ripple=
"true"
shape=
"circle"
:custom-style=
"
{
backgroundColor: mc,
height: '80rpx',
color: '#FFF',
fontSize: '14px',
margin: '0 3vw',
width: '40vw',
}"
>查看报名
</u-button
>
</view>
</view>
</
template
>
<
script
>
export
default
{
components
:
{},
data
()
{
return
{
mc
:
""
,
activeList
:
[],
msg
:
{
ActivityIds
:
'7,8,9'
}
}
},
created
()
{},
mounted
()
{
this
.
mc
=
this
.
$uiConfig
.
mainColor
;
this
.
getData
();
},
onLoad
(
option
)
{
if
(
option
)
{
}
},
methods
:
{
checkboxChange
(
e
)
{
},
//跳转立即报名
goSignUp
()
{
uni
.
navigateTo
({
url
:
"/pages/kotra/activeSignUp"
});
},
getData
()
{
this
.
request2
({
url
:
"/api/AppletTrade/GetActivityList"
,
data
:
this
.
msg
,
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
console
.
log
(
res
,
'数据'
);
this
.
activeList
=
res
.
data
;
}
}
);
}
},
}
export
default
{
components
:
{},
data
()
{
return
{
mc
:
""
,
activeList
:
[],
msg
:
{
ActivityIds
:
"7,8,9"
,
},
};
},
created
()
{},
mounted
()
{
this
.
mc
=
this
.
$uiConfig
.
mainColor
;
this
.
getData
();
},
onLoad
(
option
)
{
if
(
option
)
{
}
},
methods
:
{
checkboxChange
(
e
)
{},
//跳转立即报名
goSignUp
()
{
uni
.
navigateTo
({
url
:
"/pages/kotra/activeSignUp"
,
});
},
getData
()
{
this
.
request2
(
{
url
:
"/api/AppletTrade/GetActivityList"
,
data
:
this
.
msg
,
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
console
.
log
(
res
,
"数据"
);
this
.
activeList
=
res
.
data
;
}
}
);
},
},
};
</
script
>
<
style
>
...
...
pages/kotra/firstShop/firstShop.vue
View file @
e8372d36
...
...
@@ -385,14 +385,17 @@
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<Certified></Certified>
</view>
</
template
>
<
script
>
import
auth
from
"../../../components/auth/index.vue"
;
import
Certified
from
"../componyStatus/Certified.vue"
;
export
default
{
components
:
{
auth
,
Certified
,
},
data
()
{
return
{
...
...
@@ -452,8 +455,6 @@ export default {
isdisabled
:
false
,
//是否是详情过来的
index
:
0
,
//列表带过来的索引
brandList
:
[],
//品牌列表
CommpanyStatus
:
0
,
//公司认证状态
FirstShopType
:
0
,
//1:品牌,2:载体
};
},
onLoad
(
options
)
{
...
...
@@ -493,9 +494,6 @@ export default {
});
}
},
onShow
()
{
this
.
getCommpanyStatus
();
},
mounted
()
{
this
.
getMyBrandList
();
...
...
@@ -826,76 +824,6 @@ 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