abpcoder 1 napja
szülő
commit
db2c9cb010

+ 6 - 4
src/pagesMain/pages/volunteer/components/volunteer-policy-item.vue

@@ -1,11 +1,12 @@
 <template>
-    <view class="pl-28 pr-18 py-28 flex justify-between items-center bg-back-light rounded-xl relative">
+    <view class="pl-28 pr-18 py-28 flex justify-between items-center bg-back-light rounded-xl relative"
+          @click="$emit('click')">
         <view class="absolute z-1">
-            <view class="text-nowrap text-sm text-fore-title font-bold">{{title}}</view>
-            <view class="mt-5 text-nowrap text-3xs text-fore-tip">{{desc}}</view>
+            <view class="text-nowrap text-sm text-fore-title font-bold">{{ title }}</view>
+            <view class="mt-5 text-nowrap text-3xs text-fore-tip">{{ desc }}</view>
         </view>
         <view/>
-        <ie-image is-oss :src="icon" custom-class="w-108 h-88" />
+        <ie-image is-oss :src="icon" custom-class="w-108 h-88"/>
     </view>
 </template>
 
@@ -15,6 +16,7 @@ defineProps({
     desc: String,
     icon: String
 })
+defineEmits(['click'])
 </script>
 
 <style scoped>