168 lines
3.7 KiB
Vue
168 lines
3.7 KiB
Vue
<template>
|
|
<view class="answer-content">
|
|
<view class="talking-cont">
|
|
<MarkdownPreview :mdString="mdText"/>
|
|
</view>
|
|
<view class="btns-cont" v-if="false">
|
|
<view class="replay-btn" @click="reAnswer">
|
|
<image class="icon" src="@/static/images/dialog/answer-restart.png" style="width: 100%;height: 100%;"></image>
|
|
</view>
|
|
<view class="replay-btn" @click="stopAnswer">
|
|
<image class="icon" src="@/static/images/dialog/answer-stop.png" style="width: 100%;height: 100%;"></image>
|
|
</view>
|
|
<!-- <view class="replay-btn" @click="zanAnswer">
|
|
<image
|
|
class="icon"
|
|
src="@/static/images/dialog/answer-zan.png"
|
|
style="width: 100%;height: 100%;"
|
|
></image>
|
|
<image
|
|
class="icon"
|
|
src="@/static/images/dialog/answer-yizan.png"
|
|
style="width: 100%;height: 100%;"
|
|
></image>
|
|
</view>
|
|
<view class="play-btn">
|
|
<image
|
|
class="icon"
|
|
src="@/static/images/dialog/answer-fankui.png"
|
|
style="width: 100%;height: 100%;"
|
|
></image>
|
|
<image
|
|
class="icon"
|
|
src="@/static/images/dialog/answer-yifankui.png"
|
|
style="width: 100%;height: 100%;"
|
|
></image>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { onMounted, computed, ref } from 'vue'
|
|
import MarkdownPreview from '@/components/markdown-preview/markdown-preview.vue';
|
|
|
|
const emit = defineEmits(['handleEvents'])
|
|
const props = defineProps({
|
|
dataInfo: {
|
|
default: () => ({}),
|
|
type: Object
|
|
},
|
|
})
|
|
|
|
const mdText = computed(() => props.dataInfo?.talkingText)
|
|
|
|
const reAnswer = () => {
|
|
emit('handleEvents', 'reAnswer')
|
|
}
|
|
const stopAnswer = () => {
|
|
emit('handleEvents', 'stop')
|
|
}
|
|
const zanAnswer = () => {
|
|
emit('handleEvents', 'great')
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.answer-content{
|
|
background-color: #fff;
|
|
padding: 20rpx;
|
|
border-radius: 15rpx;
|
|
padding-bottom: 10rpx;
|
|
position: relative;
|
|
float: left;
|
|
.talking-cont{
|
|
padding-bottom: 20rpx;
|
|
}
|
|
.btns-cont{
|
|
overflow: hidden;
|
|
border-top: 3rpx solid #eee;
|
|
.replay-btn{
|
|
float: left;
|
|
width: 46rpx;
|
|
height: 46rpx;
|
|
overflow: hidden;
|
|
margin-right: 16rpx;
|
|
margin-top: 25rpx;
|
|
}
|
|
.play-btn{
|
|
float: left;
|
|
width: 46rpx;
|
|
height: 46rpx;
|
|
overflow: hidden;
|
|
margin-right: 16rpx;
|
|
margin-top: 25rpx;
|
|
}
|
|
.next-learn-btn{
|
|
float: left;
|
|
padding: 0 60rpx 0 20rpx;
|
|
height: 62rpx;
|
|
line-height: 62rpx;
|
|
font-size: 30rpx;
|
|
background-color: #06f;
|
|
color: #fff;
|
|
border-radius: 8rpx;
|
|
margin-top: 16rpx;
|
|
margin-right: 16rpx;
|
|
position: relative;
|
|
&.replay-study-btn{
|
|
float: right;
|
|
}
|
|
&.restart{
|
|
background-color: #eaf2ff;
|
|
color: #06f;
|
|
}
|
|
.icon-iamge{
|
|
width: 25rpx;
|
|
height: 25rpx;
|
|
position: absolute;
|
|
right: 20rpx;
|
|
top: 50%;
|
|
margin-top: -12rpx;
|
|
}
|
|
}
|
|
.replay-learn-btn{
|
|
float: left;
|
|
padding: 0 60rpx 0 20rpx;
|
|
height: 62rpx;
|
|
line-height: 62rpx;
|
|
font-size: 30rpx;
|
|
color: #06f;
|
|
background-color: #eaf2ff;
|
|
border-radius: 8rpx;
|
|
margin-top: 16rpx;
|
|
margin-right: 16rpx;
|
|
position: relative;
|
|
.icon-iamge{
|
|
width: 25rpx;
|
|
height: 25rpx;
|
|
position: absolute;
|
|
right: 20rpx;
|
|
top: 50%;
|
|
margin-top: -12rpx;
|
|
}
|
|
}
|
|
.next-btn{
|
|
float: right;
|
|
padding: 0 60rpx 0 20rpx;
|
|
height: 62rpx;
|
|
line-height: 62rpx;
|
|
font-size: 30rpx;
|
|
background-color: #06f;
|
|
color: #fff;
|
|
border-radius: 8rpx;
|
|
margin-top: 16rpx;
|
|
position: relative;
|
|
.icon-iamge{
|
|
width: 25rpx;
|
|
height: 25rpx;
|
|
position: absolute;
|
|
right: 20rpx;
|
|
top: 50%;
|
|
margin-top: -12rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
</style> |