|
@@ -0,0 +1,320 @@
|
|
|
+<!--
|
|
|
+* @FileDescription: 选中弹窗
|
|
|
+* @Author: 黄琪勇
|
|
|
+* @Date:2024-03-22 15:21:44
|
|
|
+-->
|
|
|
+<template>
|
|
|
+ <div class="chooseDialog">
|
|
|
+ <div class="close" @click="close">
|
|
|
+ <img src="@/img/useDialogConfirm/close.png" />
|
|
|
+ </div>
|
|
|
+ <div class="chooseCon">
|
|
|
+ <img class="imgMid" src="@/img/cloudTextbooks/shu.png" />
|
|
|
+ <div class="chooseBox">
|
|
|
+ <div class="leftOperate">
|
|
|
+ <img src="@/img/cloudTextbooks/left.png" />
|
|
|
+ </div>
|
|
|
+ <div class="chooseList"></div>
|
|
|
+ </div>
|
|
|
+ <div class="chooseBox">
|
|
|
+ <div class="rightOperate">
|
|
|
+ <img src="@/img/cloudTextbooks/right.png" />
|
|
|
+ </div>
|
|
|
+ <div class="chooseList">
|
|
|
+ <div class="listItem">
|
|
|
+ <div class="img">
|
|
|
+ <template v-if="false">
|
|
|
+ <img src="@/img/cloudTextbooks/bf.png" />
|
|
|
+ <img src="@/img/cloudTextbooks/xm.png" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img src="@/img/cloudTextbooks/jy.png" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="nameCon">
|
|
|
+ <div class="name">第一课</div>
|
|
|
+ <div class="text">已使用5次</div>
|
|
|
+ </div>
|
|
|
+ <div class="play">查看</div>
|
|
|
+ </div>
|
|
|
+ <div class="listItem">
|
|
|
+ <div class="img">
|
|
|
+ <template v-if="false">
|
|
|
+ <img src="@/img/cloudTextbooks/bf.png" />
|
|
|
+ <img src="@/img/cloudTextbooks/xm.png" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img src="@/img/cloudTextbooks/jy.png" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="nameCon">
|
|
|
+ <div class="name">第一课</div>
|
|
|
+ <div class="text">已使用5次</div>
|
|
|
+ </div>
|
|
|
+ <div class="play disabled">查看</div>
|
|
|
+ </div>
|
|
|
+ <div class="listItem">
|
|
|
+ <div class="img">
|
|
|
+ <template v-if="false">
|
|
|
+ <img src="@/img/cloudTextbooks/bf.png" />
|
|
|
+ <img src="@/img/cloudTextbooks/xm.png" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img src="@/img/cloudTextbooks/jy.png" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="nameCon">
|
|
|
+ <div class="name">第一课</div>
|
|
|
+ <div class="text">已使用5次</div>
|
|
|
+ </div>
|
|
|
+ <div class="play">查看</div>
|
|
|
+ </div>
|
|
|
+ <div class="listItem">
|
|
|
+ <div class="img">
|
|
|
+ <template v-if="false">
|
|
|
+ <img src="@/img/cloudTextbooks/bf.png" />
|
|
|
+ <img src="@/img/cloudTextbooks/xm.png" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img src="@/img/cloudTextbooks/jy.png" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="nameCon">
|
|
|
+ <div class="name">第一课</div>
|
|
|
+ <div class="text">已使用5次</div>
|
|
|
+ </div>
|
|
|
+ <div class="play">查看</div>
|
|
|
+ </div>
|
|
|
+ <div class="listItem">
|
|
|
+ <div class="img">
|
|
|
+ <template v-if="false">
|
|
|
+ <img src="@/img/cloudTextbooks/bf.png" />
|
|
|
+ <img src="@/img/cloudTextbooks/xm.png" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img src="@/img/cloudTextbooks/jy.png" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="nameCon">
|
|
|
+ <div class="name">第一课</div>
|
|
|
+ <div class="text">已使用5次</div>
|
|
|
+ </div>
|
|
|
+ <div class="play">查看</div>
|
|
|
+ </div>
|
|
|
+ <div class="listItem">
|
|
|
+ <div class="img">
|
|
|
+ <template v-if="false">
|
|
|
+ <img src="@/img/cloudTextbooks/bf.png" />
|
|
|
+ <img src="@/img/cloudTextbooks/xm.png" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img src="@/img/cloudTextbooks/jy.png" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="nameCon">
|
|
|
+ <div class="name">第一课</div>
|
|
|
+ <div class="text">已使用5次</div>
|
|
|
+ </div>
|
|
|
+ <div class="play">查看</div>
|
|
|
+ </div>
|
|
|
+ <div class="listItem">
|
|
|
+ <div class="img">
|
|
|
+ <template v-if="false">
|
|
|
+ <img src="@/img/cloudTextbooks/bf.png" />
|
|
|
+ <img src="@/img/cloudTextbooks/xm.png" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img src="@/img/cloudTextbooks/jy.png" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="nameCon">
|
|
|
+ <div class="name">第一课</div>
|
|
|
+ <div class="text">已使用5次</div>
|
|
|
+ </div>
|
|
|
+ <div class="play">查看</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+const props = defineProps<{
|
|
|
+ modalData: {
|
|
|
+ id: number
|
|
|
+ }
|
|
|
+}>()
|
|
|
+
|
|
|
+const emits = defineEmits<{
|
|
|
+ (e: "onClose"): void
|
|
|
+}>()
|
|
|
+
|
|
|
+function close() {
|
|
|
+ emits("onClose")
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.chooseDialog {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ padding: 40px;
|
|
|
+ .close {
|
|
|
+ position: absolute;
|
|
|
+ top: -14px;
|
|
|
+ right: -16px;
|
|
|
+ width: 42px;
|
|
|
+ height: 44px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .chooseCon {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ position: relative;
|
|
|
+ .imgMid {
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ top: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ }
|
|
|
+ .chooseBox {
|
|
|
+ width: 50%;
|
|
|
+ height: 100%;
|
|
|
+ background: #f6d7c1;
|
|
|
+ box-shadow: 0px 2px 3px 0px #a05400;
|
|
|
+ border-radius: 17px;
|
|
|
+ padding: 5px;
|
|
|
+ position: relative;
|
|
|
+ &:nth-child(2) {
|
|
|
+ &:hover .leftOperate {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &:last-child {
|
|
|
+ margin-left: 10px;
|
|
|
+ &:hover .rightOperate {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .leftOperate,
|
|
|
+ .rightOperate {
|
|
|
+ width: 30px;
|
|
|
+ height: 68px;
|
|
|
+ background: #fffefb;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ transform: translate(0, -50%);
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ transition: opacity 0.28s;
|
|
|
+ opacity: 0;
|
|
|
+ &:hover {
|
|
|
+ background-color: #edeff0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .leftOperate {
|
|
|
+ left: -30px;
|
|
|
+ border-radius: 6px 0px 0px 6px;
|
|
|
+ }
|
|
|
+ .rightOperate {
|
|
|
+ right: -30px;
|
|
|
+ border-radius: 0px 6px 6px 0px;
|
|
|
+ }
|
|
|
+ .chooseList {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: #fdf7f0;
|
|
|
+ border-radius: 17px;
|
|
|
+ padding: 0 40px 0 30px;
|
|
|
+ overflow: hidden;
|
|
|
+ .listItem {
|
|
|
+ margin-top: 12px;
|
|
|
+ padding: 10px 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ border-bottom: 1px solid #eaeaea;
|
|
|
+ &:first-child {
|
|
|
+ margin-top: 32px;
|
|
|
+ }
|
|
|
+ &:last-child {
|
|
|
+ border-bottom: none;
|
|
|
+ }
|
|
|
+ .img {
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 35px;
|
|
|
+ height: 40%;
|
|
|
+ position: relative;
|
|
|
+ & > img:nth-child(1) {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ & > img:nth-child(2) {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ z-index: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .nameCon {
|
|
|
+ margin-left: 7px;
|
|
|
+ flex-grow: 1;
|
|
|
+ .name {
|
|
|
+ font-weight: 600;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #333333;
|
|
|
+ line-height: 22px;
|
|
|
+ }
|
|
|
+ .text {
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #777777;
|
|
|
+ line-height: 17px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .play {
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 64px;
|
|
|
+ height: 24px;
|
|
|
+ background: linear-gradient(180deg, #ffab71 0%, #ff6e45 100%);
|
|
|
+ border-radius: 12px;
|
|
|
+ line-height: 24px;
|
|
|
+ text-align: center;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #ffffff;
|
|
|
+ letter-spacing: 1px;
|
|
|
+ cursor: pointer;
|
|
|
+ &:hover {
|
|
|
+ opacity: $opacity-hover;
|
|
|
+ }
|
|
|
+ &.disabled {
|
|
|
+ background: linear-gradient(180deg, #d3d3d3 0%, #b5b5b5 100%);
|
|
|
+ cursor: not-allowed;
|
|
|
+ &:hover {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|
|
|
+<style lang="scss">
|
|
|
+.modalFrame.chooseDialog {
|
|
|
+ --modalFrameTitHeight: 0px;
|
|
|
+ .modalFrameTitle {
|
|
|
+ display: none !important;
|
|
|
+ }
|
|
|
+ .modalFrameBox {
|
|
|
+ background: url("@/img/cloudTextbooks/bg.png") no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ box-shadow: none;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|