abpcoder 1 天之前
父節點
當前提交
db2c9cb010
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/pagesMain/pages/volunteer/components/volunteer-policy-item.vue

+ 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>