فهرست منبع

任务中心抽奖次数

yaoyao 1 سال پیش
والد
کامیت
435502aabb
1فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 8 4
      pages/ad/index.vue

+ 8 - 4
pages/ad/index.vue

@@ -6,7 +6,7 @@
 		<view class="contents">
 			<image class="contents-text" src="/static/icon/ad/wcrw.png" mode="widthFix"></image>
 			<view class="daynum">
-				<image class="contents-bg" src="/static/icon/ad/cjcs.png" mode="widthFix"></image>
+				<image class="contents-bg" src="/static/icon/ad/cjcs.png" mode="aspectFill"></image>
 				<view style="flex: 1;"></view>
 				<text class="daynumtitle">今日奖励</text>
 				<text class="daydraw">抽奖次数1次</text>
@@ -146,6 +146,9 @@
 					this.taskObj = res.data;
 					this.progress = this.taskObj.watchCount / this.taskObj.total * 100
 					this.taskStatus = res.data.total <= res.data.watchCount
+					if (this.taskObj.drawCount > 0) {
+						this.taskStatus = true
+					}
 				})
 			},
 			getErrorInfo() {
@@ -162,7 +165,7 @@
 							id: "gh_71ff3b2409d8", //微信小程序原生id
 							path: "pages/index/bigWheel/bigWheel?userId=" + this.userInfo.sysUser.id +
 								"&activityId=" + this.activityId, //    打开小程序的页面路径,不传默认跳转首页
-							type: 2 //     微信小程序版本类型,可取值: 0-正式版; 1-测试版; 2-体验版。 默认值为0。
+							type: 0 //     微信小程序版本类型,可取值: 0-正式版; 1-测试版; 2-体验版。 默认值为0。
 						})
 					} else {
 						uni.showToast({
@@ -193,6 +196,7 @@
 <style>
 	page {
 		background: #ffe9c6;
+		padding: 30rpx;
 	}
 </style>
 <style lang="scss" scoped>
@@ -214,12 +218,11 @@
 		top: 0;
 		left: 0;
 		z-index: 0;
-		width: 750rpx;
+		width: 100%;
 	}
 
 	.contents {
 		position: relative;
-		padding: 30rpx;
 		box-sizing: border-box;
 
 		.contents-text {
@@ -247,6 +250,7 @@
 				top: 0;
 				left: 0;
 				width: 100%;
+				height: 808rpx;
 			}
 
 			.daynumtitle {