index.wxml
3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!-- pages/index/index.wxml 引入模板 -->
<!-- <import src="index.skeleton.wxml" />
<template is="skeleton" wx:if="{{loading}}" /> -->
<wxs src="./index.wxs" module="fn"></wxs>
<view class="navigation-bar">
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="工作台">
<view class="bar-nav">
<view class="bar-text">{{merchantName}}</view>
</view>
</navigation-bar>
</view>
<block wx:if="{{navHeight}}">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: 100vh">
<!-- 背景图 -->
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
<glsx-image webp src="store-assistant/index_bg.webp"></glsx-image>
</view>
</view> -->
<!-- tab切换 -->
<view class="tab-box" style="top: {{navHeight}}px">
<scroll-view class="tab-scroll" scroll-into-view="{{to}}" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-x="{{true}}" scroll-with-animation>
<block wx:for="{{tab}}" wx:key="index">
<view id="{{tab.length<4?'':'to-'+index}}" class="tab_element" bindtap="click" data-index="{{index}}">
<view class="inner {{currentServiceType == item.serviceType? 'active' : '' }}">
{{item.serviceTypeName}}
<block wx:if="{{item.serviceType == 0&&totals_zc}}">({{totals_zc|| 0}})</block>
</view>
<view wx:if="{{currentServiceType == item.serviceType}}" class="line"></view>
</view>
</block>
</scroll-view>
<view class="nav-btn">
<glsx-image class="nav-func-icon" bind:tap="showMenuList" webp src="store-assistant/menu/menu_logo.png"></glsx-image>
</view>
</view>
<!-- currentServiceType 0售后众筹 1续保膨胀金 2定保招揽 3私域运营 4精品礼券 5续保招揽 6节假日关怀 -->
<view class="pannel" style="height:calc(100%)" bindtap="hideEmpSelect">
<!-- 售后众筹 -->
<view wx:if="{{fn.arrInclues(currentServiceType,[0])}}" style="height: calc(100%);">
<workertableEntrance entranceType="{{currentServiceType}}" ids="{{ids}}" fresh="{{fresh}}" isHaveSubcribe="{{isHaveSubcribe}}" bind:total="getTotal" />
</view>
<!-- 精品升级 会员权益 -->
<view wx:if="{{fn.arrInclues(currentServiceType,[1,2,3,4])}}" style="height: calc(100%);">
<OutputWork entranceType="{{currentServiceType}}" />
</view>
<view wx:if="{{currentServiceType == 7}}" style="height: 100%;">
<secondHandCar usedCarFlag="{{usedCarFlag}}"></secondHandCar>
</view>
</view>
</view>
</block>
<!-- 菜单信息 -->
<menu bind:currentMenu="getCurrentMenu" tabs="{{tab}}" totals="{{totals_zc}}" tabIndex="{{currentServiceType}}" show="{{showMenu}}"></menu>