Ver Fonte

任务列表跳转任务详情

hjr há 1 mês atrás
pai
commit
1aef47d663
1 ficheiros alterados com 13 adições e 3 exclusões
  1. 13 3
      components/bountyItem.vue

+ 13 - 3
components/bountyItem.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="bounty">
+  <view class="bounty" @click="goDetail">
     <view class="head">
       <image class="image" src="/static/image/index/default_avatar.png" mode="scaleToFill" />
     </view>
@@ -38,13 +38,23 @@ export default {
 	showTags:{
 		type:Boolean,
 		default:true
-	}  
+	},
+	info:{
+		type:Object,
+		defalut:{},// 后续接收单条详情
+	}
   },
   data() {
     return {};
   },
   onLoad() {},
-  methods: {},
+  methods: {
+	  goDetail(){
+		  uni.navigateTo({
+		  	url:'/pages/index/taskDetails'
+		  })
+	  }
+  },
 };
 </script>