提交 2cf83f23 编写于 作者: xinglee23's avatar xinglee23

feat: 保险流程优化

上级 7ff14b66
......@@ -63,3 +63,12 @@ export const getActivityInfo = (params) => {
withCredentials: true,
});
};
export const insuranceStatusCheck = (params) => {
return request({
url: '/tis/insurance/merchant/check/projectOpened',
method: 'get',
params,
withCredentials: true,
});
};
......@@ -32,7 +32,8 @@
<div class="fixed-btn">
<div
class="wx-btn"
v-if="picaWechat != 'wechat'"
v-if="picaWechat !== 'wechat' || hideWeApp"
@click="handleClick"
>
<span>领取权益</span>
</div>
......@@ -72,7 +73,11 @@
</template>
<script>
import { getBanner, getRequestParm } from '@/api/entitlement';
import {
getBanner,
getRequestParm,
insuranceStatusCheck,
} from '@/api/entitlement';
import { uploadPointData } from '@/api/question';
import { isWeixin, isMobile } from '@/utils/index';
......@@ -101,6 +106,7 @@ export default {
descList: [],
descBottomList: [],
},
hideWeApp: false,
};
},
created() {
......@@ -166,6 +172,8 @@ export default {
}
}
this.handleInsuranceStatusCheck(projectEquityNo);
this.getBanner(7, rightsNo || projectEquityNo);
this.getBanner2(36, rightsNo || projectEquityNo);
......@@ -190,6 +198,16 @@ export default {
);
},
methods: {
handleInsuranceStatusCheck(projectEquityNo) {
insuranceStatusCheck({ projectEquityNo }).then((res) => {
if (res.code === '000000') {
this.hideWeApp = res.data === 0 ? true : false;
if (this.hideWeApp) {
return this.$toast('活动已结束');
}
}
});
},
getBanner(pageType, yunOrderNo) {
this.$loading.show();
getBanner(pageType, yunOrderNo).then((res) => {
......@@ -219,6 +237,11 @@ export default {
console.log('index', index);
window.location.href = this.staticINFO2.descBottomList[index];
},
handleClick() {
if (this.hideWeApp) {
this.$toast('活动已结束');
}
},
},
};
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册