Commit 1bc28396 authored by agping's avatar agping

表格修改

parent 5a18a30a
...@@ -45,7 +45,9 @@ ...@@ -45,7 +45,9 @@
<span style="line-height: 0.3rem; font-size: 0.28rem; font-family: PingFangSC-Regular; color: rgb(39, 39, 39);">(必填)弘扬一件八星级事迹 +10分</span> <span style="line-height: 0.3rem; font-size: 0.28rem; font-family: PingFangSC-Regular; color: rgb(39, 39, 39);">(必填)弘扬一件八星级事迹 +10分</span>
</div> </div>
<div> <div>
<textarea class="detail" placeholder="点击填写,选择5项描述" v-model="jiazhi" style="height:100px" @input="autoTextarea($event,100)"></textarea> <textarea class="detail detail-divL" placeholder="点击填写,选择5项描述" v-model="jiazhi" style="height:100px" @input="autoTextarea($event,100)"></textarea>
<!--可编辑div-->
<div class="detail-div" contenteditable="true" v-show="false">{{jiazhi}}</div>
</div> </div>
</div> </div>
<div style="margin-top:.3rem;"> <div style="margin-top:.3rem;">
...@@ -56,7 +58,9 @@ ...@@ -56,7 +58,9 @@
<span style="line-height: 0.3rem; font-size: 0.28rem; font-family: PingFangSC-Regular; color: rgb(39, 39, 39);">(选填)被感谢的人一件事迹 +10分</span> <span style="line-height: 0.3rem; font-size: 0.28rem; font-family: PingFangSC-Regular; color: rgb(39, 39, 39);">(选填)被感谢的人一件事迹 +10分</span>
</div> </div>
<div> <div>
<textarea class="detail" placeholder="点击填写,选择5项描述" v-model="thanks" style="height:100px" @input="autoTextarea($event,100)"></textarea> <textarea class="detail detail-divL" placeholder="点击填写,选择5项描述" v-model="thanks" style="height:100px" @input="autoTextarea($event,100)"></textarea>
<!--可编辑div-->
<div class="detail-div" contenteditable="true" v-show="false">{{thanks}}</div>
</div> </div>
</div> </div>
<div style="margin-top:.3rem;"> <div style="margin-top:.3rem;">
...@@ -260,6 +264,10 @@ ...@@ -260,6 +264,10 @@
getImg (){ getImg (){
let that = this ; let that = this ;
if ( this.validateParams() ){ if ( this.validateParams() ){
for(var i=0;i<=1;i++){
document.getElementsByClassName("detail-divL")[i].style.display="none";
document.getElementsByClassName("detail-div")[i].style.display="block";
}
window.scrollTo(0,0) ; window.scrollTo(0,0) ;
html2canvas(document.getElementById("capture"),{ html2canvas(document.getElementById("capture"),{
background: "rgba(255,255,255,1)", background: "rgba(255,255,255,1)",
...@@ -286,6 +294,10 @@ ...@@ -286,6 +294,10 @@
console.log(res) console.log(res)
if (res.data.code == 200 ){ if (res.data.code == 200 ){
layer.tipsX('提交成功'); layer.tipsX('提交成功');
for(var i=0;i<=1;i++){
document.getElementsByClassName("detail-div")[i].style.display="none";
document.getElementsByClassName("detail-divL")[i].style.display="block";
}
} else { } else {
layer.tipsX(res.data.msg); layer.tipsX(res.data.msg);
} }
...@@ -492,4 +504,17 @@ ...@@ -492,4 +504,17 @@
header+.header_seat { header+.header_seat {
height: 0.88rem; height: 0.88rem;
} }
.detail-div{
font-size: .28rem;
font-family: PingFangSC-Regular;
font-weight: 400;
color: rgba(39,39,39,1);
line-height: .4rem;
width: 6.38rem;
/*height: 2rem;*/
border: 1px solid #eeeeee;
padding: .1rem .2rem;
box-sizing: border-box;
/*word-break:break-all;*/
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment