Bläddra i källkod

fix:拓客专员页面拓客规则显示优惠券

zhanghui 2 år sedan
förälder
incheckning
3a578e314b

+ 10 - 10
pages/index/attach/attach.vue

@@ -1,8 +1,7 @@
 <template>
 	<view class="page" :style="{height:height}">
 
-		<view :style="{marginTop:'24rpx'}">
-			<scroll-view scroll-y class="scroll-Y">
+		<view :style="{marginTop:'24rpx'}" class="scroll-Y">
 				<view class="flex-col outView " :class="{select:item.select}" v-for="(item,index) in roleBindRuleList" @click="selectRule(item,index)">
 					<view class="flex-row justify-between">
 						<text class="title">{{item.title}}</text>
@@ -27,15 +26,16 @@
 							<text class="awardItem">间推比例:{{item.indirectRatio * 100}}%</text>
 						</view>
 					</view>
-					<!--						<view class="flex-row justify-between  awardView">-->
-					<!--							<text>优惠券:</text>-->
-					<!--							<view class="flex-col  award ">-->
-					<!--								<text>满100减250的优惠券</text>-->
-					<!--								<text>有效期:2024-01-01 至 2024-01-30</text>-->
-					<!--							</view>-->
-					<!--						</view>-->
+					<view class="flex-row justify-between  awardView">
+						<text>优惠券:</text>
+						<view class="flex-col">
+							<view class="flex-col discount award" v-for="(item1,index1) in item.strategyList" :key="index1">
+								<text>{{item1.name}} * {{item1.degree}}张</text>
+								<text>有效期:{{item1.startTime.substring(0,10)}} 至 {{item1.endTime.substring(0,10)}}</text>
+							</view>
+						</view>
+					</view>
 				</view>
-			</scroll-view>
 		</view>
 		<view class="confirmButton" @click="createQrCode">
 			<text>生成二维码</text>

+ 10 - 0
pages/index/attach/index.rpx.css

@@ -4,6 +4,7 @@
 }
 .scroll-Y{
     height: 900rpx;
+    overflow: auto;
 }
 .outView{
     background: #FFFFFF;
@@ -69,3 +70,12 @@
     border: 4rpx solid #FFE05C;
     box-sizing:border-box
 }
+.discount{
+    margin-top: 20rpx;
+    border: 1px solid rgba(226, 136, 136, 0.83);
+    padding: 0 6rpx;
+    border-radius: 10rpx;
+}
+.discount:first-child{
+    margin-top: 0rpx;
+}

+ 1 - 1
pages/index/manager/index.rpx.css

@@ -1,6 +1,6 @@
 .page{
     background: #F7F7F7;
-    height: 100vh;
+    min-height: 100vh;
     padding: 1rpx 32rpx;
 }
 .outView{

+ 0 - 4
pages/my/index.rpx.css

@@ -26,8 +26,6 @@
 	margin-left: 24rpx;
 }
 .name{
-	width: 96rpx;
-	height: 48rpx;
 	font-size: 32rpx;
 	font-weight: 700;
 	color: #333333;
@@ -45,8 +43,6 @@
 	margin-left: 10rpx;
 }
 .phone{
-	width: 226rpx;
-	height: 40rpx;
 	font-size: 24rpx;
 	font-weight: 400;
 	color: #333333;