登记信息-意向金

This commit is contained in:
老叶
2021-09-24 11:21:29 +08:00
parent 13ae50b1d2
commit a57e4e6cca
5 changed files with 52 additions and 25 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const env = "p";
const env = "d";
const version = 1,
+14 -5
View File
@@ -22,11 +22,20 @@
<view class="pl40 pr40">
<block wx:for="{{list}}" wx:key="index">
<view class="relative pt30 pb30 pl60 font-32" bindtap="pushLinkMsg" data-url="{{item.url}}">
<image class='absolute left-0 box-middle img-50x50' mode="aspectFill" src='{{item.icon}}' lazy-load="{{true}}"></image>
<text>{{item.title}}</text>
<i class="absolute right-0 box-middle iconfont icon-gengduo"></i>
</view>
<block wx:if="{{item.title == '账户设置'}}">
<view class="relative pt30 pb30 pl60 font-32" bindtap="pushLinkMsg" data-url="{{item.url}}?source={{source}}">
<image class='absolute left-0 box-middle img-50x50' mode="aspectFill" src='{{item.icon}}' lazy-load="{{true}}"></image>
<text>{{item.title}}</text>
<i class="absolute right-0 box-middle iconfont icon-gengduo"></i>
</view>
</block>
<block wx:else>
<view class="relative pt30 pb30 pl60 font-32" bindtap="pushLinkMsg" data-url="{{item.url}}">
<image class='absolute left-0 box-middle img-50x50' mode="aspectFill" src='{{item.icon}}' lazy-load="{{true}}"></image>
<text>{{item.title}}</text>
<i class="absolute right-0 box-middle iconfont icon-gengduo"></i>
</view>
</block>
</block>
</view>
+1 -1
View File
@@ -25,7 +25,7 @@ Page({
this.setData({
userInfo: res
})
if(res.group_id == 2 || res.group_id == 3 || res.group_id == 4){
if(this.data.source=='shop'&&(res.group_id == 2 || res.group_id == 3 || res.group_id == 4)){
let list=[
{
icon:'icon-renyuanguanli',
+4
View File
@@ -48,6 +48,7 @@ Page({
financeNumsIndex:-1,//金融分期期数索引
priceinfo:'',//车辆价格
delry_time:'',//期望交付时间
inten_money:'',//意向金
submitFlag:false,
customerIndex:-1,
@@ -675,6 +676,9 @@ Page({
if(this.data.fin_nums_id != ''){
params['fin_nums_id'] = this.data.fin_nums_id;
}
if(this.data.inten_money != ''){
params['inten_money'] = this.data.inten_money;
}
_.apiQuery.postAppCusorder(params).then(res => {
//刷新列表页
+32 -18
View File
@@ -22,25 +22,25 @@
</view>
<block wx:if="{{customerIndex != -1}}">
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">客户姓名</view>
<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="text" placeholder="请输入客户姓名" bindinput='inputTx' data-key="name" name='name' value='{{name}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">客户手机号码</view>
<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="请输入客户手机号码" bindinput='inputTx' data-key="mobile" name='mobile' value='{{mobile}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">客户身份证</view>
<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="text" placeholder="请输入客户身份证" bindinput='inputTx' data-key="cardid" name='cardid' value='{{cardid}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">客户地址</view>
<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="text" placeholder="请输入客户地址" bindinput='inputTx' data-key="address" name='address' value='{{address}}' />
</view>
@@ -49,7 +49,7 @@
</view>
<view wx:if="{{step == 2}}">
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
<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 color-666">
<picker bindchange="changeBrand" value="{{brandIndex}}" range="{{brandArray}}">
<text class="color-ccc" wx:if="{{brandIndex == -1}}">请选择</text>
@@ -59,7 +59,7 @@
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{brandIndex != -1}}">
<view class="absolute left-0 box-middle font-28 color-333">车型车系</view>
<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 color-666">
<picker bindchange="changeModel" value="{{modelIndex}}" range="{{modelArray}}">
<text class="color-ccc" wx:if="{{modelIndex == -1}}">请选择</text>
@@ -69,7 +69,7 @@
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{modelIndex != -1}}">
<view class="absolute left-0 box-middle font-28 color-333">车型级别</view>
<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 color-666">
<picker bindchange="changeLevel" value="{{levelIndex}}" range="{{levelArray}}">
<text class="color-ccc" wx:if="{{levelIndex == -1}}">请选择</text>
@@ -79,7 +79,7 @@
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{modelIndex != -1}}">
<view class="absolute left-0 box-middle font-28 color-333">车型颜色</view>
<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 color-666">
<picker bindchange="changeColor" value="{{colorIndex}}" range="{{colorArray}}">
<text class="color-ccc" wx:if="{{colorIndex == -1}}">请选择</text>
@@ -89,7 +89,7 @@
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{modelIndex != -1}}">
<view class="absolute left-0 box-middle font-28 color-333">内饰颜色</view>
<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 color-666">
<picker bindchange="changeInterior" value="{{interiorIndex}}" range="{{interiorArray}}">
<text class="color-ccc" wx:if="{{interiorIndex == -1}}">请选择</text>
@@ -110,11 +110,18 @@
<text>{{priceinfo.deposit}}元</text>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{priceinfo.price}}">
<view class="absolute left-0 box-middle">意向金(非必填)</view>
<view class="relative pr40">
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="意向金不超过定金" bindinput='inputTx' data-key="inten_money" name='inten_money' value='{{inten_money}}' />
<view class="absolute right-0 box-middle font-28 color-666">元</view>
</view>
</view>
</view>
<view wx:if="{{step == 3}}">
<view class="relative bbs-1-eb pl190 last-b-none">
<view class="absolute left-0 box-middle font-28 color-333">付款方式</view>
<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 color-666">
<picker bindchange="changePayment" value="{{paymentIndex}}" range="{{payment}}">
<text class="color-ccc" wx:if="{{paymentIndex == -1}}">请选择</text>
@@ -124,7 +131,7 @@
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{financeArray.length>0}}">
<view class="absolute left-0 box-middle font-28 color-333">金融机构</view>
<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 color-666">
<picker bindchange="changeFinance" value="{{financeIndex}}" range="{{financeArray}}">
<text class="color-ccc" wx:if="{{financeIndex == -1}}">请选择</text>
@@ -134,7 +141,7 @@
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{financeNumsArray.length>0}}">
<view class="absolute left-0 box-middle font-28 color-333">分期期数</view>
<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 color-666">
<picker bindchange="changeFinanceNums" value="{{financeNumsIndex}}" range="{{financeNumsArray}}">
<text class="color-ccc" wx:if="{{financeNumsIndex == -1}}">请选择</text>
@@ -156,7 +163,7 @@
</view>
</view>
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{packArray.length>0}}">
<view class="absolute left-0 box-middle font-28 color-333">代办包</view>
<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 color-666">
<picker bindchange="changePack" value="{{packIndex}}" range="{{packArray}}">
<text class="color-ccc" wx:if="{{packIndex == -1}}">请选择</text>
@@ -166,7 +173,7 @@
</view>
</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="absolute left-0 box-middle font-28 color-333">购车主体<text class="color-f9394d">*</text></view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeMain" value="{{mainIndex}}" range="{{main}}">
<text class="color-ccc" wx:if="{{mainIndex == -1}}">请选择</text>
@@ -176,7 +183,7 @@
</view>
</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="absolute left-0 box-middle font-28 color-333">是否委托<text class="color-f9394d">*</text></view>
<view class="pt30 pb30 text-right font-28 color-666">
<picker bindchange="changeEntrust" value="{{entrustIndex}}" range="{{entrust}}">
<text class="color-ccc" wx:if="{{entrustIndex == -1}}">请选择</text>
@@ -187,13 +194,13 @@
</view>
<block wx:if="{{entrustIndex==0}}">
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">受托人姓名</view>
<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="text" placeholder="请输入受托人姓名" bindinput='inputTx' data-key="entrust_name" name='entrust_name' value='{{entrust_name}}' />
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">受托人身份证</view>
<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="text" placeholder="请输入受托人身份证" bindinput='inputTx' data-key="entrust_idcard" name='entrust_idcard' value='{{entrust_idcard}}' />
</view>
@@ -201,7 +208,7 @@
</block>
<view class="relative bbs-1-eb last-b-none pl180 font-28">
<view class="absolute left-0 box-middle">期望交付时间</view>
<view class="absolute left-0 box-middle">期望交付时间<text class="color-f9394d">*</text></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>
@@ -274,6 +281,13 @@
<text>{{priceinfo.deposit}}元</text>
</view>
</view>
<view class="relative bbs-1-eb last-b-none pl180 font-28" wx:if="{{inten_money}}">
<view class="absolute left-0 box-middle color-333">意向金</view>
<view class="pt30 pb30 text-right font-28 color-666" style="height:38rpx;">
<text>{{inten_money}}元</text>
</view>
</view>
<view class="mt40 font-32">其他信息</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">{{payment[paymentIndex]}}</view>