whj 4 gün önce
ebeveyn
işleme
0de85f3e53
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 4 3
      pages/catalog/detail.uvue

+ 4 - 3
pages/catalog/detail.uvue

@@ -148,8 +148,9 @@ watchEffect(() => {
     }
   }
 })
-function handleMessage(e) {
-  console.log(123, e)
+function handleTop() {
+  progress2.value = 4
+  console.log(progress2.value)
 }
 </script>
 <template>
@@ -165,7 +166,7 @@ function handleMessage(e) {
       </video>
       <view v-else class="w-full h-full ">
         <img src="https://oss.xiaoxiongcode.com/static/home/2.png" alt="" class="w-full h-full object-cover" />
-        <view class="absolute top-1/2 left-1/2 text-[20px] font-bold text-white text-center" @top="progress2++">
+        <view class="absolute top-1/2 left-1/2 text-[20px] font-bold text-white text-center" @tap="handleTop">
           假设
         </view>
       </view>