提交 44e609c1 authored 作者: zhengyadong's avatar zhengyadong

修改

上级 6f8c3c84
......@@ -55,6 +55,7 @@
display: flex;
justify-content: center;
background-size: cover;
z-index: 999999;
h1{
font-family: my-font;
color: #fff;
......
<template>
<div class="type-single">
<div v-html="dataObj.content"></div>
<div v-html="dataObj.filterContent"></div>
<div v-if="dataObj.content" v-html="dataObj.content"></div>
<div v-else v-html="dataObj.filterContent"></div>
<div class="answer-single">
<div v-for="(item,index) in singleType" :key="index" :class="item.class">
<div class="option-item" v-if="dataObj[item.name]" :class="{'option-right':(currentStatus[item.name] ==1||currentStatus[item.name] ==3)||activeName ==item.value,
......
<template>
<div class="type-text">
<div class="answer-cnt" >
<div class="answer-cnt" :style="{'paddingBottom':(open ? autoHeight:'.8rem')}" >
<div class="detail-cnt" v-html="dataObj.content"></div>
<!-- <video class="video" v-if="dataObj.video" :src="videoUrl(dataObj.video)" controls="controls"
x5-playsinline="" playsinline="true" webkit-playsinline="true" x-webkit-airplay="true"
......@@ -9,14 +9,14 @@
<div id="mse"></div>
</div>
</div>
<div class="answer-text" :style="{'height':(open ? '4rem':'1rem')}">
<div class="answer-text" :style="{'height':(open ? autoHeight:'.8rem')}">
<div class="icon-wrap" >
<div class="icon-wrap_inner" @click="open = !open">
<img v-if="open" src="@/assets/img/practice/p-down.png" alt="">
<img v-if="!open" src="@/assets/img/practice/p-up.png" alt="">
</div>
</div>
<div class="slot-con" id="case" :style="{'height':(open ? '3.75rem':'.75rem')}">
<div class="slot-con" id="case" :style="{'height':(open ? slotHeight:'.55rem')}">
<slot></slot>
</div>
</div>
......@@ -42,6 +42,7 @@ export default {
getVideo:getVideo,
open:false,
autoHeight:null,
slotHeight:null,
playerConfig:{
id: "mse", // 挂载节点id
playsinline: true, // 是否在线播放
......@@ -55,7 +56,8 @@ export default {
}
},
created() {
this.autoHeight = this.autoHeigh(3.5)
this.autoHeight = this.autoHeigh(3)
this.slotHeight = this.autoHeigh(3.25)
},
mounted() {
getFilePathAPI(this.dataObj.video).then(res=>{
......@@ -89,17 +91,12 @@ export default {
position: relative;
border-radius: .1rem .1rem 0 0 ;
background: #fff;
padding: .185rem 0 0;
margin-bottom: .3rem;
padding: .185rem 0 .3rem;
// margin-bottom: .3rem;
}
.answer-cnt{
// height: 2.5rem;
// overflow:scroll;
padding: 0 .15rem .2rem;
// font-size: .16rem;
// line-height: .24rem;
margin-bottom: .8rem;
.detail-cnt{
// font-size: .3rem;
margin-bottom: .15rem;
......
......@@ -44,6 +44,11 @@ export default {
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
.type-title{
position:fixed;
top: .44rem;
left: 0;
right: 0;
z-index: 999;
padding: .06rem .15rem 0 ;
height: .45rem;
line-height: .45rem;
......
......@@ -67,7 +67,35 @@ export default {
};
},
created() {
this.getList()
var twoSum = function(nums, target) {
console.log(nums, target);
var list = []
var a = []
for(let i = 0;i < nums.length; i ++){
console.log(111);
console.log(a.length,111);
// if(a.length == 0){
list = []
let temp = target - nums[i]
list.push(i)
for(let j = 0;j < nums.length; j ++){
if(nums[j] == temp&&j != i){
list.push(j)
a = list
}
}
// }
}
console.log(a);
return a
};
twoSum([2,7,11,15],10)
// this.getList()
},
watch: {},
methods: {
......
......@@ -629,7 +629,9 @@ export default {
.practice-item{
overflow:scroll;
background: #f2f2f2;
padding-top: .44rem;
// padding-top: .44rem;
padding-top: .89rem;
}
}
.dialog-cnt{
......
......@@ -175,6 +175,8 @@ export default {
};
},
created() {
console.log(111111);
let query = this.$route.query
if(query&&query.id){
this.id = query.id
......@@ -189,7 +191,10 @@ export default {
watch: {},
methods: {
backTo(){
this.$router.push({name:this.viewType[this.type].routerName})
console.log(111);
this.$router.go(-1)
// this.$router.push({name:this.viewType[this.type].routerName})
},
qusType(list,objType){ // 判断类型是否在数组中
let status = false
......@@ -401,7 +406,8 @@ export default {
.practice-item{
overflow:scroll;
background: #f2f2f2;
padding-top: .44rem;
// padding-top: .44rem;
padding-top: .89rem;
}
}
.dialog-cnt{
......
......@@ -501,7 +501,8 @@ export default {
// background: #F2F2F2;
.practice-item{
background: #f2f2f2;
padding-top: .44rem;
// padding-top: .44rem;
padding-top: .89rem;
}
}
.dialog-cnt{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论