Commit e8372d36 authored by 罗超's avatar 罗超

1

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