Commit 63c10468 authored by zhengke's avatar zhengke

列表查看详情切换模版优化

parent a615b3ca
...@@ -160,7 +160,7 @@ const CloseDetails = () => { ...@@ -160,7 +160,7 @@ const CloseDetails = () => {
const ToggleImg = (text: String) => { const ToggleImg = (text: String) => {
if(text=='left'){ if(text=='left'){
props.TemCurrent scrollContainer.value.scrollTop = 0
emit('previous') emit('previous')
// if(datas.currentImg>0) { // if(datas.currentImg>0) {
// datas.currentImg-- // datas.currentImg--
...@@ -168,6 +168,7 @@ const ToggleImg = (text: String) => { ...@@ -168,6 +168,7 @@ const ToggleImg = (text: String) => {
// } // }
} }
if(text=='right'){ if(text=='right'){
scrollContainer.value.scrollTop = 0
emit('next') emit('next')
// if(datas.currentImg<imgList.value.length-1) { // if(datas.currentImg<imgList.value.length-1) {
// datas.currentImg++ // datas.currentImg++
......
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