| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | <template> | 
					
						
							|  |  |  |   <view class="content"> | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     <view | 
					
						
							|  |  |  |       @click="goDetail(item)" | 
					
						
							|  |  |  |       class="list_content" | 
					
						
							|  |  |  |       v-for="(item, index) in dataList" | 
					
						
							|  |  |  |       :key="index" | 
					
						
							|  |  |  |     > | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       <view class="actCover"> | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |         <image :src="item.actCover" mode=""></image> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       </view> | 
					
						
							|  |  |  |       <view class="list_right"> | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |         <view class="right_title">{{ item.actName }}</view> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         <!-- <view class="right_jies">{{item.actExplain}}</view> --> | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |         <view class="right_time" | 
					
						
							|  |  |  |           >{{ item.actStartDate }}-{{ item.actEndDate }}</view | 
					
						
							|  |  |  |         > | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         <view class=""> | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |           <u-button | 
					
						
							|  |  |  |             @click.native.stop="getGift(item)" | 
					
						
							|  |  |  |             v-if="item.existDrawNum == 0" | 
					
						
							|  |  |  |             class="thebtn" | 
					
						
							|  |  |  |             shape="circle" | 
					
						
							|  |  |  |             text="抽奖" | 
					
						
							|  |  |  |             color="#D61820" | 
					
						
							|  |  |  |           /> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         </view> | 
					
						
							|  |  |  |       </view> | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |       <view class="actStatus colo" v-show="item.actStatus == 0">{{ | 
					
						
							|  |  |  |         item.actStatusVal | 
					
						
							|  |  |  |       }}</view> | 
					
						
							|  |  |  |       <view class="actStatus colo1" v-show="item.actStatus == 1">{{ | 
					
						
							|  |  |  |         item.actStatusVal | 
					
						
							|  |  |  |       }}</view> | 
					
						
							|  |  |  |       <view class="actStatus colo2" v-show="item.actStatus == 2">{{ | 
					
						
							|  |  |  |         item.actStatusVal | 
					
						
							|  |  |  |       }}</view> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     </view> | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     <!-- <getTree ref="tree"></getTree> --> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     <giftDrwal ref="giftDrwal"></giftDrwal> | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     <!-- <newGift ref="newGiftPay"></newGift> --> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |   </view> | 
					
						
							|  |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | import giftDrwal from '@/components/giftDrwal/index.vue' | 
					
						
							|  |  |  | import * as act from '@/config/activity.js' | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  | // import getTree from "@/components/getTree.vue";
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | export default { | 
					
						
							|  |  |  |   components: { | 
					
						
							|  |  |  |     giftDrwal, | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     // getTree,
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |   }, | 
					
						
							|  |  |  |   data() { | 
					
						
							|  |  |  |     return { | 
					
						
							|  |  |  |       dataList: [], | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   mounted() { | 
					
						
							|  |  |  |     this.getSearch() | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   methods: { | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     // getTree(){
 | 
					
						
							|  |  |  |     //   this.$refs.tree.getData(1)
 | 
					
						
							|  |  |  |     // },
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     goDetail(item) { | 
					
						
							|  |  |  |       uni.navigateTo({ | 
					
						
							|  |  |  |         url: '/pages/market/activeArea/activeDetail?pkId=' + item.pkId, | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     getSearch() { | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |       act.getActivityList().then(res => { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |         this.dataList = res.rows | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |         this.dataList.forEach(item => { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |           if (item.actType == 22 && item.actStatus == 1) { | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |             act.tourismPoint(item.pkId).then(res => { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |               if (res.data != undefined) { | 
					
						
							|  |  |  |                 this.$set(item, 'point', res.data) | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             }) | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }) | 
					
						
							|  |  |  |       }) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     getGift(item) { | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |       this.$refs.giftDrwal.getGiftList(item.pkId) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style lang="scss" scoped> | 
					
						
							|  |  |  | .content { | 
					
						
							|  |  |  |   background: #f2f2f2; | 
					
						
							|  |  |  |   padding: 5rpx 22rpx; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .list_content { | 
					
						
							|  |  |  |     background-color: #ffffff; | 
					
						
							|  |  |  |     padding: 25rpx 21rpx; | 
					
						
							|  |  |  |     border-radius: 25rpx; | 
					
						
							|  |  |  |     margin-top: 27rpx; | 
					
						
							|  |  |  |     display: flex; | 
					
						
							|  |  |  |     position: relative; | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     .actStatus { | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       position: absolute; | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |       padding: 10rpx 20rpx; | 
					
						
							|  |  |  |       color: #fff; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       border-radius: 0 20px 20px 0; | 
					
						
							|  |  |  |       top: 48rpx; | 
					
						
							|  |  |  |       font-size: 12px; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     .colo { | 
					
						
							|  |  |  |       background: #6382fb; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     .colo1 { | 
					
						
							|  |  |  |       background: #ffa50e; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  |     .colo2 { | 
					
						
							|  |  |  |       background: #bfbfbf; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     .actCover { | 
					
						
							|  |  |  |       width: 310rpx; | 
					
						
							|  |  |  |       height: 210rpx; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       margin-right: 24rpx; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       image { | 
					
						
							|  |  |  |         width: 100%; | 
					
						
							|  |  |  |         height: 100%; | 
					
						
							|  |  |  |         border-radius: 25rpx; | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     .list_right { | 
					
						
							|  |  |  |       width: 330rpx; | 
					
						
							|  |  |  |       display: flex; | 
					
						
							|  |  |  |       flex-direction: column; | 
					
						
							|  |  |  |       justify-content: space-between; | 
					
						
							|  |  |  |       flex-wrap: wrap; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       .right_title { | 
					
						
							|  |  |  |         font-size: 30rpx; | 
					
						
							|  |  |  |         // width: 100%;
 | 
					
						
							|  |  |  |         font-weight: bold; | 
					
						
							| 
									
										
										
										
											2025-04-22 17:47:02 +08:00
										 |  |  |         color: #005BAC; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       } | 
					
						
							|  |  |  |       .right_title1 { | 
					
						
							|  |  |  |         font-size: 26rpx; | 
					
						
							|  |  |  |         // width: 100%;
 | 
					
						
							|  |  |  |         font-weight: bold; | 
					
						
							| 
									
										
										
										
											2025-04-22 17:47:02 +08:00
										 |  |  |         color: #005BAC; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |       } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       .right_jies { | 
					
						
							|  |  |  |         font-size: 26rpx; | 
					
						
							|  |  |  |         color: #333333; | 
					
						
							|  |  |  |         width: 100%; | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       .right_time { | 
					
						
							|  |  |  |         font-size: 24rpx; | 
					
						
							|  |  |  |         font-weight: 400; | 
					
						
							|  |  |  |         color: #999999; | 
					
						
							|  |  |  |         width: 100%; | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       .thebtn { | 
					
						
							|  |  |  |         height: 60rpx; | 
					
						
							|  |  |  |         // height: 21px;
 | 
					
						
							|  |  |  |         font-size: 22rpx; | 
					
						
							|  |  |  |         font-family: Source Han Sans CN; | 
					
						
							|  |  |  |         font-weight: 400; | 
					
						
							|  |  |  |         color: #ffffff; | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  | </style> |