|
|
@@ -10,20 +10,26 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view>
|
|
|
- <scroll-view scroll-y class="scroll-Y">
|
|
|
+ <view class="dataNullView flex-col" v-if="roleBindRuleList.length===0">
|
|
|
+ <view class="flex-row justify-center">
|
|
|
+ <image class="dataNullImage" src="/static/dataNull.png"></image>
|
|
|
+ </view>
|
|
|
+ <text class="roleName1">{{roleList[confirmRoleIndex].name}}<text class="roleHint">角色没有拓客规则,点击下方“添加规则”按钮可添加拓客规则</text></text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view v-else class="scroll-Y">
|
|
|
<view class="flex-col outView" v-for="(item,index) in roleBindRuleList" :key="index">
|
|
|
<view class="flex-row justify-between">
|
|
|
- <text class="title">规则标题</text>
|
|
|
+ <text class="title">{{item.title}}</text>
|
|
|
<u-icon name="trash" color="#666" size="24" @click="deleteRule(item)"></u-icon>
|
|
|
</view>
|
|
|
<view class="flex-row justify-between awardView">
|
|
|
<text>直推:</text>
|
|
|
<view>
|
|
|
- <view class="flex-row award ">
|
|
|
+ <view class="flex-row award justify-between">
|
|
|
<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>
|
|
|
@@ -31,20 +37,21 @@
|
|
|
</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>
|
|
|
</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>
|
|
|
|
|
|
|
|
|
@@ -79,39 +86,50 @@
|
|
|
<u-icon name="close-circle" color="#666" size="24" @click="closePopup"></u-icon>
|
|
|
</view>
|
|
|
<scroll-view scroll-y class="scroll-Y1">
|
|
|
-
|
|
|
- <view class="flex-col outView " :class="{selectRoleName1: item.select }"
|
|
|
- v-for="(item,index) in roleNoBindRuleList" :style="{marginTop: '24rpx'}" @click="selectRule(item,index)" :key="index">
|
|
|
- <view class="flex-row justify-between">
|
|
|
- <text class="title">{{item.title}}</text>
|
|
|
+ <view class="dataNullView flex-col" v-if="roleNoBindRuleList.length===0">
|
|
|
+ <view class="flex-row justify-center">
|
|
|
+ <image class="dataNullImage" src="/static/dataNull.png"></image>
|
|
|
</view>
|
|
|
- <view class="flex-row justify-between awardView">
|
|
|
- <text>直推:</text>
|
|
|
- <view>
|
|
|
- <view class="flex-row award ">
|
|
|
- <text class="awardItem">注册现金:{{item.awardAmount}}元</text>
|
|
|
+ <text class="roleHint">暂无可添加的拓客规则</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view v-else>
|
|
|
+ <view class="flex-col outView " :class="{selectRoleName1: item.select }"
|
|
|
+ v-for="(item,index) in roleNoBindRuleList" :style="{marginTop: '24rpx'}" @click="selectRule(item,index)" :key="index">
|
|
|
+ <view class="flex-row justify-between">
|
|
|
+ <text class="title">{{item.title}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row justify-between awardView">
|
|
|
+ <text>直推:</text>
|
|
|
+ <view>
|
|
|
+ <view class="flex-row award justify-between">
|
|
|
+ <text class="awardItem">注册现金:{{item.awardAmount}}元</text>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row award justify-between">
|
|
|
+ <text class="awardItem">消费现金:{{item.consumeAmount}}元</text>
|
|
|
+ <text class="awardItem">消费比例:{{item.consumeRatio * 100}}%</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="flex-row award ">
|
|
|
- <text class="awardItem">消费现金:{{item.consumeAmount}}元</text>
|
|
|
- <text class="awardItem">消费比例:{{item.consumeRatio * 100}}%</text>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row justify-between awardView">
|
|
|
+ <text>间推:</text>
|
|
|
+ <view class="flex-row award justify-between">
|
|
|
+ <text class="awardItem">间推现金:{{item.indirectAmount}}元</text>
|
|
|
+ <text class="awardItem">间推比例:{{item.indirectRatio * 100}}%</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="flex-row justify-between awardView">
|
|
|
- <text>间推:</text>
|
|
|
- <view class="flex-row award ">
|
|
|
- <text class="awardItem">间推现金:{{item.indirectAmount}}元</text>
|
|
|
- <text class="awardItem">间推比例:{{item.indirectRatio * 100}}%</text>
|
|
|
+ <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>
|
|
|
-<!-- <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>
|
|
|
+
|
|
|
</scroll-view>
|
|
|
<view class="confirmButton" @click="confirmAddRule">
|
|
|
<text>确定</text>
|