|
@@ -6,8 +6,8 @@
|
|
|
v-model="isResearchModalShow"
|
|
|
:content-style="{ fontSize: '32rpx' }"
|
|
|
@confirm="confirmModal"
|
|
|
- :show-cancel-button="type == 1"
|
|
|
- :confirm-text="type == 1 ? '知道了' : '确定'"
|
|
|
+ :show-cancel-button="!isShowView"
|
|
|
+ :confirm-text="isShowView ? '知道了' : '确定'"
|
|
|
cancel-text="取消"
|
|
|
@cancel="cancelModal"
|
|
|
:show-title="false"
|
|
@@ -15,24 +15,51 @@
|
|
|
:confirm-style="{ fontWeight: '700' }"
|
|
|
>
|
|
|
<view class="slot-content">
|
|
|
- <block v-if="type == 1">
|
|
|
- <text class="title-box">确定报名参加吗?</text>
|
|
|
+ <block v-if="!checkResearchList.CheckPermission"> 签约买方研选套餐才可参与此活动,请联系对口销售 </block>
|
|
|
+ <block v-else-if="!checkResearchList.CheckTime"> <rich-text :nodes="content"></rich-text></block>
|
|
|
+ <block v-else-if="!checkResearchList.CheckPoints">
|
|
|
+ <view class="title-box txt-check">
|
|
|
+ 点数不足,若想报名,<br />请联系对口销售
|
|
|
+ <text style="display: inline-block; color: #3385ff" @click="promptTextHandler">升级套餐</text>
|
|
|
+ </view>
|
|
|
<view class="content-box">
|
|
|
<text>当前剩余点数:</text>
|
|
|
- <text>0</text>
|
|
|
+ <text>{{ checkResearchList.CompanyPoints }}</text>
|
|
|
</view>
|
|
|
<view class="content-box">
|
|
|
<text>本次会议扣除点数:</text>
|
|
|
- <text>0</text>
|
|
|
+ <text>{{ checkResearchList.ActivityPoints }}</text>
|
|
|
</view>
|
|
|
</block>
|
|
|
- <block v-else-if="type == 3">
|
|
|
+ <block v-else-if="!checkResearchList.CheckEmail">
|
|
|
<text class="title-box">应上市公司要求,该会议报名需 提供邮箱,请填写您的工作邮箱</text>
|
|
|
<view class="content-input">
|
|
|
<input v-model="inputVal" type="text" placeholder="请输入正确的邮箱地址" />
|
|
|
</view>
|
|
|
</block>
|
|
|
- <rich-text v-else :nodes="content"></rich-text>
|
|
|
+ <block v-else-if="checkResearchList.CheckPoints">
|
|
|
+ <view class="title-box"> 确定报名参加吗? </view>
|
|
|
+ <view class="content-box">
|
|
|
+ <text>当前剩余点数:</text>
|
|
|
+ <text>{{ checkResearchList.CompanyPoints }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="content-box">
|
|
|
+ <text>本次会议扣除点数:</text>
|
|
|
+ <text>{{ checkResearchList.ActivityPoints }}</text>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+ </u-modal>
|
|
|
+ <u-modal
|
|
|
+ v-model="show"
|
|
|
+ :show-title="false"
|
|
|
+ confirm-text="知道了"
|
|
|
+ :content-style="{ fontSize: '32rpx' }"
|
|
|
+ :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
|
|
|
+ :confirm-style="{ fontWeight: '700' }"
|
|
|
+ >
|
|
|
+ <view class="slot-content slot-content-text">
|
|
|
+ <rich-text :nodes="TextContent"></rich-text>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
</view>
|
|
@@ -43,24 +70,71 @@ import { User, activity, FreeButton } from "@/config/api.js";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- content: "该活动已截止报名若想参加,请联系对口销售",
|
|
|
+ content: "该活动已截止报名<br />若想参加,请联系对口销售",
|
|
|
type: 3,
|
|
|
inputVal: "",
|
|
|
+ show: false,
|
|
|
+ TextContent:
|
|
|
+ "5万/年含无限量调研纪要查阅以及15次公开专家访谈或30次重点公司、专家小范围交流;<br /><br />10万/年含无限量调研纪要查阅以及40次公开专家访谈或80次重点公司、专家小范围交流或20次私享专家一对一",
|
|
|
};
|
|
|
},
|
|
|
props: {
|
|
|
isResearchModalShow: {
|
|
|
default: false,
|
|
|
- type: false,
|
|
|
+ type: Boolean,
|
|
|
+ },
|
|
|
+ checkResearchList: {
|
|
|
+ default: {},
|
|
|
+ type: Object,
|
|
|
+ },
|
|
|
+ jurisdictionList: {
|
|
|
+ default: {},
|
|
|
+ type: Object,
|
|
|
},
|
|
|
},
|
|
|
watch: {},
|
|
|
- computed: {},
|
|
|
+ computed: {
|
|
|
+ isShowView() {
|
|
|
+ let list = this.checkResearchList;
|
|
|
+ let isNum = !list.CheckPermission || !list.CheckPoints ? true : false;
|
|
|
+ return isNum;
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
- cancelModal() {},
|
|
|
- confirmModal() {
|
|
|
+ cancelModal() {
|
|
|
this.$emit("update:isResearchModalShow", false);
|
|
|
- console.log(this.inputVal);
|
|
|
+ this.$emit("update:checkResearchList", {});
|
|
|
+ },
|
|
|
+ promptTextHandler() {
|
|
|
+ this.cancelModal();
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.show = true;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ async confirmModal() {
|
|
|
+ if (!this.checkResearchList.CheckPermission || !this.checkResearchList.CheckTime || !this.checkResearchList.CheckPoints || !this.checkResearchList.CheckEmail) {
|
|
|
+ this.cancelModal();
|
|
|
+ return;
|
|
|
+ } else if (!this.checkResearchList.CheckEmail) {
|
|
|
+ if (!this.inputVal)
|
|
|
+ return uni.showToast({
|
|
|
+ title: "邮箱不能为空",
|
|
|
+ icon: "none",
|
|
|
+ duration: 2000,
|
|
|
+ });
|
|
|
+ const res = activity.activityEmailBinding({
|
|
|
+ Email: this.inputVal,
|
|
|
+ });
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ this.$emit("myIsApplyHandler", this.jurisdictionList, this.checkResearchList.childrenType);
|
|
|
+ }
|
|
|
+ this.cancelModal();
|
|
|
+ return;
|
|
|
+ } else if (this.checkResearchList.CheckPoints) {
|
|
|
+ this.$emit("myIsApplyHandler", this.jurisdictionList, this.checkResearchList.childrenType);
|
|
|
+ this.cancelModal();
|
|
|
+ return;
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -97,6 +171,11 @@ export default {
|
|
|
padding-left: 30rpx;
|
|
|
}
|
|
|
}
|
|
|
+ .txt-check {
|
|
|
+ text {
|
|
|
+ margin-left: 8rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.slot-content {
|
|
|
width: 100%;
|
|
@@ -106,7 +185,9 @@ export default {
|
|
|
color: #0f1826;
|
|
|
line-height: 48rpx;
|
|
|
}
|
|
|
-
|
|
|
+.slot-content-text {
|
|
|
+ text-align: left;
|
|
|
+}
|
|
|
.seller-mobile {
|
|
|
display: inline-block;
|
|
|
color: #2979ff;
|