获取价格
This commit is contained in:
@@ -46,6 +46,7 @@ api = {
|
||||
appCustomerlogs: "app/customerlogs", //新增日志
|
||||
appCustomerData: "app/customers/data", //修改客户基本信息
|
||||
appServicesPackage: "app/services/package", //获取代办包
|
||||
appSeriesInfo: "app/series/info", //获取车辆价格
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -327,4 +327,12 @@ apiQuery.getAppServicesPackage = function (params) {
|
||||
})
|
||||
}
|
||||
|
||||
//获取车辆价格
|
||||
apiQuery.getAppSeriesInfo = function(params){
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(false, Config.api.appSeriesInfo, 2, params, "GET", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export default apiQuery;
|
||||
@@ -208,6 +208,7 @@ Page({
|
||||
v_id:v_id,
|
||||
levelIndex:e.detail.value,
|
||||
})
|
||||
this.getAppSeriesInfo()
|
||||
},
|
||||
|
||||
//车型颜色
|
||||
@@ -220,6 +221,7 @@ Page({
|
||||
color_id:color_id,
|
||||
colorIndex:e.detail.value,
|
||||
})
|
||||
this.getAppSeriesInfo()
|
||||
},
|
||||
|
||||
//内饰颜色
|
||||
@@ -232,6 +234,7 @@ Page({
|
||||
incolor_id:incolor_id,
|
||||
interiorIndex:e.detail.value,
|
||||
})
|
||||
this.getAppSeriesInfo()
|
||||
},
|
||||
|
||||
//代办包
|
||||
@@ -269,6 +272,22 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//获取车辆价格
|
||||
getAppSeriesInfo(){
|
||||
if(this.data.car_id != ''&&this.data.v_id != ''&&this.data.color_id != ''&&this.data.incolor_id != ''){
|
||||
let params = {};
|
||||
params['car_id'] = this.data.car_id;
|
||||
params['v_id'] = this.data.v_id;
|
||||
params['color_id'] = this.data.color_id;
|
||||
params['incolor_id'] = this.data.incolor_id;
|
||||
_.apiQuery.getAppSeriesInfo(params).then(res => {
|
||||
this.setData({
|
||||
priceinfo:res.data,
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
//新建订单
|
||||
postAppCusorder() {
|
||||
let that = this
|
||||
@@ -337,8 +356,8 @@ Page({
|
||||
params['v_id'] = that.data.v_id;
|
||||
params['color_id'] = that.data.color_id;
|
||||
params['incolor_id'] = that.data.incolor_id;
|
||||
params['price'] = that.data.levelList[that.data.levelIndex].price;
|
||||
params['deposit'] = that.data.levelList[that.data.levelIndex].deposit;
|
||||
params['price'] = that.data.priceinfo.price;
|
||||
params['deposit'] = that.data.priceinfo.deposit;
|
||||
params['payway'] = that.data.paymentIndex==0?'1':'0';
|
||||
params['pack_id'] = that.data.pack_id;
|
||||
params['main_type'] = that.data.mainIndex==0?'0':'1';
|
||||
|
||||
@@ -56,13 +56,13 @@
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
||||
<view class="absolute left-0 box-middle color-333">车辆合同售价</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="height:38rpx;">
|
||||
<text wx:if="{{levelIndex != -1}}">{{levelList[levelIndex].price}}元</text>
|
||||
<text wx:if="{{priceinfo.price}}">{{priceinfo.price}}元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
||||
<view class="absolute left-0 box-middle color-333">定金</view>
|
||||
<view class="pt30 pb30 text-right font-28 color-666" style="height:38rpx;">
|
||||
<text wx:if="{{levelIndex != -1}}">{{levelList[levelIndex].deposit}}元</text>
|
||||
<text wx:if="{{priceinfo.deposit}}">{{priceinfo.deposit}}元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative bbs-1-eb pl190 last-b-none">
|
||||
|
||||
Reference in New Issue
Block a user