shutDownWebview.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="s_container df aife jcc" v-if='bShowWebview' @click="onClickShutWebview">开始测验
  3. <!-- <view class="shut_down df aic jcc" @click="onClickShutWebview">开始测验</view> -->
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. bShowWebview: false,
  11. }
  12. },
  13. methods: {
  14. onClickShutWebview() {
  15. this.bShowWebview = false;
  16. this.$emit('onHideWebview');
  17. this.$emit("onClick_KSKC");
  18. },
  19. onClickShow() {
  20. this.bShowWebview = true;
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. .s_container {
  27. // position: fixed;
  28. position: absolute;
  29. width: px2vw(200);
  30. height: px2vw(58);
  31. background: #EA252C;
  32. border-radius: px2vw(8);
  33. font-size: px2vw(24);
  34. color: #FFFFFF;
  35. line-height: px2vw(31);
  36. margin-bottom: px2vw(63);
  37. z-index: 1;
  38. // border:5px solid red;
  39. display: flex;
  40. text-align: center;
  41. align-items: center;
  42. justify-content: center;
  43. top: 90%;
  44. left: 50%;
  45. transform: translate(-50%, -50%);
  46. }
  47. .shut_down {
  48. // margin-top: 2%;
  49. // margin-right: 2%;
  50. // width: px2vw(78);
  51. // height: px2vw(58);
  52. // background: #ffffff;
  53. // border-radius: px2vw(8);
  54. // display: flex;
  55. // text-align: center;
  56. // align-items: center;
  57. // justify-content: center;
  58. width: px2vw(200);
  59. height: px2vw(58);
  60. background: #EA252C;
  61. border-radius: px2vw(8);
  62. font-size: px2vw(24);
  63. color: #FFFFFF;
  64. line-height: px2vw(31);
  65. margin-bottom: px2vw(63);
  66. }
  67. </style>