Browse Source

集客修改

twt 9 months ago
parent
commit
fecb509b0e
3 changed files with 113 additions and 2 deletions
  1. 57 0
      pages/activity/jkDetail.vue
  2. 54 1
      pages/subPack/jkDetail.vue
  3. 2 1
      utils/request.js

+ 57 - 0
pages/activity/jkDetail.vue

@@ -40,6 +40,19 @@
 			</view>
 		</view>
 		
+		<view class="couponPackageData" v-if="info.couponPackageName">
+			<view class="couponPackageTitle">{{info.couponPackageName}}</view>
+			<view class="linecouponCont" v-for="item in info.couponList">
+			  <view class="linecouponContLeft">
+				  <view class="couponType" v-if="item.discountType==1">满减券</view>
+				  <view class="couponType" v-if="item.discountType==2">商品券</view>
+				  <view class="couponType" v-if="item.discountType==3">服务券</view>
+				  <view class="couponName">{{item.actName}}</view>
+			  </view>
+			  <view class="couponNum">x{{item.actQty}}</view>
+			</view>
+		</view>
+		
 		<view class="shopBox">
 			<view class="shopBoxTop">
 				<view class="shopMs">活动门店</view>
@@ -222,6 +235,9 @@
 				
 			</view>
 		</view>
+		
+		
+		
 		<!-- 适用门店 -->
 		<view class="baomingBox ckshopBox" v-if="useShopShow" @click="noShowShop2">
 			<view class="baomingCont" @click.stop="">
@@ -1825,4 +1841,45 @@ color: #FFFFFF;font-size: 26rpx;
 			font-weight: 500;font-size: 28rpx;
 			color: #FFFFFF;padding-top: 2rpx;
 		}
+		.couponPackageData{
+			background: #ffffff;
+			margin-top: 20rpx;
+		}
+		.couponPackageTitle{
+			padding-left: 24rpx;
+			padding-top: 30rpx;
+			color: #333333;
+			font-size: 32rpx;
+			line-height: 45rpx;
+			font-weight: 500;
+		}
+		.linecoupon{
+			justify-content: space-between;
+		}
+		.linecouponCont{
+			display: flex;
+			justify-content: space-between;
+			padding: 15rpx 24rpx;
+		}
+		.linecouponContLeft{
+			display: flex;
+			
+		}
+		.couponType{
+			color: #FFA511;
+			border: 1px solid #FFA511;
+			border-radius: 4rpx;
+			font-size: 18rpx;
+			line-height: 26rpx;
+			padding: 0 8rpx;
+			height: 26rpx;
+			margin-top: 5rpx;
+		}
+		.couponName{
+			font-size: 26rpx;line-height: 38rpx;color: #3C3C3C;
+			padding-left: 20rpx;
+		}
+		.couponNum{
+			font-size: 26rpx;line-height: 38rpx;color: #999999;
+		}
 </style>

+ 54 - 1
pages/subPack/jkDetail.vue

@@ -14,7 +14,19 @@
 			<view class="name3">{{info.activityContent}}</view>
 		</view>
 	
-		
+		 <view class="couponPackageData" v-if="info.couponPackageName">
+		 	<view class="couponPackageTitle">{{info.couponPackageName}}</view>
+		 	<view class="linecouponCont" v-for="item in info.couponList">
+		 	  <view class="linecouponContLeft">
+		 		  <view class="couponType" v-if="item.discountType==1">满减券</view>
+		 		  <view class="couponType" v-if="item.discountType==2">商品券</view>
+		 		  <view class="couponType" v-if="item.discountType==3">服务券</view>
+		 		  <view class="couponName">{{item.actName}}</view>
+		 	  </view>
+		 	  <view class="couponNum">x{{item.actQty}}</view>
+		 	</view>
+		 </view>
+		 
 		<view class="shopBox">
 			<view class="shopBoxTop">
 				<view class="shopMs">活动门店</view>
@@ -2016,4 +2028,45 @@ color: #FFFFFF;font-size: 26rpx;
 			background-size: 100% 100%;
 			padding-left: 64rpx;padding-right: 4rpx;
 		}
+		.couponPackageData{
+			background: #ffffff;
+			margin-top: 20rpx;
+		}
+		.couponPackageTitle{
+			padding-left: 24rpx;
+			padding-top: 30rpx;
+			color: #333333;
+			font-size: 32rpx;
+			line-height: 45rpx;
+			font-weight: 500;
+		}
+		.linecoupon{
+			justify-content: space-between;
+		}
+		.linecouponCont{
+			display: flex;
+			justify-content: space-between;
+			padding: 15rpx 24rpx;
+		}
+		.linecouponContLeft{
+			display: flex;
+			
+		}
+		.couponType{
+			color: #FFA511;
+			border: 1px solid #FFA511;
+			border-radius: 4rpx;
+			font-size: 18rpx;
+			line-height: 26rpx;
+			padding: 0 8rpx;
+			height: 26rpx;
+			margin-top: 5rpx;
+		}
+		.couponName{
+			font-size: 26rpx;line-height: 38rpx;color: #3C3C3C;
+			padding-left: 20rpx;
+		}
+		.couponNum{
+			font-size: 26rpx;line-height: 38rpx;color: #999999;
+		}
 </style>

+ 2 - 1
utils/request.js

@@ -10,7 +10,8 @@ const extConfig = uni.getExtConfigSync();
 console.log(extConfig)
 const baseUrl=extConfig.url+'/'
 
-//const baseUrl='http://192.168.0.24:20187/'
+//const baseUrl='http://dms.66km.com.cn/'
+//const baseUrl='http://192.168.0.32:20187/'
 //const baseUrl='https://store-api.qdbtl.cn/'
 //const baseUrl='https://apidms.66km.com/'