This commit is contained in:
chenrx
2024-06-04 21:12:05 +08:00
parent d2f4e17852
commit 95e4805aac
14 changed files with 298 additions and 896 deletions
+1
View File
@@ -44,6 +44,7 @@ api = {
appCusorderStatus: "app/cusorder/status", //修改订单状态
appCustomersAdmins: "app/customers/admins", //分配客户
appXz: "app/xz", //获取虚拟电话
appYx: "app/yx", //获取云信虚拟电话
appCustomerlogs: "app/customerlogs", //新增日志
appCustomerData: "app/customers/data", //修改客户基本信息
appServicesPackage: "app/services/package", //获取代办包
+6
View File
@@ -257,6 +257,12 @@ apiQuery.getAppXz = function (params) {
HttpRequest(false, Config.api.appXz, 2, params, "GET", resolve, reject)
})
}
//获取云信电话
apiQuery.getAppYx = function (params) {
return new Promise(function (resolve, reject) {
HttpRequest(false, Config.api.appYx, 2, params, "GET", resolve, reject)
})
}
//新增日志 /作废
apiQuery.postAppCustomerlogs = function (params) {
+1 -1
View File
@@ -594,7 +594,7 @@ Page({
let params = {};
params['id'] = e.currentTarget.dataset.id;
params['type'] = 0;
_.apiQuery.getAppXz(params).then(res=>{
_.apiQuery.getAppYx(params).then(res=>{
this.setData({
isShowCall:true,
phoneNumber:res.data.mobile,
+1 -1
View File
@@ -394,7 +394,7 @@ Page({
let params = {};
params['id'] = e.currentTarget.dataset.id;
params['type'] = 0;
_.apiQuery.getAppXz(params).then(res=>{
_.apiQuery.getAppYx(params).then(res=>{
this.setData({
isShowCall:true,
phoneNumber:res.data.mobile,
+1 -1
View File
@@ -19,7 +19,7 @@
<view class="absolute right-0 box-middle mr40 pt30 pb30 font-30 color-36afa2" bindtap='getAppSms'>{{text}}</view>
</view>
<view class="mt30 font-22 color-ccc text-center">
<label class="inline-block text-middle statement fn-clear"><checkbox class="fn-fl" checked="true" /><text class="pt3 fn-fl">我已阅读并同意</text></label>
<label class="inline-block text-middle statement fn-clear"><checkbox class="fn-fl" /><text class="pt3 fn-fl">我已阅读并同意</text></label>
<text class="text-middle color-36afa2" bindtap="pushLink" data-url="/pages/statement/registration/index">《理车宝用户注册协议》</text>
<!-- <text class="text-middle">和</text>
<text class="text-middle color-36afa2" bindtap="pushLink" data-url="/pages/statement/privacy/index">《理车宝用户隐私政策》</text> -->
+2 -2
View File
@@ -62,7 +62,7 @@
<view class="absolute left-0 box-middle font-28 color-333">{{key}}</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx">
<text>{{value}}</text>
<i wx:if="{{!info.refund_status}}" class="iconfont ml10 icon-gengduo font-26 color-999"></i>
<i wx:if="{{info.edit_order_status}}" class="iconfont ml10 icon-gengduo font-26 color-999"></i>
</view>
</view>
</block>
@@ -337,7 +337,7 @@
</view>
<view class="fixed left-0 right-0 bottom-0 pt20 pl30 pr30 pb40 bg-000-op80 fn-flex" style="z-index:999">
<view class="fixed left-0 right-0 bottom-0 pt20 pl30 pr30 pb40 bg-000-op80 fn-flex" style="z-index:999" wx:if="{{userInfo.group_id!=4}}">
<button bindtap="{{info.status<2?'bindShowConfirm':''}}" class="fn-flex-item ml20 mr20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">{{info.bt_cn}}</button>
</view>
</view>
-6
View File
@@ -260,13 +260,7 @@ Page({
title: '请选择付款方式',
icon: 'none'
})
} else if (this.data.delry_time == '') {
wx.showToast({
title: '请选择交付时间',
icon: 'none'
})
} else {
let that = this
that.setData({
isPreview: true,
+24 -20
View File
@@ -64,7 +64,7 @@
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">期望交付时间<text class="color-f9394d">*</text></view>
<view class="absolute left-0 box-middle">期望交付时间</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker mode="date" value="{{delry_time}}" bindchange="delryTime">
<text class="color-ccc" wx:if="{{delry_time == ''}}">请选择</text>
@@ -85,6 +85,7 @@
<input class="wp95 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入⻋身优惠" model:value='{{discount_amount}}' always-embed='{{true}}' />
</view>
</view>
<!--
<block wx:if="{{paymentIndex == 1}}">
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">首付类型</view>
@@ -115,12 +116,14 @@
</view>
</view>
</block>
-->
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">是否店内投保</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{is_get_insure}}" bindchange="changeIsGetInsure" type="switch" color='#36afa2' style="zoom:0.7" />
</view>
</view><view class="relative bbs-1-eb last-b-none pl180 font-28">
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">是否店内上牌</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{is_get_brand}}" bindchange="changeIsGetBrand" type="switch" color='#36afa2' style="zoom:0.7" />
@@ -132,7 +135,6 @@
<input class="wp95 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入上牌费" model:value='{{register_amount}}' always-embed='{{true}}' />
</view>
</view>
</view>
</view>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
@@ -175,10 +177,11 @@
<view class="absolute left-0 box-middle font-28 color-333">付款方式</view>
<view class="pt30 pb30 text-right font-28 color-666">{{payment[paymentIndex]}}</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{delry_time}}">
<view class="absolute left-0 box-middle font-28 color-333">期望交付时间</view>
<view class="pt30 pb30 text-right font-28 color-666">{{delry_time}}</view>
</view>
<!--
<block wx:if="{{paymentIndex == 1}}">
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle color-333">首付类型</view>
@@ -197,22 +200,7 @@
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{monthly_payment}}</text>元</view>
</view>
</block>
<view class="bbs-1-eb last-b-none">
<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"> {{is_get_brand?'是':'否'}} </view>
</view>
</view>
<view class="bbs-1-eb last-b-none">
<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"> {{is_get_insure?'是':'否'}} </view>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{register_amount && is_get_brand}}">
<view class="absolute left-0 box-middle color-333">上牌费</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{register_amount}}</text>元</view>
</view>
-->
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{confirm_amount}}">
<view class="absolute left-0 box-middle color-333">定金</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{confirm_amount}}</text>元</view>
@@ -221,6 +209,22 @@
<view class="absolute left-0 box-middle color-333">车身优惠</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{discount_amount}}</text>元</view>
</view>
<view class="bbs-1-eb last-b-none">
<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"> {{is_get_insure?'是':'否'}} </view>
</view>
</view>
<view class="bbs-1-eb last-b-none">
<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"> {{is_get_brand?'是':'否'}} </view>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{register_amount && is_get_brand}}">
<view class="absolute left-0 box-middle color-333">上牌费</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{register_amount}}</text>元</view>
</view>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
<button class="wp100 bds-2-36afa2 bg-fff mr20 pt10 pb10 text-center font-32 color-36afa2 ulib-r750" hover-class="btn-36afa2-hover" bindtap="optPreview">重新编辑</button>
<button class="wp100 btn-36afa2 ml20 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppCusorderV2">确认</button>
+28 -601
View File
@@ -2,35 +2,13 @@ import _ from '../../../commons/js/commons'
const app = getApp()
Page({
data: {
o_id:'',//订单id
finance_id:'',//金融机构id
financeArray:[],//金融机构
financeIndex:-1,//金融机构索引
price_loan:'',//贷款金额
submitFlag:false,
isShowConfirm:false,//是否显示确认弹框
nums:[],//金融分期期数列表
numIndex:-1,//分期期数索引
num:'',//分期期数
notify_file_obj:[],
is_tiexi:0,//是否贴息
tab:[
{
title:'首付按揭',
value:1,
},
{
title:'车辆按揭',
value:0,
},
],
tabkey:1,
loan_rebate:0,
userInfo:'',
o_id: '', //订单id
firstPayArr: ['现金', '0首付', '按揭', ], //首付类型
firstPayIndex: 0, //首付类型
loan_amount: '',
loan_periods: '',
monthly_payment: '',
userInfo: '',
},
onLoad: function (options) {
for (let key in options) {
@@ -41,14 +19,14 @@ Page({
this.getAppCusorderV2()
this.getUserInfo()
},
onShow: function () {
},
//获取用户信息
getUserInfo(){
getUserInfo() {
_.apiQuery.getUserInfo().then(res => {
this.setData({
userInfo: res,
@@ -57,436 +35,45 @@ Page({
},
//获取订单详情
getAppCusorderV2(){
getAppCusorderV2() {
let params = {};
params['id'] = this.data.id;
_.apiQuery.getAppCusorderV2(params).then(res=>{
_.apiQuery.getAppCusorderDetails(params).then(res => {
this.setData({
info:res.data,
info: res.data,
loan_amount: res.data.money_json.loan_amount ?? '', //贷款额度
loan_periods: res.data.money_json.loan_periods ?? '', //贷款期数
monthly_payment: res.data.money_json.monthly_payment ?? '', //月供
firstPayIndex: res.data.downpayment_type - 1,
})
if(this.data.tabkey==1&&res.data.price_loan0>0){
this.setData({
notify_file_obj:res.data.price_loan0_data.notify_file,
lend_file_obj:res.data.price_loan0_data.lend_file,
price_loan:res.data.price_loan0_data.price_loan?res.data.price_loan0_data.price_loan:'',
is_tiexi:res.data.price_loan0_data.is_tiexi,
loan_rebate:res.data.price_loan0_data.loan_rebate,
})
//匹配融机构
if(res.data.price_loan0_data.finance_id>0){
let finanparams = {};
finanparams['page'] = 1;
finanparams['size'] = 100;
_.apiQuery.getAppFinance(finanparams).then(res6 => {
if(res6.data.list.length>0){
let financeArray = []
res6.data.list.forEach((item,index) => {
if(item.id == res.data.price_loan0_data.finance_id){
this.setData({
financeIndex:index,
})
}
financeArray.push(item.title)
})
this.setData({
finance_id:res.data.price_loan0_data.finance_id,
financeArray:financeArray,
financeList:res6.data.list,
})
}
});
}else{
this.getAppFinance()
}
//匹配分期期数
if(res.data.price_loan0_data.num>0){
_.apiQuery.getAppFinanceNums().then(res1 => {
if(res1.data.list.length>0){
res1.data.list.forEach((item,index) => {
if(item == res.data.price_loan0_data.num){
this.setData({
numIndex:index,
})
}
})
this.setData({
num:res.data.price_loan0_data.num,
nums:res1.data.list,
})
}
})
}else{
this.getAppFinanceNums()
}
}else{
this.setData({
notify_file_obj:res.data.notify_file,
lend_file_obj:res.data.lend_file,
price_loan:res.data.price_loan?res.data.price_loan:'',
is_tiexi:res.data.is_tiexi,
loan_rebate:res.data.loan_rebate,
})
//匹配融机构
if(res.data.finance_id>0){
let finanparams = {};
finanparams['page'] = 1;
finanparams['size'] = 100;
_.apiQuery.getAppFinance(finanparams).then(res6 => {
if(res6.data.list.length>0){
let financeArray = []
res6.data.list.forEach((item,index) => {
if(item.id == res.data.finance_id){
this.setData({
financeIndex:index,
})
}
financeArray.push(item.title)
})
this.setData({
finance_id:res.data.finance_id,
financeArray:financeArray,
financeList:res6.data.list,
})
}
});
}else{
this.getAppFinance()
}
//匹配分期期数
if(res.data.num>0){
_.apiQuery.getAppFinanceNums().then(res1 => {
if(res1.data.list.length>0){
res1.data.list.forEach((item,index) => {
if(item == res.data.num){
this.setData({
numIndex:index,
})
}
})
this.setData({
num:res.data.num,
nums:res1.data.list,
})
}
})
}else{
this.getAppFinanceNums()
}
}
wx.stopPullDownRefresh()
})
},
//获取金融机构列表
getAppFinance(){
let params = {};
params['page'] = 1;
params['size'] = 100;
_.apiQuery.getAppFinance(params).then(res => {
if(res.data.list.length>0){
let financeArray = []
res.data.list.forEach(item => {
financeArray.push(item.title)
})
this.setData({
financeArray:financeArray,
financeList:res.data.list,
finance_id:'',
financeIndex:-1,
})
}
});
},
//获取金融机构列表
changeFinance(e) {
if(this.data.financeIndex != e.detail.value && e.detail.value >= 0){
let finance_id = ''
if(e.detail.value >= 0){
finance_id = this.data.financeList[e.detail.value].id
}
this.setData({
finance_id:finance_id,
financeIndex:e.detail.value,
})
}
},
//上传按揭通知函
chooseImg(e) {
let that = this
//上传保单
if(e.currentTarget.dataset.type=='notify'){
wx.chooseImage({
count: 10 - that.data.notify_file_obj.length, //
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res1) {
wx.showLoading({
title: '上传中',
})
let notify_file_obj=that.data.notify_file_obj
let k = 0
for (let i = 0; i < res1.tempFilePaths.length; i++) {
//上传图片
wx.uploadFile({
url:_.config.api.upImg,
filePath:res1.tempFilePaths[i],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
k = k + 1
resp.data = JSON.parse(resp.data);
if (resp.data.code == 200) {
let imgdata = resp.data
let list = []
list.push({
value:imgdata.data.url,
src:imgdata.data.full_url,
})
notify_file_obj=notify_file_obj.concat(list)
if(k == res1.tempFilePaths.length){
wx.hideLoading();
that.setData({
notify_file_obj,
})
}
}else{
wx.hideLoading();
}
},
})
}
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}
// if(e.currentTarget.dataset.type=='notify'){
// wx.chooseImage({
// count: 1, // 默认9
// sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
// sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
// success(res) {
// wx.showLoading({
// title: '上传中',
// })
// wx.uploadFile({
// url:_.config.api.upImg,
// filePath:res.tempFilePaths[0],
// name: 'img',
// formData: {
// 'app': 'liche'
// },
// success: (resp) => {
// resp.data = JSON.parse(resp.data);
// wx.hideLoading();
// if (resp.data.code == 200) {
// that.setData({
// 'notify_file_obj.value':resp.data.data.url,
// 'notify_file_obj.src':resp.data.data.full_url,
// })
// }
// },
// })
// },
// fail: res => {
// wx.showToast({
// title: '文件选择失败',
// icon: 'none',
// duration: 2000
// })
// }
// })
// }
if(e.currentTarget.dataset.type=='lend'){
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success(res) {
wx.showLoading({
title: '上传中',
})
wx.uploadFile({
url:_.config.api.upImg,
filePath:res.tempFilePaths[0],
name: 'img',
formData: {
'app': 'liche'
},
success: (resp) => {
resp.data = JSON.parse(resp.data);
wx.hideLoading();
if (resp.data.code == 200) {
that.setData({
'lend_file_obj.value':resp.data.data.url,
'lend_file_obj.src':resp.data.data.full_url,
})
}
},
})
},
fail: res => {
wx.showToast({
title: '文件选择失败',
icon: 'none',
duration: 2000
})
}
})
}
},
//修改贷款信息
putAppLoan1() {
if(this.data.finance_id == ''){
wx.showToast({
title: '请选择金融机构',
icon: 'none'
})
}
else if(!this.data.price_loan||this.data.price_loan == ''){
wx.showToast({
title: '请填写贷款金额',
icon: 'none'
})
}
else if(!this.data.notify_file_obj.length>0){
wx.showToast({
title: '请上传按揭通知函',
icon: 'none'
})
}
else{
if(this.data.info.edit_status==1){
this.setData({
isShowConfirm:true,
})
}else{
let notify_file = []
this.data.notify_file_obj.forEach(item => {
notify_file.push(item.value)
})
let that = this
that.setData({
submitFlag: true,
})
let params = {};
params['o_id'] = that.data.id;
params['finance_id'] = that.data.finance_id;
params['notify_file'] = notify_file;
params['price_loan'] = that.data.price_loan;
if(that.data.lend_file_obj.value){
params['lend_file'] = that.data.lend_file_obj.value;
}
if(that.data.num){
params['num'] = that.data.num;
}
if(!(that.data.tabkey==1&&that.data.info.price_loan0>0)){
params['is_tiexi'] = that.data.is_tiexi;
}
if(that.data.tabkey==1&&that.data.info.price_loan0>0){
params['if_loan0'] = 1;
}
if(that.data.userInfo.biz_type==1){
params['loan_rebate'] = that.data.loan_rebate;
}
_.apiQuery.putAppLoan(params).then(res => {
that.setData({
submitFlag: false,
})
//刷新详情页
let pages = getCurrentPages();
let prevPage = null; //上一个页面
if (pages.length >= 2) {
prevPage = pages[pages.length - 2]; //上一个页面
if(prevPage.route == 'pages/order/detail/index2'){
prevPage.onPullDownRefresh()
}
}
wx.showToast({
title: '编辑成功',
icon: 'success',
duration: 2000
})
setTimeout(function () {
wx.navigateBack({
delta: 1
})
}, 500)
}).catch(res=>{
that.setData({
submitFlag: false,
})
});
}
}
},
//修改贷款信息
putAppLoan2() {
let notify_file = []
this.data.notify_file_obj.forEach(item => {
notify_file.push(item.value)
})
let that = this
that.setData({
submitFlag: true,
})
let params = {};
params['o_id'] = that.data.id;
params['finance_id'] = that.data.finance_id;
params['notify_file'] = notify_file;
params['price_loan'] = that.data.price_loan;
if(that.data.lend_file_obj.value){
params['lend_file'] = that.data.lend_file_obj.value;
}
if(that.data.num){
params['num'] = that.data.num;
}
if(!(that.data.tabkey==1&&that.data.info.price_loan0>0)){
params['is_tiexi'] = that.data.is_tiexi;
}
if(that.data.tabkey==1&&that.data.info.price_loan0>0){
params['if_loan0'] = 1;
}
if(that.data.userInfo.biz_type==1){
params['loan_rebate'] = that.data.loan_rebate;
}
params['downpayment_type'] = parseInt(that.data.firstPayIndex) + 1;
params['loan_amount'] = that.data.loan_amount;
params['loan_periods'] = that.data.loan_periods;
params['monthly_payment'] = that.data.monthly_payment;
_.apiQuery.putAppLoan(params).then(res => {
that.setData({
isShowConfirm: false,
submitFlag: false,
})
//刷新详情页
let pages = getCurrentPages();
let prevPage = null; //上一个页面
if (pages.length >= 2) {
prevPage = pages[pages.length - 2]; //上一个页面
if(prevPage.route == 'pages/order/detail/index2'){
if (prevPage.route == 'pages/order/detail/index2') {
prevPage.onPullDownRefresh()
}
}
@@ -500,180 +87,20 @@ Page({
delta: 1
})
}, 500)
}).catch(res=>{
}).catch(res => {
that.setData({
submitFlag: false,
})
});
},
//获取金融分期期数
getAppFinanceNums(){
_.apiQuery.getAppFinanceNums().then(res => {
if(res.data.list.length>0){
this.setData({
nums:res.data.list,
})
}
});
},
//选择金融分期期数
changeNum(e) {
if(this.data.numIndex != e.detail.value && e.detail.value >= 0){
let num = ''
if(e.detail.value >= 0){
num = this.data.nums[e.detail.value]
}
//选择首付类型
changeFirstPay(e) {
if (this.data.firstPayIndex != e.detail.value && e.detail.value >= 0) {
this.setData({
num,
numIndex:e.detail.value,
firstPayIndex: e.detail.value,
})
}
},
//显示隐藏意向金弹框
optConfirm(){
this.setData({
isShowConfirm:!this.data.isShowConfirm,
})
},
//查看图片
previewImage: function (e) {
if(e.currentTarget.dataset.type=='notify'){
let img = []
this.data.notify_file_obj.forEach(item => {
img.push(item.src)
})
wx.previewImage({
current:e.currentTarget.dataset.current,
urls:img,
})
}
else if(e.currentTarget.dataset.type=='lend'){
wx.previewImage({
current:this.data.lend_file_obj.src,
urls:[this.data.lend_file_obj.src],
})
}
},
// 编辑页面删除图片
delImg(e){
if(e.currentTarget.dataset.type=='notify'){
let notify_file_obj = this.data.notify_file_obj
notify_file_obj.splice(e.currentTarget.dataset.index, 1)
this.setData({
notify_file_obj,
})
}
},
//是否贴息
switchTiexi:function(e){
this.setData({
is_tiexi:e.detail.value ? 1 :0
})
},
//切换tab
changeTab(e){
this.setData({
tabkey: e.currentTarget.dataset.value,
})
if(this.data.tabkey==1){
this.setData({
notify_file_obj:this.data.info.price_loan0_data.notify_file,
lend_file_obj:this.data.info.price_loan0_data.lend_file,
price_loan:this.data.info.price_loan0_data.price_loan?this.data.info.price_loan0_data.price_loan:'',
is_tiexi:this.data.info.price_loan0_data.is_tiexi,
loan_rebate:this.data.info.price_loan0_data.loan_rebate?this.data.info.price_loan0_data.loan_rebate:0,
})
//匹配融机构
if(this.data.info.price_loan0_data.finance_id>0&&this.data.financeList.length>0){
this.data.financeList.forEach((item,index) => {
if(item.id == this.data.info.price_loan0_data.finance_id){
this.setData({
financeIndex:index,
})
}
})
this.setData({
finance_id:this.data.info.price_loan0_data.finance_id,
})
}else{
this.setData({
financeIndex:-1,//金融机构索引
finance_id:'',//金融机构id
})
}
//匹配分期期数
if(this.data.info.price_loan0_data.num&&this.data.nums.length>0){
this.data.nums.forEach((item,index) => {
if(item == this.data.info.price_loan0_data.num){
this.setData({
numIndex:index,
})
}
})
this.setData({
num:this.data.info.price_loan0_data.num,
})
}else{
this.setData({
numIndex:-1,//分期期数索引
num:'',//分期期数
})
}
}else{
this.setData({
notify_file_obj:this.data.info.notify_file,
lend_file_obj:this.data.info.lend_file,
price_loan:this.data.info.price_loan?this.data.info.price_loan:'',
is_tiexi:this.data.info.is_tiexi,
loan_rebate:this.data.info.loan_rebate?this.data.info.loan_rebate:0,
})
//匹配融机构
if(this.data.info.finance_id>0&&this.data.financeList.length>0){
this.data.financeList.forEach((item,index) => {
if(item.id == this.data.info.finance_id){
this.setData({
financeIndex:index,
})
}
})
this.setData({
finance_id:this.data.info.finance_id,
})
}else{
this.setData({
financeIndex:-1,//金融机构索引
finance_id:'',//金融机构id
})
}
//匹配分期期数
if(this.data.info.num>0&&this.data.nums.length>0){
this.data.nums.forEach((item,index) => {
if(item == this.data.info.num){
this.setData({
numIndex:index,
})
}
})
this.setData({
num:this.data.info.num,
})
}else{
this.setData({
numIndex:-1,//分期期数索引
num:'',//分期期数
})
}
}
},
})
+25 -164
View File
@@ -7,176 +7,37 @@
</view>
</block>
</view>
<block wx:if="{{(info.price_loan0>0&&tabkey==1&&!info.price_loan0_status)||(info.price_loan0>0&&tabkey==0&&!info.price_loan_status)||(!(info.price_loan0>0)&&!info.price_loan_status)}}">
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{financeArray.length>0&&0}}">
<view class="absolute left-0 box-middle font-28 color-333">金融机构<text class="color-f9394d">*</text></view>
<view class="pt30 pb30 text-right font-28">
<picker bindchange="changeFinance" value="{{financeIndex}}" range="{{financeArray}}">
<text class="color-ccc" wx:if="{{financeIndex == -1}}">请选择</text>
<text wx:else>{{financeArray[financeIndex]}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">首付类型</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeFirstPay" value="{{firstPayIndex}}" range="{{firstPayArr}}">
<text class="color-ccc" wx:if="{{firstPayIndex == -1}}">请选择</text>
<text wx:else>{{firstPayArr[firstPayIndex]}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">贷款金额<text class="color-f9394d">*</text></view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入贷款金额" model:value='{{price_loan}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">贷款额度</view>
<view>
<input class="wp95 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入贷款额度" model:value='{{loan_amount}}' always-embed='{{true}}' />
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{nums.length>0}}">
<view class="absolute left-0 box-middle font-28 color-333">分期期数<text class="color-f9394d">*</text></view>
<view class="pt30 pb30 text-right font-28">
<picker bindchange="changeNum" value="{{numIndex}}" range="{{nums}}">
<text class="color-ccc" wx:if="{{numIndex == -1}}">请选择</text>
<text wx:else>{{nums[numIndex]}}</text>
<i class="iconfont ml5 icon-gengduo"></i>
</picker>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">贷款期数</view>
<view>
<input class="wp95 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入贷款期数" model:value='{{loan_periods}}' always-embed='{{true}}' />
</view>
<!-- 20240226 增加月供 -->
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">月供<text class="color-f9394d">*</text></view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入供" model:value='{{price_loan}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{!(info.price_loan0>0&&tabkey==1&&0)}}">
<view class="absolute left-0 box-middle">是否贴息</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{is_tiexi==1}}" bindchange="switchTiexi" type="switch" color='#36afa2' style="zoom:0.8" />
</view>
</view>
<block wx:if="{{userInfo.biz_type==1&&0}}">
<view class="relative bbs-1-eb last-b-none pl140 pr40 font-28">
<view class="absolute left-0 box-middle">按揭返点</view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入按揭返点" model:value='{{loan_rebate}}' />
</view>
<view class="absolute right-0 box-middle">%</view>
</view>
</block>
<view class="relative" wx:if="{{0}}">
<view class="mt30 font-28">按揭通知函<text class="color-f9394d">*</text></view>
<view class="mt30 pb30 text-center">
<scroll-view class="space-nowrap" scroll-x="true">
<block wx:for='{{notify_file_obj}}' wx:for-item='notify' wx:key='index'>
<view class="inline-block bg-f8 img-300x200 ml10 mr10 relative ulib-r10 overflowhidden">
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-guanbi1 inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-1" bindtap="delImg" data-type="notify" data-index="{{index}}" ></i>
<image class='block wp100 img-h-200 ulib-r10' src='{{notify.src}}' mode='aspectFit' bindtap="previewImage" data-type="notify" data-current="{{notify.src}}"></image>
</view>
</block>
<block wx:if="{{notify_file_obj.length<10}}">
<view class="inline-block bg-f8 img-300x200 ml10 mr10 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="notify">
<view class="absolute left-0 right-0 box-middle color-ccc">
<i class="iconfont icon-paizhao font-48"></i>
<view class="mt10 font-22">上传按揭通知函</view>
</view>
</view>
</block>
</scroll-view>
</view>
</view>
</block>
<block wx:else>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{0}}">
<view class="absolute left-0 box-middle font-28 color-333">金融机构</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{financeArray[financeIndex]}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">贷款金额</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{price_loan}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">分期期数</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{nums[numIndex]}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">月供</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{(price_loan/nums[numIndex])}}</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{!(info.price_loan0>0&&tabkey==1)&&0}}">
<view class="absolute left-0 box-middle">是否贴息</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{is_tiexi==1?'是':'否'}}</view>
</view>
<block wx:if="{{userInfo.biz_type==1&&0}}">
<view class="relative bbs-1-eb last-b-none pl140 pr40 font-28">
<view class="absolute left-0 box-middle">按揭返点</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;">{{loan_rebate}}%</view>
</view>
</block>
<view class="relative" wx:if="{{0}}">
<view class="mt30 font-28">按揭通知函</view>
<view class="mt30 pb30 text-center">
<scroll-view class="space-nowrap" scroll-x="true">
<block wx:for='{{notify_file_obj}}' wx:for-item='notify' wx:key='index'>
<view class="inline-block bg-f8 img-300x200 ml10 mr10 relative ulib-r10 overflowhidden">
<image class='block wp100 img-h-200 ulib-r10' src='{{notify.src}}' mode='aspectFit' bindtap="previewImage" data-type="notify" data-current="{{notify.src}}"></image>
</view>
</block>
<block wx:if="{{notify_file_obj.length==0}}">
<view class="inline-block bg-f8 img-300x200 ml10 mr10 relative ulib-r10 overflowhidden">
<view class="absolute left-0 right-0 box-middle color-ccc">
<i class="iconfont icon-paizhao font-48"></i>
<view class="mt10 font-22">没有上传按揭通知函</view>
</view>
</view>
</block>
</scroll-view>
</view>
</view>
</block>
<view class="relative" wx:if="{{0}}">
<view class="mt30 font-28">放款通知函</view>
<view class="mt30 text-center">
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
<block wx:if="{{lend_file_obj.value}}">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
<i class="absolute top-0 right-0 bg-000-op50 iconfont icon-shuaxin inner10 font-26 color-fff ulib-rtr10 ulib-rbl10 z-index-4" bindtap="chooseImg" data-type="lend"></i>
<image class='block wp100 img-h-200 ulib-r10' src='{{lend_file_obj.src}}' mode='aspectFit' bindtap="previewImage" data-type="lend"></image>
</view>
</block>
<block wx:else>
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="lend">
<view class="absolute left-0 right-0 box-middle color-ccc">
<i class="iconfont icon-fanmian font-60"></i>
<view class="mt10 font-22">上传放款通知函</view>
</view>
</view>
</block>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">⽉供</view>
<view>
<input class="wp95 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入供" model:value='{{monthly_payment}}' always-embed='{{true}}' />
</view>
</view>
</view>
</view>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb" wx:if="{{(info.price_loan0>0&&tabkey==1&&!info.price_loan0_status)||(info.price_loan0>0&&tabkey==0&&!info.price_loan_status)||(!(info.price_loan0>0)&&!info.price_loan_status)}}">
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="putAppLoan1">确认</button>
</view>
<!--收起意向金-->
<lcb-msg isShow="{{isShowConfirm}}">
<view slot="content">
<view class="pt50 pl60 pr60 pb40 text-center">
<view class="font-36">确定修改按揭信息?</view>
<view class="inline-block text-left">
<view class="mt20 font-28 color-666">金融机构:{{financeArray[financeIndex]}}</view>
<view class="mt20 font-28 color-666">贷款金额:{{price_loan}}</view>
<view class="mt20 font-28 color-666">分期期数:{{num}}</view>
<view class="mt20 font-28 color-666" wx:if="{{!(info.price_loan0>0&&tabkey==1)}}">是否贴息:{{is_tiexi==1?'是':'否'}}</view>
<block wx:if="{{userInfo.biz_type==1}}">
<view class="mt20 font-28 color-666">按揭返点:{{loan_rebate}}%</view>
</block>
</view>
</view>
<view class="pl60 pr60 pb50 text-center font-32 color-666 fn-flex">
<view class="fn-flex-item pr15">
<view bindtap="optConfirm" class="bds-1-eb pt15 pb15 font-28 color-666 ulib-r750">取消</view>
</view>
<view class="fn-flex-item pl15">
<view bindtap="putAppLoan2" disabled="{{submitFlag}}" class="btn-36afa2 pt15 pb15 font-28 color-fff ulib-r750">确认</view>
</view>
</view>
</view>
</lcb-msg>
</view>
+83 -29
View File
@@ -24,41 +24,95 @@
<block wx:for='{{list}}' wx:key='index'>
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="/pages/order/detail/index2?id={{item.id}}">
<!-- <view class="absolute top-0 left-0 ml40 pt5 pb5 pl10 pr10 bg-36afa2 font-22 color-fff" wx:if="{{item.status_name}}">{{item.status_name}}</view> -->
<view class="relative pt10 pb10 color-36afa2" catchtap="pushLink" data-url="/pages/customer/detail/index?id={{item.cus_id}}">
<view class="font-32">{{item.name}}({{item.mobile}})</view>
<i class="absolute right-0 box-middle iconfont icon-gengduo font-26"></i>
<view class=" relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden pb20" bindtap="pushLink" data-url="/pages/order/detail/index2?id={{item.id}}">
<view class="pl40 pt40 pr40">
<view class="absolute top-0 left-0 ml40 pt5 pb5 pl10 pr10 bg-36afa2 font-22 color-fff" wx:if="{{item.status_name}}">{{item.status_name}}</view>
<view class="relative pt10 pb10 color-36afa2" catchtap="pushLink" data-url="/pages/customer/detail/index?id={{item.cus_id}}">
<view class="font-32">{{item.name}}({{item.mobile}})</view>
<i class="absolute right-0 box-middle iconfont icon-gengduo font-26"></i>
</view>
</view>
<view class="mt20 fn-clear font-28 text-bold" wx:if="{{item.company}}">
<view class="fn-fl color-333">企业名称</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">{{item.company}}</view>
</view>
<block wx:for="{{item.other_data}}" wx:for-index='key' wx:for-item="pin" wx:key='i'>
<view class="mt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<block wx:if="{{key=='销售顾问'}}">
<view class="fn-fr wp60 text-nowrap text-right">
<text class="text-middle color-666" wx:if="{{pin.value}}">{{pin.value}}</text>
<text class="inline-block ml10 bg-36afa2 pt5 pb5 pl15 pr15 text-middle font-22 color-fff ulib-r10" catchtap="showTransfer" data-id="{{item.id}}" wx:if="{{item.allot == 1}}">移交</text>
<block wx:if="{{item.other_data.o_data_1}}">
<view class="ml40 mr40">
<block wx:for="{{item.other_data.o_data_1}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</block>
</view>
</block>
<block wx:if="{{item.other_data.o_data_2}}">
<view class="ml40 mr40">
<block wx:for="{{item.other_data.o_data_2}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</block>
</view>
</block>
<block wx:if="{{item.other_data.o_data_3}}">
<view class="ml40 mr40 pb20">
<block wx:for="{{item.other_data.o_data_3}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</block>
</view>
</block>
<block wx:if="{{item.other_data.o_data_4}}">
<view class="bts-1-eb ml40 mr40 pb20">
<block wx:for="{{item.other_data.o_data_4}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</block>
<view wx:else class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</block>
<view class="mt20 pt5 pb5 pl20 pr20 bg-f6 font-22 color-666 ulib-rlb750 ulib-rr750" wx:if="{{item.remark}}">注:{{item.remark}}</view>
</view>
</block>
<lcb-listmore isLoading='{{loading}}' isEnd='{{end}}' isNoData='{{noData}}'></lcb-listmore>
+84 -30
View File
@@ -53,39 +53,93 @@
<view class="mt30 pl30 pr30">
<block wx:for='{{list}}' wx:key='index'>
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="/pages/order/detail/index2?id={{item.id}}">
<view class="absolute top-0 left-0 ml40 pt5 pb5 pl10 pr10 bg-36afa2 font-22 color-fff" wx:if="{{item.status_name}}">{{item.status_name}}</view>
<view class="relative pt10 pb10 color-36afa2" catchtap="pushLink" data-url="/pages/customer/detail/index?id={{item.cus_id}}">
<view class="font-32">{{item.mobile}}</view>
<i class="absolute right-0 box-middle iconfont icon-gengduo font-26"></i>
<view class=" relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden pb20" bindtap="pushLink" data-url="/pages/order/detail/index2?id={{item.id}}">
<view class="pl40 pt40 pr40">
<view class="absolute top-0 left-0 ml40 pt5 pb5 pl10 pr10 bg-36afa2 font-22 color-fff" wx:if="{{item.status_name}}">{{item.status_name}}</view>
<view class="relative pt10 pb10 color-36afa2" catchtap="pushLink" data-url="/pages/customer/detail/index?id={{item.cus_id}}">
<view class="font-32">{{item.name}}({{item.mobile}})</view>
<i class="absolute right-0 box-middle iconfont icon-gengduo font-26"></i>
</view>
</view>
<block wx:if="{{item.other_data}}">
<block wx:for="{{item.other_data}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<!-- <view class="bds-1-eb inner10">1111</view> -->
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<block wx:if="{{key=='销售顾问'}}">
<view class="fn-fr wp60 text-nowrap text-right">
<text class="text-middle color-666" wx:if="{{pin.value}}">{{pin.value}}</text>
<text class="inline-block ml10 bg-36afa2 pt5 pb5 pl15 pr15 text-middle font-22 color-fff ulib-r10" catchtap="showTransfer" data-id="{{item.id}}" wx:if="{{item.allot == 1}}">移交</text>
</view>
</block>
<view wx:else class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
<block wx:if="{{item.other_data.o_data_1}}">
<view class="ml40 mr40">
<block wx:for="{{item.other_data.o_data_1}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</view>
</block>
</block>
</view>
</block>
<block wx:if="{{item.other_data.o_data_2}}">
<view class="ml40 mr40">
<block wx:for="{{item.other_data.o_data_2}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</block>
</view>
</block>
<block wx:if="{{item.other_data.o_data_3}}">
<view class="ml40 mr40 pb20">
<block wx:for="{{item.other_data.o_data_3}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</block>
</view>
</block>
<block wx:if="{{item.other_data.o_data_4}}">
<view class="bts-1-eb ml40 mr40 pb20">
<block wx:for="{{item.other_data.o_data_4}}" wx:for-index='key' wx:for-item="pin" wx:key='key'>
<view class="pt20 fn-clear font-28">
<view class="fn-fl color-333">{{key}}</view>
<view class="fn-fr wp60 text-nowrap text-right color-666">
<block wx:if="{{pin.type=='checkbox'}}">
<block wx:for="{{pin.lists}}" wx:for-index='key' wx:for-item="lable" wx:key='j'>
<view class="inline-block ml10 mr10"><i class="iconfont font-34 mr5 text-middle {{lable.selected?'icon-danxuan_xuanzhong color-36afa2':'icon-danxuan'}}" /><text class="text-middle">{{lable.value}}</text></view>
</block>
</block>
<block wx:elif="{{pin.type=='text'}}">
<text class="inline-block mr10 pt5 pb5 pl20 pr20 font-22 color-fff ulib-r750" style="background-color:{{pin.bg_color}};" wx:if="{{pin.bg_color}}">{{pin.value}}</text>
<text wx:else>{{pin.value}}</text>
</block>
</view>
</view>
</block>
</view>
</block>
<view class="mt20 pt5 pb5 pl20 pr20 bg-f6 font-22 color-666 ulib-rlb750 ulib-rr750" wx:if="{{item.remark}}">注:{{item.remark}}</view>
</view>
-5
View File
@@ -152,11 +152,6 @@ Page({
title: '请选择付款方式',
icon: 'none'
})
} else if (this.data.delry_time == '') {
wx.showToast({
title: '请选择交付时间',
icon: 'none'
})
} else {
let that = this
that.setData({
+42 -36
View File
@@ -126,7 +126,7 @@
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">期望交付时间<text class="color-f9394d">*</text></view>
<view class="absolute left-0 box-middle">期望交付时间</view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker mode="date" value="{{delry_time}}" bindchange="delryTime">
<text class="color-ccc" wx:if="{{delry_time == ''}}">请选择</text>
@@ -135,6 +135,7 @@
</picker>
</view>
</view>
<!--
<block wx:if="{{paymentIndex == 1}}">
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">首付类型</view>
@@ -165,24 +166,7 @@
</view>
</view>
</block>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">是否店内上牌</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{is_get_brand}}" bindchange="changeIsGetBrand" type="switch" color='#36afa2' style="zoom:0.7" />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">是否店内投保</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{is_get_insure}}" bindchange="changeIsGetInsure" type="switch" color='#36afa2' style="zoom:0.7" />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{is_get_brand==1}}">
<view class="absolute left-0 box-middle">上牌费</view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入上牌费" model:value='{{register_amount}}' always-embed='{{true}}' />
</view>
</view>
-->
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">定⾦</view>
<view>
@@ -195,6 +179,25 @@
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入⻋身优惠" model:value='{{discount_amount}}' always-embed='{{true}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">是否店内投保</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{is_get_insure}}" bindchange="changeIsGetInsure" type="switch" color='#36afa2' style="zoom:0.7" />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">是否店内上牌</view>
<view class="relative pt30 pb30 text-right">
<switch checked="{{is_get_brand}}" bindchange="changeIsGetBrand" type="switch" color='#36afa2' style="zoom:0.7" />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{is_get_brand==1}}">
<view class="absolute left-0 box-middle">上牌费</view>
<view>
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="digit" placeholder="请输入上牌费" model:value='{{register_amount}}' always-embed='{{true}}' />
</view>
</view>
</view>
</view>
<view class="fixed left-0 right-0 bottom-0 bg-fff-op90 inner40 fn-flex safe-pb">
@@ -259,10 +262,11 @@
<view class="absolute left-0 box-middle font-28 color-333">付款方式</view>
<view class="pt30 pb30 text-right font-28 color-666">{{payment[paymentIndex]}}</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{delry_time}}">
<view class="absolute left-0 box-middle font-28 color-333">期望交付时间</view>
<view class="pt30 pb30 text-right font-28 color-666">{{delry_time}}</view>
</view>
<!--
<block wx:if="{{paymentIndex == 1}}">
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle color-333">首付类型</view>
@@ -281,22 +285,7 @@
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{monthly_payment}}</text>元</view>
</view>
</block>
<view class="bbs-1-eb last-b-none">
<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"> {{is_get_brand?'是':'否'}} </view>
</view>
</view>
<view class="bbs-1-eb last-b-none">
<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"> {{is_get_insure?'是':'否'}} </view>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{register_amount && is_get_brand}}">
<view class="absolute left-0 box-middle color-333">上牌费</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{register_amount}}</text>元</view>
</view>
-->
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{confirm_amount}}">
<view class="absolute left-0 box-middle color-333">定金</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{confirm_amount}}</text>元</view>
@@ -305,6 +294,23 @@
<view class="absolute left-0 box-middle color-333">车身优惠</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{discount_amount}}</text>元</view>
</view>
<view class="bbs-1-eb last-b-none">
<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"> {{is_get_insure?'是':'否'}} </view>
</view>
</view>
<view class="bbs-1-eb last-b-none">
<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"> {{is_get_brand?'是':'否'}} </view>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{register_amount && is_get_brand}}">
<view class="absolute left-0 box-middle color-333">上牌费</view>
<view class="pt30 pb30 text-right font-28 color-666" style="min-height:38rpx;"><text class="mr10 color-f9394d">{{register_amount}}</text>元</view>
</view>
<!--
<view class="relative ml40 bbs-1-eb pl140 font-22 color-666">
<view class="absolute left-0 box-middle"><i class="iconfont ml5 mr10 icon-gengduo"></i>优惠</view>