Selaa lähdekoodia

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

zhanghui 2 vuotta sitten
vanhempi
sitoutus
7dbd932c66

+ 14 - 3
pages/index/attach/attach.vue

@@ -1,7 +1,18 @@
 <template>
 	<view class="page" :style="{height:height}">
 
-		<view :style="{marginTop:'24rpx'}" class="scroll-Y">
+		<view class="roleNameView">
+			<text>当前身份:<text class="roleName">{{userInfo.roleName}}</text></text>
+		</view>
+
+		<view class="dataNullView flex-col" v-if="roleBindRuleList.length===0">
+			<view class="flex-row justify-center">
+				<image class="dataNullImage" src="/static/zhanwu.png"></image>
+			</view>
+			<text class="roleHint">当前角色没有拓客规则,请联系拓客经理处理</text>
+		</view>
+
+		<view :style="{marginTop:'24rpx'}" class="scroll-Y" v-else>
 				<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>
@@ -13,7 +24,7 @@
 							<view class="flex-row  award ">
 								<text class="awardItem">注册现金:{{item.awardAmount}}元</text>
 							</view>
-							<view class="flex-row  award ">
+							<view class="flex-row  award justify-between">
 								<text class="awardItem">消费现金:{{item.consumeAmount}}元</text>
 								<text class="awardItem">消费比例:{{item.consumeRatio * 100}}%</text>
 							</view>
@@ -21,7 +32,7 @@
 					</view>
 					<view class="flex-row justify-between  awardView">
 						<text>间推:</text>
-						<view class="flex-row  award ">
+						<view class="flex-row  award justify-between">
 							<text class="awardItem">间推现金:{{item.indirectAmount}}元</text>
 							<text class="awardItem">间推比例:{{item.indirectRatio * 100}}%</text>
 						</view>

+ 25 - 2
pages/index/attach/index.rpx.css

@@ -24,14 +24,13 @@
     font-weight: 400;
     color: #666666;
     line-height: 40rpx;
-    padding: 20rpx 0;
+    /*padding: 20rpx 0;*/
 }
 .award{
     width: 500rpx;
 }
 
 .awardItem{
-    margin-right: 100rpx;
 }
 
 .confirmButton{
@@ -79,3 +78,27 @@
 .discount:first-child{
     margin-top: 0rpx;
 }
+.dataNullView{
+    background: #FFFFFF;
+    border-radius: 20rpx;
+    padding: 24rpx;
+    text-align: center;
+}
+.dataNullImage{
+    width: 300rpx;
+    height: 300rpx;
+}
+.roleName1{
+    background: #FFFFFF;
+    color: #007aff;
+}
+.roleHint{
+    color: #999999;
+}
+.roleNameView{
+    font-weight: bold;
+    padding: 20rpx 0;
+}
+.roleName{
+    color: #007aff;
+}

+ 1 - 1
pages/index/index.vue

@@ -26,7 +26,7 @@
 		},
 		onLoad() {
 			let sysInfo = uni.getSystemInfoSync()
-			this.height = sysInfo.windowHeight - 45 + 'px'
+			this.height = sysInfo.windowHeight  + 'px'
 
 		},
 		onShow(){

+ 1 - 1
pages/index/manager/manager.vue

@@ -12,7 +12,7 @@
 
 		<view class="dataNullView flex-col" v-if="roleBindRuleList.length===0">
 			<view class="flex-row justify-center">
-				<image class="dataNullImage" src="/static/dataNull.png"></image>
+				<image class="dataNullImage" src="/static/zhanwu.png"></image>
 			</view>
 			<text class="roleName1">{{roleList[confirmRoleIndex].name}}<text class="roleHint">角色没有拓客规则,点击下方“添加规则”按钮可添加拓客规则</text></text>
 		</view>

BIN
static/zhanwu.png