|
@@ -0,0 +1,256 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <!-- -->
|
|
|
+ <div class="first" v-if="form.preTemplate == 1">
|
|
|
+ <h2>{{ form.roomTitle }}</h2>
|
|
|
+ <p class="teacher">主讲人:{{ form.teacherName }}</p>
|
|
|
+ <img src="../images/icon1.png" class="icon" alt="" />
|
|
|
+ <div class="preCore">
|
|
|
+ <img src="../images/start.png" class="start" alt="" />
|
|
|
+ <p class="title">开播时间</p>
|
|
|
+ <p class="time">{{ form.liveStartTime }}</p>
|
|
|
+ <p class="title">直播内容</p>
|
|
|
+ <div class="content">
|
|
|
+ <img class="pre" src="../images/icon5.png" alt="" />
|
|
|
+ <img class="end" src="../images/icon4.png" alt="" />
|
|
|
+ {{ form.liveRemark }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="bottom">
|
|
|
+ <img class="logo" src="../images/logo.png" alt="" />
|
|
|
+ <div class="code">
|
|
|
+ <div>
|
|
|
+ <vue-qr :text="url" style="width: 100%" :margin="0"></vue-qr>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- -->
|
|
|
+ <div class="second" v-if="form.preTemplate == 2">
|
|
|
+ <h2>{{ form.roomTitle }}</h2>
|
|
|
+ <p class="teacher">主讲人:{{ form.teacherName }}</p>
|
|
|
+ <img src="../images/icon2.png" class="icon" alt="" />
|
|
|
+ <div class="preCore">
|
|
|
+ <img src="../images/start.png" class="start" alt="" />
|
|
|
+ <p class="title">开播时间</p>
|
|
|
+ <p class="time">{{ form.liveStartTime }}</p>
|
|
|
+ <p class="title">直播内容</p>
|
|
|
+ <div class="content">
|
|
|
+ <img class="pre" src="../images/icon5.png" alt="" />
|
|
|
+ <img class="end" src="../images/icon4.png" alt="" />
|
|
|
+ {{ form.liveRemark }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="bottom">
|
|
|
+ <img class="logo" src="../images/logo.png" alt="" />
|
|
|
+ <div class="code">
|
|
|
+ <div>
|
|
|
+ <vue-qr :text="url" style="width: 100%" :margin="0"></vue-qr>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="third" v-if="form.preTemplate == 3">
|
|
|
+ <h2>{{ form.roomTitle }}</h2>
|
|
|
+ <p class="teacher">主讲人:{{ form.teacherName }}</p>
|
|
|
+ <img src="../images/icon3.png" class="icon" alt="" />
|
|
|
+ <div class="preCore">
|
|
|
+ <img src="../images/start.png" class="start" alt="" />
|
|
|
+ <p class="title">开播时间</p>
|
|
|
+ <p class="time">{{ form.liveStartTime }}</p>
|
|
|
+ <p class="title">直播内容</p>
|
|
|
+ <div class="content">
|
|
|
+ <img class="pre" src="../images/icon5.png" alt="" />
|
|
|
+ <img class="end" src="../images/icon4.png" alt="" />
|
|
|
+ {{ form.liveRemark }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="bottom">
|
|
|
+ <img class="logo" src="../images/logo.png" alt="" />
|
|
|
+ <div class="code">
|
|
|
+ <div>
|
|
|
+ <vue-qr :text="url" style="width: 100%" :margin="0"></vue-qr>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import VueQr from "vue-qr";
|
|
|
+export default {
|
|
|
+ components: { VueQr },
|
|
|
+ props: ["form"],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ url: "http://www.baidu.com",
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ type() {
|
|
|
+ if (form.isSaveUserInfo == 2) {
|
|
|
+ return "second";
|
|
|
+ } else if (form.isSaveUserInfo == 3) {
|
|
|
+ return "third";
|
|
|
+ } else {
|
|
|
+ return "first";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.third {
|
|
|
+ position: relative;
|
|
|
+ background: linear-gradient(135deg, #8d8cff 0%, #9664ec 100%);
|
|
|
+ padding: 43px 20px 54px;
|
|
|
+ h2 {
|
|
|
+ width: 254px;
|
|
|
+ font-size: 30px;
|
|
|
+ font-family: PingFangSC-Semibold, PingFang SC;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 40px;
|
|
|
+ text-shadow: 0px 2px 4px #9366ee;
|
|
|
+ }
|
|
|
+ .preCore {
|
|
|
+ .title {
|
|
|
+ background: #fa912c;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.second {
|
|
|
+ position: relative;
|
|
|
+ background: linear-gradient(135deg, #ff9d9d 0%, #ff6d6d 100%);
|
|
|
+ padding: 43px 20px 54px;
|
|
|
+ h2 {
|
|
|
+ width: 254px;
|
|
|
+ font-size: 30px;
|
|
|
+ font-family: PingFangSC-Semibold, PingFang SC;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 40px;
|
|
|
+ text-shadow: 0px 2px 4px #ff5f5f;
|
|
|
+ }
|
|
|
+ .preCore {
|
|
|
+ .title {
|
|
|
+ background: #fa502c;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.first {
|
|
|
+ position: relative;
|
|
|
+ background: linear-gradient(135deg, #4f8dff 0%, #0055ee 100%);
|
|
|
+ padding: 43px 20px 54px;
|
|
|
+ h2 {
|
|
|
+ width: 254px;
|
|
|
+ font-size: 30px;
|
|
|
+ font-family: PingFangSC-Semibold, PingFang SC;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 40px;
|
|
|
+ text-shadow: 0px 2px 4px #1054f1;
|
|
|
+ }
|
|
|
+}
|
|
|
+.icon {
|
|
|
+ width: 231px;
|
|
|
+ height: 223px;
|
|
|
+ position: absolute;
|
|
|
+ right: 3px;
|
|
|
+ top: 36px;
|
|
|
+}
|
|
|
+
|
|
|
+.teacher {
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 20px;
|
|
|
+ margin-top: 15px;
|
|
|
+ margin-bottom: 67px;
|
|
|
+}
|
|
|
+.preCore {
|
|
|
+ position: relative;
|
|
|
+ z-index: 100;
|
|
|
+ padding: 12px;
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 11px;
|
|
|
+ border-image: linear-gradient(
|
|
|
+ 180deg,
|
|
|
+ rgba(255, 255, 255, 1),
|
|
|
+ rgba(255, 255, 255, 1)
|
|
|
+ )
|
|
|
+ 1 1;
|
|
|
+ .start {
|
|
|
+ width: 50px;
|
|
|
+ height: 59px;
|
|
|
+ position: absolute;
|
|
|
+ top: 24px;
|
|
|
+ right: -11px;
|
|
|
+ }
|
|
|
+ .title {
|
|
|
+ width: 85px;
|
|
|
+ background: #faab2c;
|
|
|
+ border-radius: 7px;
|
|
|
+ padding: 2px;
|
|
|
+ font-size: 18px;
|
|
|
+ font-family: PingFangSC-Semibold, PingFang SC;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 25px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .time {
|
|
|
+ margin: 15px 0;
|
|
|
+ font-size: 18px;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 25px;
|
|
|
+ margin-left: 4px;
|
|
|
+ }
|
|
|
+ .content {
|
|
|
+ margin-top: 20px;
|
|
|
+ position: relative;
|
|
|
+ background: linear-gradient(49deg, #fff8e2 0%, #fff1d5 100%);
|
|
|
+ border-radius: 8px;
|
|
|
+ padding: 20px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 25px;
|
|
|
+ margin-bottom: 12px;
|
|
|
+ .pre {
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ position: absolute;
|
|
|
+ left: -3px;
|
|
|
+ top: -4px;
|
|
|
+ }
|
|
|
+ .end {
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ position: absolute;
|
|
|
+ bottom: -4px;
|
|
|
+ right: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.bottom {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin: 30px 8px 0;
|
|
|
+ .logo {
|
|
|
+ width: 202px;
|
|
|
+ height: 84px;
|
|
|
+ }
|
|
|
+ .code {
|
|
|
+ padding: 2px;
|
|
|
+ width: 80px;
|
|
|
+ height: 80px;
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|