| | |
| | | }, |
| | | // 删除元素 |
| | | del() { |
| | | debugger |
| | | let delEle = {}; |
| | | switch (this.delCursor.type) { |
| | | case "1": |
| | |
| | | _this.type = "0"; |
| | | _this.delCursor.type = "2"; |
| | | _this.delCursor.index = i; |
| | | debugger |
| | | _this.delCursor.remarksName = v.name; |
| | | _this.delCursor.id = v.id; |
| | | // console.log("当前选中元素:",_this.delCursor) |
| | |
| | | width = typeof width !== "undefined" ? width : 1; |
| | | // color = typeof color !== 'undefined' ? color : 'yellow' |
| | | // 计算各角度和对应的P2,P3坐标 |
| | | debugger |
| | | let angle = (Math.atan2(fromY - toY, fromX - toX) * 180) / Math.PI; |
| | | let angle1 = ((angle + theta) * Math.PI) / 180; |
| | | let angle2 = ((angle - theta) * Math.PI) / 180; |
| | |
| | | </div> |
| | | <div |
| | | class="s-card-left-isCompare-div compareScore111" |
| | | style |
| | | :style="{ |
| | | bottom: getBottom(), |
| | | bottom: '0', |
| | | background: getUrl(data.baseInfo[initialIndex].bwType) |
| | | }" |
| | | > |
| | |
| | | |
| | | export default { |
| | | mounted() { |
| | | window.addEventListener("resize", this.watchWindow); |
| | | //window.addEventListener("resize", this.watchWindow); |
| | | window.addEventListener("resize",this.getBottom) |
| | | }, |
| | | props: { |
| | | data: { |
| | |
| | | }, |
| | | methods: { |
| | | getBottom() { |
| | | // let imgDom = document.getElementById(str) |
| | | this.$nextTick(() => { |
| | | let imgDom = this.$refs.firstImg |
| | | if (imgDom) { |
| | | let num = (imgDom.offsetHeight - imgDom.offsetWidth) / 2 |
| | | return `${num}px`; |
| | | } |
| | | return `4px`; |
| | | }) |
| | | }, |
| | | getUrl(bwtype) { |
| | | if (bwtype == 1) { |
| | |
| | | line-height: 1.25rem; |
| | | } |
| | | .box-card { |
| | | |
| | | cursor: default; |
| | | .el-carousel__arrow { |
| | | height: 20px; |
| | |
| | | .card-img-box { |
| | | box-sizing: border-box; |
| | | width: 100%; |
| | | height: 100%; |
| | | position: relative; |
| | | overflow: hidden; |
| | | top: 50%; |
| | | transform: translateY(-50%); |
| | | .card-img-box-compear { |
| | | height: 100%; |
| | | width: 100%; |
| | | display: flex; |
| | | .card-img-box-compear-left { |
| | |
| | | justify-content: center; |
| | | align-items: Center; |
| | | overflow: hidden; |
| | | width: 100%; |
| | | flex: 1; |
| | | height: 100%; |
| | | } |
| | | .el-carousel{ |
| | | flex: 1; |
| | | width: auto; |
| | | height: auto!important; |
| | | } |
| | | .el-carousel__item { |
| | | display: flex; |
| | |
| | | } |
| | | } |
| | | img { |
| | | display: block; |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: contain; |
| | | //height: 100%; |
| | | //object-fit: contain; |
| | | } |
| | | .s-card-left-isCompare-div { |
| | | width: 60px; |