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"
v-for="(item, index) in activeList"
:key="index"
>
<view style="margin-bottom: 30rpx">
<checkbox :value="index" :checked="item.checked" /> <checkbox :value="index" :checked="item.checked" />
<text>{{item.ActivityTypeName}}</text> <text>{{ item.ActivityTypeName }}</text>
</view> </view>
</label> </label>
</checkbox-group> </checkbox-group>
<view class="active_BtnList"> <view class="active_BtnList">
<u-button size="80" :ripple="true" shape="circle" :custom-style="{ <u-button
size="80"
:ripple="true"
shape="circle"
: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',
}" @click="goSignUp()">立即报名</u-button> }"
<u-button size="80" :ripple="true" shape="circle" :custom-style="{ @click="goSignUp()"
>立即报名</u-button
>
<u-button
size="80"
:ripple="true"
shape="circle"
: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> >查看报名</u-button
>
</view> </view>
</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() {
...@@ -63,34 +79,32 @@ ...@@ -63,34 +79,32 @@
}, },
onLoad(option) { onLoad(option) {
if (option) { if (option) {
} }
}, },
methods: { methods: {
checkboxChange(e) { checkboxChange(e) {},
},
//跳转立即报名 //跳转立即报名
goSignUp() { goSignUp() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/kotra/activeSignUp" url: "/pages/kotra/activeSignUp",
}); });
}, },
getData() { getData() {
this.request2({ this.request2(
{
url: "/api/AppletTrade/GetActivityList", url: "/api/AppletTrade/GetActivityList",
data: this.msg, data: this.msg,
}, },
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
console.log(res,'数据'); console.log(res, "数据");
this.activeList = res.data; 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