|
@@ -118,6 +118,7 @@
|
|
class="top-wrap-img"
|
|
class="top-wrap-img"
|
|
>
|
|
>
|
|
<img
|
|
<img
|
|
|
|
+ draggable="false"
|
|
:style="{height:item['音图'] == 'zhaomengfu1.png' ? '78%':''}"
|
|
:style="{height:item['音图'] == 'zhaomengfu1.png' ? '78%':''}"
|
|
:src="`${$env.BASE_URL}configMultiMedia/author/${item['音图']}`"
|
|
:src="`${$env.BASE_URL}configMultiMedia/author/${item['音图']}`"
|
|
>
|
|
>
|
|
@@ -249,6 +250,7 @@ const {
|
|
translateLength,
|
|
translateLength,
|
|
computeMaxTranslateLengthInnerByScrollTarget,
|
|
computeMaxTranslateLengthInnerByScrollTarget,
|
|
speedUp,
|
|
speedUp,
|
|
|
|
+ haveSwipedThisTime, // 用于在click事件中判断是否是鼠标按下后左右滑动导致的
|
|
} = useSmoothSwipe({
|
|
} = useSmoothSwipe({
|
|
scrollTargetRef: menuEl,
|
|
scrollTargetRef: menuEl,
|
|
maxTranslateLength: undefined,
|
|
maxTranslateLength: undefined,
|
|
@@ -322,6 +324,9 @@ const unwatch = watch(menuElScrollLeft, (v) => {
|
|
})
|
|
})
|
|
|
|
|
|
function onClickAge(ageName, evt) {
|
|
function onClickAge(ageName, evt) {
|
|
|
|
+ if (haveSwipedThisTime.value) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
isShowOperationTip.value = false
|
|
isShowOperationTip.value = false
|
|
if (expandedAgeNameList.value.has(ageName)) {
|
|
if (expandedAgeNameList.value.has(ageName)) {
|
|
expandedAgeNameList.value.delete(ageName)
|
|
expandedAgeNameList.value.delete(ageName)
|
|
@@ -341,7 +346,9 @@ function onClickAge(ageName, evt) {
|
|
const isShowPaintingStyleDesc = ref(false)
|
|
const isShowPaintingStyleDesc = ref(false)
|
|
|
|
|
|
function onClickPainting(item) {
|
|
function onClickPainting(item) {
|
|
- console.log('sdfsdfsdf', item)
|
|
|
|
|
|
+ if (haveSwipedThisTime.value) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
router.push({
|
|
router.push({
|
|
name: 'PaintingDetail',
|
|
name: 'PaintingDetail',
|
|
query: {
|
|
query: {
|