sujectThree.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div class="container">
  3. <div class="open" v-html="wxHtml0"></div>
  4. <div class="open" v-html="wxHtml1"></div>
  5. <!-- <van-button class="my-button" type="primary">前往灯光模拟</van-button>
  6. <van-button class="my-button" type="primary">前往观看视频</van-button> -->
  7. </div>
  8. </template>
  9. <script setup>
  10. import { ref } from "vue";
  11. let sc = "script";
  12. let sty = "style";
  13. let wxHtml0 = ref(` <wx-open-launch-weapp style="display: block;text-align:center;height:48px;border: none;z-index:9999;opacity:1" id="launch-btn" username="gh_a994fd2f498e" path="pages/lightMock/index.html?living_code=LIVING_CODE">
  14. <${sc} v-is="'script'" type="text/wxtag-template">
  15. <${sty} v-is="'style'">.openbtn{background-color:#1989fa;color:#fff;width:75%;margin:0 auto;height:40px;line-height:40px;text-align:center;}</${sty}>
  16. <div class="openbtn"><span >前往灯光模拟</span></div>
  17. </${sc}>
  18. </wx-open-launch-weapp>`);
  19. let wxHtml1 = ref(` <wx-open-launch-weapp style="display: block;text-align:center;height:48px;border: none;z-index:9999;opacity:1" id="launch-btn" username="gh_a994fd2f498e" path="pages/carVideo/index.html?living_code=LIVING_CODE">
  20. <${sc} v-is="'script'" type="text/wxtag-template">
  21. <${sty} v-is="'style'">.openbtn{background-color:#1989fa;color:#fff;width:75%;margin:0 auto;height:40px;line-height:40px;text-align:center;}</${sty}>
  22. <div class="openbtn"><span >前往观看视频</span></div>
  23. </${sc}>
  24. </wx-open-launch-weapp>`);
  25. </script>
  26. <style lang="scss" scoped>
  27. .container {
  28. width: 100%;
  29. display: flex;
  30. justify-content: center;
  31. position: relative;
  32. flex-wrap: wrap;
  33. }
  34. .open{
  35. width: 690px;
  36. margin: 0 auto;
  37. margin-top: 25px;
  38. }
  39. .my-button {
  40. margin-top: 25px;
  41. width: 75%;
  42. }
  43. </style>