Commit e8372d36 authored by 罗超's avatar 罗超

1

parent 985a3b31
<style>
.active_List {
height: 100vh;
padding: 30rpx;
position: relative;
}
.active_List {
height: 100vh;
padding: 30rpx;
position: relative;
}
.active_BtnList {
position: absolute;
bottom: 30rpx;
width: 100%;
display: flex;
}
.active_BtnList {
position: absolute;
bottom: 30rpx;
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>
......
......@@ -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>
......
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