This commit is contained in:
zoujiandong
2024-04-23 16:03:07 +08:00
parent baf8a289dd
commit 70ddba15f1
9 changed files with 67 additions and 29 deletions
+11 -1
View File
@@ -13,6 +13,7 @@ Page({
title: '添加服务内容', //导航栏 中间的标题
},
tuwenPrice:'',
cycle_columns:['1个月', '3个月', '6个月', '12个月'],
service_columns:['10次','不限次'],
showCycle:false,
@@ -21,6 +22,10 @@ Page({
isAdd:false,
service_rounds:0,
cur_id:'',
onePrice:null,
threePrice:null,
sixPrice:null,
yearPrice:null,
items:[{
service_period:'',
service_price:''
@@ -238,7 +243,12 @@ getFollowDetail(){
this.setData({
iden_auth_status:options.iden_auth_status,
idcard_status:options.idcard_status,
is_bind_bank:options.is_bind_bank
is_bind_bank:options.is_bind_bank,
tuwenPrice:options.tuwenPrice,
onePrice:options.tuwenPrice?(options.tuwenPrice*10*0.5).toFixed(2):0,
threePrice:options.tuwenPrice?(options.tuwenPrice*30*0.4).toFixed(2):0,
sixPrice:options.tuwenPrice?(options.tuwenPrice*60*0.3).toFixed(2):0,
yearPrice:options.tuwenPrice?(options.tuwenPrice*120*0.2).toFixed(2):0,
})
},
@@ -33,19 +33,19 @@
</view>
</view>
<view class="price_steup_box_bottom" style="border-bottom:0.5px solid #e7e7e7;padding-bottom: 25rpx;">
<view class="price_steup_box_bottom_title">服务价格(元)</view>
<view class="price_steup_box_bottom_title">服务价格</view>
<view class="price_steup_box_bottom_num">
<input type="number" class="ipt" value="{{item.service_price}}" placeholder="请设置价格" placeholder-style="font-size:28rpx;color: rgba(0,0,0,0.45);" bindinput="changeIpt" data-id="{{index}}" /><text class="unit" wx:if="{{item.service_price}}">元</text>
</view>
</view>
<view class="tips">
<view >建议服务价格设置为:{{(item.service_period/30)==1?'单次图文*10次*5~8折':(item.service_period/30)==3?'单次图文*30次*4~7折':(item.service_period/30)==6?'单次图文*60次*3~6折':(item.service_period/30)==12?'单次图文*120次*2~5折':'单次图文*10次*5'}}</view>
<view class="tips" wx:if="{{tuwenPrice}}">
<view >建议服务价格设置为:{{(item.service_period/30)==1?'¥'+onePrice:(item.service_period/30)==3?'¥'+threePrice:(item.service_period/30)==6?'¥'+sixPrice:(item.service_period/30)==12?'¥'+yearPrice:'单次图文*10次*0.5'}}</view>
<view wx:if="{{items.length>1}}" bind:tap="delService" data-id="{{index}}">删除</view>
</view>
</view>
</view>
<view class="continueadd" bind:tap="addServiceArr" wx:if="{{items.length<=4}}">继续添加服务内容</view>
<view class="continueadd" bind:tap="addServiceArr" wx:if="{{items.length<4}}">继续添加服务内容</view>
</view>
</view>
<view class="btn" bind:tap="handle">保存</view>