服务费
This commit is contained in:
@@ -134,6 +134,7 @@ let combineUrl = (DATA) => {
|
||||
let toEncrypt = (DATA) => {
|
||||
// let secretKey = randomString()
|
||||
let data = combineUrl(DATA)
|
||||
//console.log(data)//加密原始数据
|
||||
return md5.hex_md5(data);
|
||||
}
|
||||
|
||||
|
||||
@@ -269,7 +269,6 @@ Page({
|
||||
/*匹配其他信息*/
|
||||
//匹配付款方式
|
||||
if(res.data.payway==0||res.data.payway==1){
|
||||
console.log(434343)
|
||||
let paymentIndex = -1
|
||||
if(res.data.payway==0){
|
||||
paymentIndex = 1
|
||||
@@ -1085,7 +1084,7 @@ Page({
|
||||
}
|
||||
if(e.currentTarget.dataset.type=='price'){
|
||||
this.setData({
|
||||
['fines['+e.currentTarget.dataset.index+'].price']:e.detail.value,
|
||||
['fines['+e.currentTarget.dataset.index+'].price']:Number(e.detail.value),
|
||||
})
|
||||
let fine_total = 0
|
||||
this.data.fines.forEach(item => {
|
||||
|
||||
@@ -307,6 +307,16 @@
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<block wx:if="{{userInfo.biz_type == 3}}">
|
||||
<block wx:for="{{fines}}" wx:key='index'>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28">
|
||||
<view class="absolute left-0 box-middle">{{item.txt}}</view>
|
||||
<view>
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入服务费" bindinput='inputFines' data-index="{{index}}" data-type="price" value="{{item.price}}" always-embed='{{true}}' />
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<!--特别约定编辑-->
|
||||
<block wx:if="{{userInfo.show_sa}}">
|
||||
<block wx:if="{{info.price_srv_status}}">
|
||||
@@ -452,6 +462,14 @@
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<block wx:if="{{userInfo.biz_type == 3}}">
|
||||
<block wx:for="{{fines}}" wx:key='index'>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28">
|
||||
<view class="absolute left-0 box-middle color-333">{{item.txt}}</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{item.price}}</text>元</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{priceinfo.show_local_bill}}">
|
||||
<view class="absolute left-0 box-middle color-333">需开具本地发票</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="height:38rpx;">{{if_local_bill?'需要':'不需要'}}</view>
|
||||
|
||||
@@ -298,6 +298,12 @@ Page({
|
||||
userInfo: res,
|
||||
})
|
||||
|
||||
if(res.biz_type == 3){
|
||||
this.setData({
|
||||
fines:[{"id":"-1","txt":"服务费","price":"0"}],//身份证
|
||||
})
|
||||
}
|
||||
|
||||
if(res.biz_name == '测试门店'){
|
||||
this.setData({
|
||||
cardid:'350000202101010000',//身份证
|
||||
@@ -1032,7 +1038,7 @@ Page({
|
||||
}
|
||||
if(e.currentTarget.dataset.type=='price'){
|
||||
this.setData({
|
||||
['fines['+e.currentTarget.dataset.index+'].price']:e.detail.value,
|
||||
['fines['+e.currentTarget.dataset.index+'].price']:Number(e.detail.value),
|
||||
})
|
||||
let fine_total = 0
|
||||
this.data.fines.forEach(item => {
|
||||
|
||||
@@ -349,6 +349,16 @@
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:if="{{userInfo.biz_type == 3}}">
|
||||
<block wx:for="{{fines}}" wx:key='index'>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28">
|
||||
<view class="absolute left-0 box-middle">{{item.txt}}</view>
|
||||
<view>
|
||||
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入服务费" bindinput='inputFines' data-index="{{index}}" data-type="price" value="{{item.price}}" always-embed='{{true}}' />
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<block wx:if="{{userInfo.show_sa}}">
|
||||
<view class="relative pt30 font-28 color-333">特别约定</view>
|
||||
<textarea class="wp100 mt20 inner20 line-height-16 bg-f6 font-28 ulib-r10" style="height:180rpx;" placeholder-class="color-ccc" placeholder="请填写特别约定" model:value='{{sa}}' always-embed='{{true}}' />
|
||||
@@ -568,6 +578,14 @@
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<block wx:if="{{userInfo.biz_type == 3}}">
|
||||
<block wx:for="{{fines}}" wx:key='index'>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28">
|
||||
<view class="absolute left-0 box-middle color-333">{{item.txt}}</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{item.price}}</text>元</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{priceinfo.show_local_bill}}">
|
||||
<view class="absolute left-0 box-middle color-333">需开具本地发票</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="height:38rpx;">{{if_local_bill?'需要':'不需要'}}</view>
|
||||
|
||||
Reference in New Issue
Block a user