代办不重置

This commit is contained in:
老叶
2022-05-09 16:32:13 +08:00
parent 0d853d4cd1
commit 217394e525
4 changed files with 23 additions and 6 deletions
+14 -2
View File
@@ -225,6 +225,7 @@ Page({
priceparams['v_id'] = res.data.v_id;
priceparams['color_id'] = res.data.color_id;
priceparams['incolor_id'] = res.data.incolor_id;
priceparams['oid'] = this.data.id;
_.apiQuery.getAppBusiness(priceparams).then(res10 => {
this.setData({
business_type:2,
@@ -682,8 +683,6 @@ Page({
business_type:0,
})
this.getAppSeriesAttrscolor()
//代办列表
this.getAppServices()
}
},
@@ -745,6 +744,7 @@ Page({
params['v_id'] = this.data.v_id;
params['color_id'] = this.data.color_id;
params['incolor_id'] = this.data.incolor_id;
params['oid'] = this.data.id;
_.apiQuery.getAppBusiness(params).then(res => {
this.setData({
business_type:2,
@@ -775,13 +775,25 @@ Page({
params['size'] = 100;
params['id'] = this.data.id;
_.apiQuery.getAppServices(params).then(res => {
let agencyList = res.data.list
let srv_total = 0
agencyList.forEach(item => {
item.sprice = item.price
if(this.data.userInfo.biz_type==1){
if(item.id==1||item.id==2){
item.checked = true
if(parseFloat(item.price)>0){
srv_total = srv_total + parseFloat(item.price)
}
}
}
})
this.setData({
agencyList,
srv_total,
})
});
}
},
+1 -1
View File
@@ -200,7 +200,7 @@
</view>
</view>
</view> -->
<view class="bbs-1-eb last-b-none">
<view class="bbs-1-eb last-b-none" wx:if="{{agencyList.length>0}}">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">委托代办</view>
<view class="pt30 pb30 text-right font-28 color-666">
+7 -2
View File
@@ -464,8 +464,6 @@ Page({
business_type:0,
})
this.getAppSeriesAttrscolor()
//代办列表
this.getAppServices()
}
},
@@ -557,18 +555,25 @@ Page({
params['page'] = 1;
params['size'] = 100;
_.apiQuery.getAppServices(params).then(res => {
let agencyList = res.data.list
let srv_total = 0
agencyList.forEach(item => {
item.sprice = item.price
if(this.data.userInfo.biz_type==1){
if(item.id==1||item.id==2){
item.checked = true
if(parseFloat(item.price)>0){
srv_total = srv_total + parseFloat(item.price)
}
}
}
})
this.setData({
agencyList,
srv_total,
})
});
}
},
+1 -1
View File
@@ -259,7 +259,7 @@
</view>
</view> -->
<block wx:if="{{userInfo.biz_type == 1}}">
<view class="bbs-1-eb last-b-none">
<view class="bbs-1-eb last-b-none" wx:if="{{agencyList.length>0}}">
<view class="relative pl190">
<view class="absolute left-0 box-middle font-28 color-333">委托代办</view>
<view class="pt30 pb30 text-right font-28 color-666">