201 lines
11 KiB
Plaintext
201 lines
11 KiB
Plaintext
<view class="container">
|
|
<view class="inner30">
|
|
<view class="pl40 pr40 pt10 pb50 relative ulib-r10 box-shadow-000-10-10 overflowhidden">
|
|
<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 text-nowrap">
|
|
<picker bindchange="changeStatus" value="{{status}}" range="{{statuslist}}">
|
|
<text>{{statuslist[status]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb last-b-none pl140 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="text" placeholder="请输入客户姓名" bindinput='inputTx' data-key="name" name='name' value='{{name}}' />
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb last-b-none pl140 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="number" placeholder="请输入客户手机号" bindinput='inputTx' data-key="mobile" name='mobile' value='{{mobile}}' />
|
|
</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="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeBrand" value="{{brandIndex}}" range="{{brandArray}}">
|
|
<text class="color-ccc" wx:if="{{brandIndex == -1}}">请选择</text>
|
|
<text wx:else>{{brandArray[brandIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</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="pt30 pb30 text-right font-28 color-666 text-nowrap">
|
|
<picker bindchange="changeModel" value="{{modelIndex}}" range="{{modelArray}}">
|
|
<text class="color-ccc" wx:if="{{modelIndex == -1}}">请选择</text>
|
|
<text wx:else>{{modelArray[modelIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</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="pt30 pb30 text-right font-28 color-666 text-nowrap">
|
|
<picker bindchange="changeLevel" value="{{levelIndex}}" range="{{levelArray}}">
|
|
<text class="color-ccc" wx:if="{{levelIndex == -1}}">请选择</text>
|
|
<text wx:else>{{levelArray[levelIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{levelIndex != -1}}">
|
|
<view class="absolute left-0 box-middle font-28 color-333">车身颜色</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666 text-nowrap">
|
|
<picker bindchange="changeColor" value="{{colorIndex}}" range="{{colorArray}}">
|
|
<text class="color-ccc" wx:if="{{colorIndex == -1}}">请选择</text>
|
|
<text wx:else>{{colorArray[colorIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</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="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeSpare" value="{{spareIndex}}" range="{{modelArray}}">
|
|
<text class="color-ccc" wx:if="{{spareIndex == -1}}">请选择</text>
|
|
<text wx:else>{{modelArray[spareIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view> -->
|
|
<block wx:if="{{sources.length>0}}">
|
|
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
|
<view class="absolute left-0 box-middle">客户来源</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeOf1" value="{{of1Index}}" range="{{of1Arr}}">
|
|
<text class="color-ccc" wx:if="{{of1Index == -1}}">请选择</text>
|
|
<text wx:else>{{of1Arr[of1Index]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb last-b-none pl140 font-28" wx:if="{{of2Arr.length>0}}">
|
|
<view class="absolute left-0 box-middle">{{sources[of1Index].name}}</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeOf2" value="{{of2Index}}" range="{{of2Arr}}">
|
|
<text class="color-ccc" wx:if="{{of2Index == -1}}">请选择</text>
|
|
<text wx:else>{{of2Arr[of2Index]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
|
<view class="absolute left-0 box-middle">所在城市</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeCity" value="{{cityIndex}}" range="{{cityArr}}">
|
|
<text class="color-ccc" wx:if="{{cityIndex == -1}}">请选择</text>
|
|
<text wx:else>{{cityArr[cityIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb last-b-none pl140 font-28" wx:if="{{city_id}}">
|
|
<view class="absolute left-0 box-middle">所在地区</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeCounty" value="{{countyIndex}}" range="{{countyArr}}">
|
|
<text class="color-ccc" wx:if="{{countyIndex == -1}}">请选择</text>
|
|
<text wx:else>{{countyArr[countyIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb last-b-none pl190" wx:if="{{status==0}}">
|
|
<view class="absolute left-0 box-middle font-28 color-333">预计购车时间</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeTime" value="{{timeIndex}}" range="{{timeArray}}">
|
|
<text class="color-ccc" wx:if="{{timeIndex == -1}}">请选择</text>
|
|
<text wx:else>{{timeArray[timeIndex]}}</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 class="relative pt30 pb30 text-right">
|
|
<switch checked="{{wxgr==1}}" bindchange="switchWxgr" type="switch" color='#36afa2' style="zoom:0.8" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="mt30 text-center" wx:if="{{wxgr==1}}">
|
|
<view class="inline-block img-250x150 relative ulib-r10 overflowhidden">
|
|
<block wx:if="{{wxgrimg_url}}">
|
|
<view class="inline-block bg-f8 img-250x150 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-1" bindtap="chooseImg" data-type="gw_img"></i>
|
|
<image class='block wp100 img-250x150 ulib-r10' src='{{wxgrimg_url}}' mode='aspectFit' bindtap="previewImage" data-type="gw_img"></image>
|
|
</view>
|
|
</block>
|
|
<block wx:else>
|
|
<view class="inline-block bg-f8 img-250x150 relative ulib-r10 overflowhidden" bindtap="chooseImg" data-type="gw_img">
|
|
<view class="absolute left-0 right-0 box-middle color-ccc">
|
|
<i class="iconfont icon-paizhao font-42"></i>
|
|
<view class="mt10 font-22">上传个微截图</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
|
|
<block wx:for='{{taglList}}' wx:for-item='list' wx:for-index='i' wx:key='i'>
|
|
<view class="relative mt30">
|
|
<view class="font-28">
|
|
<text class="text-middle">{{list.name}}</text>
|
|
<text class="text-middle font-24" wx:if="{{list.type=='radio'}}">(单选)</text>
|
|
<text class="text-middle font-24" wx:if="{{list.type=='checkbox'}}">(多选)</text>
|
|
</view>
|
|
<view class="fn-clear" wx:if="{{list.type=='radio'}}">
|
|
<block wx:for='{{list.list}}' wx:for-item='option' wx:for-index='j' wx:key='j'>
|
|
<view class="inline-block space-nowrap mt20 mr20 pt15 pb15 pl30 pr30 font-22 ulib-r10 {{option.checked?'bg-36afa2 color-fff':'bg-f6 color-666'}}" bindtap="radioPicker" data-i="{{i}}" data-j="{{j}}">
|
|
{{option.name}}
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<view class="fn-clear" wx:if="{{list.type=='checkbox'}}">
|
|
<block wx:for='{{list.list}}' wx:for-item='option' wx:for-index='j' wx:key='j'>
|
|
<view class="inline-block space-nowrap mt20 mr20 pt15 pb15 pl30 pr30 font-22 ulib-r10 {{option.checked?'bg-36afa2 color-fff':'bg-f6 color-666'}}" bindtap="checkPicker" data-i="{{i}}" data-j="{{j}}">
|
|
{{option.name}}
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<view class="mt60 pl60 pr60">
|
|
<button class="wp100 btn-36afa2 pt10 pb10 text-center font-32 color-fff ulib-r750" hover-class="btn-36afa2-hover" disabled="{{submitFlag}}" bindtap="postAppCustomers">
|
|
确认建卡
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<lcb-footer></lcb-footer>
|
|
<lcb-backChannel></lcb-backChannel>
|
|
<!-- 客户已存在 -->
|
|
<lcb-msg isShow="{{isShowExist}}" isHasClose="{{true}}">
|
|
<view slot="content">
|
|
<view class="pt60 pl60 pr60 pb50">
|
|
<view class="font-36 text-center">{{exist.msg}}</view>
|
|
</view>
|
|
<view class="pl60 pr60 pb50 text-center font-32 color-666">
|
|
<button bindtap="viewDetails" class="inline-block wp50 btn-36afa2 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover" wx:if="{{exist.data.owner==1}}">
|
|
前往查看
|
|
</button>
|
|
<button bindtap="colseExist" class="inline-block wp50 btn-36afa2 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover" wx:else>
|
|
知道了
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</lcb-msg> |