瀏覽代碼

未开始

zhengkaixin 2 年之前
父節點
當前提交
c0460f62e9
共有 2 個文件被更改,包括 28 次插入7 次删除
  1. 二進制
      assets/img/nt/nt-activity-6.png
  2. 28 7
      pages/index/index.vue

二進制
assets/img/nt/nt-activity-6.png


+ 28 - 7
pages/index/index.vue

@@ -117,7 +117,7 @@
 					 
 					 <u-image width="600"  style="margin: auto;min-height: 250px;"
 					 mode="widthFix" @click="showNtStepClick"
-					 	v-show="showNtStep==2||showNtStep==3"
+					 	v-show="showNtStep==2||showNtStep==3||showNtStep==4"
 					 src="@/assets/img/nt/nt-activity-3.png">
 					 
 					 
@@ -145,6 +145,19 @@
 					 
 					 	
 					 	
+					 </u-image>
+					 <u-image width="500"  style="color: #FFFFFF;
+					 							font-size: 64rpx;
+					 							position: relative;
+					 							top: -540rpx;
+					 							right: -60rpx;height: 0;
+					 						"
+					 mode="widthFix" @click="showNtStepClick"
+					 	v-show="showNtStep==4"
+					 src="@/assets/img/nt/nt-activity-6.png">
+					 
+					 	
+					 	
 					 </u-image>
 					 <view
 					  style="color: #ecc07d;
@@ -155,7 +168,7 @@
 							 width: 340rpx;"
 					 		@click="showNtStepClick"
 					 
-					  v-show="showNtStep==2||showNtStep==3" >
+					  v-show="showNtStep==2||showNtStep==3||showNtStep==4" >
 					  <span >.</span>
 					  </view>
 					 
@@ -658,7 +671,8 @@
 				var userInfo= this.carhelp.getPersonInfo();
 				
 				if(userInfo&&userInfo.id){
-					this.showNt=true
+					
+						this.exchangeDetail(obj.nt)
 				}else{
 					uni.navigateTo({
 						url: '/pages/login/login?member=1'
@@ -684,9 +698,15 @@
 				userApi.exchangeDetail({
 					key: exchangeCode
 				}).then((res) => {
+					this.showNt=true
 					if(!res.data.enabled){
 						this.carhelp.set("netie_activity",null)
-						this.showNtStep=3
+						if(res.data.code==2){
+							this.showNtStep=4
+						}else{
+							this.showNtStep=3
+						}
+						
 						uni.hideLoading();
 					}else if(res.data.status==1||res.data.status==2){
 						this.carhelp.set("netie_activity",{
@@ -696,7 +716,7 @@
 						this.showNtStep=2
 						uni.hideLoading();
 					}else{
-						this.redeemNow(exchangeCode)
+						
 						
 						this.showNtValue=res.data.totalDiscount
 					}
@@ -734,7 +754,8 @@
 			showNtStepClick(){
 				if(this.showNtStep==0){
 					var obj=this.carhelp.get("netie_activity")
-					this.exchangeDetail(obj.nt)
+				
+					this.redeemNow(obj.nt)
 					// if(this.personInfo.userType!=1){
 						
 					// }else{
@@ -745,7 +766,7 @@
 					// 	})
 					// }
 					
-				}else if(this.showNtStep==1||this.showNtStep==2||this.showNtStep==3){
+				}else if(this.showNtStep==1||this.showNtStep==2||this.showNtStep==3||this.showNtStep==4){
 					this.showNt=false;
 					uni.navigateTo({
 						url:"/pages/user/coupon/myCoupon"