20 changed files with 219 additions and 233 deletions
Split View
Diff Options
-
2colorui/main.wxss
-
2components/sidebar-item/index.wxss
-
4components/tree-select/index.js
-
4components/tree-select/index.wxml
-
2components/tree-select/index.wxss
-
25pages/agent/index/index.js
-
4pages/agent/index/index.wxml
-
60pages/home/index/index.wxml
-
68pages/index/config.js
-
74pages/index/index.js
-
3pages/index/index.json
-
42pages/index/index.wxml
-
43pages/process/index/index.js
-
1pages/process/index/index.json
-
18pages/process/index/index.wxml
-
17pages/process/index/index.wxss
-
48pages/storage/index/index.js
-
17pages/storage/index/index.wxml
-
17pages/storage/index/index.wxss
-
1project.config.json
@ -1 +1 @@ |
|||
@import '../common/index.wxss';.van-sidebar-item{display:block;box-sizing:border-box;overflow:hidden;word-wrap:break-word;border-left:3px solid transparent;-webkit-user-select:none;user-select:none;padding:20px 12px 20px 8px;padding:var(--sidebar-padding,20px 12px 20px 8px);font-size:14px;font-size:var(--sidebar-font-size,14px);line-height:20px;line-height:var(--sidebar-line-height,20px);color:#323233;color:var(--sidebar-text-color,#323233);background-color:#f7f8fa;background-color:var(--sidebar-background-color,#f7f8fa)}.van-sidebar-item__text{position:relative;display:inline-block}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:#f2f3f5;background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item:after{border-bottom-width:1px}.van-sidebar-item--selected{color:#323233;color:var(--sidebar-selected-text-color,#323233);font-weight:500;font-weight:var(--sidebar-selected-font-weight,500);border-color:#ee0a24;border-color:var(--sidebar-selected-border-color,#ee0a24)}.van-sidebar-item--selected:after{border-right-width:1px}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:#fff;background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:#c8c9cc;color:var(--sidebar-disabled-text-color,#c8c9cc)} |
|||
@import '../common/index.wxss';.van-sidebar-item{display:block;box-sizing:border-box;overflow:hidden;word-wrap:break-word;border-left:3px solid transparent;-webkit-user-select:none;user-select:none;padding:20px 12px 20px 8px;padding:var(--sidebar-padding,20px 12px 20px 8px);font-size:14px;font-size:var(--sidebar-font-size,14px);line-height:20px;line-height:var(--sidebar-line-height,20px);color:#323233;color:var(--sidebar-text-color,#323233);background-color:#f7f8fa;background-color:var(--sidebar-background-color,#f7f8fa)}.van-sidebar-item__text{position:relative;display:inline-block}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:#f2f3f5;background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item:after{border-bottom-width:1px}.van-sidebar-item--selected{color:#323233;color:var(--sidebar-selected-text-color,#323233);font-weight:500;font-weight:var(--sidebar-selected-font-weight,500);border-color:#008AFF;border-color:var(--sidebar-selected-border-color,#008AFF)}.van-sidebar-item--selected:after{border-right-width:1px}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:#fff;background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:#c8c9cc;color:var(--sidebar-disabled-text-color,#c8c9cc)} |
|||
@ -1 +1 @@ |
|||
@import '../common/index.wxss';.van-tree-select{position:relative;display:-webkit-flex;display:flex;-webkit-user-select:none;user-select:none;font-size:14px;font-size:var(--tree-select-font-size,14px)}.van-tree-select__nav{-webkit-flex:1;flex:1;background-color:#f7f8fa;background-color:var(--tree-select-nav-background-color,#f7f8fa);--sidebar-padding:12px 8px 12px 12px}.van-tree-select__nav__inner{width:100%!important;height:100%}.van-tree-select__content{-webkit-flex:2;flex:2;background-color:#fff;background-color:var(--tree-select-content-background-color,#fff)}.van-tree-select__item{position:relative;font-weight:700;padding:0 32px 0 16px;padding:0 32px 0 var(--padding-md,16px);line-height:44px;line-height:var(--tree-select-item-height,44px)}.van-tree-select__item--active{color:#ee0a24;color:var(--tree-select-item-active-color,#ee0a24)}.van-tree-select__item--disabled{color:#c8c9cc;color:var(--tree-select-item-disabled-color,#c8c9cc)}.van-tree-select__selected{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;right:var(--padding-md,16px)} |
|||
@import '../common/index.wxss';.van-tree-select{position:relative;display:-webkit-flex;display:flex;-webkit-user-select:none;user-select:none;font-size:14px;font-size:var(--tree-select-font-size,14px)}.van-tree-select__nav{-webkit-flex:1.5;flex:1.5;background-color:#f7f8fa;background-color:var(--tree-select-nav-background-color,#f7f8fa);--sidebar-padding:12px 8px 12px 12px}.van-tree-select__nav__inner{width:100%!important;height:100%}.van-tree-select__content{-webkit-flex:2;flex:2;background-color:#fff;background-color:var(--tree-select-content-background-color,#fff)}.van-tree-select__item{position:relative;font-weight:700;padding:0 32px 0 16px;padding:0 32px 0 var(--padding-md,16px);line-height:44px;line-height:var(--tree-select-item-height,44px)}.van-tree-select__item--active{color:#008AFF;color:var(--tree-select-item-active-color,#008AFF)}.van-tree-select__item--disabled{color:#c8c9cc;color:var(--tree-select-item-disabled-color,#c8c9cc)}.van-tree-select__selected{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;right:var(--padding-md,16px)} |
|||
@ -0,0 +1,68 @@ |
|||
export default { |
|||
pro1Name: '巫医和尚唐有限公司', |
|||
pro1: [ |
|||
{ |
|||
text: '济州岛打包站', |
|||
id: 11, |
|||
}, |
|||
{ |
|||
text: '福州道打包站', |
|||
id: 12, |
|||
}, |
|||
{ |
|||
text: '钟落潭打包站', |
|||
id: 13, |
|||
disabled: true, |
|||
}, |
|||
{ |
|||
text: '义乌', |
|||
id: 14, |
|||
},{ |
|||
text: '杭州', |
|||
id: 1, |
|||
}, |
|||
{ |
|||
text: '温州', |
|||
id: 2, |
|||
}, |
|||
{ |
|||
text: '宁波', |
|||
id: 3, |
|||
disabled: true, |
|||
}, |
|||
{ |
|||
text: '义乌', |
|||
id: 4, |
|||
}, |
|||
], |
|||
pro2Name: '江苏', |
|||
pro2: [ |
|||
{ |
|||
text: '南京', |
|||
id: 5, |
|||
}, |
|||
{ |
|||
text: '无锡', |
|||
id: 6, |
|||
}, |
|||
{ |
|||
text: '徐州', |
|||
id: 7, |
|||
}, |
|||
{ |
|||
text: '苏州', |
|||
id: 8, |
|||
}, |
|||
], |
|||
pro3Name: '福建', |
|||
pro3: [ |
|||
{ |
|||
text: '泉州', |
|||
id: 9, |
|||
}, |
|||
{ |
|||
text: '厦门', |
|||
id: 10, |
|||
}, |
|||
], |
|||
}; |
|||
@ -1,28 +1,48 @@ |
|||
<!--pages/index/index.wxml--> |
|||
<cu-custom bgColor="bg-blue" wx:if="{{tabIndex != 3}}"> |
|||
<view slot="right" class="flex flex-center" style="padding-left:32rpx" bindtap="showFactoryList"> |
|||
<text class="text-white text-xl" style="margin-right: 12rpx">{{ userInfo ? (factoryName || '未注册工厂') : ''}}</text> |
|||
<van-icon name="{{visible ? 'arrow-up' : 'arrow-down'}}" size="36rpx" color="white" /> |
|||
</view> |
|||
</cu-custom> |
|||
|
|||
<swiper current="{{tabIndex}}" duration="0" style="height:{{fragment}}rpx"> |
|||
<swiper-item catchtouchmove="stopTouchMove"> |
|||
<process id="{{tabList[0].value}}" bind:zIndex="onPopupChange"/> |
|||
<swiper-item catchtouchmove="stopTouchMove"> |
|||
<process id="{{tabList[0].value}}" bind:zIndex="onPopupChange" /> |
|||
</swiper-item> |
|||
<swiper-item catchtouchmove="stopTouchMove"> |
|||
<storage id="{{tabList[1].value}}" bind:zIndex="onPopupChange"/> |
|||
<storage id="{{tabList[1].value}}" bind:zIndex="onPopupChange" /> |
|||
</swiper-item> |
|||
<swiper-item catchtouchmove="stopTouchMove"> |
|||
<agent id="{{tabList[2].value}}"/> |
|||
<swiper-item catchtouchmove="stopTouchMove"> |
|||
<agent id="{{tabList[2].value}}" /> |
|||
</swiper-item> |
|||
<swiper-item catchtouchmove="stopTouchMove"> |
|||
<home id="{{tabList[3].value}}"/> |
|||
<swiper-item catchtouchmove="stopTouchMove"> |
|||
<home id="{{tabList[3].value}}" /> |
|||
</swiper-item> |
|||
</swiper> |
|||
|
|||
<view class="cu-bar foot" style="height:{{100 + safeBottom}}rpx;padding-bottom:{{safeBottom}}rpx;z-index:{{zIndex}}"> |
|||
<van-tabbar active="{{ tabIndex }}" fixed="{{false}}" bind:change="onChange"> |
|||
<van-tabbar-item wx:for="{{tabList}}" wx:key="index" > |
|||
<van-icon slot="icon" name="{{item.gray}}" size="25"/> |
|||
<van-icon slot="icon-active" name="{{item.blue}}" size="25"/> |
|||
<van-tabbar-item wx:for="{{tabList}}" wx:key="index"> |
|||
<van-icon slot="icon" name="{{item.gray}}" size="25" /> |
|||
<van-icon slot="icon-active" name="{{item.blue}}" size="25" /> |
|||
<text>{{item.name}}</text> |
|||
</van-tabbar-item> |
|||
</van-tabbar> |
|||
</view> |
|||
|
|||
<van-popup position="top" show="{{ visible }}" bind:close="onHide" z-index="29"> |
|||
<view class="bg-white" style="margin-top:{{customBar}}px;width: 100%;"> |
|||
<!-- <scroll-view scroll-y style="height:{{ 88 * (factoryList.length >= 5 ? 5 : factoryList.length)}}rpx;"> |
|||
<van-cell clickable wx:for="{{factoryList}}" custom-style="min-height:88rpx" wx:key="index" data-index="{{index}}" bind:click="changeFactory"> |
|||
<view class="text-bold {{ item.id == factoryId ? 'text-blue' : 'text-black'}}" slot="title">{{item.name}}</view> |
|||
<van-icon slot="right-icon" name="success" size="1.3em" color="#008AFF" wx:if="{{item.id == factoryId}}" /> |
|||
</van-cell> |
|||
</scroll-view> --> |
|||
<van-tree-select items="{{items}}" height="440rpx" flex="{{1.5}}" main-active-index="{{mainActiveIndex}}" active-id="{{activeId}}" |
|||
bind:click-item="onClickItem" bind:click-nav="onClickNav"></van-tree-select> |
|||
</view> |
|||
</van-popup> |
|||
|
|||
<van-dialog id="van-dialog" /> |
|||
<notification id="qn-notification"/> |
|||
<notification id="qn-notification" /> |
|||
@ -1,16 +1 @@ |
|||
/* pages/index/index.wxss */ |
|||
.menu:active { |
|||
opacity: .5 |
|||
} |
|||
|
|||
.name{ |
|||
overflow: hidden; |
|||
text-overflow:ellipsis; |
|||
white-space: nowrap; |
|||
color:white; |
|||
margin-left:32rpx; |
|||
} |
|||
|
|||
.fcell{ |
|||
height: 96rpx; |
|||
} |
|||
/* pages/index/index.wxss */ |
|||
@ -1,16 +1 @@ |
|||
/* pages/index/index.wxss */ |
|||
.menu:active { |
|||
opacity: .5 |
|||
} |
|||
|
|||
.name{ |
|||
overflow: hidden; |
|||
text-overflow:ellipsis; |
|||
white-space: nowrap; |
|||
color:white; |
|||
margin-left:32rpx; |
|||
} |
|||
|
|||
.fcell{ |
|||
height: 96rpx; |
|||
} |
|||
/* pages/index/index.wxss */ |
|||
Write
Preview
Loading…
Cancel
Save