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

feat: 保险流程优化

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