index.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <view>
  3. <view class="ceng" @click="hidePop"></view>
  4. <view class="open-popup">
  5. <image :src="picUrlss+'scrm/xszs_pop.png'" class="open-pop-bg"></image>
  6. <view class="open-pop-c">
  7. <view>开通线索助手</view>
  8. <text>录入线索领好礼,商机确认100%领红包</text>
  9. <view class="open-pop-btn">授权开通</view>
  10. </view>
  11. <image src="../../static/pages/images/close2.png" class="open-pop-close" @click="hidePop"></image>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. //index.js
  17. //获取应用实例
  18. const app = getApp();
  19. const req = require('../../utils/request.js');
  20. const api = require('../../utils/api.js');
  21. export default {
  22. data() {
  23. return {
  24. picUrlss: req.public.picUrls,
  25. };
  26. },
  27. methods: {
  28. hidePop(){
  29. this.$emit('hideOpenPop')
  30. }
  31. },
  32. mounted() {
  33. const systemInfo = uni.getSystemInfoSync();
  34. // px转换到rpx的比例
  35. let pxToRpxScale = 750 / systemInfo.windowWidth;
  36. let systems = {
  37. ktxStatusHeight: systemInfo.statusBarHeight * pxToRpxScale, // 状态栏的高度
  38. navigationHeight: 44 * pxToRpxScale // 导航栏的高度
  39. };
  40. systems.barHeight = systems.ktxStatusHeight + systems.navigationHeight;
  41. this.systems = systems;
  42. },
  43. };
  44. </script>
  45. <style>
  46. @import './index.css';
  47. </style>