Files
lcb/pages/index/index.wxml
T
2024-05-26 17:02:46 +08:00

293 lines
17 KiB
Plaintext

<view class="container" wx:if="{{isShowMain}}">
<view class="inner30 img-top-cover" style="background-image:url({{imgUrl}}index/theme.png);">
<view style="height:200rpx;">
<view class="relative pt30 pb30 pl110 pr10">
<image class='absolute left-0 box-middle mr10 img-90x90 ulib-r750 overflowhidden' mode="aspectFill" src="{{userInfo.headimg||imgUrl+'common/default-head.jpg'}}" lazy-load="{{true}}"></image>
<view class="absolute top-0 bottom-0 left-0 right-0 opacity-0 mt20 mr150 z-index-4" wx:if="{{isResetbiz}}">
<lcb-auth type="userinfo" isShowProfile="{{isShowProfile}}" bind:onSuccess="getUserInfo"></lcb-auth>
</view>
<view>
<view class="font-22 color-fff">Hi~ {{hoursTip}}欢迎回到理车宝!</view>
<view>
<text class="text-middle text-bold font-48 color-fff">{{userInfo.uname}}</text>
<text class="inline-block ml10 pl10 pr10 bg-fff text-middle font-18 ulib-r750">{{userInfo.biz_name}}</text>
</view>
</view>
</view>
</view>
<view wx:if="{{0}}" class="mb30 pt40 pb40 bg-fff box-shadow-000-10-10 ulib-r10 text-center">
<view class="pl20 pr20 fn-flex font-22 color-666">
<view class="relative fn-flex-item" bindtap="pushLink" data-url="/pages/inventory/list/index">
<view class="absolute peg-tip box-center ml30 bg-f9394d bds-2-fff img-24x24 text-center font-18 color-fff ulib-r750 z-index-1" wx:if="{{pandianNum}}"><text class="absolute box-center-middle">{{pandianNum}}</text></view>
<image class='img-60x60' mode="aspectFill" src='{{imgUrl}}index/icon2-tab-1.png' lazy-load="{{true}}"></image>
<view>车辆盘点</view>
</view>
<view class="relative fn-flex-item" bindtap="pushLink" data-url="/pages/storeData/index" wx:if="{{userInfo.group_id>1}}">
<image class='img-60x60' mode="aspectFill" src='{{imgUrl}}index/icon-tab-2.png' lazy-load="{{true}}"></image>
<view>数据分析</view>
</view>
<view class="relative fn-flex-item" bindtap="pushLink" data-url="/pages/allot/list/index">
<view class="absolute peg-tip box-center ml30 bg-f9394d bds-2-fff img-24x24 text-center font-18 color-fff ulib-r750 z-index-1" wx:if="{{diaoboNum}}"><text class="absolute box-center-middle">{{diaoboNum}}</text></view>
<image class='img-60x60' mode="aspectFill" src='{{imgUrl}}index/icon2-tab-2.png' lazy-load="{{true}}"></image>
<view>车辆调拨</view>
</view>
<view class="relative fn-flex-item" bindtap="pushLink" data-url="/pages/inventory/warning/index">
<view class="absolute peg-tip box-center ml30 bg-f9394d bds-2-fff img-24x24 text-center font-18 color-fff ulib-r750 z-index-1" wx:if="{{inventory.value}}"><text class="absolute box-center-middle">{{inventory.value}}</text></view>
<image class='img-60x60' mode="aspectFill" src='{{imgUrl}}index/icon2-tab-3.png' lazy-load="{{true}}"></image>
<view style="color:{{inventory.color}};">{{inventory.title}}</view>
</view>
</view>
</view>
<!-- 数据看板 -->
<view class="bg-fff mb30 inner30 box-shadow-000-10-10 ulib-r10">
<view class="font-36">数据看板</view>
<view class="fn-flex fn-flex-wrap pt20 pb10 text-center">
<block wx:for="{{userCal.statistics}}" wx:key='index'>
<view class="wp25 relative pt20 pb20 {{index>2?'bts-1-eb':''}} {{index%3==2?'':'brs-1-eb'}}" bindtap="pushLink" data-url="{{item.today.url}}">
<view class="text-bold"><text class="font-36">{{item.today.value}}</text><text class="font-28 color-666">/{{item.month.value}}</text></view>
<view class="font-22"><text>{{item.today.title}}</text><text class="color-666">/{{item.month.title}}</text></view>
</view>
</block>
</view>
</view>
<!--客户代办事项-->
<view class="bg-fff mb30 box-shadow-000-10-10 ulib-r10">
<!-- <view class="bg-ffedeb ulib-rt10" style="height:140rpx;" wx:if="{{remindTab.length > 0}}">
<view class="relative pt30 pl30 pr30">
<swiper class='wp100' style="height:90rpx;" autoplay circular bindchange="bannerChange2">
<swiper-item class="wp100 relative pl110 pr110" wx:for="{{remindTab}}" wx:key="index" bindtap="pushLink" data-url="{{item.url}}">
<image class='block absolute left-0 box-middle img-90x90 ulib-r750 z-index-1' mode="aspectFill" src='{{item.img}}' lazy-load="{{true}}"></image>
<view class="color-f9394d">
<view class="font-32">{{item.title}}</view>
<view class="mt10 font-20">{{item.content}}</view>
</view>
<view class="absolute right-0 box-middle">
<text class="inline-block text-middle pt5 pb5 pl10 pr10 bg-f9394d font-22 color-fff ulib-r10">{{item.allotNum}}</text>
<text class="ml5 text-middle iconfont icon-gengduo font-32 color-f9394d"></text>
</view>
</swiper-item>
</swiper>
<view class="absolute left-0 right-0 text-center" style='bottom:-20rpx;height:20rpx' wx:if="{{remindTab.length>1&&remindTab.length<16}}">
<block wx:for-items="{{remindTab}}" wx:for-index="j" wx:key='j'>
<view class="inline-block indicator-pin2 {{banneractive2==j?'active':''}}"></view>
</block>
</view>
</view>
</view> -->
<view class="inner30">
<!-- <view class="relative pt20 pb20 pl30 pr200 ulib-r750 font-24 color-fff" style="background-image:linear-gradient(45deg, {{inventory.color1}}, {{inventory.color2}});" bindtap="pushLink" data-url="/pages/inventory/warning/index">
<view class="text-left">{{inventory.title}}</view>
<view class="absolute right-0 box-middle mr25 mb10">
<text class="text-middle">{{inventory.value}}</text>
<i class="iconfont icon-gengduo ml5 text-middle"></i>
</view>
</view> -->
<view class="font-36">客户跟进</view>
<view class="fn-flex pt20 pb20 color-fff">
<view class="fn-flex-item relative mr15 pt25 pb25 pl110 bg-1c89fd-8058fe ulib-r10" bindtap="pushLink" data-url="{{userCal.wl_count.url}}" >
<i class="absolute left-0 box-middle ml35 iconfont icon-qianke font-60"></i>
<view class="text-left">
<view class="font-40">{{userCal.wl_count.num}}</view>
<view class="font-22">{{userCal.wl_count.title}}</view>
</view>
</view>
<view class="fn-flex-item relative ml15 pt25 pb25 pl110 bg-fe606c-ff9026 ulib-r10" bindtap="pushLink" data-url="{{userCal.gz_count.url}}">
<i class="absolute left-0 box-middle ml35 iconfont icon-guanzhu font-60"></i>
<view class="text-left">
<view class="font-40">{{userCal.gz_count.num}}</view>
<view class="font-22">{{userCal.gz_count.title}}</view>
</view>
</view>
</view>
<view class="relative mt10 m140 bg-2f3346-1a1c26 ulib-r10">
<view class="inner30" wx:if="{{levelSt.length>0}}">
<view class="relative bg-999 inner6 ulib-r750 text-center font-28 color-575b6a fn-flex">
<block wx:for="{{levelSt}}" wx:key='index'>
<view class="relative fn-flex-item pt5 pb5 z-index-1 ulib-r750" bindtap="changeTab" data-index="{{index}}">{{item.title}}</view>
</block>
<view class="glider glider-{{levelStIndex}}"></view>
</view>
<view class="fn-flex pt20 text-center color-fff">
<block wx:for="{{levelSt[levelStIndex].list}}" wx:key='index'>
<view class="fn-flex-item" bindtap="pushLink" data-url="{{item.url}}">
<view class="font-32 text-bold">{{item.num}}</view>
<view class="font-22">{{item.title}}</view>
</view>
</block>
</view>
</view>
<view class="color-fff ulib-r10" wx:if="{{userCal.customer_op_list.length>0}}">
<block wx:for="{{userCal.customer_op_list}}" wx:key='index'>
<view class="relative pt20 pb30 pl30 pr30 bts-1-474a65" bindtap="pushLink" data-url="{{item.page}}">
<view>
<i class="iconfont {{item.icon}} text-middle font-30"></i>
<text class="ml10 font-22 text-middle">{{item.title}}</text>
</view>
<view class="absolute right-0 box-middle mr25 mb10 font-40">
<text class="text-middle">{{item.total}}</text>
<i class="iconfont icon-gengduo ml5 text-middle font-26"></i>
</view>
</view>
</block>
</view>
</view>
</view>
</view>
<!--订单跟进 -->
<view class="bg-fff mb30 box-shadow-000-10-10 ulib-r10">
<view class="inner30">
<view class="font-36">订单跟进</view>
<view class="fn-flex fn-flex-wrap pt20 pb10">
<block wx:for="{{deallist}}" wx:key='index'>
<view class="wp50 relative pl120 pt20 pb20 {{index>1?'bts-1-eb':''}} {{index%2==1?'':'brs-1-eb'}}" bindtap="pushLink" data-url="{{item.page}}">
<i class="absolute left-0 box-middle ml60 iconfont font-50 {{item.icon}}"></i>
<view>
<view class="font-40">{{item.total}}</view>
<view class="font-22 color-666">{{item.title}}</view>
</view>
</view>
</block>
</view>
</view>
</view>
<!-- 客户数据 -->
<!-- <view class="inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="relative">
<view class="font-36">客户数据</view>
<view class="absolute right-0 box-middle pt10 pb10 pl20 pr20 bg-ffedeb color-ff4a3a ulib-r10 font-22">累计线索总量 {{cust_total}} 条</view>
</view>
<view class="mt30 fn-flex" style="height:20rpx;">
<view class="fn-flex-item fn-clear">
<view class="fn-fl wp40 bg-f6 pt25 pb25 font-32 text-bold text-center ulib-r10">{{cust_cont_total}}</view>
<view class="pl140">
<view class="mt10 font-28">未见客户</view>
<view class="font-22 color-666">未联系客户(人)</view>
</view>
</view>
<view class="fn-flex-item fn-clear">
<view class="fn-fl wp40 bg-f6 pt25 pb25 font-32 text-bold text-center ulib-r10">{{cust_top_total}}</view>
<view class="pl140">
<view class="mt10 font-28">订单客户</view>
<view class="font-22 color-666">特别关注客户(人)</view>
</view>
</view>
</view>
<view class="relative height-600 z-index-0">
<view class="absolute wp100 height-600" wx:if="{{showPieChart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecPie }}"></ec-canvas>
</view>
</view>
</view> -->
<!-- 订单数据 -->
<!-- <view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="relative">
<view class="font-36">订单数据</view>
<view class="absolute right-0 box-middle pt10 pb10 pl20 pr20 bg-ffedeb color-ff4a3a ulib-r10 font-22">累计订单总量 {{order_total}} 条</view>
</view>
<view class="relative height-800 z-index-0">
<view class="absolute wp100 height-800" wx:if="{{showBarChart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecBar }}"></ec-canvas>
</view>
</view>
</view> -->
</view>
</view>
<!-- <lcb-footer></lcb-footer> -->
<lcb-backChannel></lcb-backChannel>
<lcb-shopTabBarNav currentIndex='0'></lcb-shopTabBarNav>
<!-- 客服提示 -->
<lcb-msg isShow="{{!isShowVersionInfo&&isShowNotice}}" isCustomTabBar="{{true}}">
<view slot="content">
<view class="mt40 text-center relative overflowhidden" style="height:100px;">
<!-- <image class='img-w-280' show-menu-by-longpress='true' lazy-load="{{true}}" mode="widthFix" src="https://qs.haodian.cn/wechat_app/lichebao/index/jrKF-code2.jpg"></image> -->
<view style="margin-top:-22px;">
<official-account bindload='officialaccount' style="margin:0;padding:0;border:1rpx solid #fff;"></official-account>
</view>
<!-- <view class="text-bold font-24">截图并识别二维码关注服务号</view> -->
</view>
<view class="inner40 pt0 pb20 font-28 color-666">
亲爱的用户,关注 “理车宝”公众号。后续关于客户、订单以及其他相关资讯,将逐步通过服务号通知的形式进行消息通知,请提前关注~
</view>
<view class="pl40 pr40 pb20 font-28 color-666">联系电话:<text bindtap="call">18965133055</text></view>
<view class="pb40 text-center font-28 color-666" bindtap="checkNotice">
<i class="mr5 iconfont {{stopNotice?'icon-fuxuansel color-36afa2':'icon-fuxuankuang color-999'}}"></i> 不再提示
</view>
<view class="bts-1-eb pt30 pb30 text-center font-32 color-666" bindtap="closeNotice">知道了</view>
</view>
</lcb-msg>
<!-- 调拨提醒 盘点提醒 -->
<lcb-msg isShow="{{!isShowVersionInfo&&isShowReport}}" isCustomTabBar="{{true}}">
<view slot="content">
<swiper class='wp100' style="height:550rpx;" autoplay circular bindchange="bannerChange">
<swiper-item class="relative" wx:for="{{remindMsg}}" wx:key="index">
<view class="pt40 pl40 pr40">
<view class="font-36 text-center">{{item.title}}</view>
<view class="mt10 font-22 text-center color-999">{{item.content}}</view>
</view>
<view class="mt20 pl40 pr40 pb40">
<image class='wp100 ulib-r10' src='{{item.img}}' mode='widthFix'></image>
</view>
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
<button bindtap="optShowReport" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">取消</button>
<button bindtap="pushLink" data-url="{{item.btn.url}}" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">{{item.btn.title}}</button>
</view>
</swiper-item>
</swiper>
<view class="absolute left-0 right-0 bottom-0 pb20 text-center" style='height:30rpx' wx:if="{{remindMsg.length>1&&remindMsg.length<16}}">
<block wx:for-items="{{remindMsg}}" wx:for-index="j" wx:key='j'>
<view class="inline-block indicator-pin {{banneractive==j?'active':''}}"></view>
</block>
</view>
</view>
</lcb-msg>
<!-- 库存提醒 -->
<lcb-msg isShow="{{!isShowVersionInfo&&!isShowReport&&isShowGoods}}" isCustomTabBar="{{true}}">
<view slot="content" class="inner40" style="width:550rpx;">
<view class="text-center font-36">{{warning.title}}</view>
<view class="mt10 text-center font-22 color-f9394d">{{warning.note}}</view>
<view class="relative">
<swiper class='wp100' style="height:420rpx;" autoplay circular bindchange="bannerChange3">
<swiper-item class="relative" wx:for="{{warning.list}}" wx:key="index">
<view class="mt40 fn-clear">
<view class="fn-fl">
<view class="font-36">{{item.title}}</view>
<view class="mt10 font-22 color-666">{{item.vin}}</view>
</view>
<view class="fn-fr pt5 pb5 pl20 pr20 bg-f9394d font-22 color-fff ulib-r750">{{item.days}}</view>
</view>
<view class="mt10 pb10">
<image class='wp100' src='{{item.img}}' mode='widthFix'></image>
</view>
</swiper-item>
</swiper>
<view class="absolute left-0 right-0 bottom-0 pb20 text-center" style='height:30rpx' wx:if="{{warning.list.length>1&&warning.list.length<16}}">
<block wx:for-items="{{warning.list}}" wx:for-index="j" wx:key='j'>
<view class="inline-block indicator-pin {{banneractive3==j?'active':''}}"></view>
</block>
</view>
</view>
<view class="fn-flex pl60 pr60 pb20 text-center font-32 color-666">
<button bindtap="optShowGoods" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">取消</button>
<button bindtap="pushLink" data-url="/pages/inventory/warning/index" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">点击查看</button>
</view>
</view>
</lcb-msg>
<!-- 更新新版本提醒 -->
<lcb-msg isShow="{{isShowVersionInfo}}" isBottomOpt="{{true}}" closeWord="我知道了" bind:closeevent="closeVersionInfo" isCustomTabBar="{{true}}">
<view slot="content" class="inner40 text-center" style="width:550rpx;">
<view class="font-36">理车宝 {{versionInfo.number}} 更新说明</view>
<view class="inline-block mt10 font-28 color-666">
<view class="mt15 text-left" wx:for-items="{{versionInfo.list}}" wx:key='index'>{{index+1}}、{{item}}</view>
</view>
</view>
</lcb-msg>